1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

*** empty log message ***

(vfprintf): Only call __libc_cleanup_region_end if USE_IN_LIBIO,
	thus matching the sense of the tests around
	__libc_cleanup_region_start at the front of the function.
	* stdio-common/vfscanf.c: Include <libc-lock.h>.
	(UNLOCK_STREAM) [! USE_IN_LIBIO]: Call
	__libc_cleanup_region_end, not __libc_cleanup_region_start.
This commit is contained in:
Thomas Bushnell, BSG
1996-09-12 22:22:29 +00:00
parent f33b97f913
commit ae2ddc98c1
5 changed files with 40 additions and 4 deletions

View File

@ -24,6 +24,7 @@ Cambridge, MA 02139, USA. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libc-lock.h>
#ifdef __GNUC__
#define HAVE_LONGLONG
@ -119,7 +120,7 @@ Cambridge, MA 02139, USA. */
# define LOCK_STREAM(S) \
__libc_cleanup_region_start (&__funlockfile, (S)); \
__flockfile (S)
# define UNLOCK_STREAM __libc_cleanup_region_start (1)
# define UNLOCK_STREAM __libc_cleanup_region_end (1)
#endif
#endif