[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commits] r15510 - in /fsf/trunk/ports: ./ sysdeps/hppa/ sysdeps/hppa/elf/ sysdeps/hppa/fpu/ sysdeps/hppa/linuxthreads/ sysdeps/hppa/n...
- To: commits@xxxxxxxxxx
- Subject: [Commits] r15510 - in /fsf/trunk/ports: ./ sysdeps/hppa/ sysdeps/hppa/elf/ sysdeps/hppa/fpu/ sysdeps/hppa/linuxthreads/ sysdeps/hppa/n...
- From: eglibc@xxxxxxxxxx
- Date: Sun, 23 Oct 2011 17:50:13 -0000
Author: eglibc
Date: Sun Oct 23 17:50:13 2011
New Revision: 15510
Log:
Import glibc-ports-mainline for 2011-10-23
Added:
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/epoll.h
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/inotify.h
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/signalfd.h
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/timerfd.h
Removed:
fsf/trunk/ports/sysdeps/hppa/linuxthreads/
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccos.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccosf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccosl.c
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/linuxthreads/
Modified:
fsf/trunk/ports/ChangeLog.hppa
fsf/trunk/ports/ChangeLog.m68k
fsf/trunk/ports/ChangeLog.mips
fsf/trunk/ports/sysdeps/hppa/configure
fsf/trunk/ports/sysdeps/hppa/dl-tls.h
fsf/trunk/ports/sysdeps/hppa/elf/configure
fsf/trunk/ports/sysdeps/hppa/elf/configure.in
fsf/trunk/ports/sysdeps/hppa/fpu/fegetenv.c
fsf/trunk/ports/sysdeps/hppa/fpu/feupdateenv.c
fsf/trunk/ports/sysdeps/hppa/fpu/ftestexcept.c
fsf/trunk/ports/sysdeps/hppa/nptl/tls.h
fsf/trunk/ports/sysdeps/hppa/stackinfo.h
fsf/trunk/ports/sysdeps/m68k/coldfire/fpu/e_sqrt.c
fsf/trunk/ports/sysdeps/m68k/coldfire/fpu/e_sqrtf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acos.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acosf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acosl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asin.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asinf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asinl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atan2.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanh.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanhf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanhl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_cosh.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_coshf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_coshl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10f.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10l.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2f.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2l.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_expf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_expl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmod.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmodf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmodl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10f.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10l.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2f.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2l.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_logf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_logl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_pow.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainder.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainderf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainderl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_scalb.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinh.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinhf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinhl.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrt.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrtf.c
fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrtl.c
fsf/trunk/ports/sysdeps/mips/fpu/e_sqrt.c
fsf/trunk/ports/sysdeps/mips/fpu/e_sqrtf.c
fsf/trunk/ports/sysdeps/mips/mips64/soft-fp/e_sqrtl.c
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h
fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/procfs.h
Modified: fsf/trunk/ports/ChangeLog.hppa
==============================================================================
--- fsf/trunk/ports/ChangeLog.hppa (original)
+++ fsf/trunk/ports/ChangeLog.hppa Sun Oct 23 17:50:13 2011
@@ -1,3 +1,85 @@
+2011-10-21 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Update copyright year.
+ Do not include signal.h and sys/ucontext.h.
+
+2011-10-20 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Update copyright
+ year.
+ (PSEUDO): Define __*_nocancel version. Add CFI directives to __*_nocancel
+ and normal version.
+ (PUSHARGS_1): Add CFI directive.
+ (PUSHARGS_2): Likewise.
+ (PUSHARGS_3): Likewise.
+ (PUSHARGS_4): Likewise.
+ (PUSHARGS_5): Likewise.
+ (PUSHARGS_6): Likewise.
+ (POPARGS_1): Likewise.
+ (POPARGS_2): Likewise.
+ (POPARGS_3): Likewise.
+ (POPARGS_4): Likewise.
+ (POPARGS_5): Likewise.
+ (POPARGS_6): Likewise.
+
+2011-10-20 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/hppa/linuxthreads/aio_cancel.c: Remove.
+ * sysdeps/unix/sysv/linux/hppa/linuxthreads/bits/initspin.h: Remove.
+ * sysdeps/unix/sysv/linux/hppa/linuxthreads/bits/pthreadtypes.h: Remove.
+ * sysdeps/unix/sysv/linux/hppa/linuxthreads/malloc-machine.h: Remove.
+ * sysdeps/unix/sysv/linux/hppa/linuxthreads/pt-initfini.c: Remove.
+ * sysdeps/unix/sysv/linux/hppa/linuxthreads/sysdep-cancel.h: Remove.
+ * sysdeps/hppa/linuxthreads/pspinlock.c: Remove.
+ * sysdeps/hppa/linuxthreads/pt-machine.h: Remove.
+ * sysdeps/hppa/linuxthreads/tls.h: Remove.
+
+2011-10-20 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/hppa/stackinfo.h: Update copyright year.
+ Include elf.h and define DEFAULT_STACK_PERMS.
+
+2011-10-20 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Synchronize
+ with canonical fcntl.h.
+
+2011-10-20 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/hppa/fpu/fegetenv.c: Add hidden alias.
+ * sysdeps/hppa/fpu/feupdateenv.c: Likewise.
+ * sysdeps/hppa/fpu/ftestexcept.c: Likewise.
+
+2011-10-20 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/hppa/dl-tls.h: Update copyright year.
+ Define TLS_DTV_UNALLOCATED.
+
+2011-10-20 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/hppa/elf/configure.in: Always test for TLS support
+ and error out if missing.
+ * sysdeps/hppa/elf/configure: Regenerate.
+ * sysdeps/hppa/configure: Regenerate.
+
+2011-10-20 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/hppa/nptl/tls.h: Update copyright year.
+ Remove HAVE_TLS_SUPPORT check.
+
+2011-10-17 Guy Martin <gmsoft@xxxxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/hppa/sys/epoll.h
+ Fix EPOLL_CLOEXEC and EPOLL_NONBLOCK to match kernel definition.
+ * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
+ Fix EFD_CLOEXEC and EFD_NONBLOCK to match kernel definition.
+ * sysdeps/unix/sysv/linux/hppa/sys/inotify.h
+ Fix IN_CLOEXEC and IN_NONBLOCK to match kernel definition.
+ * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h
+ Fix SFD_CLOEXEC and SFD_NONBLOCK to match kernel definition.
+ * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h
+ Fix TFD_CLOEXEC and TFD_NONBLOCK to match kernel definition.
+
2011-10-05 Andreas Schwab <schwab@xxxxxxxxxx>
* sysdeps/hppa/dl-machine.h (elf_machine_rela)
Modified: fsf/trunk/ports/ChangeLog.m68k
==============================================================================
--- fsf/trunk/ports/ChangeLog.m68k (original)
+++ fsf/trunk/ports/ChangeLog.m68k Sun Oct 23 17:50:13 2011
@@ -1,3 +1,63 @@
+2011-10-23 Andreas Schwab <schwab@xxxxxxxxxxxxxx>
+
+ * sysdeps/m68k/coldfire/fpu/e_sqrt.c: Add __sqrt_finite alias.
+ * sysdeps/m68k/coldfire/fpu/e_sqrtf.c: Add __sqrtf_finite alias.
+
+ * sysdeps/m68k/m680x0/fpu/e_exp.c (FUNC_FINITE): Define.
+ * sysdeps/m68k/m680x0/fpu/e_expf.c (FUNC_FINITE): Define.
+ * sysdeps/m68k/m680x0/fpu/e_expl.c (FUNC_FINITE): Define.
+
+2011-10-22 Andreas Schwab <schwab@xxxxxxxxxxxxxx>
+
+ * sysdeps/m68k/m680x0/fpu/s_ccos.c: Remove.
+ * sysdeps/m68k/m680x0/fpu/s_ccosf.c: Remove.
+ * sysdeps/m68k/m680x0/fpu/s_ccosl.c: Remove.
+
+2011-10-13 Andreas Schwab <schwab@xxxxxxxxxxxxxx>
+
+ * sysdeps/m68k/m680x0/fpu/e_acos.c: Add __*_finite alias.
+ * sysdeps/m68k/m680x0/fpu/e_acosf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_acosl.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_asin.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_asinl.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_asinf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_atan2.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_atanh.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_atanhf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_atanhl.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_cosh.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_coshf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_coshl.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_exp10.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_exp10f.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_exp10l.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_exp2.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_exp2l.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_exp2f.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_fmod.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_fmodf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_fmodl.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_log.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_logl.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_logf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_log10.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_log10f.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_log10l.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_log2.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_log2f.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_log2l.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_pow.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_remainder.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_remainderl.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_remainderf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_scalb.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_sinh.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_sinhf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_sinhl.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_sqrt.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_sqrtf.c: Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_sqrtl.c: Likewise.
+
2011-10-09 Andreas Schwab <schwab@xxxxxxxxxxxxxx>
* sysdeps/m68k/m680x0/s_isinfl.c: Remove.
Modified: fsf/trunk/ports/ChangeLog.mips
==============================================================================
--- fsf/trunk/ports/ChangeLog.mips (original)
+++ fsf/trunk/ports/ChangeLog.mips Sun Oct 23 17:50:13 2011
@@ -1,3 +1,9 @@
+2011-10-12 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ * sysdeps/mips/fpu/e_sqrt.c: Add __sqrt_finite alias.
+ * sysdeps/mips/fpu/e_sqrtf.c: Add __sqrtf_finite alias.
+ * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Add __sqrtl_finite alias.
+
2011-10-05 Andreas Schwab <schwab@xxxxxxxxxx>
* sysdeps/mips/dl-machine.h (elf_machine_rel, elf_machine_rela)
Modified: fsf/trunk/ports/sysdeps/hppa/configure
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/configure (original)
+++ fsf/trunk/ports/sysdeps/hppa/configure Sun Oct 23 17:50:13 2011
@@ -1,19 +1,101 @@
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
-{ echo "$as_me:$LINENO: checking for assembler line separator" >&5
-echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6; }
-if test "${libc_cv_asm_line_sep+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler line separator" >&5
+$as_echo_n "checking for assembler line separator... " >&6; }
+if test "${libc_cv_asm_line_sep+set}" = set; then :
+ $as_echo_n "(cached) " >&6
else
cat > conftest.s <<EOF
nop ; is_old_puffin
EOF
if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
libc_cv_asm_line_sep='!'
else
if test -z "$enable_hacker_mode"; then
@@ -25,8 +107,8 @@
fi
rm -f conftest*
fi
-{ echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
-echo "${ECHO_T}$libc_cv_asm_line_sep" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_line_sep" >&5
+$as_echo "$libc_cv_asm_line_sep" >&6; }
cat >>confdefs.h <<_ACEOF
#define ASM_LINE_SEP $libc_cv_asm_line_sep
_ACEOF
Modified: fsf/trunk/ports/sysdeps/hppa/dl-tls.h
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/dl-tls.h (original)
+++ fsf/trunk/ports/sysdeps/hppa/dl-tls.h Sun Oct 23 17:50:13 2011
@@ -1,5 +1,5 @@
/* Thread-local storage handling in the ELF dynamic linker. hppa version.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -27,3 +27,6 @@
extern void *__tls_get_addr (tls_index *ti);
+
+/* Value used for dtv entries for which the allocation is delayed. */
+#define TLS_DTV_UNALLOCATED ((void *) -1l)
Modified: fsf/trunk/ports/sysdeps/hppa/elf/configure
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/elf/configure (original)
+++ fsf/trunk/ports/sysdeps/hppa/elf/configure Sun Oct 23 17:50:13 2011
@@ -1,13 +1,94 @@
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/hppa/elf.
-if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and
# linker.
-{ echo "$as_me:$LINENO: checking for hppa TLS support" >&5
-echo $ECHO_N "checking for hppa TLS support... $ECHO_C" >&6; }
-if test "${libc_cv_hppa_tls+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hppa TLS support" >&5
+$as_echo_n "checking for hppa TLS support... " >&6; }
+if test "${libc_cv_hppa_tls+set}" = set; then :
+ $as_echo_n "(cached) " >&6
else
cat > conftest.s <<\EOF
; Setup tls data
@@ -41,23 +122,19 @@
; Done all the TLS tests.
EOF
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
libc_cv_hppa_tls=yes
else
libc_cv_hppa_tls=no
fi
rm -f conftest*
fi
-{ echo "$as_me:$LINENO: result: $libc_cv_hppa_tls" >&5
-echo "${ECHO_T}$libc_cv_hppa_tls" >&6; }
-if test $libc_cv_hppa_tls = yes; then
- cat >>confdefs.h <<\_ACEOF
-#define HAVE_TLS_SUPPORT 1
-_ACEOF
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hppa_tls" >&5
+$as_echo "$libc_cv_hppa_tls" >&6; }
+if test $libc_cv_hppa_tls = no; then
+ as_fn_error $? "the assembler must support TLS" "$LINENO" 5
fi
-fi
Modified: fsf/trunk/ports/sysdeps/hppa/elf/configure.in
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/elf/configure.in (original)
+++ fsf/trunk/ports/sysdeps/hppa/elf/configure.in Sun Oct 23 17:50:13 2011
@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/hppa/elf.
-if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and
# linker.
AC_CACHE_CHECK(for hppa TLS support, libc_cv_hppa_tls, [dnl
@@ -43,7 +42,6 @@
libc_cv_hppa_tls=no
fi
rm -f conftest*])
-if test $libc_cv_hppa_tls = yes; then
- AC_DEFINE(HAVE_TLS_SUPPORT)
+if test $libc_cv_hppa_tls = no; then
+ AC_MSG_ERROR([the assembler must support TLS])
fi
-fi
Modified: fsf/trunk/ports/sysdeps/hppa/fpu/fegetenv.c
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/fpu/fegetenv.c (original)
+++ fsf/trunk/ports/sysdeps/hppa/fpu/fegetenv.c Sun Oct 23 17:50:13 2011
@@ -1,5 +1,5 @@
/* Store current floating-point environment.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Huggins-Daines <dhd@xxxxxxxxxx>, 2000
@@ -33,3 +33,4 @@
memcpy(envp, buf, sizeof (*envp));
return 0;
}
+libm_hidden_def (fegetenv)
Modified: fsf/trunk/ports/sysdeps/hppa/fpu/feupdateenv.c
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/fpu/feupdateenv.c (original)
+++ fsf/trunk/ports/sysdeps/hppa/fpu/feupdateenv.c Sun Oct 23 17:50:13 2011
@@ -1,5 +1,5 @@
/* Install given floating-point environment and raise exceptions.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Huggins-Daines <dhd@xxxxxxxxxx>, 2000
@@ -38,3 +38,4 @@
/* Success. */
return 0;
}
+libm_hidden_def (feupdateenv)
Modified: fsf/trunk/ports/sysdeps/hppa/fpu/ftestexcept.c
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/fpu/ftestexcept.c (original)
+++ fsf/trunk/ports/sysdeps/hppa/fpu/ftestexcept.c Sun Oct 23 17:50:13 2011
@@ -1,5 +1,5 @@
/* Test exception in current environment.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Huggins-Daines <dhd@xxxxxxxxxx>, 2000
@@ -32,3 +32,4 @@
return (s.sw[0] >> 27) & excepts & FE_ALL_EXCEPT;
}
+libm_hidden_def (fetestexcept)
Modified: fsf/trunk/ports/sysdeps/hppa/nptl/tls.h
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/nptl/tls.h (original)
+++ fsf/trunk/ports/sysdeps/hppa/nptl/tls.h Sun Oct 23 17:50:13 2011
@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. NPTL/hppa version.
- Copyright (C) 2005, 2007, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007, 2010, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -41,12 +41,6 @@
#else /* __ASSEMBLER__ */
# include <tcb-offsets.h>
#endif /* __ASSEMBLER__ */
-
-
-/* We require TLS support in the tools. */
-#ifndef HAVE_TLS_SUPPORT
-# error "TLS support is required."
-#endif
/* Signal that TLS support is available. */
#define USE_TLS 1
Modified: fsf/trunk/ports/sysdeps/hppa/stackinfo.h
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/stackinfo.h (original)
+++ fsf/trunk/ports/sysdeps/hppa/stackinfo.h Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,6 +22,12 @@
#ifndef _STACKINFO_H
#define _STACKINFO_H 1
+#include <elf.h>
+
+/* Default to an executable stack. PF_X can be overridden if PT_GNU_STACK is
+ * present, but it is presumed absent. */
+#define DEFAULT_STACK_PERMS (PF_R|PF_W|PF_X)
+
/* On PA the stack grows up. */
#define _STACK_GROWS_UP 1
Modified: fsf/trunk/ports/sysdeps/m68k/coldfire/fpu/e_sqrt.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/coldfire/fpu/e_sqrt.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/coldfire/fpu/e_sqrt.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2006, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,3 +22,4 @@
asm ("fdsqrt.d %1,%0" : "=f" (x) : "fm" (x));
return x;
}
+strong_alias (__ieee754_sqrt, __sqrt_finite)
Modified: fsf/trunk/ports/sysdeps/m68k/coldfire/fpu/e_sqrtf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/coldfire/fpu/e_sqrtf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/coldfire/fpu/e_sqrtf.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2006, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -23,3 +23,4 @@
asm ("fssqrt.s %1,%0" : "=f" (result) : "dm" (x));
return result;
}
+strong_alias (__ieee754_sqrtf, __sqrtf_finite)
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acos.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acos.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acos.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,10 +21,11 @@
#include "mathimpl.h"
#ifndef FUNC
-#define FUNC __ieee754_acos
+# define FUNC __ieee754_acos
+# define FUNC_FINITE __acos_finite
#endif
#ifndef float_type
-#define float_type double
+# define float_type double
#endif
float_type
@@ -33,3 +34,6 @@
{
return __m81_u(FUNC)(x);
}
+#ifdef FUNC_FINITE
+strong_alias (FUNC, FUNC_FINITE)
+#endif
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acosf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acosf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acosf.c Sun Oct 23 17:50:13 2011
@@ -1,5 +1,6 @@
#ifndef FUNC
-#define FUNC __ieee754_acosf
+# define FUNC __ieee754_acosf
+# define FUNC_FINITE __acosf_finite
#endif
#define float_type float
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acosl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acosl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_acosl.c Sun Oct 23 17:50:13 2011
@@ -1,5 +1,6 @@
#ifndef FUNC
-#define FUNC __ieee754_acosl
+# define FUNC __ieee754_acosl
+# define FUNC_FINITE __acosl_finite
#endif
#define float_type long double
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asin.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asin.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asin.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_asin
+#define FUNC_FINITE __asin_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asinf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asinf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asinf.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_asinf
+#define FUNC __ieee754_asinf
+#define FUNC_FINITE __asinf_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asinl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asinl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_asinl.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_asinl
+#define FUNC_FINITE __asinl_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atan2.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atan2.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atan2.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -102,3 +102,4 @@
}
return z;
}
+strong_alias (s(__ieee754_atan2), CONCATX (s (__atan2), _finite))
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanh.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanh.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanh.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_atanh
+#define FUNC __ieee754_atanh
+#define FUNC_FINITE __atanh_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanhf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanhf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanhf.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_atanhf
+#define FUNC __ieee754_atanhf
+#define FUNC_FINITE __atanhf_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanhl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanhl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_atanhl.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_atanhl
+#define FUNC_FINITE __atanhl_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_cosh.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_cosh.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_cosh.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_cosh
+#define FUNC __ieee754_cosh
+#define FUNC_FINITE __cosh_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_coshf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_coshf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_coshf.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_coshf
+#define FUNC __ieee754_coshf
+#define FUNC_FINITE __coshf_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_coshl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_coshl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_coshl.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_coshl
+#define FUNC_FINITE __coshl_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_exp
+#define FUNC __ieee754_exp
+#define FUNC_FINITE __exp_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_exp10
+#define FUNC_FINITE __exp10_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10f.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10f.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10f.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_exp10f
+#define FUNC_FINITE __exp10f_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10l.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10l.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp10l.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_exp10l
+#define FUNC_FINITE __exp10l_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_exp2
+#define FUNC_FINITE __exp2_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2f.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2f.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2f.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_exp2f
+#define FUNC_FINITE __exp2f_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2l.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2l.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_exp2l.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_exp2l
+#define FUNC_FINITE __exp2l_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_expf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_expf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_expf.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_expf
+#define FUNC __ieee754_expf
+#define FUNC_FINITE __expf_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_expl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_expl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_expl.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_expl
+#define FUNC_FINITE __expl_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmod.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmod.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmod.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,10 +21,11 @@
#include "mathimpl.h"
#ifndef FUNC
-#define FUNC __ieee754_fmod
+# define FUNC __ieee754_fmod
+# define FUNC_FINITE __fmod_finite
#endif
#ifndef float_type
-#define float_type double
+# define float_type double
#endif
float_type
@@ -34,3 +35,6 @@
{
return __m81_u(FUNC)(x, y);
}
+#ifdef FUNC_FINITE
+strong_alias (FUNC, FUNC_FINITE)
+#endif
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmodf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmodf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmodf.c Sun Oct 23 17:50:13 2011
@@ -1,5 +1,6 @@
#ifndef FUNC
-#define FUNC __ieee754_fmodf
+# define FUNC __ieee754_fmodf
+# define FUNC_FINITE __fmodf_finite
#endif
#define float_type float
#include <e_fmod.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmodl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmodl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_fmodl.c Sun Oct 23 17:50:13 2011
@@ -1,5 +1,6 @@
#ifndef FUNC
-#define FUNC __ieee754_fmodl
+# define FUNC __ieee754_fmodl
+# define FUNC_FINITE __fmodl_finite
#endif
#define float_type long double
#include <e_fmod.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_log
+#define FUNC __ieee754_log
+#define FUNC_FINITE __log_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_log10
+#define FUNC __ieee754_log10
+#define FUNC_FINITE __log10_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10f.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10f.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10f.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_log10f
+#define FUNC __ieee754_log10f
+#define FUNC_FINITE __log10f_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10l.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10l.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log10l.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_log10l
+#define FUNC_FINITE __log10l_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_log2
+#define FUNC __ieee754_log2
+#define FUNC_FINITE __log2_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2f.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2f.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2f.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_log2f
+#define FUNC __ieee754_log2f
+#define FUNC_FINITE __log2f_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2l.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2l.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_log2l.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_log2l
+#define FUNC __ieee754_log2l
+#define FUNC_FINITE __log2l_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_logf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_logf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_logf.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_logf
+#define FUNC __ieee754_logf
+#define FUNC_FINITE __logf_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_logl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_logl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_logl.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_logl
+#define FUNC_FINITE __logl_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_pow.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_pow.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_pow.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -124,3 +124,4 @@
z = m81(__ieee754_exp) (y * m81(__ieee754_log) (x));
return z;
}
+strong_alias (s(__ieee754_pow), CONCATX (s(__pow), _finite))
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainder.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainder.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainder.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_remainder
+#define FUNC_FINITE __remainder_finite
#include <e_fmod.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainderf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainderf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainderf.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_remainderf
+#define FUNC_FINITE __remainderf_finite
#include <e_fmodf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainderl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainderl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_remainderl.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_remainderl
+#define FUNC_FINITE __remainderl_finite
#include <e_fmodl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_scalb.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_scalb.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_scalb.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Schwab <schwab@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>.
@@ -58,3 +58,4 @@
__asm ("fscale%.x %1, %0" : "=f" (retval) : "f" (fn), "0" (x));
return retval;
}
+strong_alias (s(__ieee754_scalb), CONCATX (s(__scalb), _finite))
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinh.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinh.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinh.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_sinh
+#define FUNC __ieee754_sinh
+#define FUNC_FINITE __sinh_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinhf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinhf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinhf.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_sinhf
+#define FUNC __ieee754_sinhf
+#define FUNC_FINITE __sinhf_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinhl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinhl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sinhl.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_sinhl
+#define FUNC_FINITE __sinhl_finite
#include <e_acosl.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrt.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrt.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrt.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_sqrt
+#define FUNC __ieee754_sqrt
+#define FUNC_FINITE __sqrt_finite
#include <e_acos.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrtf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrtf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrtf.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
-#define FUNC __ieee754_sqrtf
+#define FUNC __ieee754_sqrtf
+#define FUNC_FINITE __sqrtf_finite
#include <e_acosf.c>
Modified: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrtl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrtl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/e_sqrtl.c Sun Oct 23 17:50:13 2011
@@ -1,2 +1,3 @@
#define FUNC __ieee754_sqrtl
+#define FUNC_FINITE __sqrtl_finite
#include <e_acosl.c>
Removed: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccos.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccos.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccos.c (removed)
@@ -1,73 +1,0 @@
-/* Complex cosine function. m68k fpu version
- Copyright (C) 1997, 1999, 2010 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Andreas Schwab <schwab@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307 USA. */
-
-#include <complex.h>
-#include <math.h>
-#include "mathimpl.h"
-
-#ifndef SUFF
-#define SUFF
-#endif
-#ifndef float_type
-#define float_type double
-#endif
-
-#define CONCATX(a,b) __CONCAT(a,b)
-#define s(name) CONCATX(name,SUFF)
-#define m81(func) __m81_u(s(func))
-
-__complex__ float_type
-s(__ccos) (__complex__ float_type x)
-{
- __complex__ float_type retval;
- unsigned long rx_cond = __m81_test (__real__ x);
-
- if ((rx_cond & (__M81_COND_INF|__M81_COND_NAN)) == 0)
- {
- /* Real part is finite. */
- float_type sin_rx, cos_rx;
-
- __asm ("fsincos%.x %2,%1:%0" : "=f" (sin_rx), "=f" (cos_rx)
- : "f" (__real__ x));
- __real__ retval = cos_rx * m81(__ieee754_cosh) (__imag__ x);
- if (rx_cond & __M81_COND_ZERO)
- __imag__ retval = (signbit (__imag__ x)
- ? __real__ x : -__real__ x);
- else
- __imag__ retval = -sin_rx * m81(__ieee754_sinh) (__imag__ x);
- }
- else
- {
- unsigned long ix_cond = __m81_test (__imag__ x);
-
- if (ix_cond & __M81_COND_INF)
- __real__ retval = s(fabs) (__imag__ x);
- else
- __real__ retval = __real__ x - __real__ x;
- if (ix_cond & __M81_COND_ZERO)
- __imag__ retval = __imag__ x;
- else
- __imag__ retval = __real__ x - __real__ x;
- }
-
- return retval;
-}
-#define weak_aliasx(a,b) weak_alias(a,b)
-weak_aliasx (s(__ccos), s(ccos))
Removed: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccosf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccosf.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccosf.c (removed)
@@ -1,3 +1,0 @@
-#define SUFF f
-#define float_type float
-#include <s_ccos.c>
Removed: fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccosl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccosl.c (original)
+++ fsf/trunk/ports/sysdeps/m68k/m680x0/fpu/s_ccosl.c (removed)
@@ -1,3 +1,0 @@
-#define SUFF l
-#define float_type long double
-#include <s_ccos.c>
Modified: fsf/trunk/ports/sysdeps/mips/fpu/e_sqrt.c
==============================================================================
--- fsf/trunk/ports/sysdeps/mips/fpu/e_sqrt.c (original)
+++ fsf/trunk/ports/sysdeps/mips/fpu/e_sqrt.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Hartvig Ekner <hartvige@xxxxxxxx>, 2002.
@@ -30,6 +30,7 @@
__asm__ ("sqrt.d %0,%1" : "=f" (z) : "f" (x));
return z;
}
+strong_alias (__ieee754_sqrt, __sqrt_finite)
#else
Modified: fsf/trunk/ports/sysdeps/mips/fpu/e_sqrtf.c
==============================================================================
--- fsf/trunk/ports/sysdeps/mips/fpu/e_sqrtf.c (original)
+++ fsf/trunk/ports/sysdeps/mips/fpu/e_sqrtf.c Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Hartvig Ekner <hartvige@xxxxxxxx>, 2002.
@@ -30,6 +30,7 @@
__asm__ ("sqrt.s %0,%1" : "=f" (z) : "f" (x));
return z;
}
+strong_alias (__ieee754_sqrtf, __sqrtf_finite)
#else
Modified: fsf/trunk/ports/sysdeps/mips/mips64/soft-fp/e_sqrtl.c
==============================================================================
--- fsf/trunk/ports/sysdeps/mips/mips64/soft-fp/e_sqrtl.c (original)
+++ fsf/trunk/ports/sysdeps/mips/mips64/soft-fp/e_sqrtl.c Sun Oct 23 17:50:13 2011
@@ -1,5 +1,5 @@
/* long double square root in software floating-point emulation.
- Copyright (C) 1997, 1999, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999, 2006, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@xxxxxxxxxx) and
Jakub Jelinek (jj@xxxxxxxxxxxxxx).
@@ -37,3 +37,4 @@
FP_HANDLE_EXCEPTIONS;
return c;
}
+strong_alias (__ieee754_sqrtl, __sqrtl_finite)
Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h Sun Oct 23 17:50:13 2011
@@ -1,5 +1,5 @@
-/* O_*, F_*, FD_* bit values for Linux/HPPA.
- Copyright (C) 1995,1996,1997,1998,1999,2000,2002,2004
+/* O_*, F_*, FD_* bit values for Linux.
+ Copyright (C) 1995-1999, 2000, 2002, 2004, 2010, 2011
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -29,7 +29,7 @@
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
- located on an ext2 file system */
+ located on a few file systems. */
#define O_ACCMODE 0003
#define O_RDONLY 00
#define O_WRONLY 01
@@ -46,12 +46,14 @@
#define O_ASYNC 020000
#define O_BLKSEEK 00000100 /* HPUX only */
-#ifdef __USE_GNU
-# define O_DIRECT 000040000 /* Direct disk access. */
+#ifdef __USE_XOPEN2K8
# define O_DIRECTORY 000010000 /* Must be a directory. */
# define O_NOFOLLOW 000000200 /* Do not follow links. */
+# define O_CLOEXEC 010000000 /* Set close_on_exec. */
+#endif
+#ifdef __USE_GNU
+# define O_DIRECT 040000 /* Direct disk access. */
# define O_NOATIME 004000000 /* Do not set atime. */
-# define O_CLOEXEC 010000000 /* Set close_on_exec. */
#endif
/* For now Linux has synchronisity options for data and read operations.
@@ -85,7 +87,7 @@
#define F_SETLK64 9 /* Set record locking info (non-blocking). */
#define F_SETLKW64 10 /* Set record locking info (blocking). */
-#if defined __USE_BSD || defined __USE_UNIX98
+#if defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K8
# define F_GETOWN 11 /* Get owner of socket (receiver of SIGIO). */
# define F_SETOWN 12 /* Set owner of socket (receiver of SIGIO). */
#endif
@@ -101,6 +103,10 @@
# define F_SETLEASE 1024 /* Set a lease. */
# define F_GETLEASE 1025 /* Enquire what lease is active. */
# define F_NOTIFY 1026 /* Request notfications on a directory. */
+# define F_SETPIPE_SZ 1031 /* Set pipe page size array. */
+# define F_GETPIPE_SZ 1032 /* Set pipe page size array. */
+#endif
+#ifdef __USE_XOPEN2K8
# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with
close-on-exit set. */
#endif
@@ -227,6 +233,19 @@
we splice from/to). */
# define SPLICE_F_MORE 4 /* Expect more data. */
# define SPLICE_F_GIFT 8 /* Pages passed in are a gift. */
+
+
+/* File handle structure. */
+struct file_handle
+{
+ unsigned int handle_bytes;
+ int handle_type;
+ /* File identifier. */
+ unsigned char f_handle[0];
+};
+
+/* Maximum handle size (for now). */
+# define MAX_HANDLE_SZ 128
#endif
__BEGIN_DECLS
@@ -243,20 +262,32 @@
unsigned int __flags);
-/* Splice address range into a pipe. */
+/* Splice address range into a pipe.
+
+ This function is a possible cancellation point and therefore not
+ marked with __THROW. */
extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
size_t __count, unsigned int __flags);
-/* Splice two files together. */
+/* Splice two files together.
+
+ This function is a possible cancellation point and therefore not
+ marked with __THROW. */
extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
__off64_t *__offout, size_t __len,
unsigned int __flags);
-/* In-kernel implementation of tee for pipe buffers. */
+/* In-kernel implementation of tee for pipe buffers.
+
+ This function is a possible cancellation point and therefore not
+ marked with __THROW. */
extern ssize_t tee (int __fdin, int __fdout, size_t __len,
unsigned int __flags);
-/* Reserve storage for the data of the file associated with FD. */
+/* Reserve storage for the data of the file associated with FD.
+
+ This function is a possible cancellation point and therefore not
+ marked with __THROW. */
# ifndef __USE_FILE_OFFSET64
extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
# else
@@ -273,6 +304,19 @@
__off64_t __len);
# endif
+
+/* Map file name to file handle. */
+extern int name_to_handle_at (int __dfd, const char *__name,
+ struct file_handle *__handle, int *__mnt_id,
+ int __flags) __THROW;
+
+/* Open file using the file handle.
+
+ This function is a possible cancellation point and therefore not
+ marked with __THROW. */
+extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle,
+ int __flags);
+
#endif
__END_DECLS
Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h Sun Oct 23 17:50:13 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -61,11 +61,53 @@
# undef PSEUDO
# define PSEUDO(name, syscall_name, args) \
+ ENTRY (__##syscall_name##_nocancel) \
+ DOARGS_##args ASM_LINE_SEP \
+ stwm TREG, 64(%sp) ASM_LINE_SEP \
+ .cfi_offset TREG, 0 ASM_LINE_SEP \
+ .cfi_adjust_cfa_offset 64 ASM_LINE_SEP \
+ stw %sp, -4(%sp) ASM_LINE_SEP \
+ .cfi_offset 30, -4 ASM_LINE_SEP \
+ stw %r19, -32(%sp) ASM_LINE_SEP \
+ .cfi_offset 19, -32 ASM_LINE_SEP \
+ /* Save r19 */ ASM_LINE_SEP \
+ SAVE_PIC(TREG) ASM_LINE_SEP \
+ /* Do syscall, delay loads # */ ASM_LINE_SEP \
+ ble 0x100(%sr2,%r0) ASM_LINE_SEP \
+ ldi SYS_ify (syscall_name), %r20 /* delay */ ASM_LINE_SEP \
+ ldi NO_ERROR,%r1 ASM_LINE_SEP \
+ cmpb,>>=,n %r1,%ret0,L(pre_nc_end) ASM_LINE_SEP \
+ /* Restore r19 from TREG */ ASM_LINE_SEP \
+ LOAD_PIC(TREG) /* delay */ ASM_LINE_SEP \
+ SYSCALL_ERROR_HANDLER ASM_LINE_SEP \
+ /* Use TREG for temp storage */ ASM_LINE_SEP \
+ copy %ret0, TREG /* delay */ ASM_LINE_SEP \
+ /* OPTIMIZE: Don't reload r19 */ ASM_LINE_SEP \
+ /* do a -1*syscall_ret0 */ ASM_LINE_SEP \
+ sub %r0, TREG, TREG ASM_LINE_SEP \
+ /* Store into errno location */ ASM_LINE_SEP \
+ stw TREG, 0(%sr0,%ret0) ASM_LINE_SEP \
+ /* return -1 as error */ ASM_LINE_SEP \
+ ldi -1, %ret0 ASM_LINE_SEP \
+L(pre_nc_end): ASM_LINE_SEP \
+ /* No need to LOAD_PIC */ ASM_LINE_SEP \
+ /* Undo frame */ ASM_LINE_SEP \
+ ldwm -64(%sp),TREG ASM_LINE_SEP \
+ .cfi_adjust_cfa_offset -64 ASM_LINE_SEP \
+ /* Restore rp before exit */ ASM_LINE_SEP \
+ ldw -20(%sp), %rp ASM_LINE_SEP \
+ .cfi_restore 2 ASM_LINE_SEP \
+ ret ASM_LINE_SEP \
+ END(__##syscall_name##_nocancel) ASM_LINE_SEP \
+ /**********************************************/ASM_LINE_SEP \
ENTRY (name) \
DOARGS_##args ASM_LINE_SEP \
stwm TREG, 64(%sp) ASM_LINE_SEP \
+ .cfi_adjust_cfa_offset 64 ASM_LINE_SEP \
stw %sp, -4(%sp) ASM_LINE_SEP \
+ .cfi_offset 30, -4 ASM_LINE_SEP \
stw %r19, -32(%sp) ASM_LINE_SEP \
+ .cfi_offset 19, -32 ASM_LINE_SEP \
/* Done setting up frame, continue... */ ASM_LINE_SEP \
SINGLE_THREAD_P ASM_LINE_SEP \
cmpib,<>,n 0,%ret0,L(pseudo_cancel) ASM_LINE_SEP \
@@ -128,26 +170,40 @@
/* No need to LOAD_PIC */ ASM_LINE_SEP \
/* Undo frame */ ASM_LINE_SEP \
ldwm -64(%sp),TREG ASM_LINE_SEP \
+ .cfi_adjust_cfa_offset -64 ASM_LINE_SEP \
/* Restore rp before exit */ ASM_LINE_SEP \
- ldw -20(%sp), %rp ASM_LINE_SEP
+ ldw -20(%sp), %rp ASM_LINE_SEP \
+ .cfi_restore 2 ASM_LINE_SEP
/* Save arguments into our frame */
# define PUSHARGS_0 /* nothing to do */
-# define PUSHARGS_1 PUSHARGS_0 stw %r26, -36(%sr0,%sp) ASM_LINE_SEP
-# define PUSHARGS_2 PUSHARGS_1 stw %r25, -40(%sr0,%sp) ASM_LINE_SEP
-# define PUSHARGS_3 PUSHARGS_2 stw %r24, -44(%sr0,%sp) ASM_LINE_SEP
-# define PUSHARGS_4 PUSHARGS_3 stw %r23, -48(%sr0,%sp) ASM_LINE_SEP
-# define PUSHARGS_5 PUSHARGS_4 stw %r22, -52(%sr0,%sp) ASM_LINE_SEP
-# define PUSHARGS_6 PUSHARGS_5 stw %r21, -56(%sr0,%sp) ASM_LINE_SEP
+# define PUSHARGS_1 PUSHARGS_0 stw %r26, -36(%sr0,%sp) ASM_LINE_SEP \
+ .cfi_offset 26, -36 ASM_LINE_SEP
+# define PUSHARGS_2 PUSHARGS_1 stw %r25, -40(%sr0,%sp) ASM_LINE_SEP \
+ .cfi_offset 25, -40 ASM_LINE_SEP
+# define PUSHARGS_3 PUSHARGS_2 stw %r24, -44(%sr0,%sp) ASM_LINE_SEP \
+ .cfi_offset 24, -44 ASM_LINE_SEP
+# define PUSHARGS_4 PUSHARGS_3 stw %r23, -48(%sr0,%sp) ASM_LINE_SEP \
+ .cfi_offset 23, -48 ASM_LINE_SEP
+# define PUSHARGS_5 PUSHARGS_4 stw %r22, -52(%sr0,%sp) ASM_LINE_SEP \
+ .cfi_offset 22, -52 ASM_LINE_SEP
+# define PUSHARGS_6 PUSHARGS_5 stw %r21, -56(%sr0,%sp) ASM_LINE_SEP \
+ .cfi_offset 21, -56 ASM_LINE_SEP
/* Bring them back from the stack */
# define POPARGS_0 /* nothing to do */
-# define POPARGS_1 POPARGS_0 ldw -36(%sr0,%sp), %r26 ASM_LINE_SEP
-# define POPARGS_2 POPARGS_1 ldw -40(%sr0,%sp), %r25 ASM_LINE_SEP
-# define POPARGS_3 POPARGS_2 ldw -44(%sr0,%sp), %r24 ASM_LINE_SEP
-# define POPARGS_4 POPARGS_3 ldw -48(%sr0,%sp), %r23 ASM_LINE_SEP
-# define POPARGS_5 POPARGS_4 ldw -52(%sr0,%sp), %r22 ASM_LINE_SEP
-# define POPARGS_6 POPARGS_5 ldw -56(%sr0,%sp), %r21 ASM_LINE_SEP
+# define POPARGS_1 POPARGS_0 ldw -36(%sr0,%sp), %r26 ASM_LINE_SEP \
+ .cfi_restore 26 ASM_LINE_SEP
+# define POPARGS_2 POPARGS_1 ldw -40(%sr0,%sp), %r25 ASM_LINE_SEP \
+ .cfi_restore 25 ASM_LINE_SEP
+# define POPARGS_3 POPARGS_2 ldw -44(%sr0,%sp), %r24 ASM_LINE_SEP \
+ .cfi_restore 24 ASM_LINE_SEP
+# define POPARGS_4 POPARGS_3 ldw -48(%sr0,%sp), %r23 ASM_LINE_SEP \
+ .cfi_restore 23 ASM_LINE_SEP
+# define POPARGS_5 POPARGS_4 ldw -52(%sr0,%sp), %r22 ASM_LINE_SEP \
+ .cfi_restore 22 ASM_LINE_SEP
+# define POPARGS_6 POPARGS_5 ldw -56(%sr0,%sp), %r21 ASM_LINE_SEP \
+ .cfi_restore 21 ASM_LINE_SEP
# ifdef IS_IN_libpthread
# ifdef PIC
Added: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/epoll.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/epoll.h (added)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/epoll.h Sun Oct 23 17:50:13 2011
@@ -1,0 +1,144 @@
+/* Copyright (C) 2002-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#ifndef _SYS_EPOLL_H
+#define _SYS_EPOLL_H 1
+
+#include <stdint.h>
+#include <sys/types.h>
+
+/* Get __sigset_t. */
+#include <bits/sigset.h>
+
+#ifndef __sigset_t_defined
+# define __sigset_t_defined
+typedef __sigset_t sigset_t;
+#endif
+
+
+/* Flags to be passed to epoll_create1. */
+enum
+ {
+ EPOLL_CLOEXEC = 010000000,
+#define EPOLL_CLOEXEC EPOLL_CLOEXEC
+ EPOLL_NONBLOCK = 00200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define EPOLL_NONBLOCK EPOLL_NONBLOCK
+ };
+
+
+enum EPOLL_EVENTS
+ {
+ EPOLLIN = 0x001,
+#define EPOLLIN EPOLLIN
+ EPOLLPRI = 0x002,
+#define EPOLLPRI EPOLLPRI
+ EPOLLOUT = 0x004,
+#define EPOLLOUT EPOLLOUT
+ EPOLLRDNORM = 0x040,
+#define EPOLLRDNORM EPOLLRDNORM
+ EPOLLRDBAND = 0x080,
+#define EPOLLRDBAND EPOLLRDBAND
+ EPOLLWRNORM = 0x100,
+#define EPOLLWRNORM EPOLLWRNORM
+ EPOLLWRBAND = 0x200,
+#define EPOLLWRBAND EPOLLWRBAND
+ EPOLLMSG = 0x400,
+#define EPOLLMSG EPOLLMSG
+ EPOLLERR = 0x008,
+#define EPOLLERR EPOLLERR
+ EPOLLHUP = 0x010,
+#define EPOLLHUP EPOLLHUP
+ EPOLLRDHUP = 0x2000,
+#define EPOLLRDHUP EPOLLRDHUP
+ EPOLLONESHOT = (1 << 30),
+#define EPOLLONESHOT EPOLLONESHOT
+ EPOLLET = (1 << 31)
+#define EPOLLET EPOLLET
+ };
+
+
+/* Valid opcodes ( "op" parameter ) to issue to epoll_ctl(). */
+#define EPOLL_CTL_ADD 1 /* Add a file descriptor to the interface. */
+#define EPOLL_CTL_DEL 2 /* Remove a file descriptor from the interface. */
+#define EPOLL_CTL_MOD 3 /* Change file descriptor epoll_event structure. */
+
+
+typedef union epoll_data
+{
+ void *ptr;
+ int fd;
+ uint32_t u32;
+ uint64_t u64;
+} epoll_data_t;
+
+struct epoll_event
+{
+ uint32_t events; /* Epoll events */
+ epoll_data_t data; /* User data variable */
+};
+
+
+__BEGIN_DECLS
+
+/* Creates an epoll instance. Returns an fd for the new instance.
+ The "size" parameter is a hint specifying the number of file
+ descriptors to be associated with the new instance. The fd
+ returned by epoll_create() should be closed with close(). */
+extern int epoll_create (int __size) __THROW;
+
+/* Same as epoll_create but with an FLAGS parameter. The unused SIZE
+ parameter has been dropped. */
+extern int epoll_create1 (int __flags) __THROW;
+
+
+/* Manipulate an epoll instance "epfd". Returns 0 in case of success,
+ -1 in case of error ( the "errno" variable will contain the
+ specific error code ) The "op" parameter is one of the EPOLL_CTL_*
+ constants defined above. The "fd" parameter is the target of the
+ operation. The "event" parameter describes which events the caller
+ is interested in and any associated user data. */
+extern int epoll_ctl (int __epfd, int __op, int __fd,
+ struct epoll_event *__event) __THROW;
+
+
+/* Wait for events on an epoll instance "epfd". Returns the number of
+ triggered events returned in "events" buffer. Or -1 in case of
+ error with the "errno" variable set to the specific error code. The
+ "events" parameter is a buffer that will contain triggered
+ events. The "maxevents" is the maximum number of events to be
+ returned ( usually size of "events" ). The "timeout" parameter
+ specifies the maximum wait time in milliseconds (-1 == infinite).
+
+ This function is a cancellation point and therefore not marked with
+ __THROW. */
+extern int epoll_wait (int __epfd, struct epoll_event *__events,
+ int __maxevents, int __timeout);
+
+
+/* Same as epoll_wait, but the thread's signal mask is temporarily
+ and atomically replaced with the one provided as parameter.
+
+ This function is a cancellation point and therefore not marked with
+ __THROW. */
+extern int epoll_pwait (int __epfd, struct epoll_event *__events,
+ int __maxevents, int __timeout,
+ __const __sigset_t *__ss);
+
+__END_DECLS
+
+#endif /* sys/epoll.h */
Added: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h (added)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h Sun Oct 23 17:50:13 2011
@@ -1,0 +1,54 @@
+/* Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#ifndef _SYS_EVENTFD_H
+#define _SYS_EVENTFD_H 1
+
+#include <stdint.h>
+
+
+/* Type for event counter. */
+typedef uint64_t eventfd_t;
+
+/* Flags for signalfd. */
+enum
+ {
+ EFD_SEMAPHORE = 1,
+#define EFD_SEMAPHORE EFD_SEMAPHORE
+ EFD_CLOEXEC = 010000000,
+#define EFD_CLOEXEC EFD_CLOEXEC
+ EFD_NONBLOCK = 00200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define EFD_NONBLOCK EFD_NONBLOCK
+ };
+
+
+__BEGIN_DECLS
+
+/* Return file descriptor for generic event channel. Set initial
+ value to COUNT. */
+extern int eventfd (int __count, int __flags) __THROW;
+
+/* Read event counter and possibly wait for events. */
+extern int eventfd_read (int __fd, eventfd_t *__value);
+
+/* Increment event counter. */
+extern int eventfd_write (int __fd, eventfd_t __value);
+
+__END_DECLS
+
+#endif /* sys/eventfd.h */
Added: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/inotify.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/inotify.h (added)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/inotify.h Sun Oct 23 17:50:13 2011
@@ -1,0 +1,107 @@
+/* Copyright (C) 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#ifndef _SYS_INOTIFY_H
+#define _SYS_INOTIFY_H 1
+
+#include <stdint.h>
+
+
+/* Flags for the parameter of inotify_init1. */
+enum
+ {
+ IN_CLOEXEC = 010000000,
+#define IN_CLOEXEC IN_CLOEXEC
+ IN_NONBLOCK = 000200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define IN_NONBLOCK IN_NONBLOCK
+ };
+
+
+/* Structure describing an inotify event. */
+struct inotify_event
+{
+ int wd; /* Watch descriptor. */
+ uint32_t mask; /* Watch mask. */
+ uint32_t cookie; /* Cookie to synchronize two events. */
+ uint32_t len; /* Length (including NULs) of name. */
+ char name __flexarr; /* Name. */
+};
+
+
+/* Supported events suitable for MASK parameter of INOTIFY_ADD_WATCH. */
+#define IN_ACCESS 0x00000001 /* File was accessed. */
+#define IN_MODIFY 0x00000002 /* File was modified. */
+#define IN_ATTRIB 0x00000004 /* Metadata changed. */
+#define IN_CLOSE_WRITE 0x00000008 /* Writtable file was closed. */
+#define IN_CLOSE_NOWRITE 0x00000010 /* Unwrittable file closed. */
+#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
+#define IN_OPEN 0x00000020 /* File was opened. */
+#define IN_MOVED_FROM 0x00000040 /* File was moved from X. */
+#define IN_MOVED_TO 0x00000080 /* File was moved to Y. */
+#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
+#define IN_CREATE 0x00000100 /* Subfile was created. */
+#define IN_DELETE 0x00000200 /* Subfile was deleted. */
+#define IN_DELETE_SELF 0x00000400 /* Self was deleted. */
+#define IN_MOVE_SELF 0x00000800 /* Self was moved. */
+
+/* Events sent by the kernel. */
+#define IN_UNMOUNT 0x00002000 /* Backing fs was unmounted. */
+#define IN_Q_OVERFLOW 0x00004000 /* Event queued overflowed. */
+#define IN_IGNORED 0x00008000 /* File was ignored. */
+
+/* Helper events. */
+#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
+#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
+
+/* Special flags. */
+#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a
+ directory. */
+#define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */
+#define IN_EXCL_UNLINK 0x04000000 /* Exclude events on unlinked
+ objects. */
+#define IN_MASK_ADD 0x20000000 /* Add to the mask of an already
+ existing watch. */
+#define IN_ISDIR 0x40000000 /* Event occurred against dir. */
+#define IN_ONESHOT 0x80000000 /* Only send event once. */
+
+/* All events which a program can wait on. */
+#define IN_ALL_EVENTS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE \
+ | IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM \
+ | IN_MOVED_TO | IN_CREATE | IN_DELETE \
+ | IN_DELETE_SELF | IN_MOVE_SELF)
+
+
+__BEGIN_DECLS
+
+/* Create and initialize inotify instance. */
+extern int inotify_init (void) __THROW;
+
+/* Create and initialize inotify instance. */
+extern int inotify_init1 (int __flags) __THROW;
+
+/* Add watch of object NAME to inotify instance FD. Notify about
+ events specified by MASK. */
+extern int inotify_add_watch (int __fd, const char *__name, uint32_t __mask)
+ __THROW;
+
+/* Remove the watch specified by WD from the inotify instance FD. */
+extern int inotify_rm_watch (int __fd, int __wd) __THROW;
+
+__END_DECLS
+
+#endif /* sys/inotify.h */
Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/procfs.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/procfs.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/procfs.h Sun Oct 23 17:50:13 2011
@@ -1,4 +1,5 @@
-/* Copyright (C) 1996, 1997, 1999, 2000, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2000, 2006, 2011
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -29,10 +30,8 @@
GDB unless you know what you are doing. */
#include <features.h>
-#include <signal.h>
#include <sys/time.h>
#include <sys/types.h>
-#include <sys/ucontext.h>
#include <sys/user.h>
__BEGIN_DECLS
Added: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/signalfd.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/signalfd.h (added)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/signalfd.h Sun Oct 23 17:50:13 2011
@@ -1,0 +1,66 @@
+/* Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#ifndef _SYS_SIGNALFD_H
+#define _SYS_SIGNALFD_H 1
+
+#define __need_sigset_t
+#include <signal.h>
+#include <stdint.h>
+
+
+struct signalfd_siginfo
+{
+ uint32_t ssi_signo;
+ int32_t ssi_errno;
+ int32_t ssi_code;
+ uint32_t ssi_pid;
+ uint32_t ssi_uid;
+ int32_t ssi_fd;
+ uint32_t ssi_tid;
+ uint32_t ssi_band;
+ uint32_t ssi_overrun;
+ uint32_t ssi_trapno;
+ int32_t ssi_status;
+ int32_t ssi_int;
+ uint64_t ssi_ptr;
+ uint64_t ssi_utime;
+ uint64_t ssi_stime;
+ uint64_t ssi_addr;
+ uint8_t __pad[48];
+};
+
+/* Flags for signalfd. */
+enum
+ {
+ SFD_CLOEXEC = 010000000,
+#define SFD_CLOEXEC SFD_CLOEXEC
+ SFD_NONBLOCK = 00200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define SFD_NONBLOCK SFD_NONBLOCK
+ };
+
+__BEGIN_DECLS
+
+/* Request notification for delivery of signals in MASK to be
+ performed using descriptor FD.*/
+extern int signalfd (int __fd, const sigset_t *__mask, int __flags)
+ __THROW __nonnull ((2));
+
+__END_DECLS
+
+#endif /* sys/signalfd.h */
Added: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/timerfd.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/timerfd.h (added)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sys/timerfd.h Sun Oct 23 17:50:13 2011
@@ -1,0 +1,60 @@
+/* Copyright (C) 2008 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#ifndef _SYS_TIMERFD_H
+#define _SYS_TIMERFD_H 1
+
+#include <time.h>
+
+
+/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
+enum
+ {
+ TFD_CLOEXEC = 010000000,
+#define TFD_CLOEXEC TFD_CLOEXEC
+ TFD_NONBLOCK = 000200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define TFD_NONBLOCK TFD_NONBLOCK
+ };
+
+
+/* Bits to be set in the FLAGS parameter of `timerfd_settime'. */
+enum
+ {
+ TFD_TIMER_ABSTIME = 1 << 0
+#define TFD_TIMER_ABSTIME TFD_TIMER_ABSTIME
+ };
+
+
+__BEGIN_DECLS
+
+/* Return file descriptor for new interval timer source. */
+extern int timerfd_create (clockid_t __clock_id, int __flags) __THROW;
+
+/* Set next expiration time of interval timer source UFD to UTMR. If
+ FLAGS has the TFD_TIMER_ABSTIME flag set the timeout value is
+ absolute. Optionally return the old expiration time in OTMR. */
+extern int timerfd_settime (int __ufd, int __flags,
+ __const struct itimerspec *__utmr,
+ struct itimerspec *__otmr) __THROW;
+
+/* Return the next expiration time of UFD. */
+extern int timerfd_gettime (int __ufd, struct itimerspec *__otmr) __THROW;
+
+__END_DECLS
+
+#endif /* sys/timerfd.h */
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits