summaryrefslogtreecommitdiff
path: root/src/h-system.h
blob: 92041742e744080634545e21d29d36b10637708a (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* File: h-system.h */

#ifndef INCLUDED_H_SYSTEM_H
#define INCLUDED_H_SYSTEM_H

/*
 * Include the basic "system" files.
 *
 * Make sure all "system" constants/macros are defined.
 * Make sure all "system" functions have "extern" declarations.
 *
 * This file is a big hack to make other files less of a hack.
 * This file has been rebuilt -- it may need a little more work.
 */


#include <stdio.h>
#include <ctype.h>
#include <errno.h>

#include <stdlib.h>


#ifdef SET_UID

# include <sys/types.h>

# if defined(linux)
#  include <sys/time.h>
# endif

#  include <sys/timeb.h>

#endif


#include <time.h>



#if defined(WINDOWS)
# include <io.h>
#endif

#include <memory.h>


# include <fcntl.h>


#ifdef SET_UID

#  include <sys/param.h>
#  include <sys/file.h>

# ifdef linux
#  include <sys/file.h>
# endif

# include <pwd.h>

# include <unistd.h>

# include <sys/stat.h>


#endif

#ifdef SET_UID

# include <strings.h>

#else

# include <string.h>

#endif




#include <stdarg.h>


#endif

/* There was a bug introduced in 10.4.11; working around it */
#ifdef __APPLE__
#define GETLOGIN_BROKEN
#endif