Dolda2000 GitWeb
/
ashd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
75928ebe4a7e27c9d10b36a6fd6fadf4c1b6a176
[ashd.git]
/
mtio.h
1
#ifndef _LIB_MTIO_H
2
#define _LIB_MTIO_H
3
4
#include <stdio.h>
5
6
#define EV_READ 1
7
#define EV_WRITE 2
8
9
struct stdiofd {
10
int fd;
11
int sock;
12
int timeout;
13
};
14
15
int block(int fd, int ev, time_t to);
16
int ioloop(void);
17
void exitioloop(int status);
18
FILE *mtstdopen(int fd, int issock, int timeout, char *mode, struct stdiofd **infop);
19
void mtiopipe(FILE **read, FILE **write);
20
21
#endif