]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 17 Apr 2003 16:34:08 +0000 (16:34 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 17 Apr 2003 16:34:08 +0000 (16:34 +0000)
* sysdeps/unix/sysv/linux/system.c: If compiled without threads
don't do anything fancy.

* sysdeps/generic/bits/libc-lock.h: Define
__rtld_lock_define_initialized_recursive.

ChangeLog
bits/libc-lock.h
sysdeps/generic/bits/libc-lock.h
sysdeps/unix/sysv/linux/system.c

index 1a21e9dd06e74be5963db46558cb0bb5976d7702..628fff9e143574f6ba2ef33d822754ffacac6fa4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/system.c: If compiled without threads
+       don't do anything fancy.
+
+       * sysdeps/generic/bits/libc-lock.h: Define
+       __rtld_lock_define_initialized_recursive.
+
        * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
        contacting nscd if NOT_USENSCD_NAME > 0.
        * nss/nsswitch.c (__nss_disable_nscd): New function.
index c2bb494940b3e3bf4c083c70c26714e0bb15cbab..9a99d51bfdef4e13e534199777e9bee656c93e53 100644 (file)
@@ -1,5 +1,5 @@
 /* libc-internal interface for mutex locks.  Stub version.
-   Copyright (C) 1996,97,99,2000,01,02 Free Software Foundation, Inc.
+   Copyright (C) 1996,97,99,2000-2002,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -40,6 +40,7 @@
 /* Define an initialized recursive lock variable NAME with storage
    class CLASS.  */
 #define __libc_lock_define_initialized_recursive(CLASS,NAME)
+#define __rtld_lock_define_initialized_recursive(CLASS,NAME)
 
 /* Initialize the named lock variable, leaving it in a consistent, unlocked
    state.  */
index c2bb494940b3e3bf4c083c70c26714e0bb15cbab..9a99d51bfdef4e13e534199777e9bee656c93e53 100644 (file)
@@ -1,5 +1,5 @@
 /* libc-internal interface for mutex locks.  Stub version.
-   Copyright (C) 1996,97,99,2000,01,02 Free Software Foundation, Inc.
+   Copyright (C) 1996,97,99,2000-2002,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -40,6 +40,7 @@
 /* Define an initialized recursive lock variable NAME with storage
    class CLASS.  */
 #define __libc_lock_define_initialized_recursive(CLASS,NAME)
+#define __rtld_lock_define_initialized_recursive(CLASS,NAME)
 
 /* Initialize the named lock variable, leaving it in a consistent, unlocked
    state.  */
index ffb308b045d1dde9e810234eca45aa9e3cc6eed6..3fdff04c22d51bc66f81ce8f1d98a6203ba31e2f 100644 (file)
   INLINE_SYSCALL (clone, 3, CLONE_PARENT_SETTID | SIGCHLD, 0, &pid)
 #endif
 
+#ifdef _LIBC_REENTRANT
 static void cancel_handler (void *arg);
 
-#define CLEANUP_HANDLER \
+# define CLEANUP_HANDLER \
   __libc_cleanup_region_start (1, cancel_handler, &pid)
 
-#define CLEANUP_RESET \
+# define CLEANUP_RESET \
   __libc_cleanup_region_end (0)
+#endif
 
 
 /* Linux has waitpid(), so override the generic unix version.  */
 #include <sysdeps/posix/system.c>
 
 
+#ifdef _LIBC_REENTRANT
 /* The cancellation handler.  */
 static void
 cancel_handler (void *arg)
@@ -71,3 +74,4 @@ cancel_handler (void *arg)
 
   DO_UNLOCK ();
 }
+#endif
This page took 0.056391 seconds and 5 git commands to generate.