Lines Matching defs:whod
121 struct whod mywd;
356 struct whod wd;
358 int cc, whod;
404 (void) snprintf(path, sizeof(path), "whod.%s", wd.wd_hostname);
409 whod = openat(dirfd, path, O_WRONLY | O_CREAT, 0644);
410 if (whod < 0) {
415 if (cap_rights_limit(whod, &rights) < 0 && errno != ENOSYS) {
441 (void) write(whod, (char *)&wd, cc);
442 if (fstat(whod, &st) < 0 || st.st_size > cc)
443 ftruncate(whod, cc);
444 (void) close(whod);
724 struct whod *w;
728 w = (struct whod *)buf;