comparison src/w32term.c @ 16326:a85909645f7a

(w32_read_socket): Delete WAITP arg.
author Richard M. Stallman <rms@gnu.org>
date Wed, 25 Sep 1996 03:54:23 +0000
parents 008dd73a2005
children 481b7874a1e9
comparison
equal deleted inserted replaced
16325:bcc66c0b3bff 16326:a85909645f7a
2345 Events representing keys are stored in buffer BUFP, 2345 Events representing keys are stored in buffer BUFP,
2346 which can hold up to NUMCHARS characters. 2346 which can hold up to NUMCHARS characters.
2347 We return the number of characters stored into the buffer, 2347 We return the number of characters stored into the buffer,
2348 thus pretending to be `read'. 2348 thus pretending to be `read'.
2349 2349
2350 WAITP is nonzero if we should block until input arrives.
2351 EXPECTED is nonzero if the caller knows input is available. 2350 EXPECTED is nonzero if the caller knows input is available.
2352 2351
2353 Some of these messages are reposted back to the message queue since the 2352 Some of these messages are reposted back to the message queue since the
2354 system calls the winproc directly in a context where we cannot return the 2353 system calls the winproc directly in a context where we cannot return the
2355 data nor can we guarantee the state we are in. So if we dispatch them 2354 data nor can we guarantee the state we are in. So if we dispatch them
2358 which message we are processing since the winproc gets called recursively with different 2357 which message we are processing since the winproc gets called recursively with different
2359 messages by the system. 2358 messages by the system.
2360 */ 2359 */
2361 2360
2362 int 2361 int
2363 w32_read_socket (sd, bufp, numchars, waitp, expected) 2362 w32_read_socket (sd, bufp, numchars, expected)
2364 register int sd; 2363 register int sd;
2365 register struct input_event *bufp; 2364 register struct input_event *bufp;
2366 register int numchars; 2365 register int numchars;
2367 int waitp;
2368 int expected; 2366 int expected;
2369 { 2367 {
2370 int count = 0; 2368 int count = 0;
2371 int nbytes = 0; 2369 int nbytes = 0;
2372 int items_pending; /* How many items are in the X queue. */ 2370 int items_pending; /* How many items are in the X queue. */