dd0fbc375bc555cc6a630e4edbef478cb9c648e3
1 /* Misc util functions */
3 char const *cvs_id_util
= "$Id: util.c,v 1.3 2004/09/02 04:18:07 fred_nerk Exp $";
7 #include <sys/socket.h>
8 #include <netinet/in.h>
13 char *inet_toa(unsigned long addr
)
16 memcpy(&in
, &addr
, sizeof(unsigned long));
20 void *shared_malloc(unsigned int size
)
23 p
= mmap(NULL
, size
, PROT_READ
| PROT_WRITE
, MAP_SHARED
| MAP_ANONYMOUS
, 0, 0);