Penguin

Differences between current version and predecessor to the previous major change of stderr(3).

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 3 Last edited on Friday, May 11, 2007 6:40:51 pm by CraigBox
Older page: version 1 Last edited on Monday, June 3, 2002 11:57:34 pm by perry Revert
@@ -1,18 +1,17 @@
-----  
 __NAME__ 
  
+stdin, stdout, stderr - standard I/O streams  
  
-stdin, stdout, stderr - standard I/O streams  
 __SYNOPSIS__ 
-  
-  
-#include 
+<verbatim>  
+#include <stdio.h>  
 extern FILE stdin; 
 extern FILE stdout; 
 extern FILE stderr; 
+</verbatim>  
+  
 __DESCRIPTION__ 
-  
  
 Under normal circumstances every Unix program has three 
 streams opened for it when it starts up, one for input, one 
 for output, and one for printing diagnostic or error mes- 
@@ -22,9 +21,9 @@
 set up. (See also the ``Redirection'' section of 
 sh(1) .) 
  
  
-The input stream is referred to as ``standard input''; the output stream is referred to as ``standard output''; and the error stream is referred to as ``standard error''. These terms are abbreviated to form the symbols used to refer to these files, namely stdin, stdout, and stderr. 
+The input stream is referred to as ``standard input''; the output stream is referred to as ``standard output''; and the error stream is referred to as ``standard error''. These terms are abbreviated to form the symbols used to refer to these files, namely __ stdin__ , __ stdout__ , and __ stderr__
  
  
 Each of these symbols is a stdio(3) macro of type 
 pointer to FILE, and can be used with functions like 
@@ -59,15 +58,14 @@
 introduced to make it possible to reassign stdin, stdout, 
 and stderr. The standard streams are closed by a call to 
 exit(3) and by nor- mal program 
 termination. 
+  
 __SEE ALSO__ 
  
+sh(1), csh(1), open(2), fopen(3), stdio(3)  
  
-sh(1), csh(1), open(2),  
-fopen(3), stdio(3)  
 __CONSIDERATIONS__ 
-  
  
 The stream stderr is unbuffered. The stream stdout is 
 line-buffered when it points to a terminal. Partial lines 
 will not appear until fflush(3) or exit(3) 
@@ -81,15 +79,9 @@
 stdio buffering. (Indeed, normally terminal input is line 
 buffered in the kernel.) This kernel input handling can be 
 modified using calls like tcsetattr(3); see also 
 stty(1), and termios(3). 
+  
 __CONFORMING TO__ 
-  
  
 The stdin, stdout, and stderr macros conform to 
-ANSI X3.159-1989 (`` ANSI C  
- ''), and this standard also stipulates that these three  
- streams shall be open at program startup.  
-  
-  
-Linux 2.0 March 24, 1998 1  
-----  
+ANSI X3.159-1989 (`` ANSI C''), and this standard also stipulates that these three streams shall be open at program startup. 
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.