kopensolaris-gnu/glibc.git
15 years ago2004-10-04 Roland McGrath <roland@redhat.com>
roland [Mon, 4 Oct 2004 20:59:34 +0000 (20:59 +0000)]
2004-10-04  Roland McGrath  <roland@redhat.com>

* include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
to rtld_errno.
* sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
and don't define any other errno names.
* sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
place of errno.
* sysdeps/unix/i386/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/unix/x86_64/sysdep.S: Likewise.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 20:51:25 +0000 (20:51 +0000)]
Update.

15 years agoFix testing for POSIX feature.
drepper [Mon, 4 Oct 2004 20:50:53 +0000 (20:50 +0000)]
Fix testing for POSIX feature.

15 years agoDefine _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME to zero.
drepper [Mon, 4 Oct 2004 20:47:50 +0000 (20:47 +0000)]
Define _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME to zero.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 19:28:07 +0000 (19:28 +0000)]
Update.

15 years agoSet _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME to zero.
drepper [Mon, 4 Oct 2004 19:27:19 +0000 (19:27 +0000)]
Set _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME to zero.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 19:25:29 +0000 (19:25 +0000)]
Update.

15 years agoAdd dynamic check for _SC_CPUTIME and _SC_THREAD_CPUTIME.
drepper [Mon, 4 Oct 2004 19:24:54 +0000 (19:24 +0000)]
Add dynamic check for _SC_CPUTIME and _SC_THREAD_CPUTIME.

15 years agoMove testing code to has_cpuclock.c.
drepper [Mon, 4 Oct 2004 19:24:01 +0000 (19:24 +0000)]
Move testing code to has_cpuclock.c.

15 years agosysconf for Linux/ia64.
drepper [Mon, 4 Oct 2004 19:21:56 +0000 (19:21 +0000)]
sysconf for Linux/ia64.

15 years agoCheck for working itc.
drepper [Mon, 4 Oct 2004 19:20:51 +0000 (19:20 +0000)]
Check for working itc.

15 years agoAdd has_cpuclock.c.
drepper [Mon, 4 Oct 2004 19:20:34 +0000 (19:20 +0000)]
Add has_cpuclock.c.

15 years ago(start_threads): Make last change look nicer.
drepper [Mon, 4 Oct 2004 16:38:27 +0000 (16:38 +0000)]
(start_threads): Make last change look nicer.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 16:35:54 +0000 (16:35 +0000)]
Update.

15 years ago(start_threads): Use sysconf in case _POSIX_CLOCK_SELECTION or
drepper [Mon, 4 Oct 2004 16:34:50 +0000 (16:34 +0000)]
(start_threads): Use sysconf in case _POSIX_CLOCK_SELECTION or
_POSIX_MONOTONIC_CLOCK is not greater zero.

15 years agoRemove getaddrinfo definition.
drepper [Mon, 4 Oct 2004 16:14:31 +0000 (16:14 +0000)]
Remove getaddrinfo definition.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 16:13:11 +0000 (16:13 +0000)]
Update.

15 years agoDefine _POSIX_THREAD_PROCESS_SHARED and _POSIX_CLOCK_SELECTION as -1.
drepper [Mon, 4 Oct 2004 16:12:12 +0000 (16:12 +0000)]
Define _POSIX_THREAD_PROCESS_SHARED and _POSIX_CLOCK_SELECTION as -1.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 09:36:51 +0000 (09:36 +0000)]
Update.

15 years ago(nscd-modules): Add gai.
drepper [Mon, 4 Oct 2004 09:36:08 +0000 (09:36 +0000)]
(nscd-modules): Add gai.

15 years agogetaddrinfo for nscd.
drepper [Mon, 4 Oct 2004 09:35:49 +0000 (09:35 +0000)]
getaddrinfo for nscd.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 09:06:57 +0000 (09:06 +0000)]
Update.

15 years agoUpdate various fields.
drepper [Mon, 4 Oct 2004 09:06:13 +0000 (09:06 +0000)]
Update various fields.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 07:52:12 +0000 (07:52 +0000)]
Update.

15 years agoUpdate. fedora-glibc-20041004T0747
drepper [Mon, 4 Oct 2004 07:45:53 +0000 (07:45 +0000)]
Update.

15 years agoGive up on using __builtin_expect.
drepper [Mon, 4 Oct 2004 07:45:23 +0000 (07:45 +0000)]
Give up on using __builtin_expect.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 07:06:56 +0000 (07:06 +0000)]
Update.

15 years ago(dl_main): Only skip => output in ldd mode if both strings are identical.
drepper [Mon, 4 Oct 2004 07:06:20 +0000 (07:06 +0000)]
(dl_main): Only skip => output in ldd mode if both strings are identical.

15 years agoUpdate.
drepper [Mon, 4 Oct 2004 02:27:39 +0000 (02:27 +0000)]
Update.

15 years ago(aligned_heap_area): New variable.
drepper [Mon, 4 Oct 2004 02:27:14 +0000 (02:27 +0000)]
(aligned_heap_area): New variable.
(new_heap): If aligned_heap_area != NULL, attempt to use that
first.  If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
aligned, remember the second half in aligned_heap_area.
(delete_heap): Clear aligned_heap_area if deleting the area right
before aligned_heap_area.

15 years agoUpdate.
drepper [Sun, 3 Oct 2004 21:33:28 +0000 (21:33 +0000)]
Update.

15 years ago(__nscd_getgrouplist): Return -1 if nscd can't be used.
drepper [Sun, 3 Oct 2004 21:31:47 +0000 (21:31 +0000)]
(__nscd_getgrouplist): Return -1 if nscd can't be used.

15 years agoUpdate.
drepper [Sun, 3 Oct 2004 21:11:37 +0000 (21:11 +0000)]
Update.

15 years agoPrint current and maximum number of threads.
drepper [Sun, 3 Oct 2004 21:11:18 +0000 (21:11 +0000)]
Print current and maximum number of threads.

15 years agoParse max-nthreads entry.
drepper [Sun, 3 Oct 2004 21:10:35 +0000 (21:10 +0000)]
Parse max-nthreads entry.

15 years agoDeclare max_nthreads.
drepper [Sun, 3 Oct 2004 21:10:11 +0000 (21:10 +0000)]
Declare max_nthreads.

15 years agoAdd max-threads entry.
drepper [Sun, 3 Oct 2004 21:09:23 +0000 (21:09 +0000)]
Add max-threads entry.

15 years ago(fd_ready): If no thread available for processing
drepper [Sun, 3 Oct 2004 21:08:52 +0000 (21:08 +0000)]
(fd_ready): If no thread available for processing
the request, create a new one unless the limit is reached.
(start_threads): Check errors from pthread_create.

15 years agoUpdate.
drepper [Sun, 3 Oct 2004 19:33:48 +0000 (19:33 +0000)]
Update.

15 years agoPrint paranoia and restart-internal values.
drepper [Sun, 3 Oct 2004 19:33:30 +0000 (19:33 +0000)]
Print paranoia and restart-internal values.

15 years agoParse paranoia and restart-internal configurations.
drepper [Sun, 3 Oct 2004 19:33:07 +0000 (19:33 +0000)]
Parse paranoia and restart-internal configurations.

15 years agoDefine RESTART_INTERVAL. Declare new variables.
drepper [Sun, 3 Oct 2004 19:32:40 +0000 (19:32 +0000)]
Define RESTART_INTERVAL.  Declare new variables.

15 years agoAdd paranoia and restart-interval entries.
drepper [Sun, 3 Oct 2004 19:32:13 +0000 (19:32 +0000)]
Add paranoia and restart-interval entries.

15 years agoDefine new variables paranoia, restart_time,
drepper [Sun, 3 Oct 2004 19:31:44 +0000 (19:31 +0000)]
Define new variables paranoia, restart_time,
restart_interval, oldcwd, old_gid, old_uid.
(main): Disable paranoia mode if we are not forking.
(check_pid): When re-execing, the PID file contains the same PID as
the current process.  Do not fail in this case.

15 years ago(nscd_init): Mark database and socket descriptors as close on exec.
drepper [Sun, 3 Oct 2004 19:31:15 +0000 (19:31 +0000)]
(nscd_init): Mark database and socket descriptors as close on exec.
(restart): New function.
(restart_p): New function.
(nscd_run): Add missing descrement of nready in case readylist is empty.
(main_loop_poll): Call restart_p and restart.
(main_loop_epoll): Likewise.
(begin_drop_privileges): Save original UID and GID.

15 years agoUpdate.
drepper [Sun, 3 Oct 2004 07:33:54 +0000 (07:33 +0000)]
Update.

15 years ago[subdir=nscd] (CFLAGS-connections.c): Add -DHAVE_EPOLL.
drepper [Sun, 3 Oct 2004 07:33:28 +0000 (07:33 +0000)]
[subdir=nscd] (CFLAGS-connections.c): Add -DHAVE_EPOLL.

15 years agoImplement alternative loop for main thread which uses epoll.
drepper [Sun, 3 Oct 2004 07:32:28 +0000 (07:32 +0000)]
Implement alternative loop for main thread which uses epoll.

15 years ago(CFLAGS-initgrcache.c): Add to CFLAGS-* variables, don't replace old content.
drepper [Sun, 3 Oct 2004 05:35:50 +0000 (05:35 +0000)]
(CFLAGS-initgrcache.c): Add to CFLAGS-* variables, don't replace old content.

15 years agoUpdate,
drepper [Sun, 3 Oct 2004 01:21:47 +0000 (01:21 +0000)]
Update,

15 years agoRewrite handling of incoming connections. All are handled by one
drepper [Sun, 3 Oct 2004 01:21:35 +0000 (01:21 +0000)]
Rewrite handling of incoming connections.  All are handled by one
thread which then hands of the descriptors for the real work to the
worker threads.

15 years agoLink nscd with librt.
drepper [Sun, 3 Oct 2004 01:20:26 +0000 (01:20 +0000)]
Link nscd with librt.

15 years agoPretty printing.
drepper [Sat, 2 Oct 2004 21:39:31 +0000 (21:39 +0000)]
Pretty printing.

15 years ago(dbg_log): Don't add unnecessary newline to output. Let syslog do the
drepper [Sat, 2 Oct 2004 21:38:53 +0000 (21:38 +0000)]
(dbg_log): Don't add unnecessary newline to output.  Let syslog do the
formatting if debug_level == 0.

15 years agoUpdate.
drepper [Sat, 2 Oct 2004 19:31:11 +0000 (19:31 +0000)]
Update.

15 years ago(get_mapping): No need to check timestamp if nscd_certainly_running is nonzero.
drepper [Sat, 2 Oct 2004 19:30:30 +0000 (19:30 +0000)]
(get_mapping): No need to check timestamp if nscd_certainly_running is nonzero.

15 years agoUpdate.
drepper [Fri, 1 Oct 2004 23:55:51 +0000 (23:55 +0000)]
Update.

15 years ago(public_vALLOc): Add missing use of hooks.
drepper [Fri, 1 Oct 2004 23:51:18 +0000 (23:51 +0000)]
(public_vALLOc): Add missing use of hooks.
(public_pVALLOc): Likewise.

15 years ago.
roland [Fri, 1 Oct 2004 22:49:43 +0000 (22:49 +0000)]
.

15 years ago2004-10-02 Simon Josefsson <jas@extundo.com>
roland [Fri, 1 Oct 2004 22:49:36 +0000 (22:49 +0000)]
2004-10-02  Simon Josefsson  <jas@extundo.com>

[BZ #420]
* sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
make the file usable inside gnulib.

15 years ago(__nscd_getgrouplist): Add assert.
drepper [Fri, 1 Oct 2004 21:35:08 +0000 (21:35 +0000)]
(__nscd_getgrouplist): Add assert.

15 years agoUpdate. fedora-glibc-20041001T2134
drepper [Fri, 1 Oct 2004 21:24:29 +0000 (21:24 +0000)]
Update.

15 years ago(__lll_mutex_timedlock_wait): Address futex correctly.
drepper [Fri, 1 Oct 2004 21:23:14 +0000 (21:23 +0000)]
(__lll_mutex_timedlock_wait): Address futex correctly.

15 years agoUpdate.
drepper [Fri, 1 Oct 2004 20:34:29 +0000 (20:34 +0000)]
Update.

15 years ago(__nscd_getgrouplist): Always add the group the caller provided unless
drepper [Fri, 1 Oct 2004 20:33:33 +0000 (20:33 +0000)]
(__nscd_getgrouplist): Always add the group the caller provided unless
there is a real problem.

15 years agoUpdate.
drepper [Fri, 1 Oct 2004 15:44:06 +0000 (15:44 +0000)]
Update.

15 years ago(prepare): Fix creation of symlink.
drepper [Fri, 1 Oct 2004 15:43:20 +0000 (15:43 +0000)]
(prepare): Fix creation of symlink.

15 years ago. fedora-glibc-20041001T1134
drepper [Fri, 1 Oct 2004 10:35:03 +0000 (10:35 +0000)]
.

15 years agoUpdate.
drepper [Fri, 1 Oct 2004 10:33:03 +0000 (10:33 +0000)]
Update.

15 years ago(__lll_mutex_timedlock_wait): I woken but cannot get the lock, make
drepper [Fri, 1 Oct 2004 10:31:11 +0000 (10:31 +0000)]
(__lll_mutex_timedlock_wait): I woken but cannot get the lock, make
sure 2 is stored in the futex and we looked at the old value.

15 years ago(__lll_mutex_timedlock_wait): I woken but cannot get the lock, make
drepper [Fri, 1 Oct 2004 10:30:44 +0000 (10:30 +0000)]
(__lll_mutex_timedlock_wait): I woken but cannot get the lock, make
sure 2 is stored in the futex and we looked at the old value.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 23:13:17 +0000 (23:13 +0000)]
Update.

15 years agoAdd rules to build and run bug-glob1.
drepper [Thu, 30 Sep 2004 23:12:26 +0000 (23:12 +0000)]
Add rules to build and run bug-glob1.

15 years agoTest case for globbing dangling symlink.
drepper [Thu, 30 Sep 2004 23:10:49 +0000 (23:10 +0000)]
Test case for globbing dangling symlink.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 08:56:32 +0000 (08:56 +0000)]
Update.

15 years ago(main): Print progress information to stderr.
drepper [Thu, 30 Sep 2004 08:55:57 +0000 (08:55 +0000)]
(main): Print progress information to stderr.

15 years ago. fedora-glibc-20040930T0838
drepper [Thu, 30 Sep 2004 08:35:09 +0000 (08:35 +0000)]
.

15 years ago.
drepper [Thu, 30 Sep 2004 08:28:54 +0000 (08:28 +0000)]
.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 08:27:48 +0000 (08:27 +0000)]
Update.

15 years ago(termination_handler): Reset timestamp so that client immediately stop
drepper [Thu, 30 Sep 2004 08:27:09 +0000 (08:27 +0000)]
(termination_handler): Reset timestamp so that client immediately stop
using the database.

15 years agoPretty printing.
drepper [Thu, 30 Sep 2004 08:21:10 +0000 (08:21 +0000)]
Pretty printing.

15 years agoFix last change.
drepper [Thu, 30 Sep 2004 08:11:38 +0000 (08:11 +0000)]
Fix last change.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 08:08:40 +0000 (08:08 +0000)]
Update.

15 years agoCorrectly use __nscd_drop_map_ref. Reinitialize all variables and
drepper [Thu, 30 Sep 2004 08:06:36 +0000 (08:06 +0000)]
Correctly use __nscd_drop_map_ref.  Reinitialize all variables and
avoid memory leak in case of retries.

15 years ago(__nscd_get_map_ref): Remove volatile here, too.
drepper [Thu, 30 Sep 2004 08:04:40 +0000 (08:04 +0000)]
(__nscd_get_map_ref): Remove volatile here, too.

15 years ago(__nscd_get_map_ref): Drop volatile from last parameter.
drepper [Thu, 30 Sep 2004 08:03:44 +0000 (08:03 +0000)]
(__nscd_get_map_ref): Drop volatile from last parameter.
(__nscd_drop_map_ref): Change second parameter to be a referenc to
a variable.  Update variable when cycle count changed.

15 years ago.
aj [Thu, 30 Sep 2004 07:51:44 +0000 (07:51 +0000)]
.

15 years ago(CFLAGS-nscd_initgroups.c): Set to -fpie.
aj [Thu, 30 Sep 2004 07:51:30 +0000 (07:51 +0000)]
(CFLAGS-nscd_initgroups.c): Set to -fpie.
(CFLAGS-initgrcache.c): Likewise.

15 years agoAdd declaretion of addinitgroups and readdinitgroups.
drepper [Thu, 30 Sep 2004 07:15:40 +0000 (07:15 +0000)]
Add declaretion of addinitgroups and readdinitgroups.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 06:42:39 +0000 (06:42 +0000)]
Update.

15 years ago(glob_in_dir): Don't blindly trust readdir results; for symlinks or
drepper [Thu, 30 Sep 2004 06:42:08 +0000 (06:42 +0000)]
(glob_in_dir): Don't blindly trust readdir results; for symlinks or
files of unknown type check using stat whether the file exists.

15 years ago(find_file): Handle leading "./". Fix recognition of files.
drepper [Thu, 30 Sep 2004 06:40:41 +0000 (06:40 +0000)]
(find_file): Handle leading "./".  Fix recognition of files.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 06:16:50 +0000 (06:16 +0000)]
Update.

15 years ago(__fdimf, __fdim, fdimf, fdim): Handle +inf/+inf.
drepper [Thu, 30 Sep 2004 06:16:28 +0000 (06:16 +0000)]
(__fdimf, __fdim, fdimf, fdim): Handle +inf/+inf.

15 years ago(tzfile_mtime): New variable.
drepper [Thu, 30 Sep 2004 06:16:02 +0000 (06:16 +0000)]
(tzfile_mtime): New variable.
(__tzfile_read): Reread the file if mtime is different.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 05:16:40 +0000 (05:16 +0000)]
Update.

15 years ago(nscd_gethst_r): Use correct constant for testing result of __nscd_get_map_ref.
drepper [Thu, 30 Sep 2004 04:58:34 +0000 (04:58 +0000)]
(nscd_gethst_r): Use correct constant for testing result of __nscd_get_map_ref.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 02:56:42 +0000 (02:56 +0000)]
Update.

15 years agoHandle +inf/+inf.
drepper [Thu, 30 Sep 2004 02:56:10 +0000 (02:56 +0000)]
Handle +inf/+inf.

15 years agoUpdate.
drepper [Thu, 30 Sep 2004 02:24:51 +0000 (02:24 +0000)]
Update.