00001 /* 00002 ** conven.h for in /root/work/lseos-0.2.5/libsys/conven 00003 ** 00004 ** Copyright (c)2004 Vianney Rancurel 00005 ** Login <vianney@epita.fr> 00006 ** 00007 ** Started on Wed Apr 28 13:30:23 2004 Vianney Rancurel 00008 ** Last update Tue Nov 30 11:22:49 2004 Vianney Rancurel 00009 */ 00010 #ifndef __CONVEN_CONVEN_H__ 00011 #define __CONVEN_CONVEN_H__ 1 00012 #include <conven/queue.h> 00013 #include <conven/bpt.h> 00014 #include <conven/bufdump.h> 00015 #include <conven/parse.h> 00016 #include <conven/load.h> 00017 #include <conven/thread.h> 00018 #include <conven/ascreate.h> 00019 #include <conven/task.h> 00020 #include <conven/asrele.h> 00021 #include <conven/pgalloc.h> 00022 #include <conven/stkalloc.h> 00023 #include <conven/cprintf.h> 00024 #include <conven/dprintf.h> 00025 #include <conven/path.h> 00026 #include <conven/bootfs.h> 00027 00028 #define RAND_MAX 0x7fffffff 00029 00030 /* PROTO pclean.c hcode.c suser.c xmalloc.c xstrdup.c strdup.c dexit.c rand.c qsort.c */ 00031 /* pclean.c */ 00032 void pclean(paddr_t begin); 00033 void pcorrupt(paddr_t begin); 00034 /* hcode.c */ 00035 u_int32_t hcode(char *buf, int len); 00036 /* suser.c */ 00037 int suser(struct s_ucred *ucred); 00038 /* xmalloc.c */ 00039 void *xmalloc(size_t sz); 00040 /* xstrdup.c */ 00041 char *xstrdup(const char *str); 00042 /* strdup.c */ 00043 char *strdup(const char *str); 00044 /* dexit.c */ 00045 void dexit(int code); 00046 /* rand.c */ 00047 int rand(void); 00048 void srand(u_int seed); 00049 /* qsort.c */ 00050 void qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void *)); 00051 #endif