-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathelvisio.h
50 lines (43 loc) · 1.62 KB
/
elvisio.h
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
/* elvisio.h */
/* Copyright 1995 by Steve Kirkendall */
BEGIN_EXTERNC
#ifdef DEBUG_ALLOC
extern ELVBOOL _ioopen P_((char *file, int line, char *name, _char_ rwa, ELVBOOL prgsafe, ELVBOOL force, _char_ eol));
# define ioopen(n,r,p,f,e) _ioopen(__FILE__, __LINE__, n,r,p,f,e)
#else
extern ELVBOOL ioopen P_((char *name, _char_ rwa, ELVBOOL prgsafe, ELVBOOL force, _char_ eol));
#endif
extern int iowrite P_((CHAR *iobuf, int len));
extern int ioread P_((CHAR *iobuf, int len));
extern ELVBOOL ioclose P_((void));
extern char *iopath P_((char *path, char *filename, ELVBOOL usefile));
extern char *iofilename P_((char *partial, _char_ endchar));
extern char *ioeol P_((char *filename));
extern char *ioabsolute P_((char *filename));
char *urllocal P_((char *url));
DIRPERM urlperm P_((char *url));
#ifdef FEATURE_PROTO
RESULT urlalias P_((MARK from, MARK to, char *url));
extern ELVBOOL urlprotobusy;
#endif
#if defined(PROTOCOL_HTTP) || defined(PROTOCOL_FTP)
ELVBOOL urlremote P_((char *url));
ELVBOOL urlopen P_((char *url, ELVBOOL force, _char_ rwa));
void urlbytes P_((long totbytes));
int urlread P_((CHAR *buf, int bytes));
int urlwrite P_((CHAR *buf, int bytes));
void urlclose P_((void));
# ifdef PROTOCOL_HTTP
ELVBOOL httpopen P_((char *site_port, char *resource));
int httpread P_((CHAR *buf, int nbytes));
void httpclose P_((void));
# endif
# ifdef PROTOCOL_FTP
extern DIRPERM ftpperms;
ELVBOOL ftpopen P_((char *site_port, char *resource, ELVBOOL force, _char_ rwa));
int ftpread P_((CHAR *buf, int nbytes));
int ftpwrite P_((CHAR *buf, int nbytes));
void ftpclose P_((void));
# endif
#endif /* PROTOCOL_HTTP || PROTOCOL_FTP */
END_EXTERNC