Back to index

glibc  2.9
types.h
Go to the documentation of this file.
00001 /* Copyright (C) 1991,1992,1994-1998,2000,2001 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 /*
00020  * Never include this file directly; use <sys/types.h> instead.
00021  */
00022 
00023 #ifndef       _BITS_TYPES_H
00024 #define       _BITS_TYPES_H 1
00025 
00026 #include <features.h>
00027 
00028 #define __need_size_t
00029 #include <stddef.h>
00030 
00031 /* Convenience types.  */
00032 typedef unsigned char __u_char;
00033 typedef unsigned short __u_short;
00034 typedef unsigned int __u_int;
00035 typedef unsigned long __u_long;
00036 #ifdef __GNUC__
00037 __extension__ typedef unsigned long long int __u_quad_t;
00038 __extension__ typedef long long int __quad_t;
00039 #else
00040 typedef struct
00041   {
00042     long int __val[2];
00043   } __quad_t;
00044 typedef struct
00045   {
00046     __u_long __val[2];
00047   } __u_quad_t;
00048 #endif
00049 typedef signed char __int8_t;
00050 typedef unsigned char __uint8_t;
00051 typedef signed short int __int16_t;
00052 typedef unsigned short int __uint16_t;
00053 typedef signed int __int32_t;
00054 typedef unsigned int __uint32_t;
00055 #ifdef __GNUC__
00056 __extension__ typedef signed long long int __int64_t;
00057 __extension__ typedef unsigned long long int __uint64_t;
00058 #endif
00059 typedef __quad_t *__qaddr_t;
00060 
00061 typedef long int __dev_t;          /* Type of device numbers.  */
00062 typedef long int __uid_t;          /* Type of user identifications.  */
00063 typedef long int __gid_t;          /* Type of group identifications.  */
00064 typedef __u_long __ino_t;          /* Type of file serial numbers.  */
00065 typedef __u_short __mode_t;        /* Type of file attribute bitmasks.  */
00066 typedef short __nlink_t;           /* Type of file link counts.  */
00067 typedef long int __off_t;          /* Type of file sizes and offsets.  */
00068 typedef __quad_t __loff_t;         /* Type of file sizes and offsets.  */
00069 typedef long int __pid_t;          /* Type of process identifications.  */
00070 typedef long int __ssize_t;        /* Type of a byte count, or error.  */
00071 typedef __u_long __rlim_t;         /* Type of resource counts.  */
00072 typedef __quad_t __rlim64_t;              /* Type of resource counts (LFS).  */
00073 typedef long int __id_t;           /* General type for ID.  */
00074 
00075 typedef struct
00076   {
00077     long int __val[2];
00078   } __fsid_t;                      /* Type of file system IDs.  */
00079 
00080 /* Everythin' else.  */
00081 typedef long int __daddr_t;        /* The type of a disk address.  */
00082 typedef char *__caddr_t;
00083 typedef long int __time_t;
00084 typedef long int __swblk_t;        /* Type of a swap block maybe?  */
00085 
00086 typedef __u_long __clock_t;
00087 
00088 /* Number of descriptors that can fit in an `fd_set'.  */
00089 #define __FD_SETSIZE 2048
00090 
00091 
00092 typedef long int __key_t;
00093 
00094 /* Used in `struct shmid_ds'.  */
00095 typedef unsigned short int __ipc_pid_t;
00096 
00097 
00098 /* Types from the Large File Support interface.  */
00099 
00100 /* Type to count number os disk blocks.  */
00101 typedef __u_long __blkcnt_t;
00102 typedef __u_quad_t __blkcnt64_t;
00103 
00104 /* Type to count file system blocks.  */
00105 typedef long int __fsblkcnt_t;
00106 typedef __quad_t __fsblkcnt64_t;
00107 
00108 /* Type to count file system inodes.  */
00109 typedef __u_long __fsfilcnt_t;
00110 typedef __u_quad_t __fsfilcnt64_t;
00111 
00112 /* Type of file serial numbers.  */
00113 typedef __u_long __ino64_t;
00114 
00115 /* Type of file sizes and offsets.  */
00116 typedef __loff_t __off64_t;
00117 
00118 /* Used in XTI.  */
00119 typedef int __t_scalar_t;
00120 typedef unsigned int __t_uscalar_t;
00121 
00122 /* Duplicates info from stdint.h but this is used in unistd.h.  */
00123 typedef int __intptr_t;
00124 
00125 /* Duplicate info from sys/socket.h.  */
00126 typedef unsigned int __socklen_t;
00127 
00128 #endif /* bits/types.h */