diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2013-12-17 18:12:52 +0000 |
|---|---|---|
| committer | Joseph Myers <joseph@codesourcery.com> | 2013-12-17 18:12:52 +0000 |
| commit | 2fc6557eb89af08a6ca1129cd3cd9ddc62925e8b (patch) | |
| tree | 4522428febcd382ff43467f6992b558752a8d7d6 | |
| parent | 029c7b2599263f5a59c742f3c4970c5934fa5b96 (diff) | |
| download | glibc-2fc6557eb89af08a6ca1129cd3cd9ddc62925e8b.tar.xz glibc-2fc6557eb89af08a6ca1129cd3cd9ddc62925e8b.zip | |
Remove various unused files from sysdeps/unix/bsd/.
28 files changed, 28 insertions, 1534 deletions
@@ -1,5 +1,33 @@ 2013-12-17 Joseph Myers <joseph@codesourcery.com> + * sysdeps/unix/bsd/bits/posix_opt.h: Remove file. + * sysdeps/unix/bsd/bits/stat.h: Likewise. + * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise. + * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise. + * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise. + * sysdeps/unix/bsd/bsdstat.h: Likewise. + * sysdeps/unix/bsd/clock.c: Likewise. + * sysdeps/unix/bsd/i386/vfork.S: Likewise. + * sysdeps/unix/bsd/i386/wait3.S: Likewise. + * sysdeps/unix/bsd/init-posix.c: Likewise. + * sysdeps/unix/bsd/poll.c: Likewise. + * sysdeps/unix/bsd/ptsname.c: Likewise. + * sysdeps/unix/bsd/seekdir.c: Likewise. + * sysdeps/unix/bsd/setegid.c: Likewise. + * sysdeps/unix/bsd/seteuid.c: Likewise. + * sysdeps/unix/bsd/setgid.c: Likewise. + * sysdeps/unix/bsd/setrgid.c: Likewise. + * sysdeps/unix/bsd/setruid.c: Likewise. + * sysdeps/unix/bsd/setsid.c: Likewise. + * sysdeps/unix/bsd/setuid.c: Likewise. + * sysdeps/unix/bsd/sigaction.c: Likewise. + * sysdeps/unix/bsd/sigprocmask.c: Likewise. + * sysdeps/unix/bsd/sigsuspend.c: Likewise. + * sysdeps/unix/bsd/sys/reboot.h: Likewise. + * sysdeps/unix/bsd/telldir.c: Likewise. + * sysdeps/unix/bsd/times.c: Likewise. + * sysdeps/unix/bsd/usleep.c: Likewise. + * misc/Makefile (install-lib): Remove libbsd-compat.a. ($(objpfx)libbsd-compat.a): Remove rule. diff --git a/sysdeps/unix/bsd/bits/posix_opt.h b/sysdeps/unix/bsd/bits/posix_opt.h deleted file mode 100644 index 7d5e5782eb..0000000000 --- a/sysdeps/unix/bsd/bits/posix_opt.h +++ /dev/null @@ -1,5 +0,0 @@ -#define _POSIX_JOB_CONTROL 1 -#undef _POSIX_SAVED_IDS -#define _POSIX_CHOWN_RESTRICTED 1 -#define _POSIX_NO_TRUNC -1 -#define _POSIX_VDISABLE ((unsigned char) -1) diff --git a/sysdeps/unix/bsd/bits/stat.h b/sysdeps/unix/bsd/bits/stat.h deleted file mode 100644 index ff197fcc06..0000000000 --- a/sysdeps/unix/bsd/bits/stat.h +++ /dev/null @@ -1,90 +0,0 @@ -/* 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/>. */ - -#if !defined _SYS_STAT_H && !defined _FCNTL_H -# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead." -#endif - -#ifndef _BITS_STAT_H -#define _BITS_STAT_H 1 - -#include <bits/types.h> - -/* Structure describing file characteristics. */ -struct stat - { - /* This is a short instead of dev_t for compatibility with 4.3. */ - short int st_dev; /* Device containing the file. */ - __ino_t st_ino; /* File serial number. */ - - /* This is a short instead of mode_t for compatibility with 4.3. */ - unsigned short int st_mode; /* File mode. */ - - __nlink_t st_nlink; /* Link count. */ - - /* These are shorts instead of uid_t/gid_t for compatibility with 4.3. */ - unsigned short int st_uid; /* User ID of the file's owner. */ - unsigned short int st_gid; /* Group ID of the file's group.*/ - - /* This is a short instead of dev_t for compatibility with 4.3. */ - short int st_rdev; /* Device number, if device. */ - - __off_t st_size; /* Size of file, in bytes. */ - - __time_t st_atime; /* Time of last access. */ - unsigned long int st_atime_usec; - __time_t st_mtime; /* Time of last modification. */ - unsigned long int st_mtime_usec; - __time_t st_ctime; /* Time of last status change. */ - unsigned long int st_ctime_usec; - - __blksize_t st_blksize; /* Optimal block size for I/O. */ -#define _STATBUF_ST_BLKSIZE /* Tell code we have this member. */ - - __blkcnt_t st_blocks; /* Number of 512-byte blocks allocated. */ - - long int st_spare[2]; - }; - -/* Encoding of the file mode. */ - -#define __S_IFMT 0170000 /* These bits determine file type. */ - -/* File types. */ -#define __S_IFDIR 0040000 /* Directory. */ -#define __S_IFCHR 0020000 /* Character device. */ -#define __S_IFBLK 0060000 /* Block device. */ -#define __S_IFREG 0100000 /* Regular file. */ -#define __S_IFLNK 0120000 /* Symbolic link. */ -#define __S_IFSOCK 0140000 /* Socket. */ -#define __S_IFIFO 0010000 /* FIFO. */ - -/* POSIX.1b objects. */ -#define __S_TYPEISMQ(buf) (0) -#define __S_TYPEISSEM(buf) (0) -#define __S_TYPEISSHM(buf) (0) - -/* Protection bits. */ - -#define __S_ISUID 04000 /* Set user ID on execution. */ -#define __S_ISGID 02000 /* Set group ID on execution. */ -#define __S_ISVTX 01000 /* Save swapped text after use (sticky). */ -#define __S_IREAD 0400 /* Read by owner. */ -#define __S_IWRITE 0200 /* Write by owner. */ -#define __S_IEXEC 0100 /* Execute by owner. */ - -#endif /* bits/stat.h */ diff --git a/sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h b/sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h deleted file mode 100644 index f3db33b01f..0000000000 --- a/sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h +++ /dev/null @@ -1,71 +0,0 @@ -/* Copyright (C) 1999-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/>. */ - -#ifndef _UNISTD_H -# error "Never include this file directly. Use <unistd.h> instead" -#endif - -#include <bits/wordsize.h> - -/* This header should define the following symbols under the described - situations. A value `1' means that the model is always supported, - `-1' means it is never supported. Undefined means it cannot be - statically decided. - - _POSIX_V6_ILP32_OFF32 32bit int, long, pointers, and off_t type - _POSIX_V6_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type - - _POSIX_V6_LP64_OFF32 64bit long and pointers and 32bit off_t type - _POSIX_V6_LPBIG_OFFBIG 64bit long and pointers and large off_t type - - The macros _XBS5_ILP32_OFF32, _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and - _XBS5_LPBIG_OFFBIG were used in previous versions of the Unix standard - and are available only for compatibility. -*/ - -#if __WORDSIZE == 64 - -/* We can never provide environments with 32-bit wide pointers. */ -# define _POSIX_V6_ILP32_OFF32 -1 -# define _POSIX_V6_ILP32_OFFBIG -1 -# define _XBS5_ILP32_OFF32 -1 -# define _XBS5_ILP32_OFFBIG -1 -/* We also have no use (for now) for an environment with bigger pointers - and offsets. */ -# define _POSIX_V6_LPBIG_OFFBIG -1 -# define _XBS5_LPBIG_OFFBIG -1 - -/* By default we have 64-bit wide `long int', pointers and `off_t'. */ -# define _POSIX_V6_LP64_OFF64 1 -# define _XBS5_LP64_OFF64 1 - -#else /* __WORDSIZE == 32 */ - -/* By default we have 32-bit wide `int', `long int', pointers - and 64-bit `off_t'. */ -# define _POSIX_V6_ILP32_OFF32 -1 -# define _POSIX_V6_ILP32_OFFBIG 1 -# define _XBS5_ILP32_OFF32 -1 -# define _XBS5_ILP32_OFFBIG 1 - -/* We can never provide environments with 64-bit wide pointers. */ -# define _POSIX_V6_LP64_OFF64 -1 -# define _POSIX_V6_LPBIG_OFFBIG -1 -# define _XBS5_LP64_OFF64 -1 -# define _XBS5_LPBIG_OFFBIG -1 - -#endif /* __WORDSIZE == 32 */ diff --git a/sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h b/sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h deleted file mode 100644 index b2eaa13e2f..0000000000 --- a/sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h +++ /dev/null @@ -1,72 +0,0 @@ -/* bits/typesizes.h -- underlying types for *_t. FreeBSD version. - Copyright (C) 2002-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/>. */ - -#ifndef _BITS_TYPES_H -# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead." -#endif - -#ifndef _BITS_TYPESIZES_H -#define _BITS_TYPESIZES_H 1 - -/* See <bits/types.h> for the meaning of these macros. This file exists so - that <bits/types.h> need not vary across different GNU platforms. */ - -#define __DEV_T_TYPE __U32_TYPE -#define __UID_T_TYPE __U32_TYPE -#define __GID_T_TYPE __U32_TYPE -#define __INO_T_TYPE __U32_TYPE -#define __INO64_T_TYPE __UQUAD_TYPE -#define __MODE_T_TYPE __U16_TYPE -#define __NLINK_T_TYPE __U16_TYPE -#define __OFF_T_TYPE __SQUAD_TYPE -#define __OFF64_T_TYPE __SQUAD_TYPE -#define __PID_T_TYPE __S32_TYPE -#define __RLIM_T_TYPE __SQUAD_TYPE -#define __RLIM64_T_TYPE __SQUAD_TYPE -#define __BLKCNT_T_TYPE __SLONGWORD_TYPE -#define __BLKCNT64_T_TYPE __SQUAD_TYPE -#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE -#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE -#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE -#define __FSFILCNT64_T_TYPE __UQUAD_TYPE -#define __FSWORD_T_TYPE __SWORD_TYPE -#define __ID_T_TYPE __U32_TYPE -#define __CLOCK_T_TYPE __S32_TYPE -#define __TIME_T_TYPE __SLONGWORD_TYPE -#define __USECONDS_T_TYPE __U32_TYPE -#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE -#define __DADDR_T_TYPE __S32_TYPE -#define __KEY_T_TYPE __S32_TYPE -#define __CLOCKID_T_TYPE __S32_TYPE -#define __TIMER_T_TYPE __S32_TYPE -#define __BLKSIZE_T_TYPE __U32_TYPE -#define __FSID_T_TYPE struct { int __val[2]; } -#define __SSIZE_T_TYPE __SWORD_TYPE -#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE -#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE - - -/* Tell the libc code that off_t and off64_t are actually the same type. */ -#define __OFF_T_MATCHES_OFF64_T 1 - - -/* Number of descriptors that can fit in an `fd_set'. */ -#define __FD_SETSIZE 1024 - - -#endif /* bits/typesizes.h */ diff --git a/sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h b/sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h deleted file mode 100644 index 2b5f9e08e5..0000000000 --- a/sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Definitions of macros to access `dev_t' values. FreeBSD version. - Copyright (C) 2002-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/>. */ - -#ifndef _SYS_SYSMACROS_H -#define _SYS_SYSMACROS_H 1 - -/* For compatibility we provide alternative names. */ -#define major(dev) ((int)(((unsigned int) (dev) >> 8) & 0xff)) -#define minor(dev) ((int)((dev) & 0xffff00ff)) -#define makedev(major, minor) (((major) << 8) | (minor)) - -#endif /* sys/sysmacros.h */ diff --git a/sysdeps/unix/bsd/bsdstat.h b/sysdeps/unix/bsd/bsdstat.h deleted file mode 100644 index 3c9f837fff..0000000000 --- a/sysdeps/unix/bsd/bsdstat.h +++ /dev/null @@ -1,111 +0,0 @@ -/* 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 <stddef.h> -#include <sys/types.h> - -/* This will make it not define major, minor, makedev, and S_IF*. */ -#undef __USE_BSD -#undef __USE_MISC -#include <sys/stat.h> - -#undef stat -#undef fstat - -#undef S_IRWXU -#undef S_IRUSR -#undef S_IWUSR -#undef S_IXUSR -#undef S_IRWXG -#undef S_IRGRP -#undef S_IWGRP -#undef S_IXGRP -#undef S_IRWXO -#undef S_IROTH -#undef S_IWOTH -#undef S_IXOTH -#undef S_ISBLK -#undef S_ISCHR -#undef S_ISDIR -#undef S_ISFIFO -#undef S_ISREG -#undef S_ISUID -#undef S_ISGID -#define stat system_stat -#define fstat system_fstat -#define KERNEL /* Try to avoid misc decls. */ -#include "/usr/include/sys/stat.h" -#undef KERNEL -#undef stat -#undef fstat - -#define member_same(statbufp, sysbufp, member) \ - (offsetof(struct __stat, member) == offsetof(struct system_stat, member) && \ - sizeof((statbufp)->member) == sizeof((sysbufp)->member)) -#define need_stat_mapping(statbufp, sysbufp) \ - (!(member_same(statbufp, sysbufp, st_dev) && \ - member_same(statbufp, sysbufp, st_ino) && \ - member_same(statbufp, sysbufp, st_mode) && \ - member_same(statbufp, sysbufp, st_nlink) && \ - member_same(statbufp, sysbufp, st_uid) && \ - member_same(statbufp, sysbufp, st_gid) && \ - member_same(statbufp, sysbufp, st_rdev) && \ - member_same(statbufp, sysbufp, st_size) && \ - member_same(statbufp, sysbufp, st_atime) && \ - member_same(statbufp, sysbufp, st_mtime) && \ - member_same(statbufp, sysbufp, st_ctime) && \ - member_same(statbufp, sysbufp, st_blksize) && \ - member_same(statbufp, sysbufp, st_blocks))) - -/* Map a system `struct stat' to our `struct stat'. */ -#ifdef __GNUC__ -inline -#endif -static int -mapstat (sysbuf, statbuf) - const struct system_stat *sysbuf; - struct __stat *buf; -{ - if (buf == NULL) - { - errno = EINVAL; - return -1; - } - - if (!need_stat_mapping(buf, sysbuf)) - /* Hopefully this will be optimized out. */ - *buf = *(struct __stat *) sysbuf; - else - { - buf->st_dev = (dev_t) sysbuf->st_dev; - buf->st_ino = (ino_t) sysbuf->st_ino; - buf->st_mode = (mode_t) sysbuf->st_mode; - buf->st_nlink = (nlink_t) sysbuf->st_nlink; - buf->st_uid = (uid_t) sysbuf->st_uid; - buf->st_gid = (gid_t) sysbuf->st_gid; - buf->st_rdev = (dev_t) sysbuf->st_rdev; - buf->st_size = (size_t) sysbuf->st_size; - buf->st_atime = (time_t) sysbuf->st_atime; - buf->st_mtime = (time_t) sysbuf->st_mtime; - buf->st_ctime = (time_t) sysbuf->st_ctime; - buf->st_blksize = (size_t) sysbuf->st_blksize; - buf->st_blocks = (size_t) sysbuf->st_blocks; - } - - return 0; -} diff --git a/sysdeps/unix/bsd/clock.c b/sysdeps/unix/bsd/clock.c deleted file mode 100644 index a46cf9c851..0000000000 --- a/sysdeps/unix/bsd/clock.c +++ /dev/null @@ -1,43 +0,0 @@ -/* 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 WIT |
