| c++ Programming Glossary: fcntl.hCopy a file in an sane, safe and efficient way http://stackoverflow.com/questions/10195343/copy-a-file-in-an-sane-safe-and-efficient-way  language more low level #include iostream #include fcntl.h open #include unistd.h read write close #include cstdio BUFSIZ.. iostream #include sys sendfile.h sendfile #include fcntl.h open #include unistd.h close #include sys stat.h fstat #include.. 
 How to print unicode character in C++? http://stackoverflow.com/questions/12015571/how-to-print-unicode-character-in-c  only UTF 16 data. #include iostream #include io.h #include fcntl.h int main _setmode _fileno stdout _O_U16TEXT std wcout L Hello.. 
 In C++, How to get MD5 hash of a file? http://stackoverflow.com/questions/1220046/in-c-how-to-get-md5-hash-of-a-file  types.h #include sys stat.h #include sys mman.h #include fcntl.h #include stdio.h #include stdlib.h #include string.h #include.. 
 How to simulate “Press any key to continue?” http://stackoverflow.com/questions/1449324/how-to-simulate-press-any-key-to-continue  stdio.h #include termios.h #include unistd.h #include fcntl.h int kbhit void struct termios oldt newt int ch int oldf tcgetattr.. 
 How to handle execvp(…) errors after fork()? http://stackoverflow.com/questions/1584956/how-to-handle-execvp-errors-after-fork  can be adapted for this purpose. #include errno.h #include fcntl.h #include stdio.h #include string.h #include sys wait.h #include.. 
 Fast textfile reading in c++ http://stackoverflow.com/questions/17925051/fast-textfile-reading-in-c  for mmap #include sys mman.h #include sys stat.h #include fcntl.h const char map_file const char fname size_t length int main.. 
 How to draw the graph in framebuffer using c language..? http://stackoverflow.com/questions/1830836/how-to-draw-the-graph-in-framebuffer-using-c-language  sys mman.h #include linux fb.h #include unistd.h #include fcntl.h #include stdio.h int main struct fb_var_screeninfo screen_info.. 
 crosses initialization of ?˜std::istringstream iss??when using inside while loop [closed] http://stackoverflow.com/questions/18417738/crosses-initialization-of-stdistringstream-iss-when-using-inside-while-loop  error. this is entire code if you want to see #include fcntl.h #include string.h #include stdlib.h #include errno.h #include.. #include sys socket.h #include arpa inet.h #include fcntl.h #include string.h #include stdlib.h #include iostream #include.. 
 USB-drive serial number under linux C++ http://stackoverflow.com/questions/2432759/usb-drive-serial-number-under-linux-c  stdio.h #include string.h #include unistd.h #include fcntl.h #include errno.h #include scsi scsi.h #include scsi sg.h #include.. #include sys ioctl.h #include linux hdreg.h #include fcntl.h #include errno.h #include string.h #include cctype #include.. 
 Output unicode strings in Windows console app http://stackoverflow.com/questions/2492077/output-unicode-strings-in-windows-console-app  . Solution #include iostream #include io.h #include fcntl.h int wmain int argc wchar_t argv _setmode _fileno stdout _O_U16TEXT.. 
 Output Unicode to Console Using C++ http://stackoverflow.com/questions/2849010/output-unicode-to-console-using-c  to use _setmode _fileno stdout _O_U16TEXT which require fcntl.h and io.h as described in this answer and documented in this.. 
 STL and UTF-8 file input/output. How to do it? http://stackoverflow.com/questions/4018384/stl-and-utf-8-file-input-output-how-to-do-it  example does the job just fine #include io.h # include fcntl.h # include iostream _setmode _fileno stdout _O_U16TEXT wcout.. 
 How to get a list of video capture devices (web cameras) on linux ( ubuntu )? (C/C++) http://stackoverflow.com/questions/4290834/how-to-get-a-list-of-video-capture-devices-web-cameras-on-linux-ubuntu-c  get the info. #include stdio.h #include unistd.h #include fcntl.h #include sys ioctl.h #include linux videodev.h int main int.. 
 How to get a list video capture devices NAMES (web cameras) on linux ( ubuntu )? (C/C++) http://stackoverflow.com/questions/4483366/how-to-get-a-list-video-capture-devices-names-web-cameras-on-linux-ubuntu  code like #include stdio.h #include unistd.h #include fcntl.h #include sys ioctl.h #include linux videodev.h int main int.. 
 sem_open() error: “undefined reference to sem_open()” on linux (Ubuntu 10.10) http://stackoverflow.com/questions/4916881/sem-open-error-undefined-reference-to-sem-open-on-linux-ubuntu-10-10  std #include pthread.h #include semaphore.h #include fcntl.h const char serverControl serverControl sem_t semID int main.. 
 How to compress a directory with libbz2 in C++ http://stackoverflow.com/questions/813223/how-to-compress-a-directory-with-libbz2-in-c  #include sys types.h #include sys stat.h #include fcntl.h #include stdlib.h #include libtar.h #include bzlib.h #include.. 
 Windows Unicode C++ Stream Output Failure http://stackoverflow.com/questions/9859020/windows-unicode-c-stream-output-failure  . For this you have to add these 2 include files #include fcntl.h #include io.h Furthermore you have to make sure that your are.. iostream #include codecvt #include locale #include fcntl.h #include io.h int main const std locale utf8_locale std locale.. 
 |