-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprototypes.h
69 lines (47 loc) · 1.49 KB
/
prototypes.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __prototypes_h__
#define __prototypes_h__
#include <stdio.h>
#define IncBusy() asm { jsl 0xE10064 }
#define DecBusy() asm { jsl 0xE10068 }
#define Resched() asm { cop 0x7f }
#define BusyFlag ((byte *)0xE100FFl)
#define SEI() asm { sei }
#define CLI() asm { cli }
pascal void DisplayCallback(const char *message);
typedef struct ReadBlock
{
LongWord requestCount;
LongWord transferCount;
} ReadBlock;
int read_binary(unsigned ipid, FILE *file, ReadBlock *);
int read_binary_size(unsigned ipid, FILE *file, ReadBlock *);
int parse_extension_c(const char *cp, Word *ftype, LongWord *atype);
int parse_extension(const char *cp, Word size, Word *ftype, LongWord *atype);
int parse_mime_c(const char *cp, Word *ftype, LongWord *atype);
int parse_mime(const char *cp, Word size, Word *ftype, LongWord *atype);
#ifdef __GSOS__
enum {
ATTR_ACCESS = 1,
ATTR_FILETYPE = 2,
ATTR_AUXTYPE = 4,
ATTR_CREATETIME = 8,
ATTR_MODTIME = 16
};
int setfileattr(const char *filename, FileInfoRecGS *info, unsigned flags);
#endif
#ifdef __CONNECTION_H__
int ConnectLoop(char *host, Word port, Connection *connection);
int CloseLoop(Connection *connection);
#endif
#ifdef __url_h__
int do_gopher(const char *url, URLComponents *components);
int do_http(const char *url, URLComponents *components);
#endif
#ifdef __TYPES__
void tiTimeRec2ISO8601(const TimeRecPtr t, char *str);
void tiTimeRec2GMTString(const TimeRecPtr t, char *str);
#endif
#ifdef __Options__
extern struct Options flags;
#endif
#endif