[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] PATCH: Implement the OPTION_EGLIBC_BSD option group



I've committed the following.

ChangeLog.eglibc:
2007-08-23  Jim Blandy  <jimb@xxxxxxxxxxxxxxxx>

	Implement the OPTION_EGLIBC_BSD option group.
	* option-groups.def (OPTION_EGLIBC_BSD): New entry.
	* option-groups.defaults (OPTION_EGLIBC_BSD): Initialize.
	* misc/Makefile (routines): Put revoke, chflags, and fchflags in
	the group.
	* posix/Makefile (routines): Put setlogin in the group.
	* io/Makefile: include ../option-groups.mak.
	(routines) Put lchmod in the group.

Index: option-groups.def
===================================================================
--- option-groups.def	(revision 3251)
+++ option-groups.def	(revision 3252)
@@ -71,6 +71,22 @@
          inet6_rth_segments
          inet6_rth_space
 
+config OPTION_EGLIBC_BSD
+   bool "BSD-specific functions, and their compatibility stubs"
+   help
+       This option group includes functions specific to BSD kernels.
+       A number of these functions have stub versions that are also
+       included in libraries built for non-BSD systems for
+       compatibility.
+
+       This option group includes the following functions:
+
+         chflags
+         fchflags
+         lchmod
+         revoke
+         setlogin
+
 config OPTION_EGLIBC_CATGETS
    bool "Functions for accessing message catalogs"
    depends OPTION_EGLIBC_LOCALE_CODE
Index: misc/Makefile
===================================================================
--- misc/Makefile	(revision 3251)
+++ misc/Makefile	(revision 3252)
@@ -47,7 +47,7 @@
 	    select pselect \
 	    acct chroot fsync sync fdatasync reboot \
 	    gethostid sethostid \
-	    revoke vhangup \
+	    vhangup \
 	    swapon swapoff mktemp mkstemp mkstemp64 mkdtemp \
 	    ualarm usleep \
 	    gtty stty \
@@ -55,7 +55,6 @@
 	    mntent mntent_r \
 	    utimes lutimes futimes futimesat \
 	    truncate ftruncate truncate64 ftruncate64 \
-	    chflags fchflags \
 	    insremque getttyent getusershell getpass ttyslot \
 	    syslog syscall daemon \
 	    mmap mmap64 munmap mprotect msync madvise mincore remap_file_pages\
@@ -71,6 +70,7 @@
 
 routines-$(OPTION_POSIX_REGEXP) += regexp
 routines-$(OPTION_EGLIBC_FSTAB) += fstab
+routines-$(OPTION_EGLIBC_BSD) += chflags fchflags revoke 
 
 distribute := device-nrs.h
 
Index: option-groups.defaults
===================================================================
--- option-groups.defaults	(revision 3251)
+++ option-groups.defaults	(revision 3252)
@@ -9,6 +9,7 @@
 #
 # By default, all option groups are enabled.
 OPTION_EGLIBC_ADVANCED_INET6 = y
+OPTION_EGLIBC_BSD = y
 OPTION_EGLIBC_CATGETS = y
 OPTION_EGLIBC_CHARSETS = y
 OPTION_EGLIBC_DB_ALIASES = y
Index: posix/Makefile
===================================================================
--- posix/Makefile	(revision 3251)
+++ posix/Makefile	(revision 3252)
@@ -50,7 +50,6 @@
 	getuid geteuid getgid getegid getgroups setuid setgid group_member    \
 	getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid	      \
 	getresuid getresgid setresuid setresgid				      \
-	setlogin							      \
 	pathconf sysconf fpathconf					      \
 	glob glob64 fnmatch						      \
 	confstr								      \
@@ -74,6 +73,7 @@
 	spawnattr_setsigmask spawnattr_setschedpolicy spawnattr_setschedparam
 routines-$(OPTION_EGLIBC_GETLOGIN) += getlogin getlogin_r
 routines-$(OPTION_EGLIBC_WORDEXP) += wordexp
+routines-$(OPTION_EGLIBC_BSD) += setlogin
 
 include ../Makeconfig
 
Index: io/Makefile
===================================================================
--- io/Makefile	(revision 3251)
+++ io/Makefile	(revision 3252)
@@ -19,6 +19,8 @@
 #
 #	Sub-makefile for I/O portion of the library.
 #
+include ../option-groups.mak
+
 subdir	:= io
 
 headers := sys/stat.h bits/stat.h sys/statfs.h bits/statfs.h sys/vfs.h \
@@ -35,7 +37,7 @@
 	fxstatat fxstatat64						\
 	statfs fstatfs statfs64 fstatfs64				\
 	statvfs fstatvfs statvfs64 fstatvfs64				\
-	umask chmod fchmod lchmod fchmodat				\
+	umask chmod fchmod fchmodat					\
 	mkdir mkdirat							\
 	open open64 openat openat64 close				\
 	read write lseek lseek64 access euidaccess faccessat		\
@@ -53,6 +55,7 @@
 	posix_fallocate posix_fallocate64				\
 	sendfile sendfile64 \
 	utimensat futimens
+routines-$(OPTION_EGLIBC_BSD) += lchmod
 
 # These routines will be omitted from the libc shared object.
 # Instead the static object files will be included in a special archive