Flatten sysdeps/unix/bsd/bsd4.4 into sysdeps/unix/bsd.
authorJoseph Myers <joseph@codesourcery.com>
Sun, 22 Dec 2013 14:49:48 +0000 (14:49 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Sun, 22 Dec 2013 14:49:48 +0000 (14:49 +0000)
As discussed in
<https://sourceware.org/ml/libc-alpha/2012-04/msg00840.html> and
<https://sourceware.org/ml/libc-alpha/2012-04/msg00989.html>, it seems
appropriate to flatten sysdeps/unix/bsd/bsd4.4 into sysdeps/unix/bsd.

The bulk of the patch is just moving files.  The only other changes
are: update paths in sysdeps/mach/hurd/Implies and
sysdeps/unix/sysv/linux/wait3.c; merge the two syscalls.list files,
with the removal of syscalls that were in
sysdeps/unix/bsd/syscalls.list but overridden in the bsd4.4 directory
by .c files there.

Tested x86_64.  The installed shared libraries are identical before
and after the patch except for libc.so where the move of wait3.c
(included by sysdeps/unix/sysv/linux/wait3.c) affects debug info, but
the disassembly is unchanged.

* 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.

18 files changed:
ChangeLog
sysdeps/mach/hurd/Implies
sysdeps/unix/bsd/Makefile [moved from sysdeps/unix/bsd/bsd4.4/Makefile with 100% similarity]
sysdeps/unix/bsd/Versions [moved from sysdeps/unix/bsd/bsd4.4/Versions with 100% similarity]
sysdeps/unix/bsd/bits/sockaddr.h [moved from sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h with 100% similarity]
sysdeps/unix/bsd/bsd4.4/syscalls.list [deleted file]
sysdeps/unix/bsd/cmsg_nxthdr.c [moved from sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c with 100% similarity]
sysdeps/unix/bsd/sigblock.c [moved from sysdeps/unix/bsd/bsd4.4/sigblock.c with 100% similarity]
sysdeps/unix/bsd/sigsetmask.c [moved from sysdeps/unix/bsd/bsd4.4/sigsetmask.c with 100% similarity]
sysdeps/unix/bsd/sigvec.c [moved from sysdeps/unix/bsd/bsd4.4/sigvec.c with 100% similarity]
sysdeps/unix/bsd/syscalls.list
sysdeps/unix/bsd/tcdrain.c [moved from sysdeps/unix/bsd/bsd4.4/tcdrain.c with 100% similarity]
sysdeps/unix/bsd/tcgetattr.c [moved from sysdeps/unix/bsd/bsd4.4/tcgetattr.c with 100% similarity]
sysdeps/unix/bsd/tcsetattr.c [moved from sysdeps/unix/bsd/bsd4.4/tcsetattr.c with 100% similarity]
sysdeps/unix/bsd/wait.c [moved from sysdeps/unix/bsd/bsd4.4/wait.c with 100% similarity]
sysdeps/unix/bsd/wait3.c [moved from sysdeps/unix/bsd/bsd4.4/wait3.c with 100% similarity]
sysdeps/unix/bsd/waitpid.c [moved from sysdeps/unix/bsd/bsd4.4/waitpid.c with 100% similarity]
sysdeps/unix/sysv/linux/wait3.c

index 5108d2e..3e806a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,47 @@
+2013-12-22  Joseph Myers  <joseph@codesourcery.com>
+
+       * 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@codesourcery.com>
 
        [BZ #16356]
index b606346..d2d5234 100644 (file)
@@ -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
diff --git a/sysdeps/unix/bsd/bsd4.4/syscalls.list b/sysdeps/unix/bsd/bsd4.4/syscalls.list
deleted file mode 100644 (file)
index a4d3546..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# File name    Caller  Syscall name    # args  Strong name     Weak names
-
-chflags                -       chflags         2       chflags
-fchflags       -       fchflags        2       fchflags
-revoke         -       revoke          1       revoke
-setlogin       -       setlogin        2       setlogin
-sigaltstack    -       sigaltstack     2       __sigaltstack   sigaltstack
-wait4          -       wait4           4       __wait4         wait4
index e84819d..9f48a14 100644 (file)
@@ -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
index 0b3bdee..2ff027f 100644 (file)
@@ -1 +1 @@
-#include <sysdeps/unix/bsd/bsd4.4/wait3.c>
+#include <sysdeps/unix/bsd/wait3.c>