1
/* private file data */
5
int fd; /* descriptor */
6
int sema; /* completion semaphore */
8
int pos; /* file position */
9
int status; /* number of bytes transferred, or: */
10
# define Busy -1 /* operation in progress */
11
# define Error -2 /* operation aborted */
12
} rd, wr; /* one each for read and write */
14
char *bytes; /* write buffer */
15
int capacity; /* capacity */
16
int size; /* contents size */
17
int pos; /* position */
22
extern int sqUnixAsyncFileSessionID;
24
extern FilePtr asyncFileAttach(AsyncFile *f, int fd, int semaIndex);