1 |
/* lockfile - Handle locking and unlocking of streams. Hurd cthreads version. |
/* lockfile - Handle locking and unlocking of streams. Hurd cthreads version. |
2 |
Copyright (C) 2000,01 Free Software Foundation, Inc. |
Copyright (C) 2000,01,02 Free Software Foundation, Inc. |
3 |
This file is part of the GNU C Library. |
This file is part of the GNU C Library. |
4 |
|
|
5 |
The GNU C Library is free software; you can redistribute it and/or |
The GNU C Library is free software; you can redistribute it and/or |
41 |
return __libc_lock_trylock_recursive (*fp->_lock); |
return __libc_lock_trylock_recursive (*fp->_lock); |
42 |
} |
} |
43 |
|
|
|
|
|
44 |
# undef _IO_flockfile |
# undef _IO_flockfile |
45 |
# undef _IO_funlockfile |
# undef _IO_funlockfile |
46 |
# undef _IO_ftrylockfile |
# undef _IO_ftrylockfile |
|
# pragma weak _IO_flockfile = _cthreads_flockfile |
|
|
# pragma weak _IO_funlockfile = _cthreads_funlockfile |
|
|
# pragma weak _IO_ftrylockfile= _cthreads_ftrylockfile |
|
|
|
|
47 |
# undef flockfile |
# undef flockfile |
48 |
# undef funlockfile |
# undef funlockfile |
49 |
# undef ftrylockfile |
# undef ftrylockfile |
|
# pragma weak flockfile = _cthreads_flockfile |
|
|
# pragma weak funlockfile = _cthreads_funlockfile |
|
|
# pragma weak ftrylockfile = _cthreads_ftrylockfile |
|
50 |
|
|
51 |
|
void _IO_flockfile (_IO_FILE *) |
52 |
|
__attribute__ ((alias ("_cthreads_flockfile"))); |
53 |
|
void _IO_funlockfile (_IO_FILE *) |
54 |
|
__attribute__ ((alias ("_cthreads_funlockfile"))); |
55 |
|
int _IO_ftrylockfile (_IO_FILE *) |
56 |
|
__attribute__ ((alias ("_cthreads_ftrylockfile"))); |
57 |
|
|
58 |
|
void flockfile (_IO_FILE *) |
59 |
|
__attribute__ ((alias ("_cthreads_flockfile"))); |
60 |
|
void funlockfile (_IO_FILE *) |
61 |
|
__attribute__ ((alias ("_cthreads_funlockfile"))); |
62 |
|
int ftrylockfile (_IO_FILE *) |
63 |
|
__attribute__ ((alias ("_cthreads_ftrylockfile"))); |
64 |
|
|
65 |
#endif /* _STDIO_USES_IOSTREAM */ |
#endif /* _STDIO_USES_IOSTREAM */ |