Back to index

glibc  2.9
types.h
Go to the documentation of this file.
00001 /* Copyright (C) 1991,92,1994-1999,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 typedef unsigned long long int __u_quad_t;
00038 typedef long long int __quad_t;
00039 #else
00040 typedef struct
00041 {
00042   long __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 typedef signed long long int __int64_t;
00057 typedef unsigned long long int __uint64_t;
00058 #endif
00059 typedef __quad_t *__qaddr_t;
00060 typedef unsigned long int __dev_t;   /* Type of device numbers.  */
00061 typedef long int __uid_t;        /* Type of user identifications.  */
00062 typedef long int __gid_t;        /* Type of group identifications.  */
00063 typedef unsigned long int __ino_t;   /* Type of file serial numbers.  */
00064 typedef unsigned long int __mode_t;  /* Type of file attribute bitmasks.  */
00065 typedef unsigned long int __nlink_t; /* Type of file link counts.  */
00066 typedef long int __off_t;        /* Type of file sizes and offsets.  */
00067 typedef __quad_t __loff_t;       /* Type of file sizes and offsets.  */
00068 typedef long int __pid_t;        /* Type of process identifications.  */
00069 typedef int __ssize_t;                  /* Type of a byte count, or error.  */
00070 typedef __u_quad_t __fsid_t;            /* Type of file system IDs.  */
00071 typedef long int __clock_t;      /* Type of CPU usage counts.  */
00072 typedef long int __rlim_t;       /* Type for resource measurement.  */
00073 typedef __quad_t __rlim64_t;            /* Type for resource measurement (LFS). */
00074 typedef __quad_t __ino64_t;      /* Type for file serial numbers.  */
00075 typedef __loff_t __off64_t;      /* Type of file izes and offsets.  */
00076 typedef unsigned int __id_t;            /* General type for IDs.  */
00077 
00078 /* Everythin' else.  */
00079 typedef long int __daddr_t;      /* The type of a disk address.  */
00080 typedef char *__caddr_t;
00081 typedef long int __time_t;
00082 typedef unsigned int __useconds_t;
00083 typedef int __suseconds_t;
00084 typedef long int __swblk_t;      /* Type of a swap block maybe?  */
00085 typedef int __key_t;             /* Type of an IPC key */
00086 
00087 /* fd_set for select.  */
00088 
00089 /* Number of descriptors that can fit in an `fd_set'.  */
00090 #define       __FD_SETSIZE  1024
00091 
00092 
00093 /* Type to represent block size.  */
00094 typedef long int __blksize_t;
00095 
00096 /* Types from the Large File Support interface.  */
00097 
00098 /* Type to count number os disk blocks.  */
00099 typedef long int __blkcnt_t;
00100 typedef __quad_t __blkcnt64_t;
00101 
00102 /* Type to count file system blocks.  */
00103 typedef unsigned int __fsblkcnt_t;
00104 typedef __u_quad_t __fsblkcnt64_t;
00105 
00106 /* Type to count file system inodes.  */
00107 typedef unsigned long int __fsfilcnt_t;
00108 typedef __u_quad_t __fsfilcnt64_t;
00109 
00110 /* Used in XTI.  */
00111 typedef int __t_scalar_t;
00112 typedef unsigned int __t_uscalar_t;
00113 
00114 /* Duplicates info from stdint.h but this is used in unistd.h.  */
00115 typedef long int __intptr_t;
00116 
00117 /* Duplicate info from sys/socket.h.  */
00118 typedef unsigned int __socklen_t;
00119 
00120 #endif /* bits/types.h */