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);