aboutsummaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-05 21:59:19 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-05 21:59:19 +0000
commit351c800a5ef8e7f3afe7fa457589aab8c8a0eb91 (patch)
treec36ef70f5cc11af9685f87dbeaca4b4c485fa2bc /include/stdio.h
parent4c717fd74de8f030cb3ae9ad06051fd9bfc9d4fc (diff)
downloadsrc-351c800a5ef8e7f3afe7fa457589aab8c8a0eb91.tar.gz
src-351c800a5ef8e7f3afe7fa457589aab8c8a0eb91.zip
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.
Notes
Notes: svn path=/head/; revision=35758
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 4754cfcceb3d..56f815254b0d 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)