Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

sys.h

Go to the documentation of this file.
00001 
00002 /*
00003 ** Copyright (C) 2002 Russell Leighton
00004 **
00005 ** This program is free software; you can redistribute it and/or modify
00006 ** it under the terms of the GNU General Public License as published by
00007 ** the Free Software Foundation; either version 2 of the License, or
00008 ** (at your option) any later version.
00009 **
00010 ** This program is distributed in the hope that it will be useful,
00011 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 ** GNU General Public License for more details.
00014 **
00015 ** You should have received a copy of the GNU General Public License
00016 ** along with this program; if not, write to the Free Software
00017 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018 */
00019 
00020 
00021 
00022 #ifndef  __AW_LINUX_SYS__
00023 #define  __AW_LINUX_SYS__
00024 
00025 
00032 /* declare this a linux system */
00033 #ifndef __linux__
00034 # define __linux__
00035 #endif
00036 
00037 /* headers */
00038 #include <errno.h>
00039 
00040 #include <assert.h>
00041 
00042 #include <stdlib.h>
00043 #include <stdio.h>
00044 
00045 #include <fcntl.h>
00046 
00047 #include <signal.h>
00048 
00049 #include <string.h>
00050 
00051 #include <time.h>
00052 
00053 #include <unistd.h>
00054 
00055 #include <semaphore.h>
00056 #include <sched.h>
00057 
00058 #include <sys/types.h>  
00059 #include <sys/user.h>    /* for PAGE_SHIFT */
00060 #include <sys/param.h>   /* for HZ */
00061 #include <sys/stat.h>  
00062 #include <sys/mman.h>  
00063 #include <sys/file.h>  
00064 #include <sys/ioctl.h>  
00065 #include <sys/wait.h>  
00066 
00067 
00068 #include <sys/sendfile.h>
00069 
00070 
00071 #if ! (defined(LITTLE_ENDIAN) || defined(BIG_ENDIAN))
00072 # include <endian.h>
00073 #endif
00074 
00075 #if ! (defined(LITTLE_ENDIAN) || defined(BIG_ENDIAN))
00076 #  error "cpp vars LITTLE_ENDIAN and BIG_ENDIAN not defined!"
00077 #endif
00078 
00079 
00080 #endif
Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)