libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / system / libroot / posix / glibc / libio / flockfile.c
blobe51ad51b1cbab3643be8ae81fe7d0e6a62f1975d
1 /*
2 * Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "libioP.h"
10 #undef _IO_flockfile
11 #undef _IO_funlockfile
14 void
15 _IO_flockfile(_IO_FILE *stream)
17 __libc_lock_lock_recursive(*stream->_lock);
21 void
22 _IO_funlockfile(_IO_FILE *stream)
24 __libc_lock_unlock_recursive(*stream->_lock);
28 int
29 _IO_ftrylockfile(_IO_FILE *stream)
31 // ToDo: that code has probably never been tested!
32 //return __libc_lock_trylock_recursive(*stream->_lock);
33 return 1;
36 weak_alias (_IO_flockfile, flockfile);
37 weak_alias (_IO_funlockfile, funlockfile);
38 weak_alias (_IO_ftrylockfile, ftrylockfile);