News

Closing File Descriptors In last week’s column, we looked at using file descriptors to read and write files. After associating a file descriptor with a file, you might want to close the file ...
File descriptor duplication allows two file descriptors to refer to the same open file. Since read normally reads from stdin and not file descriptor 7 or 8 we need a way to duplicate file descriptor 7 ...
I'm assigned to write a threaded chat program as our final assignment in unix systems programming, yay!I have everything written but after two or three people join up i'm getting an error: bad ...
File descriptors below 3 are used for standard input, output, and error, the ones above 9 may be used by the shell internally. Although there is no explicit syntax for closing a file, re-using the ...