File: ptx-2.1.h

package info (click to toggle)
socks4-server 4.3.beta2-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,512 kB
  • ctags: 1,778
  • sloc: ansic: 19,305; makefile: 404; sh: 52
file content (32 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Argument type passed to the wait() call. If you don't know what it is, then
 * leave it blank. The macro will place a pointer to the type for a cast...
 * This will either be "union wait" or "int".
 */

#define WAIT_ARG_TYPE int

/*
 * Argument type passed to the signal() call (second parameter). If you don't
 * know what it is then don't define it.... this is placed in as a cast as-is.
 */

#define SIGNAL_ARG_TYPE void(*)(int)


/* any additional missing headers */

#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <dirent.h>
#include <stdlib.h>

/* any extra externs */

extern int h_errno;

/* fix for missing gettimeofday() call */

#include <sys/procstats.h>
#define gettimeofday(t, tz)	get_process_stats((t), PS_SELF, NULL, NULL)