/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
#include <config.h>
#include <errno.h>
+#include <fcntl.h>
+#include <stdlib.h>
#include <sys/types.h>
-#if !defined(_WIN32)
+#ifdef _WIN32
+#define WIN32
+#include <winsock2.h>
+#undef NS_ALL
+#else
#include <sys/uio.h>
#include <sys/file.h>
-#include <unistd.h> /* close read shutdown select */
#include <sys/socket.h>
+#include <unistd.h>
#endif
#include <time.h>
-#include <fcntl.h>
-#include <stdlib.h> /* malloc calloc free */
-
-#if defined(_WIN32)
-#define WIN32
-#include <winsock2.h>
-#undef NS_ALL
-#endif
+#include "empio.h"
+#include "ioqueue.h"
#include "misc.h"
#include "queue.h"
-#include "ioqueue.h"
-#include "empio.h"
-#include "gen.h" /* getfdtablesize */
#include "server.h"
#include "empthread.h"
int
io_input(struct iop *iop, int waitforinput)
{
- s_char buf[IO_BUFSIZE];
+ char buf[IO_BUFSIZE];
int cc;
/* Not a read IOP */
#if !defined(_WIN32)
struct iovec iov[16];
#else
- s_char buf[IO_BUFSIZE];
+ char buf[IO_BUFSIZE];
#endif
int cc;
int n;
}
int
-io_peek(struct iop *iop, s_char *buf, int nbytes)
+io_peek(struct iop *iop, char *buf, int nbytes)
{
if ((iop->flags & IO_READ) == 0)
return -1;
}
int
-io_read(struct iop *iop, s_char *buf, int nbytes)
+io_read(struct iop *iop, char *buf, int nbytes)
{
int cc;
}
int
-io_write(struct iop *iop, s_char *buf, int nbytes, int doWait)
+io_write(struct iop *iop, char *buf, int nbytes, int doWait)
{
int len;
}
int
-io_gets(struct iop *iop, s_char *buf, int nbytes)
+io_gets(struct iop *iop, char *buf, int nbytes)
{
if ((iop->flags & IO_READ) == 0)
return -1;
}
int
-io_puts(struct iop *iop, s_char *buf)
+io_puts(struct iop *iop, char *buf)
{
if ((iop->flags & IO_WRITE) == 0)
return -1;