When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
1 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
On linux 0 is usually standard input (stdin), 1 stadndard output (stdout) and 2 standard error (stderr).
It can be something other than those
A descriptor is just a number which is unique within the process, which corresponds to something controlled by the OS.
Each program starts with some number of descriptors open. This is determined by the parent process.
Under normal circumstances, every program starts with three descriptors open already: 0, 1, and 2. But you can open more if you chose to, using the open() call.
!solved
Thank you and let us know if you have any more questions!
[SOLVED] Write() system call
Write() system call