diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-01-15 07:15:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-01-15 07:15:24 +0000 |
commit | a8d87c92cd0f6705c4adb5b8ab786aed249380c6 (patch) | |
tree | 3294c0aa322e7c6ae8dc552eabacbdda84c785ec | |
parent | 574b892ef1054ea999a136b3cb2321a65e3f1a17 (diff) | |
download | glibc-a8d87c92cd0f6705c4adb5b8ab786aed249380c6.tar glibc-a8d87c92cd0f6705c4adb5b8ab786aed249380c6.tar.gz glibc-a8d87c92cd0f6705c4adb5b8ab786aed249380c6.tar.bz2 glibc-a8d87c92cd0f6705c4adb5b8ab786aed249380c6.zip |
Update.
2003-01-14 Ulrich Drepper <drepper@redhat.com>
* manual/install.texi: Correct description of header preparation for
Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | manual/install.texi | 24 | ||||
-rw-r--r-- | nptl/Banner | 2 | ||||
-rw-r--r-- | nptl/ChangeLog | 4 | ||||
-rw-r--r-- | nptl/sem_open.c | 4 |
5 files changed, 31 insertions, 8 deletions
@@ -1,3 +1,8 @@ +2003-01-14 Ulrich Drepper <drepper@redhat.com> + + * manual/install.texi: Correct description of header preparation for + Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941]. + 2003-01-14 Guido Guenther <agx@sigxcpu.org> * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL, diff --git a/manual/install.texi b/manual/install.texi index 1c366d5723..0e60128e72 100644 --- a/manual/install.texi +++ b/manual/install.texi @@ -504,12 +504,24 @@ include/linux/version.h}. Finally, configure glibc with the option kernel you can get your hands on. An alternate tactic is to unpack the 2.2 kernel and run @samp{make -config} as above; then, rename or delete @file{/usr/include}, create -a new @file{/usr/include}, and make the usual symbolic links of -@file{/usr/include/linux} and @file{/usr/include/asm} into the 2.2 -kernel sources. You can then configure glibc with no special options. -This tactic is recommended if you are upgrading from libc5, since you -need to get rid of the old header files anyway. +config} as above; then, rename or delete @file{/usr/include}, create a +new @file{/usr/include}, and make symbolic links of +@file{/usr/include/linux} and @file{/usr/include/asm} into the kernel +sources. You can then configure glibc with no special options. This +tactic is recommended if you are upgrading from libc5, since you need to +get rid of the old header files anyway. + +After installing GNU libc, you may need to remove or rename +@file{/usr/include/linux} and @file{/usr/include/asm}, and replace them +with copies of @file{include/linux} and +@file{include/asm-$@var{ARCHITECTURE}} taken from the Linux source +package which supplied kernel headers for building the library. +@var{ARCHITECTURE} will be the machine architecture for which the +library was built, such as @samp{i386} or @samp{alpha}. You do not need +to do this if you did not specify an alternate kernel header source +using @samp{--with-headers}. The intent here is that these directories +should be copies of, @strong{not} symlinks to, the kernel headers used to +build the library. Note that @file{/usr/include/net} and @file{/usr/include/scsi} should @strong{not} be symlinks into the kernel sources. GNU libc provides its diff --git a/nptl/Banner b/nptl/Banner index aaca2401a2..9a3a874c34 100644 --- a/nptl/Banner +++ b/nptl/Banner @@ -1 +1 @@ -NPTL 0.16 by Ulrich Drepper +NPTL 0.17 by Ulrich Drepper diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 0d7a57b403..4d1f8ccfde 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,9 @@ 2003-01-14 Ulrich Drepper <drepper@redhat.com> + * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore + must be used and mapping failed. + Reported by Luke Elliott <luke.elliott@activfinancial.com>. + * Makefile (CFLAGS-pthread_self.os): Define this, not CFLAGS-pthread_self.c. diff --git a/nptl/sem_open.c b/nptl/sem_open.c index e8ef8f5f77..0ed8001204 100644 --- a/nptl/sem_open.c +++ b/nptl/sem_open.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -169,6 +169,8 @@ sem_open (const char *name, int oflag, ...) /* Map the sem_t structure from the file. */ result = (sem_t *) mmap (NULL, sizeof (sem_t), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (MAP_FAILED != (void *) SEM_FAILED && result == MAP_FAILED) + result = SEM_FAILED; } else { |