lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #include <libio/libio.h> |
| 2 | |
| 3 | #ifndef _ISOMAC |
| 4 | #ifndef _LIBC_LIBIO_H |
| 5 | #define _LIBC_LIBIO_H |
| 6 | |
| 7 | libc_hidden_proto (__overflow) |
| 8 | libc_hidden_proto (__underflow) |
| 9 | libc_hidden_proto (__uflow) |
| 10 | libc_hidden_proto (__woverflow) |
| 11 | libc_hidden_proto (__wunderflow) |
| 12 | libc_hidden_proto (__wuflow) |
| 13 | libc_hidden_proto (_IO_free_backup_area) |
| 14 | libc_hidden_proto (_IO_free_wbackup_area) |
| 15 | libc_hidden_proto (_IO_padn) |
| 16 | libc_hidden_proto (_IO_putc) |
| 17 | libc_hidden_proto (_IO_sgetn) |
| 18 | libc_hidden_proto (_IO_vfprintf) |
| 19 | libc_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 |