[_WIN32] (readv, writev, iovec): New. POSIX equivalents.

(ioq_makeiov, ioqtoiov): Compile unconditionally.
(io_output): Use POSIX code unconditionally.
[_WIN32] (ioq_makebuf): Remove.
This commit is contained in:
Ron Koenderink 2007-08-16 21:43:20 +00:00
parent a9c872f006
commit af64cfd491
5 changed files with 135 additions and 70 deletions

View file

@ -56,11 +56,7 @@ struct ioqueue {
extern struct ioqueue *ioq_create(int size);
extern void ioq_destroy(struct ioqueue *ioq);
extern void ioq_drain(struct ioqueue *ioq);
#if defined (_WIN32)
extern int ioq_makebuf(struct ioqueue *ioq, char *pBuf, int nBufLen);
#else
extern int ioq_makeiov(struct ioqueue *ioq, struct iovec *iov, int cc);
#endif
extern int ioq_peek(struct ioqueue *ioq, char *buf, int cc);
extern int ioq_dequeue(struct ioqueue *ioq, int cc);
extern void ioq_append(struct ioqueue *ioq, char *buf, int cc);