ニュース

0, 1, and 2 are used as file descriptors for stdin, stdout, and stderr files respectively. Input Redirection The ‘ <’ sign is used for the input or stdin redirection. For example, Linux’s mail program ...
Reading from a File Descriptor First, you can assign a file descriptor to an input file with this syntax: $ exec 3 where 3 is the file descriptor we have chosen to use and file is the name of the ...
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 ...
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 ...
After the installation of the OS (usually about 8-12 days of running non-stop) I start getting "Bad File Descriptor" errors on random files all around the Maxtor drive and I have to go to single ...