Ver Fonte

Switch fread/fwrite/fclose/pipe/sigsetmask users

Peter S. Mazinger há 20 anos atrás
pai
commit
3720c42fcc

+ 2 - 0
include/libc-internal.h

@@ -192,6 +192,7 @@ extern int __sprintf (char *__restrict __s,
 		    __const char *__restrict __format, ...) attribute_hidden;
 /* hack */
 #define fprintf __fprintf
+#define fclose __fclose
 
 /* #include <stdlib.h> */
 extern char *__getenv (__const char *__name) attribute_hidden;
@@ -217,6 +218,7 @@ extern int __vfprintf (FILE *__restrict __s, __const char *__restrict __format,
 		     __gnuc_va_list __arg) attribute_hidden;
 extern int __fprintf (FILE *__restrict __stream,
 		    __const char *__restrict __format, ...) attribute_hidden;
+extern int __fclose (FILE *__stream) attribute_hidden;
 
 /* #include <sys/time.h> */
 #   define __need_timeval

+ 1 - 0
libc/inet/rpc/rcmd.c

@@ -55,6 +55,7 @@ static char sccsid[] = "@(#)rcmd.c	8.3 (Berkeley) 3/26/94";
 #define poll __poll
 #define accept __accept
 #define listen __listen
+#define sigsetmask __sigsetmask
 
 #define __FORCE_GLIBC
 #include <features.h>

+ 3 - 0
libc/inet/rpc/xdr_stdio.c

@@ -37,6 +37,9 @@
  * from the stream.
  */
 
+#define fread __fread
+#define fwrite __fwrite
+
 #include <rpc/types.h>
 #include <stdio.h>
 #include <rpc/xdr.h>

+ 2 - 0
libc/misc/wchar/wchar.c

@@ -99,6 +99,8 @@
  */
 
 #define vfprintf __vfprintf
+#define fread __fread
+#define fwrite __fwrite
 
 #define _GNU_SOURCE
 #define _ISOC99_SOURCE

+ 1 - 0
libc/misc/wordexp/wordexp.c

@@ -33,6 +33,7 @@
 #define dup2 __dup2
 #define atoi __atoi
 #define fnmatch __fnmatch
+#define pipe __pipe
 #if 0
 #define glob __glob
 #define globfree __globfree

+ 1 - 0
libc/stdio/popen.c

@@ -18,6 +18,7 @@
 #define execl __execl
 #define dup2 __dup2
 #define fdopen __fdopen
+#define pipe __pipe
 
 #include <stdio.h>
 #include <stdlib.h>