Back to index

lightning-sunbird  0.9+nobinonly
types.h
Go to the documentation of this file.
00001 /*-
00002  * Copyright (c) 1982, 1986, 1991, 1993
00003  *     The Regents of the University of California.  All rights reserved.
00004  * (c) UNIX System Laboratories, Inc.
00005  * All or some portions of this file are derived from material licensed
00006  * to the University of California by American Telephone and Telegraph
00007  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
00008  * the permission of UNIX System Laboratories, Inc.
00009  *
00010  * Redistribution and use in source and binary forms, with or without
00011  * modification, are permitted provided that the following conditions
00012  * are met:
00013  * 1. Redistributions of source code must retain the above copyright
00014  *    notice, this list of conditions and the following disclaimer.
00015  * 2. Redistributions in binary form must reproduce the above copyright
00016  *    notice, this list of conditions and the following disclaimer in the
00017  *    documentation and/or other materials provided with the distribution.
00018  * [3 Deleted as of 22Jul99, see
00019  *     ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
00020  *        for details]
00021  * 4. Neither the name of the University nor the names of its contributors
00022  *    may be used to endorse or promote products derived from this software
00023  *    without specific prior written permission.
00024  *
00025  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00026  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00027  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00028  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00029  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00030  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00031  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00032  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00033  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00034  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00035  * SUCH DAMAGE.
00036  *
00037  *     @(#)types.h   8.4 (Berkeley) 1/21/94
00038  */
00039 
00040 /* Adapted for GUSI by Matthias Neeracher <neeri@iis.ee.ethz.ch> */
00041 
00042 #ifndef _SYS_TYPES_H_
00043 #define       _SYS_TYPES_H_
00044 
00045 /* Machine type dependent parameters. */
00046 #include <machine/endian.h>
00047 
00048 #ifndef _POSIX_SOURCE
00049 typedef       unsigned char u_char;
00050 typedef       unsigned short       u_short;
00051 typedef       unsigned int  u_int;
00052 typedef       unsigned long u_long;
00053 typedef       char *               caddr_t;      /* core address */
00054 #endif
00055 
00056 typedef       unsigned long dev_t;        /* device number */
00057 typedef       unsigned long gid_t;        /* group id */
00058 typedef       unsigned long ino_t;        /* inode number */
00059 typedef       unsigned short       mode_t;              /* permissions */
00060 typedef       unsigned short       nlink_t;      /* link count */
00061 typedef       long                 off_t;        /* file offset */
00062 typedef       long                 pid_t;        /* process id */
00063 typedef       unsigned long uid_t;        /* user id */
00064 typedef long                suseconds_t;/* Microseconds */
00065 typedef unsigned long       useconds_t;/* Microseconds */
00066 
00067 /*
00068  * This belongs in unistd.h, but is placed here to ensure that programs
00069  * casting the second parameter of lseek to off_t will get the correct
00070  * version of lseek.
00071  */
00072 #include <sys/cdefs.h>
00073 __BEGIN_DECLS
00074 off_t   lseek __P((int, off_t, int));
00075 __END_DECLS
00076 
00077 #include <machine/ansi.h>
00078 
00079 /* Pthreads data types */
00080 #include <pthread.h>
00081 
00082 /* To avoid ugly namespace issues, we borrow all ANSI C defined types
00083    from ANSI headers 
00084 */
00085 
00086 /* size_t */
00087 #include <stddef.h>
00088 /* time_t and clock_t */
00089 #include <time.h>
00090 
00091 #ifdef _BSD_SSIZE_T_
00092 typedef       _BSD_SSIZE_T_ ssize_t;
00093 #undef _BSD_SSIZE_T_
00094 #endif
00095 
00096 #endif /* !_SYS_TYPES_H_ */