Lines Matching defs:fd
1107 syslock(int fd, char **errstring)
1113 assert(fd != -1);
1124 while ((rval = fcntl(fd, F_SETLKW, &lock)) == -1 && errno == EINTR) {
1191 wait_and_cleanup(int fd, apid_t *apidp)
1199 if (syslock(fd, NULL) != SCFGA_OK) {
1297 int fd;
1309 ret = create_lock(&fd, pt->msgp, errstring);
1315 ret = syslock(fd, errstring);
1329 wait_and_cleanup(fd, apidp);
1347 (void) close(fd); /* also unlocks */
1355 (void) close(fd);