Go to the source code of this file.
◆ SRead()
Definition at line 118 of file SRead.c.
119{
120 int nread;
121 volatile int nleft;
123 int tleft;
128
130
134 firstRead = 1;
135
137 tleft = (
int) (done -
now);
138 if (tleft < 1) {
139 nread =
size - nleft;
144 }
145 goto done;
146 }
147
153 tv.tv_sec = tlen;
154 tv.tv_usec = 0;
157
158 break;
160
161 nread =
size - nleft;
163 return (nread);
168 return (-1);
169 }
170 }
171 firstRead = 0;
172 }
173
174#if defined(WIN32) || defined(_WINDOWS)
175 nread =
recv(sfd, (
char *)
buf, nleft, 0);
176#else
177 nread =
read(sfd, (
char *)
buf, nleft);
178#endif
179
180 if (nread <= 0) {
181 if (nread == 0) {
182
184 nread =
size - nleft;
185 goto done;
187 nread =
size - nleft;
188 if (nread == 0)
189 nread = -1;
190 goto done;
191 } else {
193 nread = 0;
194
195
196
199 }
200 }
201 nleft -= nread;
203 break;
206 }
207 nread =
size - nleft;
208
209done:
210 return (nread);
211}
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
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)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define SELECT_TYPE_ARG234
#define kFullBufferRequired
#define kFullBufferRequiredExceptLast
#define LIBSIO_USE_VAR(a)
Referenced by FTPGetOneF(), and SReadline().
◆ UNUSED() [1/2]
◆ UNUSED() [2/2]
static char UNUSED |
( |
gSioVersion |
[] | ) |
|
|
static |