blob: 735941d23078f99b7d11a9c5f2a9116b2918b9ec [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <libio/libio.h>
2
3#ifndef _ISOMAC
4#ifndef _LIBC_LIBIO_H
5#define _LIBC_LIBIO_H
6
7libc_hidden_proto (__overflow)
8libc_hidden_proto (__underflow)
9libc_hidden_proto (__uflow)
10libc_hidden_proto (__woverflow)
11libc_hidden_proto (__wunderflow)
12libc_hidden_proto (__wuflow)
13libc_hidden_proto (_IO_free_backup_area)
14libc_hidden_proto (_IO_free_wbackup_area)
15libc_hidden_proto (_IO_padn)
16libc_hidden_proto (_IO_putc)
17libc_hidden_proto (_IO_sgetn)
18libc_hidden_proto (_IO_vfprintf)
19libc_hidden_proto (_IO_vfscanf)
20
21#if defined _IO_MTSAFE_IO && _IO_lock_inexpensive
22# undef _IO_flockfile
23# define _IO_flockfile(_fp) \
24 if (((_fp)->_flags & _IO_USER_LOCK) == 0) \
25 _IO_lock_lock (*(_fp)->_lock)
26# undef _IO_funlockfile
27# define _IO_funlockfile(_fp) \
28 if (((_fp)->_flags & _IO_USER_LOCK) == 0) \
29 _IO_lock_unlock (*(_fp)->_lock)
30#endif
31
32#endif
33#endif