diff options
author | jb <jb@FreeBSD.org> | 1998-05-05 21:59:19 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-05 21:59:19 +0000 |
commit | 954e81147d8b728eda4693b583b50ff36a84e0ce (patch) | |
tree | 3fe52656abb6ccc1c85de599c75e7548d23a58f0 /include/stdio.h | |
parent | 7e3d59885171a4c58eb9437cc8b8c871faec2854 (diff) | |
download | FreeBSD-src-954e81147d8b728eda4693b583b50ff36a84e0ce.zip FreeBSD-src-954e81147d8b728eda4693b583b50ff36a84e0ce.tar.gz |
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.
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 10 |
1 files changed, 4 insertions, 6 deletions
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) |