diff options
author | Roland McGrath <roland@gnu.org> | 2001-11-13 10:07:33 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-11-13 10:07:33 +0000 |
commit | 27114e2046a5d8b89c2e84bdcc53c42f7381c700 (patch) | |
tree | 98c25110b7cbc910340fa19714a1d457cafd6e67 /hurd | |
parent | c9fc9559ffc7651ee91cf8370ddb1af79caa24c1 (diff) | |
download | glibc-27114e2046a5d8b89c2e84bdcc53c42f7381c700.tar.gz glibc-27114e2046a5d8b89c2e84bdcc53c42f7381c700.tar.xz glibc-27114e2046a5d8b89c2e84bdcc53c42f7381c700.zip |
* stdio-common/tmpfile.c: Moved to ...
* sysdeps/generic/tmpfile.c: ... here. * sysdeps/mach/hurd/tmpfile.c: New file. * hurd/fopenport.c (__fopenport): Renamed from fopenport. [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie. (fopenport): Define as weak alias. * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ... * libio/libioP.h: ... to here.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/fopenport.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hurd/fopenport.c b/hurd/fopenport.c index 9b8afdd9aa..869b3917bf 100644 --- a/hurd/fopenport.c +++ b/hurd/fopenport.c @@ -101,7 +101,10 @@ closeio (void *cookie) return 0; } -#ifndef USE_IN_LIBIO +#ifdef USE_IN_LIBIO +#include "../libio/libioP.h" +#define fopencookie _IO_fopencookie +#else #define cookie_io_functions_t __io_functions #endif static const cookie_io_functions_t funcsio = @@ -111,7 +114,7 @@ static const cookie_io_functions_t funcsio = /* Open a stream on PORT. MODE is as for fopen. */ FILE * -fopenport (mach_port_t port, const char *mode) +__fopenport (mach_port_t port, const char *mode) { int pflags; int needflags; @@ -150,3 +153,4 @@ fopenport (mach_port_t port, const char *mode) return fopencookie ((void *) port, mode, funcsio); } +weak_alias (__fopenport, fopenport) |