Stdin: Difference between revisions

From Hackepedia
Jump to navigationJump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
stdin is short for '''standard input'''.  It is always descriptor number 0 in a unix program.  In OpenBSD stdin can be represented as /dev/fd/0 or /dev/stdin.  You can see more about this by typing "man 4 stdin" or "man 4 fd".  Standard input is defined in /usr/include/unistd.h as a macro that is called STDIN_FILENO and its value is 0.
stdin is short for '''standard input'''.  It is always descriptor number 0 in a unix program.  In [[OpenBSD]] stdin can be represented as /dev/fd/0 or /dev/stdin.  You can see more about this by typing "man 4 stdin" or "man 4 fd".  Standard input is defined in /usr/include/unistd.h as a macro that is called STDIN_FILENO and its value is 0.

Latest revision as of 10:02, 5 October 2005

stdin is short for standard input. It is always descriptor number 0 in a unix program. In OpenBSD stdin can be represented as /dev/fd/0 or /dev/stdin. You can see more about this by typing "man 4 stdin" or "man 4 fd". Standard input is defined in /usr/include/unistd.h as a macro that is called STDIN_FILENO and its value is 0.