From 351c800a5ef8e7f3afe7fa457589aab8c8a0eb91 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Tue, 5 May 1998 21:59:19 +0000 Subject: [PATCH] I have a long list of issues to address here, mostly related to namespace and revision levels of ANSI and POSIX. This change only removes the leading underscrore from the FILE locking functions that POSIX defines. --- include/stdio.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/stdio.h b/include/stdio.h index 4754cfcceb3..56f815254b0 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)stdio.h 8.5 (Berkeley) 4/29/95 - * $Id: stdio.h,v 1.15 1998/04/11 07:33:46 jb Exp $ + * $Id: stdio.h,v 1.16 1998/04/12 20:29:24 jb Exp $ */ #ifndef _STDIO_H_ @@ -413,13 +413,11 @@ static __inline int __sputc(int _c, FILE *_p) { #define getc_unlocked(fp) __sgetc(fp) #define putc_unlocked(x, fp) __sputc(x, fp) #ifdef _THREAD_SAFE -void _flockfile __P((FILE *)); void _flockfile_debug __P((FILE *, char *, int)); -void _funlockfile __P((FILE *)); #ifdef _FLOCK_DEBUG #define _FLOCKFILE(x) _flockfile_debug(x, __FILE__, __LINE__) #else -#define _FLOCKFILE(x) _flockfile(x) +#define _FLOCKFILE(x) flockfile(x) #endif static __inline int \ __getc_locked(FILE *_fp) \ @@ -430,7 +428,7 @@ __getc_locked(FILE *_fp) \ _FLOCKFILE(_fp); \ _ret = getc_unlocked(_fp); \ if (__isthreaded) \ - _funlockfile(_fp); \ + funlockfile(_fp); \ return (_ret); \ } static __inline int \ @@ -442,7 +440,7 @@ __putc_locked(int _x, FILE *_fp) \ _FLOCKFILE(_fp); \ _ret = putc_unlocked(_x, _fp); \ if (__isthreaded) \ - _funlockfile(_fp); \ + funlockfile(_fp); \ return (_ret); \ } #define getc(fp) __getc_locked(fp)