From 954e81147d8b728eda4693b583b50ff36a84e0ce Mon Sep 17 00:00:00 2001 From: jb Date: Tue, 5 May 1998 21:59:19 +0000 Subject: 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(-) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index 4754cfc..56f8152 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) -- cgit v1.1