Difference between revisions of "Stdout"
From Hackepedia
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | stdout is short for '''standard output'''. It is always descriptor number 1 in a unix program. In OpenBSD stdout can be represented as /dev/fd/1 or /dev/stdout. You can see more about this by typing "man 4 stdout" or "man 4 fd". Standard output is defined in /usr/include/unistd.h as a macro that is called STDOUT_FILENO and its value is 1. | + | stdout is short for '''standard output'''. It is always descriptor number 1 in a unix program. In [[OpenBSD]] stdout can be represented as /dev/fd/1 or /dev/stdout. You can see more about this by typing "man 4 stdout" or "man 4 fd". Standard output is defined in /usr/include/unistd.h as a macro that is called STDOUT_FILENO and its value is 1. |
Revision as of 11:02, 5 October 2005
stdout is short for standard output. It is always descriptor number 1 in a unix program. In OpenBSD stdout can be represented as /dev/fd/1 or /dev/stdout. You can see more about this by typing "man 4 stdout" or "man 4 fd". Standard output is defined in /usr/include/unistd.h as a macro that is called STDOUT_FILENO and its value is 1.