diff options
author | Robert de Bath <rdebath@poboxes.com> | 2002-07-22 23:35:31 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:48:47 +0200 |
commit | 673f690a37f6673a3262e933709c79de8a66f48c (patch) | |
tree | 3acd007863bf23ce8549f9edb5e51d23a3bc6078 /libc/stdio/stdio.c | |
parent | 352e3b3230dfc6746be6d53325ffe1e33efc5289 (diff) | |
download | dev86-673f690a37f6673a3262e933709c79de8a66f48c.tar.gz |
Import Dev86src-0.16.4.tar.gzv0.16.4
Diffstat (limited to 'libc/stdio/stdio.c')
-rw-r--r-- | libc/stdio/stdio.c | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/libc/stdio/stdio.c b/libc/stdio/stdio.c index 6b0dba0..b8e68a5 100644 --- a/libc/stdio/stdio.c +++ b/libc/stdio/stdio.c @@ -582,9 +582,39 @@ FILE * fp; #endif #ifdef L_fopen +FILE * +fopen(file, mode) +char * file; +char * mode; +{ + return __fopen(file, -1, (FILE*)0, mode); +} +#endif + +#ifdef L_freopen +FILE * +freopen(file, mode, fp) +char * file; +char * mode; +FILE * fp; +{ + return __fopen(file, -1, fp, mode); +} +#endif + +#ifdef L_fdopen +FILE * +fdopen(file, mode) +int file; +char * mode; +{ + return __fopen((char*)0, file, (FILE*)0, mode); +} +#endif + +#ifdef L___fopen /* - * This Fopen is all three of fopen, fdopen and freopen. The macros in - * stdio.h show the other names. + * This is the common code for all three of fopen, fdopen and freopen. */ FILE * __fopen(fname, fd, fp, mode) |