root/user/include/sys/types.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
   3  *      The President and Fellows of Harvard College.
   4  *
   5  * Redistribution and use in source and binary forms, with or without
   6  * modification, are permitted provided that the following conditions
   7  * are met:
   8  * 1. Redistributions of source code must retain the above copyright
   9  *    notice, this list of conditions and the following disclaimer.
  10  * 2. Redistributions in binary form must reproduce the above copyright
  11  *    notice, this list of conditions and the following disclaimer in the
  12  *    documentation and/or other materials provided with the distribution.
  13  * 3. Neither the name of the University nor the names of its contributors
  14  *    may be used to endorse or promote products derived from this software
  15  *    without specific prior written permission.
  16  *
  17  * THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
  18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
  21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  27  * SUCH DAMAGE.
  28  */
  29 
  30 #ifndef _SYS_TYPES_H_
  31 #define _SYS_TYPES_H_
  32 
  33 /*
  34  * This header file is supposed to define standard system types,
  35  * stuff like size_t and pid_t, as well as define a few other
  36  * standard symbols like NULL.
  37  *
  38  * There are no such types that are user-level only.
  39  */
  40 
  41 /* Get the exported kernel definitions, protected with __ */
  42 #include <kern/types.h>
  43 
  44 /* Pick up stuff that needs to be defined individually due to standards. */
  45 #include <types/size_t.h>
  46 #include <sys/null.h>
  47 
  48 /*
  49  * Define the rest with user-visible names.
  50  *
  51  * Note that the standards-compliance stuff is not by any means
  52  * complete here yet...
  53  */
  54 
  55 typedef __ssize_t ssize_t;
  56 typedef __ptrdiff_t ptrdiff_t;
  57 
  58 /* ...and machine-independent from <kern/types.h>. */
  59 typedef __blkcnt_t blkcnt_t;
  60 typedef __blksize_t blksize_t;
  61 typedef __daddr_t daddr_t;
  62 typedef __dev_t dev_t;
  63 typedef __fsid_t fsid_t;
  64 typedef __gid_t gid_t;
  65 typedef __in_addr_t in_addr_t;
  66 typedef __in_port_t in_port_t;
  67 typedef __ino_t ino_t;
  68 typedef __mode_t mode_t;
  69 typedef __nlink_t nlink_t;
  70 typedef __off_t off_t;
  71 typedef __pid_t pid_t;
  72 typedef __rlim_t rlim_t;
  73 typedef __sa_family_t sa_family_t;
  74 typedef __time_t time_t;
  75 typedef __uid_t uid_t;
  76 
  77 typedef __nfds_t nfds_t;
  78 typedef __socklen_t socklen_t;
  79 
  80 /*
  81  * Number of bits per byte.
  82  */
  83 
  84 #define CHAR_BIT __CHAR_BIT
  85 
  86 
  87 #endif /* _SYS_TYPES_H_ */

/* [<][>][^][v][top][bottom][index][help] */