summaryrefslogtreecommitdiffstats
path: root/usr.bin/sup/src/supextern.h
blob: 662deeb79607cd1df7148b0577c64c0bdf55fdd0 (plain) (blame)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/*     $OpenBSD: supextern.h,v 1.5 2001/05/05 15:56:04 millert Exp $  */

#ifndef __P
#ifdef __STDC__
#define __P(a)	a
#else
#define	__P(a) ()
#endif
#endif

/* atoo.c */
unsigned int atoo __P((char *));

#if 0
/* ci.c */
int ci __P((char *, FILE *, int, CIENTRY *, char *, char *));
#endif

/* errmsg.c */
const char *errmsg __P((int));

/* expand.c */
int expand __P((char *, char **, int));

/* ffilecopy.c */
int ffilecopy __P((FILE *, FILE *));

/* filecopy.c */
int filecopy __P((int, int ));

/* log.c */
void logopen __P((char *));
void logquit __P((int, char *, ...));
void logerr __P((char *, ...));
void loginfo __P((char *, ...));
#ifdef LIBWRAP
void logdeny __P((char *, ...));
void logallow __P((char *, ...));
#endif

/* netcryptvoid.c */
int netcrypt __P((char *));
int getcryptbuf __P((int));
void decode __P((char *, char *, int));
void encode __P((char *, char *, int));

/* nxtarg.c */
char *nxtarg __P((char **, char *));

/* path.c */
void path __P((char *, char *, char *, int));

/* quit.c */
void quit __P((int, char *, ...));

/* read_line.c */
char *read_line __P((FILE *, size_t *, size_t *, const char[3], int));

/* run.c */
int run __P((char *, ...));
int runv __P((char *, char **));
int runp __P((char *, ...));
int runvp __P((char *, char **));
int runio __P((char *const[], const char *, const char *, const char *));
int runiofd __P((char *const[], const int, const int, const int));

/* scan.c */
int getrelease __P((char *));
void makescanlists __P((void));
void getscanlists __P((void));
void cdprefix __P((char *));

/* scm.c */
int lock_host_file __P((char *));
int servicesetup __P((char *));
int service __P((void));
int serviceprep __P((void));
int servicekill __P((void));
int serviceend __P((void));
int dobackoff __P((int *, int *));
int request __P((char *, char *, int *));
int requestend __P((void));
char *remotehost __P((void));
int thishost __P((char *));
int samehost __P((void));
int matchhost __P((char *));
int scmerr __P((int, char *, ...));
int byteswap __P((int));

/* scmio.c */
int writemsg __P((int));
int writemend __P((void));
int writeint __P((int));
int writestring __P((char *));
int writefile __P((int));
int writemnull __P((int));
int writemint __P((int, int ));
int writemstr __P((int, char *));
int prereadcount __P((int *));
int readflush __P((void));
int readmsg __P((int));
int readmend __P((void));
int readskip __P((void));
int readint __P((int *));
int readstring __P((char **));
int readfile __P((int));
int readmnull __P((int));
int readmint __P((int, int *));
int readmstr __P((int, char **));
void crosspatch __P((void));

/* skipto.c */
char *skipto __P((char *, char *));
char *skipover __P((char *, char *));

/* stree.c */
void Tfree __P((TREE **));
TREE *Tinsert __P((TREE **, char *, int));
TREE *Tsearch __P((TREE *, char *));
TREE *Tlookup __P((TREE *, char *));
int Trprocess __P((TREE *, int (*)(TREE *, void *), void *));
int Tprocess __P((TREE *, int (*)(TREE *, void *), void *));
void Tprint __P((TREE *, char *));

/* supcmeat.c */
int getonehost __P((TREE *, void *));
TREE *getcollhost __P((int *, int *, long *, int *));
void getcoll __P((void));
int signon __P((TREE *, int, int *));
int setup __P((TREE *));
void suplogin __P((void));
void listfiles __P((void));
void recvfiles __P((void));
int prepare __P((char *, int, int *, struct stat *));
int recvdir __P((TREE *, int, struct stat *));
int recvsym __P((TREE *, int, struct stat *));
int recvreg __P((TREE *, int, struct stat *));
int copyfile __P((char *, char *));
void finishup __P((int));
void done __P((int, char *, ...));
void goaway __P((char *, ...));

/* supcmisc.c */
void prtime __P((void));
int establishdir __P((char *));
int makedir __P((char *, int, struct stat *));
int estabd __P((char *, char *));
void ugconvert __P((char *, char *, uid_t *, gid_t *, int *));
void notify __P((char *, ...));
void lockout __P((int));
char *fmttime __P((time_t));

/* supcname.c */
void getnams __P((void));

/* supcparse.c */
int parsecoll __P((COLLECTION *, char *, char *));
time_t getwhen __P((char *, char *));
int putwhen __P((char *, time_t));

/* supmsg.c */
int msgsignon __P((void));
int msgsignonack __P((void));
int msgsetup __P((void));
int msgsetupack __P((void));
int msgcrypt __P((void));
int msgcryptok __P((void));
int msglogin __P((void));
int msglogack __P((void));
int msgrefuse __P((void));
int msglist __P((void));
int msgneed __P((void));
int msgdeny __P((void));
int msgsend __P((void));
int msgrecv __P((int (*)(TREE *, va_list), ...));
int msgdone __P((void));
int msggoaway __P((void));
int msgxpatch __P((void));
int msgcompress __P((void));

/* vprintf.c */
/* XXX already in system headers included already - but with different
   argument declarations! */
#if 0
int vprintf __P((const char *, va_list));
int vfprintf __P((FILE *, const char *, va_list));
int vsprintf __P((char *, const char *, va_list));
int vsnprintf __P((char *, size_t, const char *, va_list));
#endif