mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
* csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and only fall back on using Linux.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2000-04-15 Ulrich Drepper <drepper@redhat.com>
|
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.
|
* elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
|
||||||
Before testing versions check that we actually loaded the object
|
Before testing versions check that we actually loaded the object
|
||||||
and whether we are in trace mode. If not loaded during tracing don't
|
and whether we are in trace mode. If not loaded during tracing don't
|
||||||
|
@ -182,7 +182,11 @@ $(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
|
|||||||
version=`uname -r`; \
|
version=`uname -r`; \
|
||||||
fi; \
|
fi; \
|
||||||
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\"" ;; \
|
"on `date +%Y-%m-%d`.\\n\"" ;; \
|
||||||
*) ;; \
|
*) ;; \
|
||||||
esac; \
|
esac; \
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
2000-04-15 Ulrich Drepper <drepper@redhat.com>
|
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
|
* pthread.c (pthread_initialize): Avoid a bit more code if
|
||||||
realtime signals are known to exist.
|
realtime signals are known to exist.
|
||||||
|
|
||||||
|
@ -135,5 +135,8 @@ libpthread {
|
|||||||
pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
|
pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
|
||||||
pthread_spin_trylock; pthread_spin_unlock;
|
pthread_spin_trylock; pthread_spin_unlock;
|
||||||
pthread_getcpuclockid;
|
pthread_getcpuclockid;
|
||||||
|
|
||||||
|
# Extensions.
|
||||||
|
pthread_yield;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -634,6 +634,13 @@ int pthread_getschedparam(pthread_t thread, int *policy,
|
|||||||
return 0;
|
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 */
|
/* Process-wide exit() request */
|
||||||
|
|
||||||
static void pthread_exit_process(int retcode, void *arg)
|
static void pthread_exit_process(int retcode, void *arg)
|
||||||
|
@ -272,6 +272,14 @@ extern int pthread_getconcurrency (void) __THROW;
|
|||||||
extern int pthread_setconcurrency (int __level) __THROW;
|
extern int pthread_setconcurrency (int __level) __THROW;
|
||||||
#endif
|
#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. */
|
/* Functions for mutex handling. */
|
||||||
|
|
||||||
/* Initialize MUTEX using attributes in *MUTEX_ATTR, or use the
|
/* Initialize MUTEX using attributes in *MUTEX_ATTR, or use the
|
||||||
|
Reference in New Issue
Block a user