1 --- fopen.3 2003-05-20 15:22:41.000000000 -0700
2 +++ fopen.3.edit 2006-06-28 16:55:52.000000000 -0700
11 .Nd stream open functions
17 -.Fn fopen "const char * restrict path" "const char * restrict mode"
20 +.Fa "const char *mode"
23 -.Fn fdopen "int fildes" "const char *mode"
25 +.Fa "const char *restrict filename"
26 +.Fa "const char *restrict mode"
29 -.Fn freopen "const char *path" "const char *mode" "FILE *stream"
31 +.Fa "const char *restrict filename"
32 +.Fa "const char *restrict mode"
33 +.Fa "FILE *restrict stream"
39 opens the file whose name is the string pointed to by
42 and associates a stream with it.
47 and has no effect; the ``b'' is ignored.
49 +Finally, as an extension to the standards (and thus may not be portable),
51 +string may end with the letter ``x'', which insists on creating a new file
52 +when used with ``w'' or ``a''.
55 +exists, then an error is returned (this is the equivalent of specifying
60 Any created files will have mode
66 opens the file whose name is the string pointed to by
69 and associates the stream pointed to by
83 Upon successful completion