Lines Matching defs:whod
135 static struct whod mywd;
145 static int verify(const struct whod *);
254 struct whod wd;
255 int cc, whod;
258 cc = recvfrom(s, &wd, sizeof (struct whod), 0,
286 (void) sprintf(path, "whod.%s", wd.wd_hostname);
291 whod = open(path, O_WRONLY | O_CREAT, 0644);
292 if (whod < 0) {
317 (void) write(whod, &wd, cc);
318 if (fstat(whod, &st) < 0 || st.st_size > cc)
319 (void) ftruncate(whod, cc);
320 (void) close(whod);
334 verify(const struct whod *wd)
341 * checks at the size of the whod structures wd_hostname field.
714 struct whod *w = (struct whod *)buf;