3 static char UNUSED(gSioVersion[]) =
"@(#) sio 6.0.3 ** Copyright 1992-2001 Mike Gleason. All rights reserved.";
8 extern volatile Sjmp_buf gNetTimeoutJmp;
29 SRead(
int sfd,
char *
const buf0,
size_t size,
int tlen,
int retry)
33 char *
volatile buf = buf0;
38 if (
SSetjmp(gNetTimeoutJmp) != 0) {
68 tleft = (
int) (done -
now);
77 (
void) alarm((
unsigned int) tleft);
78 nread =
read(sfd, (
char *)
buf, nleft);
106 nread =
size - nleft;
118 SRead(
int sfd,
char *
const buf0,
size_t size,
int tlen,
int retry)
137 tleft = (
int) (done -
now);
139 nread =
size - nleft;
161 nread =
size - nleft;
174 #if defined(WIN32) || defined(_WINDOWS) 175 nread =
recv(sfd, (
char *)
buf, nleft, 0);
177 nread =
read(sfd, (
char *)
buf, nleft);
184 nread =
size - nleft;
187 nread =
size - nleft;
207 nread =
size - nleft;
#define SELECT_TYPE_ARG234
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
volatile sio_sigproc_t vsio_sigproc_t
int SRead(int sfd, char *const buf0, size_t size, int tlen, int retry)
#define LIBSIO_USE_VAR(a)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define kFullBufferRequired
INT WSAAPI select(IN INT s, IN OUT LPFD_SET readfds, IN OUT LPFD_SET writefds, IN OUT LPFD_SET exceptfds, IN CONST struct timeval *timeout)
static char UNUSED(gSioVersion[])
void(*)(int) SSignal(int signum, void(*handler)(int))
#define kFullBufferRequiredExceptLast
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
void(* sio_sigproc_t)(int)
_CRTIMP int __cdecl read(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *