1 --- stdio.3.bsdnew 2009-11-11 13:33:16.000000000 -0800
2 +++ stdio.3 2009-11-11 15:14:22.000000000 -0800
9 +The current implementation does not allow these variables
10 +to be evaluated at C compile/link time.
11 +That is, a runtime calculation must be performed, such as:
12 +.Bd -literal -offset indent
24 @@ -228,11 +242,21 @@ and
26 exist and will be used if the macro
27 definitions are explicitly removed.
29 +The -D_NONSTD_SOURCE flag can be used
30 +to allow stdin, stdout, and/or stderr
31 +to be evaluated at compile/link time, as:
32 +.Bd -literal -offset indent
35 +static FILE *var = stdout;
47 @@ -242,8 +266,9 @@ library conforms to
48 .Bl -column "Description"
49 .It Sy "Function Description"
50 .It "asprintf formatted output conversion"
52 .It "clearerr check and reset stream status"
53 -.It "dprintf formatted output conversion"
55 .It "fclose close a stream"
56 .It "fdopen stream open functions"
57 .It "feof check and reset stream status"
58 @@ -275,6 +300,7 @@ library conforms to
59 .It "fwopen open a stream"
60 .It "fwprintf formatted wide character output conversion"
61 .It "fwrite binary stream input/output"
63 .It "getc get next character or word from input stream"
64 .It "getchar get next character or word from input stream"
65 .It "getdelim get a line from a stream"
66 @@ -283,9 +309,11 @@ library conforms to
67 .It "getw get next character or word from input stream"
68 .It "getwc get next wide character from input stream"
69 .It "getwchar get next wide character from input stream"
71 .It "mkdtemp create unique temporary directory"
72 .It "mkstemp create unique temporary file"
73 .It "mktemp create unique temporary file"
75 .It "perror system error messages"
76 .It "printf formatted output conversion"
77 .It "putc output a character or word to a stream"
78 @@ -294,8 +322,10 @@ library conforms to
79 .It "putw output a character or word to a stream"
80 .It "putwc output a wide character to a stream"
81 .It "putwchar output a wide character to a stream"
83 .It "remove remove directory entry"
84 .It "rewind reposition a stream"
86 .It "scanf input format conversion"
87 .It "setbuf stream buffering operations"
88 .It "setbuffer stream buffering operations"
89 @@ -308,13 +338,15 @@ library conforms to
90 .It "swprintf formatted wide character output conversion"
91 .It "sys_errlist system error messages"
92 .It "sys_nerr system error messages"
94 .It "tempnam temporary file routines"
95 .It "tmpfile temporary file routines"
96 .It "tmpnam temporary file routines"
98 .It "ungetc un-get character from input stream"
99 .It "ungetwc un-get wide character from input stream"
101 .It "vasprintf formatted output conversion"
102 -.It "vdprintf formatted output conversion"
103 .It "vfprintf formatted output conversion"
104 .It "vfscanf input format conversion"
105 .It "vfwprintf formatted wide character output conversion"
106 @@ -325,6 +357,7 @@ library conforms to
107 .It "vsscanf input format conversion"
108 .It "vswprintf formatted wide character output conversion"
109 .It "vwprintf formatted wide character output conversion"
111 .It "wprintf formatted wide character output conversion"