Sun Jun 2 14:56:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / sysdeps / unix / sysv / linux / gnu / types.h
blob939d205bda1c810781e36011cad1124a719544a7
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 /* Get actual type definitions for architecture from kernel headers.
23 This #define tells <linux/types.h> not to define `dev_t' et al itself. */
24 #define _LINUX_TYPES_DONT_EXPORT
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_pid_t __pid_t; /* Type of process identifications. */
55 typedef __kernel_ssize_t __ssize_t; /* Type of a byte count, or error. */
56 typedef __kernel_fsid_t __fsid_t; /* Type of file system IDs. */
58 /* Everythin' else. */
59 typedef __kernel_daddr_t __daddr_t; /* The type of a disk address. */
60 typedef __kernel_caddr_t __caddr_t;
61 typedef __kernel_time_t __time_t;
62 typedef long int __swblk_t; /* Type of a swap block maybe? */
64 /* fd_set for select. */
65 typedef __kernel_fd_set __fd_set;
66 typedef __kernel_clock_t __clock_t;
68 #endif /* gnu/types.h */