]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 16 Apr 2000 01:18:43 +0000 (01:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 16 Apr 2000 01:18:43 +0000 (01:18 +0000)
* csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
only fall back on using Linux.

ChangeLog
csu/Makefile
linuxthreads/ChangeLog
linuxthreads/Versions
linuxthreads/pthread.c
linuxthreads/sysdeps/pthread/pthread.h

index e1136d77d0e4d6baf95279dbf4680ad27a795fc2..ebd237e24448f20510d2ad97a0dad0f1951513e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
 
+       * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
+       only fall back on using Linux.
+
        * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
        Before testing versions check that we actually loaded the object
        and whether we are in trace mode.  If not loaded during tracing don't
index 79eeef190f8f2a374deb063f76e6b7c040afa16c..1fb2e8f96bcf853461b1ded67a13c86b19aa0e67 100644 (file)
@@ -182,7 +182,11 @@ $(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
                       version=`uname -r`; \
                     fi; \
                   fi; \
-                  echo "\"Compiled on a Linux $$version system" \
+                  os=`uname -s 2> /dev/null`; \
+                  if [ -z "$$os" ]; then \
+                    os=Linux; \
+                  fi; \
+                  echo "\"Compiled on a $$os $$version system" \
                        "on `date +%Y-%m-%d`.\\n\"" ;; \
           *) ;; \
         esac; \
index f9a3bf92408b0dd4c3521313b3f7830ac99d3c03..9a1213b910a3f3eb64b67b08810edc0eb8d4b0c0 100644 (file)
@@ -1,5 +1,9 @@
 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
 
+       * pthread.c (pthread_yield): New function.
+       * sysdeps/pthread/pthread.h (pthread_yield): Add prototype.
+       * Versions [libpthread] (GLIBC_2.2): Add pthread_yield.
+
        * pthread.c (pthread_initialize): Avoid a bit more code if
        realtime signals are known to exist.
 
index 92ec98da5f4086132a7958330423d92aded4e6ac..5579bea011c495bc660df31e79331b4382940ef0 100644 (file)
@@ -135,5 +135,8 @@ libpthread {
     pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
     pthread_spin_trylock; pthread_spin_unlock;
     pthread_getcpuclockid;
+
+    # Extensions.
+    pthread_yield;
   }
 }
index eca90635b0b12898049a75495a1d1875ab6d134c..ae747bc5accf184e90c3c12a6fbc0a8e7f499c78 100644 (file)
@@ -634,6 +634,13 @@ int pthread_getschedparam(pthread_t thread, int *policy,
   return 0;
 }
 
+int __pthread_yield ()
+{
+  /* For now this is equivalent with the POSIX call.  */
+  return sched_yield ();
+}
+weak_alias (__pthread_yield, pthread_yield)
+
 /* Process-wide exit() request */
 
 static void pthread_exit_process(int retcode, void *arg)
index de00130029f9af7d151aeaf6f2c23979bae870f1..e82c4deb99e28fc292d982d8d8e024725f80760a 100644 (file)
@@ -272,6 +272,14 @@ extern int pthread_getconcurrency (void) __THROW;
 extern int pthread_setconcurrency (int __level) __THROW;
 #endif
 
+#ifdef __USE_GNU
+/* Yield the processor to another thread or process.
+   This function is similar to the POSIX `sched_yield' function but
+   might be differently implemented in the case of a m-on-n thread
+   implementation.  */
+extern int pthread_yield (void) __THROW;
+#endif
+
 /* Functions for mutex handling.  */
 
 /* Initialize MUTEX using attributes in *MUTEX_ATTR, or use the