Last week's article on syslets briefly mentioned a problem with using file descriptors for low-level communications with the kernel. There is a single namespace for file descriptors, combined with a ...
In response to a growing desire for ways to control groups of processes from user space, the kernel has added a number of mechanisms that allow one process to operate on another. One piece that is ...
There is a standard C approach to files, but there is also a POSIX standard that is implemented in Linux/Unix and in many ways this is more general than the C file functions. The reason is that once ...
Have you ever wanted to read a file one line at a time in a shell script and found the task to be a lot more trouble than you ever imagined? If you use a “for line ...
OK, I am trying to convert a small bit of code from using old-style <fstream.h> headers to <fstream>. I am guessing that ofstream::fd() has been deprecated. In that case, what's the established method ...
There is a standard C approach to files, but there is also a POSIX standard that is implemented in Linux/Unix and in many ways this is more general than the C file functions. The reason is that once ...
Last week’s column looked at how we can read from and write to files by associated the files with user-defined file descriptors. This week, we take this idea a bit further. Closing File Descriptors In ...