Commit Graph

159 Commits

Author SHA1 Message Date
Roland McGrath
c537c91430 2002-10-23 Roland McGrath <roland@redhat.com>
Rearranged <bits/types.h> definitions to reduce duplication.
	* sysdeps/generic/bits/types.h: Rewritten, using macros from
	<bits/wordsize.h> and new header <bits/typesizes.h>.
	* posix/Makefile (headers): Add bits/typesizes.h here.
	* sysdeps/generic/bits/typesizes.h: New file.
	* sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
	* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
	* sysdeps/mach/hurd/bits/typesizes.h: New file.
	* sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
	* sysdeps/unix/sysv/linux/bits/types.h: File removed.
	* sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
	* sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
	* sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
	* sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
	* sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
	* posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
	<bits/pthreadtypes.h> here, not in <bits/types.h>.
	* signal/signal.h: Likewise.
2002-10-23 23:48:50 +00:00
Roland McGrath
a527394147 2002-10-15 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
	instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
	Other than the previously incorrect sign of msg_iovlen, this is a
	no-op on 32-bit platforms.  On 64-bit platforms it makes this header
	match their layouts as well, so the following are now identical to it.
	* sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
	* sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
	* sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
	* sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
	* sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
2002-10-16 01:02:28 +00:00
Roland McGrath
20f7e3e794 2002-09-24 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
	It was indentical to the linux/bits/time.h file.
2002-09-25 01:57:50 +00:00
Ulrich Drepper
50d9769d4b Error codes for Linux/Alpha. 2002-08-28 23:58:00 +00:00
Ulrich Drepper
28fdb447c1 Define SHMLBA. 2002-08-23 22:26:25 +00:00
Andreas Jaeger
4223e67fa1 Fix typo. 2002-07-08 16:58:14 +00:00
Ulrich Drepper
6f68ec79d2 Avoid warning about comma at end of enum for !_GNU_SOURCE. 2002-01-18 23:37:53 +00:00
Ulrich Drepper
916ea7e833 (struct cmsghdr): Don't declare __cmsg_data field if its size would be bigger
than 0.
(CMSG_DATA): Adjust accordingly.
2001-09-26 05:23:10 +00:00
Andreas Jaeger
3214b89b32 Update to LGPL v2.1. 2001-07-06 04:56:23 +00:00
Andreas Jaeger
6fbcd2261e Synch with Linux 2.4.5:
* sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_BLUETOOTH):
	New.
	(AF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h
	(PF_BLUETOOTH): New.
	(AF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/mips/bits/socket.h (AF_BLUETOOTH): New.
	(PF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/ia64/bits/socket.h (AF_BLUETOOTH): New.
	(PF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/alpha/bits/socket.h (PF_BLUETOOTH): New.
	(AF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/bits/socket.h (PF_BLUETOOTH): New.
	(AF_BLUETOOTH): New.

	* sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_IEEE80211): New.

	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h (N_HCI): New.

	* sysdeps/unix/sysv/linux/mips/bits/ioctl-types.h (N_HCI): New.

	* sysdeps/unix/sysv/linux/bits/ioctl-types.h (N_HCI): New.
2001-07-05 08:46:28 +00:00
Ulrich Drepper
99e859a488 Define __MAX_BAUD. 2001-06-14 00:21:01 +00:00
Andreas Jaeger
30ecc70c40 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
Define for Arm, PowerPC and SH if kernel is 2.4.4 or newer.

	* sysdeps/unix/sysv/linux/bits/socket.h (PF_WANPIPE): New, from
	Linux 2.4.4.
	(AF_WANPIPE): Likewise.
	(MSG_MORE): New.

	* sysdeps/unix/sysv/linux/alpha/bits/socket.h: Add same changes as
	for Linux generic version.
	* sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
	* sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
	* sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.

	* sysdeps/gnu/netinet/tcp.h (TCP_QUICKACK): New.
2001-04-29 12:30:59 +00:00
Ulrich Drepper
5c4a646199 (__S_TYPEISMQ, __S_TYPEISSEM, __S_TYPEISSHM): Rewrite to enforce correct
use the macros.  They still always return zero.
2001-03-05 18:28:40 +00:00
Ulrich Drepper
1052cd9dac Define SI_ASYNCNL. 2001-03-04 19:28:52 +00:00
Ulrich Drepper
abb2a703aa Allow __need_sigevent_t being defined and provide only that definition. 2001-03-03 18:15:33 +00:00
Ulrich Drepper
4b3d3c61d4 Don't define CLK_TCK for XPG6. 2001-01-28 05:37:10 +00:00
Ulrich Drepper
8032f91d4c Liunx/Alpha version of statvfs definitions. 2001-01-27 22:41:42 +00:00
Ulrich Drepper
72f561b477 Linux/Alpha specific socket.h definitions. 2001-01-27 21:23:45 +00:00
Ulrich Drepper
0361ba3046 Don't define __fd_mask, __NFDBITS, __FDELT, __FDMASK, and __fd_set here. 2001-01-27 19:27:16 +00:00
Ulrich Drepper
1ae7e5b695 Define sigev_notify_attr with real type. 2001-01-27 06:29:16 +00:00
Ulrich Drepper
e569ff55ac (CLK_TCK): Cast sysconf result to __clock_t. 2000-11-01 20:59:56 +00:00
Ulrich Drepper
374305ef42 Use __sysconf to for CLK_TCK. 2000-11-01 08:07:45 +00:00
Andreas Jaeger
f0cd8b6f6d Add RLIMIT_LOCKS. 2000-10-02 08:49:05 +00:00
Andreas Jaeger
671b38f832 Synch with Linux 2.4.0-test9-pre8. 2000-10-02 08:47:39 +00:00
Ulrich Drepper
2b5887d3e4 (CLOCKS_PER_SEC): Make a long int constant since this is what clock_t is. 2000-09-13 21:46:56 +00:00
Ulrich Drepper
5b5a4299b4 Define __clockid_t and __timer_t. 2000-08-14 05:23:10 +00:00
Ulrich Drepper
8a632183fb __clockid_t and __timer_t are now defined in bits/types.h. 2000-08-14 05:22:20 +00:00
Ulrich Drepper
9ff6d9a067 Define thread types also for POSIX95. 2000-08-14 04:50:13 +00:00
Andreas Jaeger
1ce1bc0d3d (F_GETLK64, F_SETLK64, F_SETLKW64): Define with F_GETLK etc. 2000-08-12 09:59:40 +00:00
Ulrich Drepper
afda99352c Define __S_TYPEISMQ, __S_TYPEISSEM, and __S_TYPEISSHM. 2000-06-22 17:58:17 +00:00
Ulrich Drepper
37dca96f1c (F_SETOWN, F_GETOWN): Make available if __USE_XOPEN2K. 2000-04-30 07:12:32 +00:00
Ulrich Drepper
a54fe716da Define POSIX_FADV_NORMAL, POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL,
POSIX_FADV_WILLNEED, POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
2000-04-14 07:48:34 +00:00
Ulrich Drepper
fd327b8820 Add POSIX_MADV_* constants. 2000-04-14 05:57:49 +00:00
Ulrich Drepper
b05b3eb67f Define __socklen_t. 2000-04-02 08:05:11 +00:00
Ulrich Drepper
0655420550 Linux/Alpha specific definitions for <netdb.h>. 2000-04-01 22:29:26 +00:00
Richard Henderson
cd112ac0a3 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants. 2000-03-20 20:24:41 +00:00
Ulrich Drepper
2c11d9bcf5 Define shmatt_t type and use it in struct shmid_ds definition. 2000-02-28 05:02:28 +00:00
Ulrich Drepper
5e516adf18 (struct msqid_ds): Use __pid_t. 2000-02-25 17:05:23 +00:00
Ulrich Drepper
cf95db7e00 (IPC_INFO): Only define if __USE_GNU. 2000-02-25 08:56:31 +00:00
Ulrich Drepper
40d4354938 Include bits/types.h, not sys/types.h.
(MSG_EXCEPT): Only define if __USE_GNU.
Define msgqnum_t and msglen_t and use them in struct msqid_ds definition.
2000-02-25 08:54:48 +00:00
Ulrich Drepper
028bec36ff Linux/Alpha specific siginfo definitions. 2000-02-23 05:59:55 +00:00
Ulrich Drepper
158331933d Define SA_NOCLDWAIT. 2000-02-23 05:59:11 +00:00
Ulrich Drepper
47504af3f6 Remove private decls. 2000-01-24 12:31:25 +00:00
Ulrich Drepper
d0b0bd9a56 Move private decls into ../*_priv.h file. 2000-01-24 12:27:13 +00:00
Ulrich Drepper
a7b22345a1 Linux/Alpha SysV shm definitions. 2000-01-18 04:27:20 +00:00
Ulrich Drepper
db706c12f5 Linux/Alpha SysV sem definitions. 2000-01-18 04:27:12 +00:00
Ulrich Drepper
05bd55b910 Linux/Alpha SysV msq definitions. 2000-01-18 04:27:05 +00:00
Ulrich Drepper
ab944a2185 Update for new ipc. 2000-01-18 04:26:49 +00:00
Ulrich Drepper
b555e31b89 Linux/Alpha specific definitions for resource.h. 1999-12-19 00:02:03 +00:00
Ulrich Drepper
e22a3eb794 (__t_scalar_t, __t_uscalar_t): Make long types. 1999-12-04 07:40:43 +00:00
Ulrich Drepper
43f0382c72 Fix signedness of __rlim_t and __rlim64_t. 1999-12-02 08:19:07 +00:00
Ulrich Drepper
0f2d32942c Correct namespace selection. 1999-10-19 03:07:09 +00:00
Ulrich Drepper
12b8ab07b9 Update to match generic Linux version. 1999-10-12 15:19:54 +00:00
Ulrich Drepper
362932c82f Declare SA_SIGINFO. 1999-10-11 19:22:39 +00:00
Ulrich Drepper
f739f8a81e Define __blksize_t. 1999-08-18 07:47:37 +00:00
Ulrich Drepper
6996793426 (struct stat): Use __blksize_t for st_blksize member.
(struct stat64): Likewise.
1999-08-18 07:46:54 +00:00
Ulrich Drepper
77c5dc9ed7 Include bits/types.h instead of sys/types.h. 1999-08-18 07:43:39 +00:00
Ulrich Drepper
0dd0e77c4c Make __useconds_t unsigned. 1999-08-18 03:39:59 +00:00
Ulrich Drepper
283cadf410 Define type __useconds_t. 1999-08-18 01:18:14 +00:00
Ulrich Drepper
c93c0c6259 (O_LARGEFILE): Define only if __USE_LARGEFILE64. 1999-08-06 17:22:24 +00:00
Ulrich Drepper
1d8af49384 (O_RSYNC, O_DSYNC): Define. 1999-08-05 16:56:44 +00:00
Ulrich Drepper
8cfc6b71c4 ELF type definitions for Linux/Alpha. 1999-07-27 05:47:28 +00:00
Ulrich Drepper
078a1bd706 Define __clockid_t, __timer_t, CLOCK_REALTIME, and TIMER_ABSTIME. 1999-07-27 00:18:20 +00:00
Ulrich Drepper
9a16d32a64 (timeval): Use __suseconds_t type for tv_usec element. 1999-07-17 23:18:23 +00:00
Ulrich Drepper
b4ac6f26f2 Define __suseconds_t. 1999-07-17 23:16:23 +00:00
Ulrich Drepper
d33ecfde38 Correct signed/unsigned-ness of blkcnt and fsblkcnt. 1999-04-16 17:06:33 +00:00
Ulrich Drepper
864e156e88 Add missing RT signal definitions. 1999-02-08 10:11:50 +00:00
Ulrich Drepper
f90bac9291 Add baud rates > 460800. 1999-01-19 12:24:34 +00:00
Ulrich Drepper
2a3db76a83 Correct type for __fsfilcnt_t. 1999-01-07 09:53:42 +00:00
Ulrich Drepper
7f4d2f79bf Remove ipc_kludge. 1998-11-30 14:21:20 +00:00
Ulrich Drepper
9dda87abb5 (__FDS_BITS): New macro to access fds_bits member. 1998-10-28 14:41:28 +00:00
Ulrich Drepper
ad427949d1 Include bits/pthreadtypes.h only not for POSIX 199506. 1998-10-26 15:43:18 +00:00
Ulrich Drepper
b227d2e7eb (__fd_set): Define element as fds_bits only is __USE_XOPEN. Otherwise
use __fds_bits.
1998-10-25 09:10:44 +00:00
Ulrich Drepper
0b78da0365 (timeval): Protect with __need_timeval. 1998-10-25 09:09:44 +00:00
Ulrich Drepper
e1a011e731 (LOCK_SH, LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD. 1998-10-25 09:09:29 +00:00
Ulrich Drepper
47754990f4 (O_NOFOLLOW): New macro. 1998-10-23 23:24:00 +00:00
Ulrich Drepper
c220db51b0 Add O_DIRECTORY. 1998-10-16 16:29:19 +00:00
Ulrich Drepper
edb87b12b3 Remove __kernel_termios again. Use char[44] to define size of the struct. 1998-10-15 09:21:29 +00:00
Ulrich Drepper
a7077ca4f2 Include termios.h to have all types defined. 1998-10-15 07:50:31 +00:00
Ulrich Drepper
fa03e7a0eb Define __kernel_termios here instead of including kernel_termios.h. 1998-10-14 12:59:04 +00:00
Ulrich Drepper
b720449067 (SA_ONSTACK): Define. 1998-09-22 12:44:47 +00:00
Ulrich Drepper
1af688f19c Define O_DIRECT.
Correct comment for O_LARGEFILE.
1998-08-26 00:06:05 +00:00
Ulrich Drepper
29f4d62f47 Remove O_READ and O_WRITE. 1998-08-20 17:36:51 +00:00
Ulrich Drepper
197b1bfd03 Don't define CLK_TCK for strictly ISO C compliant programs. 1998-07-30 12:45:33 +00:00
Ulrich Drepper
bb3ebfdb47 Define __intptr_t. 1998-07-08 22:52:22 +00:00
Ulrich Drepper
2e28d2fb79 Define size_t. 1998-06-30 12:07:42 +00:00
Ulrich Drepper
6cc7c3b3c0 Include pthreadtypes.h. 1998-06-30 12:02:24 +00:00
Ulrich Drepper
7d3d725cc6 Definitions for sigstack functions. 1998-06-10 10:58:58 +00:00
Ulrich Drepper
b13ae75e55 Add SIGCLD definition. 1998-04-29 16:05:50 +00:00
Ulrich Drepper
f0b71999ee (_NSIG): Changed to 64. 1998-02-26 17:16:51 +00:00
Richard Henderson
73bc81179e * sysdeps/unix/sysv/linux/alpha/clone.S: Elide terminal ldgp for PROF.
* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typos.
* sysdeps/unix/sysv/linux/alpha/bits/time.h (struct timeval):
Follow POSIX and make tv_sec a time_t.
* sysdeps/unix/sysv/linux/alpha/getitimer.S: New file to handle
new tv64 syscall as well as fall back to tv32.
* sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Add tv32 entries.
1998-02-04 10:17:52 +00:00
Richard Henderson
651f8ea8fc * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Dyke out the
unimplemented OSF/1 definitions so that they are not accidentally seen.
1998-01-26 22:52:51 +00:00
Ulrich Drepper
649d6c334b Define _STATBUF_ST_RDEV. 1998-01-25 17:00:01 +00:00
Ulrich Drepper
cdf0977855 Define SIG_HOLD. 1998-01-25 16:55:24 +00:00
Ulrich Drepper
92ce4393c9 Add definition of __t_scalar_t and __t_uscalar_t. 1998-01-25 16:49:50 +00:00
Ulrich Drepper
ceb64ad89a Define __ipc_pid_t. 1997-12-22 20:21:44 +00:00
Ulrich Drepper
8dd9b4bddd Define __id_t.
Correct definition of __FDMASK.
1997-12-14 22:19:40 +00:00
Ulrich Drepper
905714080f Issue error message if the header is used directly. 1997-11-26 04:14:44 +00:00
Ulrich Drepper
6c43790ef6 Add __ino64_t, and __off64_t. Reorganize. 1997-10-31 22:52:56 +00:00
Ulrich Drepper
def4a5f0c3 Define _STAT_VER_KERNEL. 1997-10-31 22:52:42 +00:00