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

[commits] r3252 - in /trunk/libc: ChangeLog.eglibc io/Makefile misc/Makefile option-groups.def option-groups.defaults posix/Makefile



Author: jimb
Date: Thu Aug 23 23:28:19 2007
New Revision: 3252

Log:
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.

Modified:
    trunk/libc/ChangeLog.eglibc
    trunk/libc/io/Makefile
    trunk/libc/misc/Makefile
    trunk/libc/option-groups.def
    trunk/libc/option-groups.defaults
    trunk/libc/posix/Makefile

Modified: trunk/libc/ChangeLog.eglibc
==============================================================================
--- trunk/libc/ChangeLog.eglibc (original)
+++ trunk/libc/ChangeLog.eglibc Thu Aug 23 23:28:19 2007
@@ -1,3 +1,14 @@
+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.
+
 2007-08-22  Jim Blandy  <jimb@xxxxxxxxxxxxxxxx>
 
 	Implement the OPTION_EGLIBC_DB_ALIASES option group.

Modified: trunk/libc/io/Makefile
==============================================================================
--- trunk/libc/io/Makefile (original)
+++ trunk/libc/io/Makefile Thu Aug 23 23:28:19 2007
@@ -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

Modified: trunk/libc/misc/Makefile
==============================================================================
--- trunk/libc/misc/Makefile (original)
+++ trunk/libc/misc/Makefile Thu Aug 23 23:28:19 2007
@@ -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
 

Modified: trunk/libc/option-groups.def
==============================================================================
--- trunk/libc/option-groups.def (original)
+++ trunk/libc/option-groups.def Thu Aug 23 23:28:19 2007
@@ -70,6 +70,22 @@
          inet6_rth_reverse
          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"

Modified: trunk/libc/option-groups.defaults
==============================================================================
--- trunk/libc/option-groups.defaults (original)
+++ trunk/libc/option-groups.defaults Thu Aug 23 23:28:19 2007
@@ -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

Modified: trunk/libc/posix/Makefile
==============================================================================
--- trunk/libc/posix/Makefile (original)
+++ trunk/libc/posix/Makefile Thu Aug 23 23:28:19 2007
@@ -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