glibc/sysdeps/unix/sysv/linux
Roland McGrath c877418f2e * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
New macros.
	* elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
	text_set_element.
	* elf/dl-libc.c (free_mem): Likewise.
	* iconv/gconv_conf.c (free_mem): Likewise.
	* iconv/gconv_db.c (free_mem): Likewise.
	* iconv/gconv_dl.c (free_mem): Likewise.
	* iconv/gconv_cache.c (free_mem): Likewise.
	* intl/finddomain.c (free_mem): Likewise.
	* intl/dcigettext.c (free_mem): Likewise.
	* locale/setlocale.c (free_mem): Likewise.
	* misc/fstab.c (fstab_free): Likewise.
	* nss/nsswitch.c (free_mem): Likewise.
	* posix/regcomp.c (free_mem): Likewise.
	* resolv/gai_misc.c (free_res): Likewise.
	* stdlib/fmtmsg.c (free_mem): Likewise.
	* sunrpc/clnt_perr.c (free_mem): Likewise.
	* sysdeps/generic/setenv.c (free_mem): Likewise.
	* sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
	* sysdeps/pthread/aio_misc.c (free_res): Likewise.
	* time/tzset.c (free_mem): Likewise.
	* malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
	* locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
	* malloc/set-freeres.c (__libc_freeres): Likewise.

	* login/getutent.c: Include stdlib.h instead of stddef.h.
	(buffer): Change into pointer to utmp, add libc_freeres_ptr.
	(__getutent): Allocate buffer the first time it is run.
	* login/getutid.c: Include stdlib.h instead of stddef.h.
	(buffer): Change into pointer to utmp, add libc_freeres_ptr.
	(__getutid): Allocate buffer the first time it is run.
	* login/getutline.c: Include stdlib.h instead of stddef.h.
	(buffer): Change into pointer to utmp, add libc_freeres_ptr.
	(__getutline): Allocate buffer the first time it is run.
	* malloc/mtrace.c (malloc_trace_buffer): Change into char *.
	(mtrace): Allocate malloc_trace_buffer.
	* resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
	* resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
	* string/strerror.c: Include libintl.h and errno.h.
	(buf): New variable.
	(strerror): Only allocate buffer if actually needed (unknown error).
	* time/tzfile.c (transitions): Add libc_freeres_ptr.
	(freeres): Remove.

2002-10-25  Jakub Jelinek  <jakub@redhat.com>

	* include/libc-symbols.h (libc_freeres_ptr): New macro.
	* malloc/set-freeres.c (__libc_freeres_ptrs): Define using
	symbol_set_define.
	(__libc_freeres): Free all pointers in that section.
	* Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
	commands when creating .lds script.
	(LDSEDCMD-c.so): New variable.
	* inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
	(rcmd_af): Use strdup to allocate ahostbuf.
	* inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
	(rexec_af): Use strdup to allocate ahostbuf.
	* stdio-common/reg-printf.c (printf_funcs): Remove.
	(__printf_arginfo_table): Change into printf_arginfo_function **.
	Add libc_freeres_ptr.
	(__register_printf_function): Allocate __printf_arginfo_table
	and __printf_function_table the first time it is called.
	* stdio-common/printf-parse.h (__printf_arginfo_table): Change into
	printf_arginfo_function **.
	(parse_one_spec): Add __builtin_expect.
	* grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
	(free_mem): Remove.
	* inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
	(free_mem): Remove.
	* intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
	(string_space, map): Add libc_freeres_ptr.
	(free_mem): Remove.
	* misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
	(free_mem): Remove.
	* misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
	(free_mem): Remove.
	* crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
	(buffer): Add libc_freeres_ptr.
	(free_mem): Remove for _LIBC.
	* nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
	(free_mem): Remove.
	* nss/getXXent.c (buffer): Add libc_freeres_ptr.
	(free_mem): Remove.
	* pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
	(free_mem): Remove.
	* resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
	(free_mem): Remove.
	* shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
	(free_mem): Remove.
	* sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
	(free_mem): Remove.
	* sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
	libc_freeres_ptr.
	(free_mem): Remove.
	* sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
	libc_freeres_ptr.
	(free_mem): Remove.

2002-10-30  Jakub Jelinek  <jakub@redhat.com>

	* malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
	instead of duplicating the whole function in libc.
2002-11-01 20:44:15 +00:00
..
alpha * libio/ftello.c (ftello): Use _IO_off64_t for type of POS. 2002-10-23 23:50:19 +00:00
arm 2002-10-15 Roland McGrath <roland@redhat.com> 2002-10-16 01:02:25 +00:00
bits * libio/ftello.c (ftello): Use _IO_off64_t for type of POS. 2002-10-23 23:50:19 +00:00
cris 2002-10-15 Roland McGrath <roland@redhat.com> 2002-10-16 01:02:25 +00:00
hppa 2002-10-15 Roland McGrath <roland@redhat.com> 2002-10-16 01:02:25 +00:00
i386 * sysdeps/generic/bits/time.h: Replaced with contents of the 2002-10-18 20:36:01 +00:00
ia64 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS. 2002-10-23 23:50:19 +00:00
m68k 2002-10-15 Roland McGrath <roland@redhat.com> 2002-10-16 01:02:25 +00:00
mips * libio/ftello.c (ftello): Use _IO_off64_t for type of POS. 2002-10-23 23:50:19 +00:00
net Update. 2002-10-03 08:58:56 +00:00
netash Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
netatalk Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
netax25 Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
neteconet Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
netinet 2002-02-06 Roland McGrath <roland@frob.com> 2002-02-07 03:49:18 +00:00
netipx Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
netpacket Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
netrom Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
netrose Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
nfs
powerpc Jakub Jelinek <jakub@redhat.com> 2002-10-16 03:03:00 +00:00
s390 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL, 2002-10-24 18:49:00 +00:00
scsi Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sh 2002-10-15 Roland McGrath <roland@redhat.com> 2002-10-16 01:02:25 +00:00
sparc * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL, 2002-10-24 18:49:00 +00:00
sys Update. 2002-08-28 09:34:59 +00:00
x86_64 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each 2002-10-30 18:25:26 +00:00
_exit.c Update. 2002-10-03 16:37:04 +00:00
a.out.h
accept.S
adjtime.c Update. 2002-07-25 08:19:59 +00:00
aio_sigqueue.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
bind.S Update. 2002-05-15 00:22:23 +00:00
clock.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
cmsg_nxthdr.c Update. 2001-07-31 20:32:01 +00:00
configure * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change. 2002-10-26 01:06:33 +00:00
configure.in * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change. 2002-10-26 01:06:33 +00:00
connect.S Update. 2002-04-09 20:36:24 +00:00
device-nrs.h * sysdeps/generic/device-nrs.h (DEV_TTY_P): Change argument type 2001-07-21 05:13:40 +00:00
Dist Update. 2002-09-19 06:36:54 +00:00
dl-brk.c Update. 2002-06-09 20:15:14 +00:00
dl-librecon.h Update. 2002-01-31 03:41:25 +00:00
dl-origin.c Update. 2002-03-01 09:44:29 +00:00
dl-osinfo.h Update. 2002-01-31 03:41:25 +00:00
dl-sbrk.c Update. 2002-06-09 20:15:14 +00:00
dl-sysdep.c Update. 2001-07-12 06:32:02 +00:00
errqueue.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
execve.c Don't try calling __pthread_kill_other_threads_np. 2002-10-11 07:59:08 +00:00
exit-thread.S Update. 2002-09-15 02:37:32 +00:00
fd_to_filename.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fpathconf.c * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline. 2002-10-18 19:03:55 +00:00
fstatfs64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fstatvfs64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fstatvfs.c Update. 2002-09-21 05:54:00 +00:00
ftime.c
ftruncate64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fxstat64.c * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
fxstat.c 2002-10-02 Roland McGrath <roland@redhat.com> 2002-10-02 08:33:46 +00:00
gai_sigqueue.c Update. 2001-08-17 07:51:36 +00:00
getclktck.c Update. 2002-01-31 03:41:25 +00:00
getcwd.c * catgets/open_catalog.c (__open_catalog): Don't use a value type 2002-09-24 04:24:25 +00:00
getdents64.c Update. 2000-08-17 19:36:13 +00:00
getdents.c Update. 2002-06-22 05:58:14 +00:00
getdirentries64.c Update. 2000-08-12 05:14:52 +00:00
getdirentries.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
getdtsz.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
gethostid.c * catgets/open_catalog.c (__open_catalog): Don't use a value type 2002-09-24 04:24:25 +00:00
getloadavg.c Update. 2001-12-31 17:46:59 +00:00
getpagesize.c Update. 2002-08-03 07:02:10 +00:00
getpeername.S
getpriority.c * include/sys/resource.h: Use libc_hidden_proto for getpriority, 2002-08-04 03:50:21 +00:00
getpt.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
getsockname.S Update. 2002-05-15 00:22:23 +00:00
getsockopt.S
getsysstats.c * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): 2002-11-01 20:44:15 +00:00
grantpt.c Update. 2002-07-20 01:14:41 +00:00
if_index.c * include/sys/wait.h (__waitpid): Add libc_hidden_proto. 2002-08-13 01:08:15 +00:00
ifreq.h * sysdeps/generic/ifreq.h (__if_nextreq): New function. 2002-09-20 20:34:06 +00:00
Implies
init-first.c * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED] 2002-10-25 19:41:31 +00:00
internal_statvfs.c Update. 2002-09-21 05:54:00 +00:00
ipc_priv.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
kernel_sigaction.h
kernel_stat.h Update. 2000-08-12 05:14:52 +00:00
kernel_termios.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
kernel-features.h Update. 2002-10-16 04:42:33 +00:00
ldd-rewrite.sed
lddlibc4.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ldsodefs.h Update. 2002-07-20 17:31:30 +00:00
linux_fsinfo.h * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline. 2002-10-18 19:03:55 +00:00
listen.S Update. 2002-05-15 00:22:23 +00:00
llseek.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
lseek64.c
lxstat64.c * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
lxstat.c 2002-10-02 Roland McGrath <roland@redhat.com> 2002-10-02 08:33:46 +00:00
Makefile * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each 2002-10-30 18:25:26 +00:00
mmap64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
msgctl.c Update. 2002-07-20 01:14:41 +00:00
msgget.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
msgrcv.c Update. 2002-10-09 09:42:48 +00:00
msgsnd.c Update. 2002-10-09 09:42:48 +00:00
nice.c Update. 2002-03-02 00:48:30 +00:00
ntp_gettime.c Update. 2002-07-25 08:19:59 +00:00
opendir.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
opensock.c * catgets/open_catalog.c (__open_catalog): Don't use a value type 2002-09-24 04:24:25 +00:00
pathconf.c * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline. 2002-10-18 19:03:55 +00:00
pathconf.h * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline. 2002-10-18 19:03:55 +00:00
paths.h Update. 2000-11-15 23:56:34 +00:00
poll.c Update. 2002-08-03 07:02:10 +00:00
pread64.c * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined 2002-09-14 08:32:37 +00:00
pread.c * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined 2002-09-14 08:32:37 +00:00
profil.c
ptrace.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ptsname.c * catgets/open_catalog.c (__open_catalog): Don't use a value type 2002-09-24 04:24:25 +00:00
pwrite64.c * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined 2002-09-14 08:32:37 +00:00
pwrite.c * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined 2002-09-14 08:32:37 +00:00
readahead.c Update. 2002-05-30 23:35:59 +00:00
readdir64_r.c Update. 2000-08-19 16:58:09 +00:00
readdir64.c Update. 2000-08-19 16:58:09 +00:00
readv.c Update. 2002-10-09 09:42:48 +00:00
reboot.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
recv.S
recvfrom.S Update. 2002-05-15 00:22:23 +00:00
recvmsg.S Update. 2002-05-15 00:22:23 +00:00
rt_sigaction.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
rt_sigpending.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
rt_sigprocmask.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
rt_sigqueueinfo.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
rt_sigreturn.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
rt_sigsuspend.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
rt_sigtimedwait.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
s_pread64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
s_pwrite64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sa_len.c Update. 2002-04-14 20:15:40 +00:00
semctl.c Update. 2002-05-15 06:02:35 +00:00
semget.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
semop.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
send.S Update. 2002-08-03 07:02:10 +00:00
sendmsg.S Update. 2002-05-15 00:22:23 +00:00
sendto.S Update. 2002-05-15 00:22:23 +00:00
setegid.c 2002-08-13 Jakub Jelinek <jakub@redhat.com> 2002-08-13 00:22:49 +00:00
seteuid.c 2002-08-13 Jakub Jelinek <jakub@redhat.com> 2002-08-13 00:22:49 +00:00
sethostid.c
setsockopt.S Update. 2002-05-15 00:22:23 +00:00
shm_open.c * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): 2002-11-01 20:44:15 +00:00
shm_unlink.c Update. 2000-04-12 04:59:33 +00:00
shmat.c * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call 2002-09-03 02:45:12 +00:00
shmctl.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
shmdt.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
shmget.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
shutdown.S
sigaction.c 2002-09-18 Roland McGrath <roland@redhat.com> 2002-09-18 17:45:54 +00:00
siglist.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
signal.c
sigpending.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sigprocmask.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sigqueue.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sigreturn.c
sigset-cvt-mask.h 2002-09-04 Bruno Haible <bruno@clisp.org> 2002-09-05 18:52:18 +00:00
sigstack.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sigsuspend.c Update. 2002-08-03 07:02:10 +00:00
sigtimedwait.c Update. 2002-10-09 09:42:48 +00:00
sigwait.c Update. 2002-10-12 00:49:44 +00:00
sigwaitinfo.c Update. 2002-10-09 09:42:48 +00:00
sizes.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sleep.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
socketcall.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
socketpair.S
speed.c * include/unistd.h (seteuid, setegid): Add libc_hidden_proto. 2002-08-13 00:24:58 +00:00
statfs64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
statvfs64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
statvfs.c Update. 2002-09-21 05:54:00 +00:00
syscalls.list * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command. 2002-10-14 01:03:16 +00:00
sysctl.c * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des. 2002-09-17 10:58:17 +00:00
system.c
tcdrain.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tcflow.c
tcflush.c
tcgetattr.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tcgetpgrp.c
tcsetattr.c * include/unistd.h (seteuid, setegid): Add libc_hidden_proto. 2002-08-13 00:24:58 +00:00
tcsetpgrp.c
termio.h
testrtsig.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
truncate64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ttyname_r.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ttyname.c * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): 2002-11-01 20:44:15 +00:00
ualarm.c
ulimit.c Update. 2001-09-25 03:04:41 +00:00
umount2.S
umount.S
unlockpt.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
updwtmp.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
usleep.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ustat.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
utmp_file.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
Versions * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def. 2002-08-30 01:31:18 +00:00
vfork.c
wait3.c
wait.c
waitpid.c * include/sys/wait.h (__waitpid): Add libc_hidden_proto. 2002-08-13 01:08:15 +00:00
writev.c Update. 2002-10-09 09:42:48 +00:00
xmknod.c Update. 2002-08-04 09:27:27 +00:00
xstat64.c * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
xstat.c 2002-10-02 Roland McGrath <roland@redhat.com> 2002-10-02 08:33:46 +00:00
xstatconv.c 2002-10-02 Roland McGrath <roland@redhat.com> 2002-10-02 08:33:46 +00:00