25845f
commit ef7344f09c5ce00eb519ed14598b2a8e39c68387
25845f
Author: Joseph Myers <joseph@codesourcery.com>
25845f
Date:   Sun Dec 22 14:49:48 2013 +0000
25845f
25845f
    Flatten sysdeps/unix/bsd/bsd4.4 into sysdeps/unix/bsd.
25845f
    
25845f
    As discussed in
25845f
    <https://sourceware.org/ml/libc-alpha/2012-04/msg00840.html> and
25845f
    <https://sourceware.org/ml/libc-alpha/2012-04/msg00989.html>, it seems
25845f
    appropriate to flatten sysdeps/unix/bsd/bsd4.4 into sysdeps/unix/bsd.
25845f
    
25845f
    The bulk of the patch is just moving files.  The only other changes
25845f
    are: update paths in sysdeps/mach/hurd/Implies and
25845f
    sysdeps/unix/sysv/linux/wait3.c; merge the two syscalls.list files,
25845f
    with the removal of syscalls that were in
25845f
    sysdeps/unix/bsd/syscalls.list but overridden in the bsd4.4 directory
25845f
    by .c files there.
25845f
    
25845f
    Tested x86_64.  The installed shared libraries are identical before
25845f
    and after the patch except for libc.so where the move of wait3.c
25845f
    (included by sysdeps/unix/sysv/linux/wait3.c) affects debug info, but
25845f
    the disassembly is unchanged.
25845f
    
25845f
            * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
25845f
            * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
25845f
            sysdeps/unix/bsd/bsd4.4/syscalls.list.
25845f
            (fchflags): Likewise.
25845f
            (revoke): Likewise.
25845f
            (setlogin): Likewise.
25845f
            (sigaltstack): Likewise.
25845f
            (wait4): Likewise.
25845f
            (sigblock): Remove.
25845f
            (sigsetmask): Likewise.
25845f
            (wait3): Likewise.
25845f
            (waitpid): Likewise.
25845f
            * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
25845f
            * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
25845f
            file.
25845f
            * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
25845f
            * sysdeps/unix/bsd/Makefile: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
25845f
            * sysdeps/unix/bsd/Versions: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
25845f
            * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
25845f
            * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
25845f
            * sysdeps/unix/bsd/sigblock.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
25845f
            * sysdeps/unix/bsd/sigsetmask.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
25845f
            * sysdeps/unix/bsd/sigvec.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
25845f
            * sysdeps/unix/bsd/tcdrain.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
25845f
            * sysdeps/unix/bsd/tcgetattr.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
25845f
            * sysdeps/unix/bsd/tcsetattr.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
25845f
            * sysdeps/unix/bsd/wait.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
25845f
            * sysdeps/unix/bsd/wait3.c: ... here.
25845f
            * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
25845f
            * sysdeps/unix/bsd/waitpid.c: ... here.
25845f
25845f
diff --git a/sysdeps/mach/hurd/Implies b/sysdeps/mach/hurd/Implies
25845f
index b6063463ce34f3b7..d2d5234c1fdf1522 100644
25845f
--- a/sysdeps/mach/hurd/Implies
25845f
+++ b/sysdeps/mach/hurd/Implies
25845f
@@ -2,4 +2,4 @@
25845f
 # Hurd-based GNU systems.
25845f
 gnu
25845f
 # The Hurd provides a rough superset of the functionality of 4.4 BSD.
25845f
-unix/bsd/bsd4.4
25845f
+unix/bsd
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/Makefile b/sysdeps/unix/bsd/Makefile
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/Makefile
25845f
rename to sysdeps/unix/bsd/Makefile
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/Versions b/sysdeps/unix/bsd/Versions
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/Versions
25845f
rename to sysdeps/unix/bsd/Versions
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h b/sysdeps/unix/bsd/bits/sockaddr.h
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h
25845f
rename to sysdeps/unix/bsd/bits/sockaddr.h
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/syscalls.list b/sysdeps/unix/bsd/bsd4.4/syscalls.list
25845f
deleted file mode 100644
25845f
index a4d354685424ac61..0000000000000000
25845f
--- a/sysdeps/unix/bsd/bsd4.4/syscalls.list
25845f
+++ /dev/null
25845f
@@ -1,8 +0,0 @@
25845f
-# File name	Caller	Syscall name	# args	Strong name	Weak names
25845f
-
25845f
-chflags		-	chflags		2	chflags
25845f
-fchflags	-	fchflags	2	fchflags
25845f
-revoke		-	revoke		1	revoke
25845f
-setlogin	-	setlogin	2	setlogin
25845f
-sigaltstack	-	sigaltstack	2	__sigaltstack	sigaltstack
25845f
-wait4		-	wait4		4	__wait4		wait4
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c b/sysdeps/unix/bsd/cmsg_nxthdr.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c
25845f
rename to sysdeps/unix/bsd/cmsg_nxthdr.c
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/sigblock.c b/sysdeps/unix/bsd/sigblock.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/sigblock.c
25845f
rename to sysdeps/unix/bsd/sigblock.c
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/sigsetmask.c b/sysdeps/unix/bsd/sigsetmask.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/sigsetmask.c
25845f
rename to sysdeps/unix/bsd/sigsetmask.c
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/sigvec.c b/sysdeps/unix/bsd/sigvec.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/sigvec.c
25845f
rename to sysdeps/unix/bsd/sigvec.c
25845f
diff --git a/sysdeps/unix/bsd/syscalls.list b/sysdeps/unix/bsd/syscalls.list
25845f
index e84819dc1f19d148..9f48a144d475f342 100644
25845f
--- a/sysdeps/unix/bsd/syscalls.list
25845f
+++ b/sysdeps/unix/bsd/syscalls.list
25845f
@@ -1,14 +1,16 @@
25845f
 # File name	Caller	Syscall name	# args	Strong name	Weak names
25845f
 
25845f
+chflags		-	chflags		2	chflags
25845f
+fchflags	-	fchflags	2	fchflags
25845f
 flock		-	flock		2	__flock		flock
25845f
 getdents	-	getdirentries	4	__getdirentries	getdirentries
25845f
 getdtsz		-	getdtablesize	0	__getdtablesize	getdtablesize
25845f
 getpagesize	-	getpagesize	0	__getpagesize	getpagesize
25845f
 killpg		-	killpg		2	killpg
25845f
-sigblock	-	sigblock	1	__sigblock	sigblock
25845f
+revoke		-	revoke		1	revoke
25845f
+setlogin	-	setlogin	2	setlogin
25845f
+sigaltstack	-	sigaltstack	2	__sigaltstack	sigaltstack
25845f
 sigpause	-	sigpause	1	__sigpause	sigpause
25845f
-sigsetmask	-	sigsetmask	1	__sigsetmask	sigsetmask
25845f
 sigstack	-	sigstack	2	sigstack
25845f
 sigvec		-	sigvec		3	__sigvec	sigvec
25845f
-wait3		-	wait3		3	__wait3		wait3
25845f
-waitpid		-	waitpid		3	__waitpid	waitpid
25845f
+wait4		-	wait4		4	__wait4		wait4
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/tcdrain.c b/sysdeps/unix/bsd/tcdrain.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/tcdrain.c
25845f
rename to sysdeps/unix/bsd/tcdrain.c
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/tcgetattr.c b/sysdeps/unix/bsd/tcgetattr.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/tcgetattr.c
25845f
rename to sysdeps/unix/bsd/tcgetattr.c
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/tcsetattr.c b/sysdeps/unix/bsd/tcsetattr.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/tcsetattr.c
25845f
rename to sysdeps/unix/bsd/tcsetattr.c
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/wait.c b/sysdeps/unix/bsd/wait.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/wait.c
25845f
rename to sysdeps/unix/bsd/wait.c
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/wait3.c b/sysdeps/unix/bsd/wait3.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/wait3.c
25845f
rename to sysdeps/unix/bsd/wait3.c
25845f
diff --git a/sysdeps/unix/bsd/bsd4.4/waitpid.c b/sysdeps/unix/bsd/waitpid.c
25845f
similarity index 100%
25845f
rename from sysdeps/unix/bsd/bsd4.4/waitpid.c
25845f
rename to sysdeps/unix/bsd/waitpid.c
25845f
diff --git a/sysdeps/unix/sysv/linux/wait3.c b/sysdeps/unix/sysv/linux/wait3.c
25845f
index 0b3bdee771782b7b..2ff027f0e1d83eb2 100644
25845f
--- a/sysdeps/unix/sysv/linux/wait3.c
25845f
+++ b/sysdeps/unix/sysv/linux/wait3.c
25845f
@@ -1 +1 @@
25845f
-#include <sysdeps/unix/bsd/bsd4.4/wait3.c>
25845f
+#include <sysdeps/unix/bsd/wait3.c>