blob: 1c021a61abbc83e923a8dd0182a24832937de0ec (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
/* 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(Pyramid) || defined(SUNOS) || \
defined(NCR3K) || defined(SUNOS) || defined(ibm032) || \
defined(__osf__) || defined(ISC) || defined(SGI) || \
defined(linux)
# include <sys/time.h>
# endif
# if !defined(SGI) && !defined(ULTRIX)
# include <sys/timeb.h>
# endif
#endif
#include <time.h>
#ifdef MACINTOSH
# include <unix.h>
#endif
#if defined(WINDOWS) || defined(MSDOS)
# include <io.h>
#endif
#if !defined(MACINTOSH) && \
!defined(__MWERKS__)
# if defined(__TURBOC__) || defined(__WATCOMC__)
# include <mem.h>
# else
# include <memory.h>
# endif
#endif
#if !defined(__MWERKS__)
# include <fcntl.h>
#endif
#ifdef SET_UID
# ifndef USG
# include <sys/param.h>
# include <sys/file.h>
# endif
# ifdef linux
# include <sys/file.h>
# endif
# include <pwd.h>
# include <unistd.h>
# include <sys/stat.h>
# if defined(SOLARIS)
# include <netdb.h>
# endif
#endif
#ifdef __DJGPP__
#include <unistd.h>
#endif /* __DJGPP__ */
#ifdef SET_UID
#ifdef USG
# include <string.h>
#else
# include <strings.h>
#endif
#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
|