where the client could wait indefinitely for the server. The user can
always interrupt.
[_WIN32] (alarm): Unused, remove.
int cc;
size = 1024;
- (void)alarm(30);
ptr = buf;
n = recv(s, ptr, size, MSG_PEEK);
if (n <= 0) {
return 0;
}
buf[newline] = '\0';
- (void)alarm(0);
if (!isxdigit(buf[0]) || buf[1] != ' ') {
fprintf(stderr, "Malformed line %s\n", buf);
return 0;
#include "ringbuf.h"
#include "secure.h"
-/*
- * Ignore alarm for WIN32 client
- */
-int
-alarm(int time)
-{
- return 0;
-}
-
/*
* Get user name in the WIN32 environment
*/
extern int w32_createfd(const char *fname, int oflag, ...);
extern int w32_openhandle(const char *fname, int oflag);
-extern int alarm(int time);
extern struct passwd *w32_getpw(void);
extern char *getpass(char *prompt);
extern void sysdep_init(void);