update from main archive 961001
[glibc.git] / sysdeps / unix / sysv / linux / gnu / types.h
blob5495b61aa488084b619fe069b242952921ed7f41
1 /* Copyright (C) 1991, 92, 94, 95, 96 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
16 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 Cambridge, MA 02139, USA. */
19 #ifndef _GNU_TYPES_H
20 #define _GNU_TYPES_H 1
22 #include <features.h>
24 /* Get actual type definitions for architecture from kernel headers. */
25 #include <linux/types.h>
27 /* Convenience types. */
28 typedef unsigned char __u_char;
29 typedef unsigned short __u_short;
30 typedef unsigned int __u_int;
31 typedef unsigned long __u_long;
32 #ifdef __GNUC__
33 typedef unsigned long long int __u_quad_t;
34 typedef long long int __quad_t;
35 typedef __quad_t *__qaddr_t;
36 #else
37 typedef struct
39 long val[2];
40 } __quad_t;
41 typedef struct
43 __u_long val[2];
44 } __u_quad_t;
45 #endif
47 typedef __kernel_dev_t __dev_t; /* Type of device numbers. */
48 typedef __kernel_uid_t __uid_t; /* Type of user identifications. */
49 typedef __kernel_gid_t __gid_t; /* Type of group identifications. */
50 typedef __kernel_ino_t __ino_t; /* Type of file serial numbers. */
51 typedef __kernel_mode_t __mode_t; /* Type of file attribute bitmasks. */
52 typedef __kernel_nlink_t __nlink_t; /* Type of file link counts. */
53 typedef __kernel_off_t __off_t; /* Type of file sizes and offsets. */
54 typedef __kernel_loff_t __loff_t; /* Type of file sizes and offsets. */
55 typedef __kernel_pid_t __pid_t; /* Type of process identifications. */
56 typedef __kernel_ssize_t __ssize_t; /* Type of a byte count, or error. */
57 typedef __kernel_fsid_t __fsid_t; /* Type of file system IDs. */
59 /* Everythin' else. */
60 typedef __kernel_daddr_t __daddr_t; /* The type of a disk address. */
61 typedef __kernel_caddr_t __caddr_t;
62 typedef __kernel_time_t __time_t;
63 typedef long int __swblk_t; /* Type of a swap block maybe? */
65 /* fd_set for select. */
66 typedef __kernel_fd_set __fd_set;
67 typedef __kernel_clock_t __clock_t;
69 /* Linus doesn't want __kernel_fd_mask in <linux/posix_types.h> since
70 XPG4 seems to require `unsigned long'. */
71 typedef unsigned long __fd_mask;
73 #ifdef __USE_SVID
74 typedef int __key_t;
75 #endif
77 #endif /* gnu/types.h */