From 4775243aa82ab568abe247e24ca56143683d64c2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 30 Jan 1998 12:53:20 +0000 Subject: Update. 1998-01-28 Andreas Jaeger * manual/memory.texi (Heap Consistency Checking): mcheck is declared in . Suggested by Jochen Voss [PR libc/438] 1998-01-28 Andreas Jaeger * sysdeps/generic/memmem.c (memmem): An empty needle is at the beginning of haystack. 1998-01-29 Andreas Jaeger * nss/nss_files/files-service.c: Correct last patch. 1998-01-30 21:29 Ulrich Drepper * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Define __libc_have_rt_sigs. * sysdeps/sparc/sparc32/__longjmp.S: Define _SETJMP_H before including . * sysdeps/sparc/sparc32/setjmp.S: Likewise. Patch from the Debian glibc/SPARC package. 1997-12-12 07:57 H.J. Lu * sysdeps/alpha/bzero.S: Fix a typo. * sysdeps/alpha/htonl.S: Ditto. * sysdeps/alpha/htons.S: Ditto. --- sysdeps/alpha/bzero.S | 4 ++-- sysdeps/alpha/htonl.S | 4 ++-- sysdeps/alpha/htons.S | 4 ++-- sysdeps/generic/memmem.c | 6 +++--- sysdeps/sparc/sparc32/__longjmp.S | 3 ++- sysdeps/sparc/sparc32/setjmp.S | 3 ++- sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c | 6 +++++- 7 files changed, 18 insertions(+), 12 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/alpha/bzero.S b/sysdeps/alpha/bzero.S index 1e07923..a2aa3a5 100644 --- a/sysdeps/alpha/bzero.S +++ b/sysdeps/alpha/bzero.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. Contributed by Richard Henderson (rth@tamu.edu) This file is part of the GNU C Library. @@ -116,5 +116,5 @@ $oneq: $done: ret - END(bzero) + END(__bzero) weak_alias (__bzero, bzero) diff --git a/sysdeps/alpha/htonl.S b/sysdeps/alpha/htonl.S index 4308192..a4e39ce 100644 --- a/sysdeps/alpha/htonl.S +++ b/sysdeps/alpha/htonl.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 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 @@ -41,6 +41,6 @@ ENTRY(htonl) or t2, v0, v0 # v0 = ddccbbaa ret - END(__htonl) + END(htonl) weak_alias(htonl, ntohl) diff --git a/sysdeps/alpha/htons.S b/sysdeps/alpha/htons.S index f65f0e0..d5d4467 100644 --- a/sysdeps/alpha/htons.S +++ b/sysdeps/alpha/htons.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 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 @@ -35,6 +35,6 @@ ENTRY(htons) bis v0, t1, v0 # v0 = bbaa ret - END(__htons) + END(htons) weak_alias(htons, ntohs) diff --git a/sysdeps/generic/memmem.c b/sysdeps/generic/memmem.c index 9e4e342..482ab6a 100644 --- a/sysdeps/generic/memmem.c +++ b/sysdeps/generic/memmem.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 94, 96, 97 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 94, 96, 97, 98 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 @@ -35,8 +35,8 @@ memmem (haystack, haystack_len, needle, needle_len) if (needle_len == 0) /* The first occurrence of the empty string is deemed to occur at - the end of the string. */ - return (void *) &((const char *) haystack)[haystack_len - 1]; + the beginning of the string. */ + return (void *) &((const char *) haystack); for (begin = (const char *) haystack; begin <= last_possible; ++begin) if (begin[0] == ((const char *) needle)[0] && diff --git a/sysdeps/sparc/sparc32/__longjmp.S b/sysdeps/sparc/sparc32/__longjmp.S index 651ede4..cbd941f 100644 --- a/sysdeps/sparc/sparc32/__longjmp.S +++ b/sysdeps/sparc/sparc32/__longjmp.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1993, 1996, 1997, 1998 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 @@ -19,6 +19,7 @@ #include #define _ASM 1 +#define _SETJMP_H #include #define ENV(reg) [%g1 + (reg * 4)] diff --git a/sysdeps/sparc/sparc32/setjmp.S b/sysdeps/sparc/sparc32/setjmp.S index 44dcadb..2ab409b 100644 --- a/sysdeps/sparc/sparc32/setjmp.S +++ b/sysdeps/sparc/sparc32/setjmp.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1994, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 93, 94, 96, 97, 98 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 @@ -20,6 +20,7 @@ #include #define _ASM 1 +#define _SETJMP_H #include ENTRY(__setjmp) diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c b/sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c index d39eb7c..64cc21e 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c @@ -1,5 +1,5 @@ /* POSIX.1 sigaction call for Linux/SPARC. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Miguel de Icaza (miguel@nuclecu.unam.mx), 1997. @@ -22,6 +22,10 @@ #include #include +/* The variable is shared between all wrappers around signal handling + functions which have RT equivalents. */ +int __libc_have_rt_sigs = -1; + /* Commented out while I figure out what the fuck goes on */ long ____sig_table [NSIG]; #if 0 -- cgit v1.1