Azinix

os.h

Go to the documentation of this file.
00001 /** \file os.h
00002 
00003   \brief OS specific headers
00004 
00005 ******************************************************************************/
00006 
00007 #ifndef _OS
00008 #define _OS
00009 
00010 /*---------------------------------------------------------------------------*/
00011 /* Nested includes                                                           */
00012 /*---------------------------------------------------------------------------*/
00013 
00014 /* #include <sys/types.h> */
00015 /* #include <sys/stat.h> */
00016 /* #include <sys/param.h> */
00017 
00018 #include <stdlib.h>
00019 #include <malloc.h>
00020 
00021 
00022 #include <string.h>
00023 #include <stdio.h>
00024 #include <sys/stat.h>
00025 #include <unistd.h>     // to get read and write syscalls
00026 #include <netinet/in.h>     // for ntoh type functions
00027 #include <fcntl.h>
00028 #include <time.h>
00029 #include <signal.h>
00030 
00031 #include <libnet.h>     // installed 1.19.06, sits in /usr/include/
00032 
00033 // the version with the std install is out of date, doesn't 
00034 // include pcap_direction() the commented one below does
00035 // #include "/nfs/narya/pf/libpcap-0.9x.20070323/pcap.h"
00036 #include "pcap.h"
00037 
00038 #include "util.h"
00039 #include "error.h"
00040 #include "avl.h"
00041 #include "var_set.h"
00042 #include "array.h"
00043 #include "st.h"
00044 #include "list.h"
00045 #include "heap.h"
00046 #include "circbuf.h"
00047 
00048 #ifdef __cplusplus
00049 extern "C" {
00050 #endif
00051 
00052 /*---------------------------------------------------------------------------*/
00053 /* Enum declarations                                                    */
00054 /*---------------------------------------------------------------------------*/
00055 
00056 /*---------------------------------------------------------------------------*/
00057 /* Constant declarations                                                     */
00058 /*---------------------------------------------------------------------------*/
00059 
00060 /**AutomaticStart*************************************************************/
00061 
00062 /*---------------------------------------------------------------------------*/
00063 /* Extern function prototypes                                                */
00064 /*---------------------------------------------------------------------------*/
00065 
00066 extern void Os_DynamicallyLinkFunction (st_table * nameToFunction,
00067                     char *aName, char *library);
00068 extern void Os_ThreadTest (int N);
00069 
00070 /**AutomaticEnd***************************************************************/
00071 #ifdef __cplusplus
00072 }
00073 #endif
00074 
00075 #endif /* _OS */