About STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO values
0 views
Skip to first unread message
Neroku
unread,
Aug 27, 2006, 6:51:48 AM8/27/06
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello, I know POSIX compliant code should use STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO instead of the magic numbers 0,1 and 2.
But my question is: Does POSIX guarantees that the value of the constants (or whatever they are) STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO are 0,1 and 2 respectively?
TIA
"Nils O. Selåsdal"
unread,
Aug 27, 2006, 7:52:21 AM8/27/06
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message