Jeff Johnston
10dcf7e718
2004-03-25 Thomas Pfaff <tpfaff@gmx.net>
* libc/stdio/fclose.c (fclose): Protect file pointer list when
releasing a file.
* libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
fwalk.
* libc/stdio/fdopen.c (_fdopen_r): Add calls to
_flockfile/_funlockfile.
* libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
to recursive.
Change __lock_acquire/__lock_release calls for __sfp_lock to
__sfp_lock_acquire/__sfp_lock_release throughout.
(std): Make sure that file lock is only initialized once.
(__sfp): Move _file initialization. Initialize file lock.
(__sfp_lock_acquire): New function.
(__sfp_lock_release): Ditto.
(__fp_lock_all): Remove __sfp_lock_acquire call.
(__fp_unlock_all): Remove __sfp_lock_release call.
* libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
Add calls to _flockfile/_funlockfile. Remove
__lock_init_recursive call.
* libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
* libc/stdio/fwalk.c (__fwalk): New static function.
(_fwalk): Protect file pointer list. Use __fwalk to walk through
file pointers.
* libc/stdio/local.h: Add defines for
__sfp_lock_acquire/__sfp_lock_release when
single threaded. Add function prototypes otherwise.
* libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
_flockfile/_funlockfile.
* libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
Add calls to _flockfile/_funlockfile. Remove
__lock_init_recursive call.
* libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
list.
2004-03-25 22:29:18 +00:00
..
2003-08-22 18:52:25 +00:00
2002-05-08 00:12:49 +00:00
2004-03-25 22:29:18 +00:00
2004-03-25 22:29:18 +00:00
2004-03-25 22:29:18 +00:00
2002-05-08 00:12:49 +00:00
2002-05-08 00:12:49 +00:00
2003-08-22 18:52:25 +00:00
2002-05-08 00:12:49 +00:00
2003-08-22 18:52:25 +00:00
2002-05-08 00:12:49 +00:00
2002-05-08 00:12:49 +00:00
2004-03-25 22:29:18 +00:00
2003-08-22 18:52:25 +00:00
2000-02-25 19:52:27 +00:00
2000-12-06 23:50:11 +00:00
2004-03-25 22:29:18 +00:00
2003-08-22 18:52:25 +00:00
2002-05-08 00:12:49 +00:00
2002-05-08 00:12:49 +00:00
2002-05-08 00:12:49 +00:00
2004-03-25 22:29:18 +00:00
2001-04-20 22:50:51 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2000-02-17 19:39:52 +00:00
2004-03-25 22:29:18 +00:00
2002-05-08 00:12:49 +00:00
2002-05-08 19:11:22 +00:00
2002-05-08 00:12:49 +00:00
2002-05-08 19:11:22 +00:00
2002-02-03 09:24:18 +00:00
2002-08-23 01:56:05 +00:00
2002-06-21 18:29:23 +00:00
2000-02-17 19:39:52 +00:00
2000-03-08 03:42:25 +00:00
2003-08-22 18:52:25 +00:00
2004-03-25 22:29:18 +00:00
2003-08-22 18:52:25 +00:00
2003-01-07 01:45:32 +00:00
2004-01-27 23:26:26 +00:00
2003-05-13 09:46:48 +00:00
2002-02-03 09:24:18 +00:00
2003-08-22 18:52:25 +00:00
2002-05-08 19:11:22 +00:00
2002-05-08 00:12:49 +00:00
2002-05-08 19:11:22 +00:00
2002-05-08 19:11:22 +00:00
2002-02-03 09:24:18 +00:00
2000-03-10 17:57:32 +00:00
2003-08-22 18:52:25 +00:00
2000-08-24 18:51:09 +00:00
2000-02-17 19:39:52 +00:00
2003-08-22 18:52:25 +00:00
2000-02-17 19:39:52 +00:00
2003-11-19 16:57:51 +00:00
2000-02-17 19:39:52 +00:00
2002-05-23 22:05:54 +00:00
2002-05-23 22:05:54 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2003-11-06 00:50:57 +00:00
2003-10-20 18:46:38 +00:00
2003-08-22 18:52:25 +00:00
2002-07-17 23:25:44 +00:00
2003-08-22 18:52:25 +00:00
2002-02-03 09:24:18 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2000-12-14 00:25:06 +00:00
2004-01-17 04:29:54 +00:00
2003-12-05 01:42:26 +00:00
2003-08-22 18:52:25 +00:00
2002-02-03 09:24:18 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2003-08-22 18:52:25 +00:00
2000-02-17 19:39:52 +00:00
2000-02-17 19:39:52 +00:00