From c813f986d0b7266b88dd4142d9c59b49b5b46579 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 8 Oct 1999 22:25:13 +0000 Subject: Update. * ctype/ctype.h: Pretty print. --- ChangeLog | 2 ++ ctype/ctype.h | 32 ++++++++++++++++---------------- linuxthreads/ChangeLog | 6 ++++++ linuxthreads/manager.c | 2 +- 4 files changed, 25 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd7b5416a2..867d3ec336 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1999-10-08 Ulrich Drepper + * ctype/ctype.h: Pretty print. + * po/cs.po: Fix typos. * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_spent): Fix diff --git a/ctype/ctype.h b/ctype/ctype.h index 6ea0af0a78..f2875683f1 100644 --- a/ctype/ctype.h +++ b/ctype/ctype.h @@ -141,11 +141,11 @@ __exctype (_tolower); # define isupper(c) __isctype((c), _ISupper) # define isxdigit(c) __isctype((c), _ISxdigit) -#ifdef __USE_GNU -# define isblank(c) __isctype((c), _ISblank) -#endif +# ifdef __USE_GNU +# define isblank(c) __isctype((c), _ISblank) +# endif -#if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \ +# if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \ && defined __USE_EXTERN_INLINES extern __inline int tolower (int __c) __THROW @@ -158,10 +158,10 @@ toupper (int __c) __THROW { return __c >= -128 && __c < 256 ? __ctype_toupper[__c] : __c; } -#endif +# endif -#if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus -# define __tobody(c, f, a) \ +# if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus +# define __tobody(c, f, a) \ (__extension__ \ ({ int __res; \ if (sizeof (c) > 1) \ @@ -178,17 +178,17 @@ toupper (int __c) __THROW __res = a[(int) (c)]; \ __res; })) -# define tolower(c) __tobody (c, tolower, __ctype_tolower) -# define toupper(c) __tobody (c, toupper, __ctype_toupper) -#endif /* Optimizing gcc */ +# define tolower(c) __tobody (c, tolower, __ctype_tolower) +# define toupper(c) __tobody (c, toupper, __ctype_toupper) +# endif /* Optimizing gcc */ -#if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN -# define isascii(c) __isascii (c) -# define toascii(c) __toascii (c) +# if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN +# define isascii(c) __isascii (c) +# define toascii(c) __toascii (c) -# define _tolower(c) ((int) __ctype_tolower[(int) (c)]) -# define _toupper(c) ((int) __ctype_toupper[(int) (c)]) -#endif +# define _tolower(c) ((int) __ctype_tolower[(int) (c)]) +# define _toupper(c) ((int) __ctype_toupper[(int) (c)]) +# endif #endif /* Not __NO_CTYPE. */ diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index bd70b19ad7..9928d82d83 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,9 @@ +1999-10-08 Ulrich Drepper + + * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post + directly instead of calling sem_post which should not be necessary + but is faster and might help in some case to work around problems. + 1999-10-08 Andreas Schwab * sysdeps/pthread/Subdirs: New file. diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c index e59f98092c..52c541ce8e 100644 --- a/linuxthreads/manager.c +++ b/linuxthreads/manager.c @@ -159,7 +159,7 @@ int __pthread_manager(void *arg) } break; case REQ_POST: - sem_post(request.req_args.post); + __new_sem_post(request.req_args.post); break; case REQ_DEBUG: /* Make gdb aware of new thread and gdb will restart the -- cgit 1.4.1