From 27114e2046a5d8b89c2e84bdcc53c42f7381c700 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 13 Nov 2001 10:07:33 +0000 Subject: * 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. --- hurd/fopenport.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'hurd') 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) -- cgit 1.4.1