Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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
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
to
0 new messages