1 /* Copyright (C) 1991, 92, 94, 95, 96, 97 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
21 #define _GNU_TYPES_H 1
24 /* Convenience types. */
25 typedef unsigned char __u_char
;
26 typedef unsigned short __u_short
;
27 typedef unsigned int __u_int
;
28 typedef unsigned long __u_long
;
30 typedef unsigned long long int __u_quad_t
;
31 typedef long long int __quad_t
;
42 typedef __quad_t
*__qaddr_t
;
43 typedef int __dev_t
; /* Type of device numbers. */
44 typedef unsigned int __uid_t
; /* Type of user identifications. */
45 typedef unsigned int __gid_t
; /* Type of group identifications. */
46 typedef unsigned int __ino_t
; /* Type of file serial numbers. */
47 typedef unsigned int __mode_t
; /* Type of file attribute bitmasks. */
48 typedef unsigned short int __nlink_t
; /* Type of file link counts. */
49 typedef long int __off_t
; /* Type of file sizes and offsets. */
50 typedef __quad_t __loff_t
; /* Type of file sizes and offsets. */
51 typedef int __pid_t
; /* Type of process identifications. */
52 typedef int __ssize_t
; /* Type of a byte count, or error. */
53 typedef __u_quad_t __fsid_t
; /* Type of file system IDs. */
54 typedef long int __clock_t
; /* Type of CPU usage counts. */
56 /* Everythin' else. */
57 typedef long int __daddr_t
; /* The type of a disk address. */
58 typedef char *__caddr_t
;
59 typedef long int __time_t
;
60 typedef long int __swblk_t
; /* Type of a swap block maybe? */
61 typedef long int __key_t
; /* Type of an IPC key */
63 /* fd_set for select. */
65 /* Number of descriptors that can fit in an `fd_set'. */
66 #define __FD_SETSIZE 256
68 /* It's easier to assume 8-bit bytes than to get CHAR_BIT. */
69 #define __NFDBITS (sizeof (unsigned long int) * 8)
70 #define __FDELT(d) ((d) / __NFDBITS)
71 #define __FDMASK(d) ((unsigned long int) 1 << ((d) % __NFDBITS))
75 /* XPG4.2 requires this member name. */
76 unsigned long int fds_bits
[(__FD_SETSIZE
+ (__NFDBITS
- 1)) / __NFDBITS
];
79 typedef unsigned long int __fd_mask
;
81 #endif /* gnu/types.h */