[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commits] r24838 - in /fsf/trunk/libc: ./ sysdeps/ieee754/ldbl-128/ sysdeps/mach/hurd/ sysdeps/unix/bsd/ sysdeps/unix/bsd/bits/ sysdep...
- To: commits@xxxxxxxxxx
- Subject: [Commits] r24838 - in /fsf/trunk/libc: ./ sysdeps/ieee754/ldbl-128/ sysdeps/mach/hurd/ sysdeps/unix/bsd/ sysdeps/unix/bsd/bits/ sysdep...
- From: eglibc@xxxxxxxxxx
- Date: Mon, 23 Dec 2013 08:02:06 -0000
Author: eglibc
Date: Mon Dec 23 00:02:05 2013
New Revision: 24838
Log:
Import glibc-mainline for 2013-12-23
Added:
fsf/trunk/libc/sysdeps/unix/bsd/Makefile
fsf/trunk/libc/sysdeps/unix/bsd/Versions
fsf/trunk/libc/sysdeps/unix/bsd/bits/sockaddr.h
fsf/trunk/libc/sysdeps/unix/bsd/cmsg_nxthdr.c
fsf/trunk/libc/sysdeps/unix/bsd/sigblock.c
fsf/trunk/libc/sysdeps/unix/bsd/sigsetmask.c
fsf/trunk/libc/sysdeps/unix/bsd/sigvec.c
fsf/trunk/libc/sysdeps/unix/bsd/tcdrain.c
fsf/trunk/libc/sysdeps/unix/bsd/tcgetattr.c
fsf/trunk/libc/sysdeps/unix/bsd/tcsetattr.c
fsf/trunk/libc/sysdeps/unix/bsd/wait.c
fsf/trunk/libc/sysdeps/unix/bsd/wait3.c
fsf/trunk/libc/sysdeps/unix/bsd/waitpid.c
Removed:
fsf/trunk/libc/sysdeps/unix/bsd/bsd4.4/
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/NEWS
fsf/trunk/libc/sysdeps/ieee754/ldbl-128/e_lgammal_r.c
fsf/trunk/libc/sysdeps/mach/hurd/Implies
fsf/trunk/libc/sysdeps/unix/bsd/syscalls.list
fsf/trunk/libc/sysdeps/unix/sysv/linux/wait3.c
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Mon Dec 23 00:02:05 2013
@@ -1,3 +1,52 @@
+2013-12-22 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #16337]
+ * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
+ Calculate results for small negative arguments directly rather
+ than using reflection formula with special underflow handling.
+
+ * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
+ * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
+ sysdeps/unix/bsd/bsd4.4/syscalls.list.
+ (fchflags): Likewise.
+ (revoke): Likewise.
+ (setlogin): Likewise.
+ (sigaltstack): Likewise.
+ (wait4): Likewise.
+ (sigblock): Remove.
+ (sigsetmask): Likewise.
+ (wait3): Likewise.
+ (waitpid): Likewise.
+ * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
+ * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
+ file.
+ * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
+ * sysdeps/unix/bsd/Makefile: ... here.
+ * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
+ * sysdeps/unix/bsd/Versions: ... here.
+ * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
+ * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
+ * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
+ * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
+ * sysdeps/unix/bsd/sigblock.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
+ * sysdeps/unix/bsd/sigsetmask.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
+ * sysdeps/unix/bsd/sigvec.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
+ * sysdeps/unix/bsd/tcdrain.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
+ * sysdeps/unix/bsd/tcgetattr.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
+ * sysdeps/unix/bsd/tcsetattr.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
+ * sysdeps/unix/bsd/wait.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
+ * sysdeps/unix/bsd/wait3.c: ... here.
+ * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
+ * sysdeps/unix/bsd/waitpid.c: ... here.
+
2013-12-21 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
[BZ #16356]
Modified: fsf/trunk/libc/NEWS
==============================================================================
--- fsf/trunk/libc/NEWS (original)
+++ fsf/trunk/libc/NEWS Mon Dec 23 00:02:05 2013
@@ -22,7 +22,7 @@
15966, 15985, 15988, 15997, 16032, 16034, 16036, 16037, 16038, 16041,
16055, 16071, 16072, 16074, 16077, 16078, 16103, 16112, 16143, 16144,
16146, 16150, 16151, 16153, 16167, 16172, 16195, 16214, 16245, 16271,
- 16274, 16283, 16289, 16293, 16314, 16316, 16330, 16338, 16356.
+ 16274, 16283, 16289, 16293, 16314, 16316, 16330, 16337, 16338, 16356.
* The public headers no longer use __unused nor __block. This change is to
support compiling programs that are derived from BSD sources and use
Modified: fsf/trunk/libc/sysdeps/ieee754/ldbl-128/e_lgammal_r.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/ldbl-128/e_lgammal_r.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/ldbl-128/e_lgammal_r.c Mon Dec 23 00:02:05 2013
@@ -782,6 +782,8 @@
*signgamp = -1;
else
*signgamp = 1;
+ if (q < 0x1p-120L)
+ return -__logl (q);
z = q - p;
if (z > 0.5L)
{
@@ -789,8 +791,6 @@
z = p - q;
}
z = q * __sinl (PIL * z);
- if (z == 0.0L)
- return (*signgamp * huge * huge);
w = __ieee754_lgammal_r (q, &i);
z = __logl (PIL / z) - w;
return (z);
Modified: fsf/trunk/libc/sysdeps/mach/hurd/Implies
==============================================================================
--- fsf/trunk/libc/sysdeps/mach/hurd/Implies (original)
+++ fsf/trunk/libc/sysdeps/mach/hurd/Implies Mon Dec 23 00:02:05 2013
@@ -2,4 +2,4 @@
# Hurd-based GNU systems.
gnu
# The Hurd provides a rough superset of the functionality of 4.4 BSD.
-unix/bsd/bsd4.4
+unix/bsd
Added: fsf/trunk/libc/sysdeps/unix/bsd/Makefile
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/Makefile (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/Makefile Mon Dec 23 00:02:05 2013
@@ -1,0 +1,3 @@
+ifeq ($(subdir),socket)
+sysdep_routines += cmsg_nxthdr
+endif
Added: fsf/trunk/libc/sysdeps/unix/bsd/Versions
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/Versions (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/Versions Mon Dec 23 00:02:05 2013
@@ -1,0 +1,6 @@
+libc {
+ GLIBC_2.2.5 {
+ # functions used in inline functions or macros
+ __cmsg_nxthdr;
+ }
+}
Added: fsf/trunk/libc/sysdeps/unix/bsd/bits/sockaddr.h
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/bits/sockaddr.h (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/bits/sockaddr.h Mon Dec 23 00:02:05 2013
@@ -1,0 +1,42 @@
+/* Definition of `struct sockaddr_*' common members. 4.4 BSD version.
+ Copyright (C) 1995-2013 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, see
+ <http://www.gnu.org/licenses/>. */
+
+/*
+ * Never include this file directly; use <sys/socket.h> instead.
+ */
+
+#ifndef _BITS_SOCKADDR_H
+#define _BITS_SOCKADDR_H 1
+
+
+/* POSIX.1g specifies this type name for the `sa_family' member. */
+typedef unsigned char sa_family_t;
+
+/* This macro is used to declare the initial common members
+ of the data types used for socket addresses, `struct sockaddr',
+ `struct sockaddr_in', `struct sockaddr_un', etc. */
+
+#define __SOCKADDR_COMMON(sa_prefix) \
+ unsigned char sa_prefix##len; \
+ sa_family_t sa_prefix##family
+
+#define __SOCKADDR_COMMON_SIZE (2 * sizeof (unsigned char))
+
+#define _HAVE_SA_LEN 1 /* We have the sa_len field. */
+
+#endif /* bits/sockaddr.h */
Added: fsf/trunk/libc/sysdeps/unix/bsd/cmsg_nxthdr.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/cmsg_nxthdr.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/cmsg_nxthdr.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,2 @@
+/* The Linux version is perfectly usable on 4.4 BSD. */
+#include <sysdeps/unix/sysv/linux/cmsg_nxthdr.c>
Added: fsf/trunk/libc/sysdeps/unix/bsd/sigblock.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/sigblock.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/sigblock.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,1 @@
+#include <sysdeps/posix/sigblock.c>
Added: fsf/trunk/libc/sysdeps/unix/bsd/sigsetmask.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/sigsetmask.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/sigsetmask.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,1 @@
+#include <sysdeps/posix/sigsetmask.c>
Added: fsf/trunk/libc/sysdeps/unix/bsd/sigvec.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/sigvec.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/sigvec.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,1 @@
+#include <sysdeps/posix/sigvec.c>
Modified: fsf/trunk/libc/sysdeps/unix/bsd/syscalls.list
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/syscalls.list (original)
+++ fsf/trunk/libc/sysdeps/unix/bsd/syscalls.list Mon Dec 23 00:02:05 2013
@@ -1,14 +1,16 @@
# File name Caller Syscall name # args Strong name Weak names
+chflags - chflags 2 chflags
+fchflags - fchflags 2 fchflags
flock - flock 2 __flock flock
getdents - getdirentries 4 __getdirentries getdirentries
getdtsz - getdtablesize 0 __getdtablesize getdtablesize
getpagesize - getpagesize 0 __getpagesize getpagesize
killpg - killpg 2 killpg
-sigblock - sigblock 1 __sigblock sigblock
+revoke - revoke 1 revoke
+setlogin - setlogin 2 setlogin
+sigaltstack - sigaltstack 2 __sigaltstack sigaltstack
sigpause - sigpause 1 __sigpause sigpause
-sigsetmask - sigsetmask 1 __sigsetmask sigsetmask
sigstack - sigstack 2 sigstack
sigvec - sigvec 3 __sigvec sigvec
-wait3 - wait3 3 __wait3 wait3
-waitpid - waitpid 3 __waitpid waitpid
+wait4 - wait4 4 __wait4 wait4
Added: fsf/trunk/libc/sysdeps/unix/bsd/tcdrain.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/tcdrain.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/tcdrain.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,27 @@
+/* Copyright (C) 1992-2013 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, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <stddef.h>
+#include <sys/ioctl.h>
+
+/* Wait for pending output to be written on FD. */
+int
+__libc_tcdrain (int fd)
+{
+ return __ioctl (fd, TIOCDRAIN);
+}
+weak_alias (__libc_tcdrain, tcdrain)
Added: fsf/trunk/libc/sysdeps/unix/bsd/tcgetattr.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/tcgetattr.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/tcgetattr.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,40 @@
+/* Copyright (C) 1991-2013 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, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <stddef.h>
+#include <termios.h>
+
+/* These are defined both in <bits/termios.h> and in <bits/ioctls.h>.
+ They should have the same values, but perhaps not written the same way. */
+#undef ECHO
+#undef MDMBUF
+#undef TOSTOP
+#undef FLUSHO
+#undef PENDIN
+#undef NOFLSH
+#include <sys/ioctl.h>
+
+/* Put the state of FD into *TERMIOS_P. */
+int
+__tcgetattr (fd, termios_p)
+ int fd;
+ struct termios *termios_p;
+{
+ return __ioctl (fd, TIOCGETA, termios_p);
+}
+
+weak_alias (__tcgetattr, tcgetattr)
Added: fsf/trunk/libc/sysdeps/unix/bsd/tcsetattr.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/tcsetattr.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/tcsetattr.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,62 @@
+/* Copyright (C) 1992-2013 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, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <errno.h>
+#include <stddef.h>
+#include <termios.h>
+
+/* These are defined both in <bits/termios.h> and in <bits/ioctls.h>.
+ They should have the same values, but perhaps not written the same way. */
+#undef ECHO
+#undef MDMBUF
+#undef TOSTOP
+#undef FLUSHO
+#undef PENDIN
+#undef NOFLSH
+#include <sys/ioctl.h>
+
+
+/* Set the state of FD to *TERMIOS_P. */
+int
+tcsetattr (fd, optional_actions, termios_p)
+ int fd;
+ int optional_actions;
+ const struct termios *termios_p;
+{
+ struct termios myt;
+
+ if (optional_actions & TCSASOFT)
+ {
+ myt = *termios_p;
+ myt.c_cflag |= CIGNORE;
+ termios_p = &myt;
+ optional_actions &= ~TCSASOFT;
+ }
+
+ switch (optional_actions)
+ {
+ case TCSANOW:
+ return __ioctl (fd, TIOCSETA, termios_p);
+
+ case TCSADRAIN:
+ return __ioctl (fd, TIOCSETAW, termios_p);
+
+ default:
+ return __ioctl (fd, TIOCSETAF, termios_p);
+ }
+}
+libc_hidden_def (tcsetattr)
Added: fsf/trunk/libc/sysdeps/unix/bsd/wait.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/wait.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/wait.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,32 @@
+/* Copyright (C) 1991-2013 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, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <sys/wait.h>
+#include <errno.h>
+#include <sys/resource.h>
+#include <stddef.h>
+
+/* Wait for a child to die. When one does, put its status in *STAT_LOC
+ and return its process ID. For errors, return (pid_t) -1. */
+__pid_t
+__libc_wait (__WAIT_STATUS_DEFN stat_loc)
+{
+ return __wait4 (WAIT_ANY, stat_loc, 0, (struct rusage *) NULL);
+}
+
+weak_alias (__libc_wait, __wait)
+weak_alias (__libc_wait, wait)
Added: fsf/trunk/libc/sysdeps/unix/bsd/wait3.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/wait3.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/wait3.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,36 @@
+/* Copyright (C) 1991-2013 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, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <errno.h>
+#include <sys/wait.h>
+#include <sys/types.h>
+
+/* Wait for a child to exit. When one does, put its status in *STAT_LOC and
+ return its process ID. For errors return (pid_t) -1. If USAGE is not nil,
+ store information about the child's resource usage (as a `struct rusage')
+ there. If the WUNTRACED bit is set in OPTIONS, return status for stopped
+ children; otherwise don't. */
+pid_t
+__wait3 (stat_loc, options, usage)
+ __WAIT_STATUS stat_loc;
+ int options;
+ struct rusage *usage;
+{
+ return __wait4 (WAIT_ANY, stat_loc, options, usage);
+}
+
+weak_alias (__wait3, wait3)
Added: fsf/trunk/libc/sysdeps/unix/bsd/waitpid.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/waitpid.c (added)
+++ fsf/trunk/libc/sysdeps/unix/bsd/waitpid.c Mon Dec 23 00:02:05 2013
@@ -1,0 +1,43 @@
+/* Copyright (C) 1991-2013 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, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <errno.h>
+#include <sys/wait.h>
+#include <sys/types.h>
+#include <stddef.h>
+
+/* Wait for a child matching PID to die.
+ If PID is greater than 0, match any process whose process ID is PID.
+ If PID is (pid_t) -1, match any process.
+ If PID is (pid_t) 0, match any process with the
+ same process group as the current process.
+ If PID is less than -1, match any process whose
+ process group is the absolute value of PID.
+ If the WNOHANG bit is set in OPTIONS, and that child
+ is not already dead, return (pid_t) 0. If successful,
+ return PID and store the dead child's status in STAT_LOC.
+ Return (pid_t) -1 for errors. If the WUNTRACED bit is set in OPTIONS,
+ return status for stopped children; otherwise don't. */
+pid_t
+__libc_waitpid (pid_t pid, int *stat_loc, int options)
+{
+ return __wait4 (pid, (union wait *) stat_loc, options, NULL);
+}
+
+weak_alias (__libc_waitpid, __waitpid)
+libc_hidden_weak (__waitpid)
+weak_alias (__libc_waitpid, waitpid)
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/wait3.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/wait3.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/wait3.c Mon Dec 23 00:02:05 2013
@@ -1,1 +1,1 @@
-#include <sysdeps/unix/bsd/bsd4.4/wait3.c>
+#include <sysdeps/unix/bsd/wait3.c>
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits