rwhod.c | 99 static struct whod mywd; 266 struct whod wd; 267 int cc, whod; local in function:handleread 270 cc = recvfrom(s, (char *)&wd, sizeof(struct whod), 0, 302 (void)snprintf(path, sizeof(path), "whod.%s", wd.wd_hostname); 307 whod = open(path, O_WRONLY | O_CREAT, 0644); 308 if (whod < 0) { 332 (void)write(whod, (char *)&wd, cc); 333 if (fstat(whod, &st) < 0 || st.st_size > cc) 334 (void)ftruncate(whod, cc) [all...] |