kopensolaris-gnu/glibc.git
16 years agoUpdate.
drepper [Sat, 23 Oct 2004 06:45:30 +0000 (06:45 +0000)]
Update.

16 years agoRemove compatibility code which is unused in glibc and probably bitrotten.
drepper [Sat, 23 Oct 2004 06:12:20 +0000 (06:12 +0000)]
Remove compatibility code which is unused in glibc and probably bitrotten.

16 years ago.
roland [Sat, 23 Oct 2004 02:52:41 +0000 (02:52 +0000)]
.

16 years ago2001-10-31 Alexandre Oliva <aoliva@redhat.com>
roland [Sat, 23 Oct 2004 02:52:29 +0000 (02:52 +0000)]
2001-10-31  Alexandre Oliva  <aoliva@redhat.com>

* elf/elf.h: Add R_MN10300_* relocation numbers.

16 years ago.
roland [Fri, 22 Oct 2004 22:24:08 +0000 (22:24 +0000)]
.

16 years ago2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
roland [Fri, 22 Oct 2004 22:24:04 +0000 (22:24 +0000)]
2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>

[BZ #471] Fix imported from gnulib.
* time/mktime.c (leapyear, ydms_tm_diff): Year is of type
long int, not int, to avoid problems when tm_year == INT_MAX
and tm_mon > 12.
(__mktime_intenral): Compute year using long int arithmetic,
not int arithmetic, to avoid problems on hosts where time_t
and long are 64 bits but int is 32.

16 years ago.
roland [Fri, 22 Oct 2004 22:21:36 +0000 (22:21 +0000)]
.

16 years ago2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
roland [Fri, 22 Oct 2004 22:21:25 +0000 (22:21 +0000)]
2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>

[BZ #468] Import a fix from gnulib.
* time/mktime.c [! DEBUG]: Do not include <string.h>.
It's needed only if DEBUG is nonzero.

16 years ago.
roland [Fri, 22 Oct 2004 22:17:48 +0000 (22:17 +0000)]
.

16 years ago2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
roland [Fri, 22 Oct 2004 22:17:42 +0000 (22:17 +0000)]
2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>

[BZ #470] Import fix from gnulib.
* time/mktime.c [!_LIBC] (__mktime_internal): Define to
mktime_internal, to avoid clashes with any __mktime_internal
function defined in the standard library.

16 years ago.
roland [Fri, 22 Oct 2004 22:15:54 +0000 (22:15 +0000)]
.

16 years ago2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
roland [Fri, 22 Oct 2004 22:15:41 +0000 (22:15 +0000)]
2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>

[BZ #469] Imported from gnulib.
* time/mktime.c (__isleap): Remove; all uses replaced by:
(leapyear): New function, which avoids overflow by not adding
1900 to year before testing whether it is a leap year.

16 years ago.
roland [Fri, 22 Oct 2004 22:11:00 +0000 (22:11 +0000)]
.

16 years ago2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
roland [Fri, 22 Oct 2004 22:10:39 +0000 (22:10 +0000)]
2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>

[BZ #472] Imported from gnulib.
* time/mktime.c (Local Variables): Remove -DHAVE_TIME_R_POSIX;
no longer used.

16 years agoUpdate.
drepper [Fri, 22 Oct 2004 21:08:43 +0000 (21:08 +0000)]
Update.

16 years agoRemove __THROW from backtrace prototype.
drepper [Fri, 22 Oct 2004 21:07:57 +0000 (21:07 +0000)]
Remove __THROW from backtrace prototype.

16 years ago(CFLAGS-backtrace.c): Add -fexceptions.
drepper [Fri, 22 Oct 2004 21:06:19 +0000 (21:06 +0000)]
(CFLAGS-backtrace.c): Add -fexceptions.

16 years agoInclude <bits/libc-lock.h>, <dlfcn.h>,
drepper [Fri, 22 Oct 2004 21:05:47 +0000 (21:05 +0000)]
Include <bits/libc-lock.h>, <dlfcn.h>,
<stdlib.h> and <unwind.h>.  Remove <bp-checks.h> include.
(struct trace_arg): New type.
(unwind_backtrace, unwind_getip, unwind_getcfa, unwind_getgr): New
fn pointers resp. macros.
(init, backtrace_helper): New functions.
(__backtrace): Rewritten to use _Unwind_Backtrace first and fall
back to frame pointer walking.

16 years agoUpdate.
drepper [Fri, 22 Oct 2004 19:58:34 +0000 (19:58 +0000)]
Update.

16 years agoThaings are still in flux, it seems.
drepper [Fri, 22 Oct 2004 19:57:45 +0000 (19:57 +0000)]
Thaings are still in flux, it seems.

16 years agoUpdate.
drepper [Fri, 22 Oct 2004 06:27:54 +0000 (06:27 +0000)]
Update.

16 years ago(execvp): Also ignore ENODEV and ETIMEDOUT errno values.
drepper [Fri, 22 Oct 2004 06:01:25 +0000 (06:01 +0000)]
(execvp): Also ignore ENODEV and ETIMEDOUT errno values.

16 years agoUpdate.
drepper [Thu, 21 Oct 2004 09:00:31 +0000 (09:00 +0000)]
Update.

16 years ago(__lll_mutex_timedlock_wait): If woken but cannot get the lock,
drepper [Thu, 21 Oct 2004 08:59:36 +0000 (08:59 +0000)]
(__lll_mutex_timedlock_wait): If woken but cannot get the lock,
make sure 2 is stored in the futex and we looked at the old value.
Fix a few other problems to return the correct value.

16 years ago. fedora-glibc-20041021T0701
roland [Thu, 21 Oct 2004 01:29:31 +0000 (01:29 +0000)]
.

16 years ago2004-10-20 Roland McGrath <roland@redhat.com>
roland [Thu, 21 Oct 2004 01:29:26 +0000 (01:29 +0000)]
2004-10-20  Roland McGrath  <roland@redhat.com>

* Makeconfig ($(common-objpfx)soversions.i): Replace shell loop with
use of ...
* scripts/soversions.awk: ... this new file.  Collect lib info and
match any DEFAULT line before emitting anything, so DEFAULT can come
later in the concatenation of shlib-versions files.

16 years ago2004-10-20 Roland McGrath <roland@redhat.com>
roland [Thu, 21 Oct 2004 01:29:24 +0000 (01:29 +0000)]
2004-10-20  Roland McGrath  <roland@redhat.com>

* Makeconfig ($(common-objpfx)shlib-versions.v.i): Check also
$(config-sysdirs) for shlib-versions files.
* Makeconfig ($(common-objpfx)soversions.i): Replace shell loop with
use of ...
* scripts/soversions.awk: ... this new file.  Collect lib info and
match any DEFAULT line before emitting anything, so DEFAULT can come
later in the concatenation of shlib-versions files.

16 years ago. fedora-glibc-20041020T1016
roland [Wed, 20 Oct 2004 10:05:07 +0000 (10:05 +0000)]
.

16 years ago2004-10-20 Roland McGrath <roland@redhat.com>
roland [Wed, 20 Oct 2004 10:05:00 +0000 (10:05 +0000)]
2004-10-20  Roland McGrath  <roland@redhat.com>

* manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED,
EKEYREVOKED, EKEYREJECTED.
* sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.3.4): New errlist.
* sysdeps/gnu/errlist.c: Regenerated

16 years ago2004-10-20 Roland McGrath <roland@redhat.com>
roland [Wed, 20 Oct 2004 10:04:57 +0000 (10:04 +0000)]
2004-10-20  Roland McGrath  <roland@redhat.com>

* sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count
higher than ERR_MAX reports.  Instead, emit a #define ERR_MAX.
* sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target.
(generated): Add errlist-compat.h.
* sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to
define ERR_MAX and use that for table size.

16 years agoUpdate.
drepper [Wed, 20 Oct 2004 07:09:15 +0000 (07:09 +0000)]
Update.

16 years agoExport setaltroot, key_add, key_request, and keyctl syscalls.
drepper [Wed, 20 Oct 2004 07:07:32 +0000 (07:07 +0000)]
Export setaltroot, key_add, key_request, and keyctl syscalls.

16 years agoAdd entries for setaltroot, key_add, key_request, and keyctl syscalls.
drepper [Wed, 20 Oct 2004 07:06:58 +0000 (07:06 +0000)]
Add entries for setaltroot, key_add, key_request, and keyctl syscalls.

16 years agoRegenerated from ../sysdeps/gnu/errlist.awk ../manual/errno.texi
drepper [Wed, 20 Oct 2004 07:00:30 +0000 (07:00 +0000)]
Regenerated from ../sysdeps/gnu/errlist.awk ../manual/errno.texi

16 years ago.
roland [Wed, 20 Oct 2004 06:43:19 +0000 (06:43 +0000)]
.

16 years ago2004-10-19 Roland McGrath <roland@frob.com>
roland [Wed, 20 Oct 2004 06:43:15 +0000 (06:43 +0000)]
2004-10-19  Roland McGrath  <roland@frob.com>

* sysdeps/mach/readonly-area.c: New file.

16 years agoRegenerated from ../sysdeps/gnu/errlist.awk ../manual/errno.texi
drepper [Wed, 20 Oct 2004 06:29:15 +0000 (06:29 +0000)]
Regenerated from ../sysdeps/gnu/errlist.awk ../manual/errno.texi

16 years agotypo
roland [Wed, 20 Oct 2004 06:20:16 +0000 (06:20 +0000)]
typo

16 years agoUpdate.
drepper [Tue, 19 Oct 2004 22:21:46 +0000 (22:21 +0000)]
Update.

16 years ago[ld, GLIBC_PRIVATE]: Add _dl_debug_state.
drepper [Tue, 19 Oct 2004 22:20:33 +0000 (22:20 +0000)]
[ld, GLIBC_PRIVATE]: Add _dl_debug_state.

16 years ago(_dl_debug_state): Add rtld_hidden_def.
drepper [Tue, 19 Oct 2004 22:19:58 +0000 (22:19 +0000)]
(_dl_debug_state): Add rtld_hidden_def.

16 years ago(_dl_debug_state): Don't maek as hidden but use rtld_hidden_proto.
drepper [Tue, 19 Oct 2004 22:19:17 +0000 (22:19 +0000)]
(_dl_debug_state): Don't maek as hidden but use rtld_hidden_proto.

16 years agoUpdate.
drepper [Tue, 19 Oct 2004 21:45:14 +0000 (21:45 +0000)]
Update.

16 years ago(__readonly_str): Renamed to ...
drepper [Tue, 19 Oct 2004 21:44:30 +0000 (21:44 +0000)]
(__readonly_str): Renamed to ...
(__readonly_area): ... this.

16 years agoUpdate.
drepper [Tue, 19 Oct 2004 21:21:42 +0000 (21:21 +0000)]
Update.

16 years ago(__strcpy_chk): Speed up by checking destlen only every 4 bytes.
drepper [Tue, 19 Oct 2004 21:21:03 +0000 (21:21 +0000)]
(__strcpy_chk): Speed up by checking destlen only every 4 bytes.

16 years agoUpdate.
drepper [Tue, 19 Oct 2004 21:11:32 +0000 (21:11 +0000)]
Update.

16 years ago(hosts_keys): Let inet_pton decide whether the string is an address or not.
drepper [Tue, 19 Oct 2004 21:10:56 +0000 (21:10 +0000)]
(hosts_keys): Let inet_pton decide whether the string is an address or not.

16 years agoUpdate.
drepper [Tue, 19 Oct 2004 16:44:56 +0000 (16:44 +0000)]
Update.

16 years ago(_dl_addr): Don't look at STT_TLS symbols.
drepper [Tue, 19 Oct 2004 16:44:19 +0000 (16:44 +0000)]
(_dl_addr): Don't look at STT_TLS symbols.
Use DL_SYMBOL_ADDRESS to set dli_saddr.

16 years agoUpdate.
drepper [Tue, 19 Oct 2004 16:05:21 +0000 (16:05 +0000)]
Update.

16 years ago(catchsegv): Prefix $LIB with a backslash.
drepper [Tue, 19 Oct 2004 16:04:30 +0000 (16:04 +0000)]
(catchsegv): Prefix $LIB with a backslash.

16 years ago.
drepper [Tue, 19 Oct 2004 10:42:59 +0000 (10:42 +0000)]
.

16 years agoUpdate.
drepper [Tue, 19 Oct 2004 10:36:18 +0000 (10:36 +0000)]
Update.

16 years ago($(objpfx)catchsegv): To support multilib platforms, use $LIB in path
drepper [Tue, 19 Oct 2004 10:35:25 +0000 (10:35 +0000)]
($(objpfx)catchsegv): To support multilib platforms, use $LIB in path
to slibdir.

16 years agoUpdate copyright year.
drepper [Tue, 19 Oct 2004 10:34:20 +0000 (10:34 +0000)]
Update copyright year.
Use mktemp to create segv_output file.

16 years ago.
roland [Tue, 19 Oct 2004 05:13:11 +0000 (05:13 +0000)]
.

16 years ago2004-10-18 Roland McGrath <roland@redhat.com>
roland [Tue, 19 Oct 2004 05:12:58 +0000 (05:12 +0000)]
2004-10-18  Roland McGrath  <roland@redhat.com>

[BZ #406]
* Makefile (linuxthreads-CPPFLAGS): New variable;
adds -DIS_IN_linuxthreads=1.
* sysdeps/i386/tls.h: Protect "useldt.h" with
[!IS_IN_linuxthreads && !DO_MODIFY_LDT].
* sysdeps/i386/i686/pt-machine.h: Revert last change.

16 years agoUpdate. fedora-glibc-20041018T2320
drepper [Mon, 18 Oct 2004 23:17:46 +0000 (23:17 +0000)]
Update.

16 years ago(_dl_open_hook): Extern decl.
drepper [Mon, 18 Oct 2004 23:15:33 +0000 (23:15 +0000)]
(_dl_open_hook): Extern decl.
(ptmalloc_init): Don't call _dl_addr when dlopened from statically
linked programs but don't use brk for them either.

16 years agoDefine libdl_hidden_proto and friends.
drepper [Mon, 18 Oct 2004 23:15:10 +0000 (23:15 +0000)]
Define libdl_hidden_proto and friends.

16 years ago(DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define.
drepper [Mon, 18 Oct 2004 23:14:40 +0000 (23:14 +0000)]
(DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define.
(struct dlfcn_hook): New type.
(_dlfcn_hook): New extern decl.
(__dlopen, __dlclose, __dlsym, __dlerror, __dladdr, __dladdr1,
__dlinfo, __dlmopen, __libc_dlsym_private,
__libc_register_dl_open_hook, __libc_register_dlfcn_hook): New
prototypes.
(__dlvsym): Use DL_CALLER_DECL.

16 years ago(libdl): Export _dlfcn_hook@GLIBC_PRIVATE.
drepper [Mon, 18 Oct 2004 23:14:12 +0000 (23:14 +0000)]
(libdl): Export _dlfcn_hook@GLIBC_PRIVATE.

16 years agoDynamic linking in static code support.
drepper [Mon, 18 Oct 2004 23:13:03 +0000 (23:13 +0000)]
Dynamic linking in static code support.

16 years agoCall _dlfcn_hook from libdl.so if not NULL.
drepper [Mon, 18 Oct 2004 23:11:49 +0000 (23:11 +0000)]
Call _dlfcn_hook from libdl.so if not NULL.
Define __ prefixed routine in libc.a and in libdl.a just call it.

16 years agoTesting dynamic loading in statically linked code.
drepper [Mon, 18 Oct 2004 23:10:22 +0000 (23:10 +0000)]
Testing dynamic loading in statically linked code.

16 years ago(routines, elide-routines.os): Set. Add rules to build and test
drepper [Mon, 18 Oct 2004 23:08:31 +0000 (23:08 +0000)]
(routines, elide-routines.os): Set.  Add rules to build and test
tststatic2.

16 years ago(__libc_dlsym_private, __libc_register_dl_open_hook): New functions.
drepper [Mon, 18 Oct 2004 23:07:59 +0000 (23:07 +0000)]
(__libc_dlsym_private, __libc_register_dl_open_hook): New functions.
(__libc_dlopen_mode): Call __libc_register_dl_open_hook and
__libc_register_dlfcn_hook.

16 years ago.
roland [Mon, 18 Oct 2004 18:54:06 +0000 (18:54 +0000)]
.

16 years ago2004-10-18 Roland McGrath <roland@redhat.com>
roland [Mon, 18 Oct 2004 18:53:53 +0000 (18:53 +0000)]
2004-10-18  Roland McGrath  <roland@redhat.com>

* dlfcn/bug-dlsym1.c (main): Remove bogus setenv call.

16 years agoUpdate.
drepper [Mon, 18 Oct 2004 15:44:52 +0000 (15:44 +0000)]
Update.

16 years ago(dl_open_worker): Avoid dereferencing map in statically linked code if
drepper [Mon, 18 Oct 2004 15:37:14 +0000 (15:37 +0000)]
(dl_open_worker): Avoid dereferencing map in statically linked code if
there might none be found.

16 years agoUpdate. fedora-glibc-20041018T0940
aj [Mon, 18 Oct 2004 05:17:42 +0000 (05:17 +0000)]
Update.

16 years ago(__SYSCALL_CLOBBERS): Add "memory".
aj [Mon, 18 Oct 2004 05:16:06 +0000 (05:16 +0000)]
(__SYSCALL_CLOBBERS): Add "memory".

16 years agoUpdate.
drepper [Mon, 18 Oct 2004 05:10:37 +0000 (05:10 +0000)]
Update.

16 years agoAdd libresolv_hidden_def.
drepper [Mon, 18 Oct 2004 05:09:59 +0000 (05:09 +0000)]
Add libresolv_hidden_def.

16 years agoAdd libresolv_hidden_proto for symbols defined, used, and exported in
drepper [Mon, 18 Oct 2004 05:08:27 +0000 (05:08 +0000)]
Add libresolv_hidden_proto for symbols defined, used, and exported in
libresolv.

16 years agoDefine libresolv_hidden_proto and friends.
drepper [Mon, 18 Oct 2004 05:07:45 +0000 (05:07 +0000)]
Define libresolv_hidden_proto and friends.

16 years agoPretty printing.
drepper [Mon, 18 Oct 2004 04:19:48 +0000 (04:19 +0000)]
Pretty printing.

16 years ago2004-10-15 Jakub Jelinek <jakub@redhat.com>
drepper [Mon, 18 Oct 2004 04:17:08 +0000 (04:17 +0000)]
2004-10-15  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-minimal.c (__chk_fail): New.  Add rtld_hidden_def.
* sysdeps/unix/sysv/linux/readonly-area.c: New file.
* sysdeps/i386/i686/memmove.S (__memmove_chk): Add checking
routine.
* sysdeps/i386/i686/memcpy.S (__memcpy_chk): Likewise.
* sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
* sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
* sysdeps/i386/i686/memmove-chk.S: New file.
* sysdeps/i386/i686/memcpy-chk.S: Likewise.
* sysdeps/i386/i686/mempcpy-chk.S: Likewise.
* sysdeps/i386/i686/memset-chk.S: Likewise.
* sysdeps/generic/strcat-chk.c (__strcat_chk): Don't __chk_fail
if exactly fitting into buffer.
* sysdeps/generic/strncat-chk.c (__strncat_chk): Likewise.
* sysdeps/generic/readonly-area.c: New file.
* sysdeps/generic/strncpy-chk.c (__strncpy_chk): Only test
destlen once.
* sysdeps/x86_64/memset.S (__memset_chk): Add checking routine.
* sysdeps/x86_64/memcpy.S (__memcpy_chk): Likewise.
* sysdeps/x86_64/mempcpy.S (__memcpy_chk): Define to __mempcpy_chk.
* sysdeps/x86_64/memcpy-chk.S: New file.
* sysdeps/x86_64/mempcpy-chk.S: Likewise.
* sysdeps/x86_64/memset-chk.S: Likewise.
* sysdeps/x86_64/strcpy-chk.S: Likewise.
* sysdeps/x86_64/stpcpy-chk.S: Likewise.
* argp/argp-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing.
* argp/argp-fs-xinl.c (__OPTIMIZE__): Likewise.
* debug/tst-chk1.c: New test.
* debug/tst-chk2.c: Likewise.
* debug/tst-chk3.c: Likewise.
* debug/test-strcpy_chk.c: Likewise.
* debug/test-stpcpy_chk.c: Likewise.
* debug/vsprintf_chk.c (__vsprintf_chk): If flags > 0, request
_IO_FLAGS2_CHECK_PERCENT_N.  Add libc_hidden_def.
* debug/Makefile (routines): Add printf_chk, fprintf_chk, vprintf_chk,
vfprintf_chk, gets_chk and readonly-area.
(CFLAGS-*_chk.c): Set.
(tests): Add tst-chk1, tst-chk2, tst-chk3, test-strcpy_chk and
test-stpcpy_chk.
* debug/vprintf_chk.c: New file.
* debug/printf_chk.c: Likewise.
* debug/vfprintf_chk.c: Likewise.
* debug/fprintf_chk.c: Likewise.
* debug/gets_chk.c: Likewise.
* debug/chk_fail.c (__chk_fail): Add libc_hidden_def.
* debug/snprintf_chk.c (__snprintf_chk): Fix order of arguments
passed to __vsnprintf_chk.
* debug/Versions (libc): Export __printf_chk, __fprintf_chk,
__vprintf_chk, __vfprintf_chk and __gets_chk @GLIBC_2.3.4.
* debug/vsnprintf_chk.c (__vsnprintf_chk): Don't call
__vsnprintf, instead create a temporary file with
_IO_strn_jumps jumptable.  If flags > 0, request
_IO_FLAGS2_CHECK_PERCENT_N.  Add libc_hidden_def.
* libio/Makefile (headers): Add bits/stdio2.h.
* libio/stdio.h: Include <bits/stdio2.h> if __USE_FORTIFY_LEVEL.
(sprintf, snprintf, vsprintf, vsnprintf): Remove defines.
* libio/strfile.h (_IO_strnfile): New type.
(_IO_strn_jumps): New extern.
* libio/vsnprintf.c (_IO_strnfile): Remove.
(_IO_strn_jumps): Remove static.
* libio/bits/stdio2.h: New file.
* libio/vswprintf.c (_IO_strnfile): Rename type to...
(_IO_wstrnfile): ...this.  Adjust all uses.
* libio/libio.h (_IO_FLAGS2_CHECK_PERCENT_N): Define.
* stdio-common/vfprintf.c (STR_LEN): Define.
(vfprintf): Add readonly_format variable.
Handle _IO_FLAGS2_CHECK_PERCENT_N.
(buffered_vfprintf): Copy _flags2.
* include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
__vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
__vfprintf_chk): New prototypes.
(__vsprintf_chk, __vsnprintf_chk): Add libc_hidden_proto.
* include/string.h (__memcpy_chk, __memmove_chk, __mempcpy_chk,
__memset_chk, __strcpy_chk, __stpcpy_chk, __strncpy_chk, __strcat_chk,
__strncat_chk): New prototypes.
* include/bits/string3.h: New file.
* include/sys/cdefs.h (__chk_fail): Add libc_hidden_proto
and rtld_hidden_proto.
* string/Makefile (headers): Add bits/string3.h.
* string/bits/string3.h (bcopy, bzero): New defines.
(memset, memcpy, memmove, strcpy, strncpy, strcat, strncat): Change
macros so that inlines are used only if unknown destination size
or side-effects in destination argument.
(mempcpy, stpcpy): Likewise.  Protect with #ifdef __USE_GNU.

2004-09-16  Ulrich Drepper  <drepper@redhat.com>

* debug/Makefile (routines): Add *_chk.
* debug/Versions (libc): Export __chk_fail, __memcpy_chk,
__memmove_chk, __mempcpy_chk, __memset_chk, __stpcpy_chk,
__strcat_chk, __strcpy_chk, __strncat_chk, __strncpy_chk,
__sprintf_chk, __vsprintf_chk, __snprintf_chk, __vsnprintf_chk
@GLIBC_2.3.4.
* debug/chk_fail.c: New file.
* debug/snprintf_chk.c: Likewise.
* debug/sprintf_chk.c: Likewise.
* debug/vsnprintf_chk.c: Likewise.
* debug/vsprintf_chk.c: Likewise.
* include/features.h (_FORTIFY_SOURCE): Document, handle.
(__USE_FORTIFY_LEVEL): Define.
(__GNUC_PREREQ): Move to earlier location.
* include/sys/cdefs.h (__chk_fail): New prototype.
* libio/bits/stdio.h (sprintf, vsprintf, snprintf, vsnprintf):
Define if __USE_FORTIFY_LEVEL.
* misc/sys/cdefs.h (__bos, __bos0): Define.
* string/string.h: Include <bits/string3.h> if __USE_FORTIFY_LEVEL.
* bits/string/string3.h: New header.
* sysdeps/generic/memcpy_chk.c: New file.
* sysdeps/generic/memmove_chk.c: Likewise.
* sysdeps/generic/mempcpy_chk.c: Likewise.
* sysdeps/generic/memset_chk.c: Likewise.
* sysdeps/generic/stpcpy_chk.c: Likewise.
* sysdeps/generic/strcat_chk.c: Likewise.
* sysdeps/generic/strcpy_chk.c: Likewise.
* sysdeps/generic/strncat_chk.c: Likewise.
* sysdeps/generic/strncpy_chk.c: Likewise.

16 years ago.
roland [Mon, 18 Oct 2004 00:53:16 +0000 (00:53 +0000)]
.

16 years ago2004-10-17 Roland McGrath <roland@frob.com>
roland [Mon, 18 Oct 2004 00:53:12 +0000 (00:53 +0000)]
2004-10-17  Roland McGrath  <roland@frob.com>

* manual/memory.texi (Page Lock Functions): Typo fix.
Reported by Carlos Maziero <maziero@ppgia.pucpr.br>

16 years ago.
roland [Sun, 17 Oct 2004 20:00:34 +0000 (20:00 +0000)]
.

16 years ago2004-10-16 Alfred M. Szmidt <ams@kemisten.nu>
roland [Sun, 17 Oct 2004 20:00:25 +0000 (20:00 +0000)]
2004-10-16  Alfred M. Szmidt  <ams@kemisten.nu>

* sysdeps/mach/hurd/Makefile (link-libc-static): Use
`$(static-gnulib') instead of `$(gnulib)'.

16 years agoUpdate.
drepper [Sun, 17 Oct 2004 15:00:17 +0000 (15:00 +0000)]
Update.

16 years agoAvoid including rcsid into binary.
drepper [Sun, 17 Oct 2004 14:59:39 +0000 (14:59 +0000)]
Avoid including rcsid into binary.

16 years agoUpdate.
drepper [Fri, 15 Oct 2004 21:31:29 +0000 (21:31 +0000)]
Update.

16 years ago(syscall): Handle 6 argument syscalls.
drepper [Fri, 15 Oct 2004 21:30:57 +0000 (21:30 +0000)]
(syscall): Handle 6 argument syscalls.

16 years ago(PUSHARGS_6, DOARGS_6, POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6):
drepper [Fri, 15 Oct 2004 21:30:34 +0000 (21:30 +0000)]
(PUSHARGS_6, DOARGS_6, POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6):
Define.

16 years agoUpdate.
drepper [Fri, 15 Oct 2004 21:20:11 +0000 (21:20 +0000)]
Update.

16 years agoCreate /var/db/nscd if necessary.
drepper [Fri, 15 Oct 2004 21:19:26 +0000 (21:19 +0000)]
Create /var/db/nscd if necessary.

16 years ago(_PATH_NSCD_PASSWD_DB): Move to /var/db.
drepper [Fri, 15 Oct 2004 21:13:19 +0000 (21:13 +0000)]
(_PATH_NSCD_PASSWD_DB): Move to /var/db.
(_PATH_NSCD_GROUP_DB): Likewise.
(_PATH_NSCD_HOSTS_DB): Likewise.
(_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run.

16 years ago(nscd_init): Non-persistent database files are created with the
drepper [Fri, 15 Oct 2004 21:12:15 +0000 (21:12 +0000)]
(nscd_init): Non-persistent database files are created with the
_PATH_NSCD_XYZ_DB_TMP path.

16 years ago * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file.
rth [Fri, 15 Oct 2004 09:34:43 +0000 (09:34 +0000)]
    * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file.
        * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h (SIGCONTEXT): Add
        _code argument, pass sigcontext by pointer.
        (SIGCONTEXT_EXTRA_ARGS): Likewise.
        (GET_PC, GET_FRAME, GET_STACK): Expect ctx as pointer.

16 years ago * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
rth [Fri, 15 Oct 2004 07:07:56 +0000 (07:07 +0000)]
    * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
        make gcc4 happy.

16 years ago * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
rth [Fri, 15 Oct 2004 07:06:49 +0000 (07:06 +0000)]
    * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
        style definition.
        * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If
        __ASSUME_TIMEVAL64, define __adjtime directly rather than
        via strong_alias.

16 years ago * sysdeps/alpha/dl-machine.h (elf_machine_rela,
rth [Fri, 15 Oct 2004 07:06:11 +0000 (07:06 +0000)]
    * sysdeps/alpha/dl-machine.h (elf_machine_rela,
        elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
        instead of static.

16 years agoUpdate.
drepper [Thu, 14 Oct 2004 20:55:58 +0000 (20:55 +0000)]
Update.

16 years agoWhen using compilers without -fpie support, also link with -lselinux
drepper [Thu, 14 Oct 2004 20:54:27 +0000 (20:54 +0000)]
When using compilers without -fpie support, also link with -lselinux
if necessary.

16 years agoUpdate.
drepper [Thu, 14 Oct 2004 16:18:09 +0000 (16:18 +0000)]
Update.