Switch io_close(), io_input() from timeouts to deadlines
All users want deadlines. Move the conversion from deadline to timeout from callers to io.c, where it becoems an implementation detail.
This commit is contained in:
parent
10768189e2
commit
ddbcce12c3
5 changed files with 26 additions and 21 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
#ifndef EMPIO_H
|
||||
#define EMPIO_H
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#define IO_READ 0x1
|
||||
#define IO_WRITE 0x2
|
||||
|
@ -43,9 +43,8 @@
|
|||
|
||||
extern struct iop *io_open(int, int, int);
|
||||
extern void io_init(void);
|
||||
extern void io_close(struct iop *, struct timeval *);
|
||||
extern void io_timeout(struct timeval *, time_t);
|
||||
extern int io_input(struct iop *, struct timeval *);
|
||||
extern void io_close(struct iop *, time_t);
|
||||
extern int io_input(struct iop *, time_t);
|
||||
extern int io_inputwaiting(struct iop *);
|
||||
extern int io_outputwaiting(struct iop *);
|
||||
extern int io_output(struct iop *, int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue