]> sourceware.org Git - glibc.git/blame - ChangeLog
* sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
[glibc.git] / ChangeLog
CommitLineData
c841fa22
AS
12003-01-15 Andreas Schwab <schwab@suse.de>
2
3 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
4 (common-generated): Add s-proto-bp.d.
5 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6 of bp thunks.
7 * sysdeps/unix/s-proto-bp.S: New file.
8 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
9 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
10 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
11
73917724
RM
122003-01-15 Roland McGrath <roland@redhat.com>
13
14 * Makerules: Use -include for tls.make, suppresses warning.
15 Move gen-as-const-headers rules up so before-compile is set in time.
16 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
17
c9f24336
UD
182003-01-15 Ulrich Drepper <drepper@redhat.com>
19
d4397629
UD
20 * nscd/nscd.c (main): Make code to close all file descriptors
21 faster and more robust.
22
9caf4f1c
UD
23 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
24 request with one writev call. Protect all read calls with
25 TEMP_FAILURE_RETRY.
26 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
27 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28
29 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
30 Protect writev calls with TEMP_FAILURE_RETRY.
31 * nscd/grpcache.c: Likewise.
32 * nscd/pwdcache.c: Likewise.
33
c9f24336
UD
34 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
35 IPv6 address in debug output.
36
9ae10332
RM
372003-01-14 Roland McGrath <roland@redhat.com>
38
39 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
40 $(objpfx) directories, and get rid of vpath directives. The previous
41 arrangement resulted in files being written to the source directories
42 when run in a clean build. Find all .abilist files in $(..)abilist/.
43 (update-abi-%): Likewise.
44 (generated): Don't add .symlist files, they'll be intermediates.
45
46 * sysdeps/generic/init-first.c: Add a comment.
47
48 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
49
50 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
51 #includes and expressions.
52
53 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
54 config list when it already contains cpu-.*-os.* without / part.
55
56 * Makerules (sed-remove-dotdot): New variable.
57 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
58 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
59 (check-abi-config): New variable, append /tls or /notls to the tuple.
60 (check-abi-%): Use that for -v config value.
61 Find .abilist files in abilist/libfoo.abilist, not in subdir.
62 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
63
a8d87c92
UD
642003-01-14 Ulrich Drepper <drepper@redhat.com>
65
66 * manual/install.texi: Correct description of header preparation for
67 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
68
574b892e
UD
692003-01-14 Guido Guenther <agx@sigxcpu.org>
70
71 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
72 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
73 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
74
752003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
76
77 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
78 (INTERNAL_SYSCALL): Make use of ERR parameter.
79 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
80 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
81 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
82 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
83
2c255347
UD
842003-01-14 Ulrich Drepper <drepper@redhat.com>
85
086311a9
UD
86 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
87 == IPPROTO_TCP.
88 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
89
2f279b14
UD
90 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
91 Fix entry for bit 31.
92
2c255347
UD
93 * iconvdata/Makefile: Add rules to build IBM866NAV.
94 * iconvdata/ibm866nav.c: New file.
95 * iconvdata/tst-tables.sh: Add IBM866NAV.
96 * iconvdata/gconv-modules: Add entries for IBM866NAV.
97
642eb2a2
UD
982003-01-13 Ulrich Drepper <drepper@redhat.com>
99
100 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
101 to test void* parameters.
102
103 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
104 source pointer before dereferencing.
105 (__STRING_SMALLL_GET32): Likewise.
106 (__memset_gc): Add missing parenthesis around macro arguments.
574b892e 107 Patch by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2
UD
108
109 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
574b892e 110 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2 111
115bb61d
UD
1122003-01-14 Jakub Jelinek <jakub@redhat.com>
113
114 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
115 defining.
116
1172003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
118
119 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
120 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
121 here.
122 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
123
1242003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
125
126 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
127 from here...
128 (PSEUDO): ... to here.
129 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
130 from here...
131 (PSEUDO): ... to here.
132
9ef0a840
UD
1332003-01-13 Ulrich Drepper <drepper@redhat.com>
134
135 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
136 dirent64 instead of struct dirent for dirent. Call readdir64
137 instead of readdir.
138
139 * locale/programs/locfile.c (siblings_uncached): Use struct
140 dirent64 instead of struct dirent for other_dentry. Call
141 readdir64 instead of readdir.
142
143 * elf/ldconfig.c (direntry): Change type to struct dirent64.
144 (search_dir): Use readdir64 instead of readdir.
145 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
146
f1c5213d
RM
1472003-01-12 Roland McGrath <roland@redhat.com>
148
c01ec9c7
RM
149 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
150 not strtol. The former is usable in ld.so, the latter not.
151
f1c5213d
RM
152 * include/fcntl.h: Declare __libc_creat.
153
154 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
155 libhurduser-link.so-no-z-defs): New variables.
156
157 * malloc/malloc.c: Revert last change.
158 * malloc/malloc.h (_int_*): Move these decls to ...
159 * include/malloc.h: ... here. Add attribute_hidden.
160 (_int_valloc): Declare it too.
161
73398a44
UD
1622003-01-12 Ulrich Drepper <drepper@redhat.com>
163
115bb61d 164 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1376cd8c
UD
165 search for removed searchlist. Reported by Roland McGrath.
166
40212ce0
UD
167 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
168 given as start file.
169
170 * io/ftw.c (ftw_startup): Use correct name in check for symlink
171 without existing target. Patch by Jim Meyering.
172
73398a44
UD
173 * Makerules (build-shlib-helper): Don't use -z defs linker option
174 if no-z-defs is defined either.
175
1762003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
177
178 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
179 file.
180
1812003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
182
183 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
184 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
185
b2608c22
UD
1862003-01-12 Ulrich Drepper <drepper@redhat.com>
187
188 * io/ftwtest-sh: Add test case for relative path with /. at the end.
189
1902003-01-12 Jim Meyering <jim@meyering.net>
191
192 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
193 use the basename if we've already chdir'd into its parent directory.
194
a5ce5fcf
UD
1952003-01-12 Ulrich Drepper <drepper@redhat.com>
196
197 * io/ftw.c (process_entry): Use relative path when using chdir()
b2608c22 198 to change directory after call to ftw_dir.
a5ce5fcf
UD
199 * io/ftwtest-sh: Add test for relative path argument to nftw()
200 with FTW_CHDIR option.
201
b398ae3c
UD
2022002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
203
204 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
205 Define for powerpc.
206 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
207 into account.
208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
209 (INTERNAL_SYSCALL): Make use of ERR parameter.
210 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
211 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
212 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
214
2152002-01-09 Richard Henderson <rth@redhat.com>
216
217 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
218 DTPREL64 and TPREL64 without loadbase applied.
219
2202002-01-09 Richard Henderson <rth@redhat.com>
221
222 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
223 for NOT_IN_libc.
224
225 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
226 * sysdeps/unix/alpha/sysdep.h: ... here.
227 (PSEUDO_LOADGP): Remove.
228 (PSEUDO_PROLOGUE): Load GP in non-pic case.
229 (SYSCALL_ERROR_LABEL): New.
230 (PSEUDO): Use it in error branch.
231 (PSEUDO_END): Add $syscall_error label.
232
1f8613a6
AJ
2332003-01-12 Andreas Jaeger <aj@suse.de>
234
235 * math/bits/mathcalls.h: Round is a const function.
236
aff4519d
UD
2372003-01-11 Jim Meyering <jim@meyering.net>
238
239 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
240 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
241 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
242 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
243 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
244 [!_LIBC] (internal_function, dirent64, MAX): Define.
245 (__set_errno): Define if not already defined.
246 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
247 the basename, not the entire file name.
248 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
249 the basename, not the entire file name.
250
2512003-01-12 Ulrich Drepper <drepper@redhat.com>
252
253 * string/tester.c (test_strcpy): Disable last added strcpy until
254 it is fixed.
255
2562003-01-11 Philip Blundell <philb@gnu.org>
257
258 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
259
2602003-01-11 Andreas Schwab <schwab@suse.de>
261
262 * Makerules: Add vpath for %.dynsym and %.so so that the
263 implicit rule chaining for check-abi works.
264
2652003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
266
267 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
268 Add non-PIC case.
269
2702003-01-11 Jakub Jelinek <jakub@redhat.com>
271
272 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
273 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
274 gp is used early.
275 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
276 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
277 Ensure libc.so in DT_NEEDED.
278 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
279 CHECK_STATIC_TLS before l_tls_offset use.
280 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
281 Likewise.
282 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
283 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
284 Allocate TLS_PRE_TCB_SIZE bytes below result.
285 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
286 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
287 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
288 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
289 bytes below result and add tcb_offset to memsz.
290 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
291 * sysdeps/ia64/dl-machine.h: Include tls.h.
292 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
293 too.
294 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
295 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
296 * sysdeps/ia64/libc-tls.c: New file.
297
2982003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
299
300 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
301 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
302 Fix type. Move definition out of #if.
303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
309 support.
310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
311 ftruncate64, pread64, pwrite64, truncate64 entries.
312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
313 (INLINE_SYSCALL): New version that supports function call like
314 syscalls. Add __builtin_expect.
315 (LOADARGS_n): Add argument size safety checks.
316 (INTERNAL_SYSCALL): New Macro.
317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
318 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
319 redefinition of elf_fpreg_t and elf_fpregset_t.
320
3212003-01-12 Ulrich Drepper <drepper@redhat.com>
322
323 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
324 simplify test for unloading. If loader of a DSO is unloaded do not
325 use its scope anymore. Fall back to own scope and adjust opencounts.
326 Fix several comments.
327 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
328 the l_searchlist, not only for l_initfini.
329
330 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
331 dependencies if objects cannot be removed. Remove object with the
332 definition as not unloadable if necessary.
333
334 * elf/reldep6.c: Create relocation dependency before closing the first
335 module.
336
337