2 * Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
11 #undef _IO_funlockfile
15 _IO_flockfile(_IO_FILE
*stream
)
17 __libc_lock_lock_recursive(*stream
->_lock
);
22 _IO_funlockfile(_IO_FILE
*stream
)
24 __libc_lock_unlock_recursive(*stream
->_lock
);
29 _IO_ftrylockfile(_IO_FILE
*stream
)
31 // ToDo: that code has probably never been tested!
32 //return __libc_lock_trylock_recursive(*stream->_lock);
36 weak_alias (_IO_flockfile
, flockfile
);
37 weak_alias (_IO_funlockfile
, funlockfile
);
38 weak_alias (_IO_ftrylockfile
, ftrylockfile
);