Define F_DUPFD_CLOEXEC.
[glibc-ports.git] / ChangeLog.hppa
blobcb1b815cebd7890f175f3b620d5112751c6feb96
1 2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
3         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_DUPFD_CLOEXEC): Define.
5 2007-10-18  Carlos O'Donell  <carlos@systemhalted.org>
7         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c
8         (__lll_lock_wait): Add private argument. Pass private
9         to lll_futex_wait. Use atomic_compare_and_exchange_val_acq.
10         (__lll_lock_wait_private): New function.
11         (__lll_timedlock_wait): Add private argument. Pass private
12         to lll_futex_timed_wait.
13         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:
14         Include kernel-features.h and tls.h.
15         (FUTEX_WAITERS): Define.
16         (FUTEX_OWNER_DIED): Define.
17         (FUTEX_TID_MASK): Define.
18         (__lll_private_flag): Define.
19         (lll_futex_timed_wait): Use __lll_private_flag.
20         (lll_futex_wake): Use __lll_private_flag.
21         (lll_futex_requeue): Use __lll_private_flag.
22         (lll_robust_mutex_dead): Rename to...
23         (lll_robust_dead): ... this. Add private argument. Pass private
24         to lll_futex_wake.
25         (lll_futex_wake_unlock): Use __lll_private_flag.
26         (__lll_mutex_trylock): Remove.
27         (lll_mutex_tryock): Remove.
28         (__lll_robust_mutex_trylock): Rename to...
29         (__lll_robust_trylock): ... this.
30         (lll_robust_mutex_trylock): Rename to...
31         (lll_robust_trylock): ... this. Call __lll_robust_trylock.
32         (__lll_mutex_cond_trylock): Rename to...
33         (__lll_cond_trylock): ... this.
34         (lll_mutex_cond_trylock): Rename to...
35         (lll_cond_trylock): ... this. Call __lll_cond_trylock.
36         (__lll_mutex_lock): Add private argument.
37         (__lll_robust_mutex_lock): Remove.
38         (lll_mutex_lock): Define.
39         (__lll_robust_lock): Define.
40         (lll_robust_mutex_lock): Remove.
41         (__lll_mutex_cond_lock): Remove.
42         (lll_robust_lock) Define.
43         (lll_robust_cond_lock): Define.
44         (lll_robust_mutex_cond_lock): Remove.
45         (__lll_cond_lock): Define.
46         (lll_cond_lock): Define.
47         (__lll_mutex_timedlock): Remove.
48         (__lll_timedlock): Define.
49         (lll_timedlock): Define.
50         (lll_robust_mutex_timedlock): Remove.
51         (lll_robust_timedlock): Define.
52         (__lll_mutex_unlock): Remove.
53         (__lll_unlock): Define.
54         (__lll_robust_mutex_unlock): Remove.
55         (__lll_robust_unlock): Define.
56         (lll_robust_mutex_unlock): Remove.
57         (lll_robust_unlock): Define.
58         (__lll_mutex_unlock_force): Remove.
59         (lll_mutex_unlock_force): Remove.
60         (lll_islocked): Remove.
61         (lll_mutex_islocked): Rename to...
62         (lll_islocked): ... this.
63         (lll_trylock): Remove.
64         (lll_unlock): Remove.
65         (lll_wait_tid): Format whitespace.
66         (lll_cond_wait): Remove.
67         (lll_cond_timedwait): Remove.
68         (lll_cond_wake): Remove.
69         (lll_cond_broadcast): Remove.
71 2007-10-17  Carlos O'Donell  <carlos@systemhalted.org>
73         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Correct return value
74         type and __THROW marker of splice, vmsplice, and tee.
76 2007-09-24  Carlos O'Donell  <carlos@systemhalted.org>
78         * sysdeps/hppa/nptl/tls.h: Fix comment.
79         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Fix comment format.
80         [__USE_GNU] (O_CLOEXEC): Define.
81         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Issue error
82         if the library is unsupported.
83         [ASSEMBLER && IS_IN_librt]: Define CENABLE, CDISABLE, and
84         __local_multiple_threads.
86 2007-08-03  Aurelien Jarno  <aurelien@aurel32.net>
88         * sysdeps/unix/sysv/linux/hppa/linuxthreads/sysdep-cancel.h:
89         (__local_multiple_threads): Declare as hidden only in libc and
90         in libpthread.
92 2007-07-28  Carlos O'Donell  <carlos@systemhalted.org>
94         * sysdeps/unix/sysv/linux/hppa/nptl/internaltypes.h: Remove.
95         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
96         (pthread_rwlock_t): Split __flags into __pad2, __pad1, __shared,
97         and __flags. Update comments. Update copyright.
98         * sysdeps/hppa/nptl/tls.h: Define THREAD_GSCOPE_FLAG_UNUSED,
99         THREAD_GSCOPE_FLAG_USED, THREAD_GSOPE_FLAG_WAIT,
100         THREAD_GSCOPE_RSEET_FLAG, THREAD_GSCOPE_SET_FLAG, THREAD_GSCOPE_WAIT.
101         Update copyright.
102         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Update copyright.
103         (__lll_lock_wait): Call lll_futex_wait with LLL_SHARED.
104         (__lll_timedlock_wait): Call lll_futex_timed_wait with LLL_SHARED.
105         (lll_unlock_Wake_cb): Use lll_private_futex_wake.
106         (___lll_timedwait_tid): Call lll_futex_timed_wait with LLL_SAHRED.
107         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Define
108         FUTEX_PRIVATE_FLAG, LLL_PRIVATE, LLL_SHARED, lll_private_futex_wait,
109         lll_private_futex_timed_wait, lll_private_Futex_wake. Add private
110         argument to lll_futex_wait, lll_futex_timed_wait, lll_futex_wake,
111         lll_futex_wake_unlock.
112         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_once.c: Update copyright.
113         (clear_once_control): Use lll_private_futex_wake.
114         (__pthread_once): Use lll_private_futex_wait, and
115         lll_private_futex_wake.
117 2007-07-28  Randolph Chung  <tausq@debian.org>
119         * sysdeps/hppa/nptl/tls.h (DB_THREAD_SELF): Fix definition.
121 2007-06-16  Jeff Bailey  <jbailey@raspberryginger.com>
123         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Don't
124         include asm/elf.h.  Declare elf_greg_t, elf_gregset_t,
125         elf_fpreg_t, and elf_fpregset_t.
127 2007-06-16  Jeff Bailey  <jbailey@raspberryginger.com>
129         * sysdeps/unix/sysv/linux/hppa/nptl/configure.in: Require
130         at least kernel 2.6.9.
131         * sysdeps/unix/sysv/linux/hppa/nptl/configure: Rebuilt.
133 2007-05-17  Carlos O'Donell  <carlos@systemhalted.org>
135         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h 
136         (SEM_VALUE_MAX): Remove.
138 2007-05-17  Carlos O'Donell  <carlos@systemhalted.org>
140         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PIC_REG_DEF): Define.
141         (PIC_REG_USE): Define.
142         (INLINE_SYSCALL): Use PIC_REG_DEF, PIC_REG_USE.
143         (INTERNAL_SYSCALL): Likewise.
144         (INTERNAL_SYSCALL_NCS): Likewise.
145         * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall): Use 
146         PIC_REG_DEF, PIC_REG_USE.
148 2007-05-01  Carlos O'Donell  <carlos@systemhalted.org>
150         * sysdeps/unix/sysv/linux/hppa/linuxthreads/bits/pthreadtypes.h
151         [__USE_XOPEN2K]: Define pthread_rwlock_t and 
152         pthread_rwlockattr_t. 
154 2007-02-02  Carlos O'Donell  <carlos@systemhalted.org>
156         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PTR_MANGLE): Define.
157         (PTR_DEMANGLE): Define.
159 2007-02-02  Guy Martin  <gmsoft@tuxicoman.be>
161         * sysdeps/hppa/dl-trampoline.S (_dl_runtime_profile):
162         Add cfi_endproc.
164 2006-12-03  Carlos O'Donell  <carlos@systemhalted.org>
166         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Remove non-atomic
167         versions. Adjust jump target to '0b'.
169 2006-12-03  Carlos O'Donell  <carlos@systemhalted.org>
171         * sysdeps/hppa/Makefile: Set long-double-fcts to `no'.
172         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
173         * sysdeps/hppa/fpu/bits/mathdef.h: New file.
175 2006-11-10  Carlos O'Donell  <carlos@systemhalted.org>
177         * sysdeps/hppa/nptl/pthread_spin_init.c: New file.
178         * sysdeps/hppa/nptl/pthread_spin_unlock.c: Remove strong alias
179         to pthread_spin_init.
180         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Define
181         RTLD_SINGLE_THREAD_P.
183 2006-09-20  Carlos O'Donell  <carlos@systemhalted.org>
185         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (splice): Add offin
186         and offout arguments to the prototype. 
188 2006-09-15  Carlos O'Donell  <carlos@systemhalted.org>
190         * sysdeps/hppa/nptl/tcb-offsets.sym: Define TID_THREAD_OFFSET.
191         * sysdeps/unix/sysv/linux/hppa/clone.S: Handle RESET_PID, and 
192         restore r19 before call to _exit.
193         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: New file.
195 2006-09-13  Carlos O'Donell  <carlos@systemhalted.org>
197         * sysdeps/hppa/dl-machine.h (RTLD_START): Comment the use of 
198         _dl_fini_plabel.
199         * sysdeps/hppa/elf/start.S: Correctly pass r23 to argument 6 of
200         __libc_start_main. Comment the order of arguments at entry and
201         those to __libc_start_main.
203 2006-09-07  Carlos O'Donell  <carlos@systemhalted.org>
205         * sysdeps/hppa/dl-machine.h (elf_machine_fixup_plt): Remove
206         lvalue cast.
207         * sysdeps/hppa/dl-trampoline.S (_dl_fixup): Correct stack usage.
208         (_dl_runtime_profile): LA fixups.
209         * sysdeps/unix/sysv/linux/hppa/clone.S: Correct stack usage. Return
210         -1 on error. Use branch and link for error handler funciton.
211         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Correct stack usage.
212         Avoid register shuffling.
213         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (ASM_EAGAIN): Define
214         as -EAGAIN.
215         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Adjust definitions to
216         match required standards.
217         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h 
218         (lll_futex_wait): Return __ret.
219         (lll_futex_timed_wait): Likewise.
220         (lll_futex_wake): Likewise.
221         (lll_futex_requeue): Likewise.
222         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Correct stack
223         usage and adjust error return.
224         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Adjust
225         stack usage for gdb, and avoid extra register loads.
226         * sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c: Copy
227         nptl/sysdeps/pthread/unwind-forcedunwind.c.
228         (LIBGCC_SO): Define and use.
229         * sysdeps/unix/sysv/linux/hppa/nptl/unwind-resume.c: Copy
230         nptl/sysdeps/pthread/unwind-resume.c.
231         (LIBGCC_SO): Define and use.
233 2006-08-13  Carlos O'Donell  <carlos@systemhalted.org>
235         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h (FUTEX_LOCK_PI,
236         FUTEX_UNLOCK_PI, FUTEX_TRYLOCK_PI): Define.
238 2006-07-24  Carlos O'Donell  <carlos@systemhalted.org>
240         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: 
241         __SIZEOF_PTHREAD_COND_T is 64 bytes. Remove __PAD_ATOMIC_LOCK_T.
243 2006-07-18  Carlos O'Donell  <carlos@systemhalted.org>
245         * sysdeps/hppa/nptl/pthread_spin_lock.c (pthread_spin_lock): Swap
246         newval and oldval.
247         * sysdeps/hppa/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
248         Likewise.
250 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
252         * sysdeps/hppa/tst-audit.h: New file.
254 2006-07-16  Carlos O'Donell  <carlos@systemhalted.org>
256         * sysdeps/hppa/tls-macros.h: Cleanup formatting.
258 2006-07-15  Jeff Bailey  <jbailey@ubuntu.com>
260         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Return NULL.
262 2006-07-13  Carlos O'Donell  <carlos@systemhalted.org>
264         * sysdeps/unix/sysv/linux/hppa/xstat.c: New file.
265         * sysdeps/unix/sysv/linux/hppa/lxstat.c: Likewise.
266         * sysdeps/unix/sysv/linux/hppa/fxstat.c: Likewise. 
267         * sysdeps/unix/sysv/linux/hppa/fxstatat.c: Likewise.
269 2006-07-13  Carlos O'Donell  <carlos@systemhalted.org>
271         * sysdeps/hppa/nptl/Makefile: New file
272         * sysdeps/hppa/nptl/jmpbuf-unwind.h: Likewise
273         * sysdeps/hppa/nptl/pthread_spin_lock.c: Likewise
274         * sysdeps/hppa/nptl/pthread_spin_trylock.c: Likewise
275         * sysdeps/hppa/nptl/pthread_spin_unlock.c: Likewise
276         * sysdeps/hppa/nptl/pthreaddef.h: Likewise
277         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise
278         * sysdeps/hppa/nptl/tls.h: Likewise
279         * sysdeps/unix/sysv/linux/hppa/nptl/bits: Likewise
280         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: Likewise
281         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: Likewise
282         * sysdeps/unix/sysv/linux/hppa/nptl/internaltypes.h: Likewise
283         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: Likewise
284         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Likewise
285         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise
286         * sysdeps/unix/sysv/linux/hppa/nptl/pt-initfini.c: Likewise
287         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Likewise
288         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_once.c: Likewise
289         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise
290         * sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c: Likewise
291         * sysdeps/unix/sysv/linux/hppa/nptl/unwind-resume.c: Likewise
293 2006-06-08  Carlos O'Donell  <carlos@systemhalted.org>
295         * sysdeps/unix/sysv/linux/hppa/Versions: new errlist compat entry 
296         for up to 256 errnos
298 2006-06-08  Carlos O'Donell  <carlos@systemhalted.org>
300         * sysdeps/hppa/hppa1.1/Implies: Remove ieee754/ldbl-128. 
301         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
302         [__LINUX_KERNEL_VERSION >= 0x020609]: Define __ASSUME_LWS_CAS.
303         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: New file.
305 2006-06-08  Carlos O'Donell  <carlos@systemhalted.org>
307         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Reformat
308         (SPLICE_F_MOVE, SPLICE_F_NONBLOCK, SPLICE_F_MORE, SPLICE_F_GIFT):
309         Define.
311 2006-05-24  Carlos O'Donell  <carlos@systemhalted.org>
313         * sysdeps/unix/sysv/linux/hppa/clone.S: .LerrorRest
314         is a label.
316 2006-05-24  Carlos O'Donell  <carlos@systemhalted.org>
318         * sysdeps/hppa/ldsodefs.h: New file.
319         * sysdeps/unix/sysv/linux/hppa/bits/mman.h:
320         Only define MADV_* macros when __USE_BSD is present.
321         (MADV_REMOVE, MADV_DONTFORK, MADV_DOFORK): Define.
323 2006-05-15  Carlos O'Donell  <carlos@systemhalted.org>
325         * sysdeps/unix/sysv/linux/hppa/clone.S: Accept extra arguments
326         required for NPTL.
327         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Use var args for 6 arg
328         syscall.
329         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Move DOARGS and UNDOARGS
330         into PSEUDO_*'s.
331         (ENTRY_LEAF): Define.
332         (PSEUDO_NOERRNO, PSEUDO_ERRVAL): Use ENTRY_LEAF.
333         (DO_CALL): Create frame.
335 2006-05-15  Carlos O'Donell  <carlos@systemhalted.org>
337         * sysdeps/hppa/dl-machine.h: Include tls.h
338         (elf_machine_fixup_plt): Returns fdesc.
339         (elf_machine_profile_fixup_plt): Remove.
340         (elf_machine_plt_value): Returns fdesc.
341         (elf_machine_runtime_setup): Check that dl_profile != NULL.
342         (ARCH_LA_PLTENT, ARCH_LA_PLTEXIT): Define.
343         (RTLD_START): Use iitlbp with sr0.
344         (elf_machine_type_class): Include TLS relocs.
345         (reassemble_21, reassemble_14): Define.
346         (elf_machine_rela): Add DIR21L, DIR14R, PLABEL21L, PLABEL14R,
347         TLS_DTPMOD32, TLS_TPREL32, TLS_DTPOFF32 support.
348         (TRAMPOLINE_TEMPLATE): Move to ...
349         * sysdeps/hppa/dl-trampoline.S: ... here.
350         * sysdeps/hppa/abort-instr.h: Use iitlbp with sr0.
351         * sysdeps/hppa/dl-lookupcfg.h: Inlcude dl-fptr.h.
352         (DL_FIXUP_VALUE_TYPE, DL_FIXUP_MAKE_VALUE, DL_FIXUP_VALUE_CODE_ADDR,
353         DL_FIXUP_VALUE_ADD, DL_FIXUP_ADDR_VALUE): Define.
354         * sysdeps/hppa/sysdep.h: Use "!" as a separator. Cleanup comments.
355         * sysdeps/hppa/bits/link.h (La_hppa_regs, La_hppa_retval): Define.
356         Define prototypes for la_hppa_gnu_pltenter and la_hppa_gnu_pltexit.
358 2006-04-27  Carlos O'Donell  <carlos@systemhalted.org>
360         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Include uio.h, and
361         define vmsplice.
363 2006-04-21  Carlos O'Donell  <carlos@systemhalted.org>
365         * sysdeps/hppa/dl-tls.h: New file
366         * sysdeps/hppa/libc-tls.c: Likewise.
367         * sysdeps/hppa/tls-macros.h: Likewise.
368         * sysdeps/hppa/elf/configure: Likewise.
369         * sysdeps/hppa/elf/configure.in: Likewise.
371 2006-04-20  Carlos O'Donell  <carlos@systemhalted.org>
373         * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Use union to
374         align parameters. Specify memory clobbers.
375         * sysdeps/hppa/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
376         * sysdeps/hppa/fpu/feenablxcpt.c (feenableexcept): Likewise.
377         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Do not save exception
378         register. Use memcpy to align buffer.
379         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Store and reload
380         fr0. Use union to align parameters.
381         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
382         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Do not save
383         exception registers. Define libm_hidden_def.
384         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Do not save exception
385         registers.
386         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use union to
387         align parameters, speficy memory clobbers. Define libm_hidde_def
388         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Use union to align
389         parameters. Use memcpy to align buffer.
390         * sysdeps/hppa/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
391         * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
392         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
393         * sysdeps/hppa/fpu/libm-test-ulps: Update.
394         * sysdeps/hppa/fpu/bits/fenv.h: Add ABI comments.
396 2006-04-19  Carlos O'Donell  <carlos@systemhalted.org>
398         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]: 
399         Define MMAP_FIXED.
400         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_GNU]: 
401         Define SYNC_FILE_RANGE_WAIT_BEFORE, SYNC_FILE_RANGE_WRITE,
402         SYNC_FILE_RANGE_WAIT_AFTER, sync_file_range, splice, tee.
404 2006-04-19  Carlos O'Donell  <carlos@systemhalted.org>
406         * sysdeps/unix/sysv/linux/hppa/kernel-features.h: New file.
408 2006-04-19  Carlos O'Donell  <carlos@systemhalted.org>
410         * sysdeps/hppa/linuxthreads/pspinlock.c: New file.
411         * sysdeps/hppa/linuxthreads/pt-machine.h: Likewise.
412         * sysdeps/hppa/linuxthreads/tls.h: Likewise.
413         * sysdeps/unix/sysv/linux/hppa/linuxthreads/aio_cancel.c: Likewise.
414         * sysdeps/unix/sysv/linux/hppa/linuxthreads/malloc-machine.h:
415         Likewise.
416         * sysdeps/unix/sysv/linux/hppa/linuxthreads/pt-initfini.c: Likewise.
417         * sysdeps/unix/sysv/linux/hppa/linuxthreads/sysdep-cancel.h: Likewise.
418         * sysdeps/unix/sysv/linux/hppa/linuxthreads/bits/initspin.h: Likewise.
419         * sysdeps/unix/sysv/linux/hppa/linuxthreads/bits/pthreadtypes.h:
420         Likewise.
422 2006-02-28  Roland McGrath  <roland@redhat.com>
424         * sysdeps/hppa/shlib-versions: New file.
425         * sysdeps/hppa/preconfigure: New file.