Lines Matching defs:fd
119 int fd;
128 fd = openat(dir, PKGDOOR, O_RDWR);
130 if (fd == -1)
133 res = door_info(fd, &di);
134 (void) close(fd);
275 int fd;
278 if ((fd = mkstemp(pkgdoor)) < 0) {
282 (void) close(fd);
486 int *fd)
505 if (fd != NULL)
506 *fd = da.desc_ptr[i++].d_data.d_desc.d_descriptor;
550 int fd;
565 fd = open(pkgfile, O_RDWR);
567 if (fd >= 0) {
568 if (door_info(fd, &di) == 0) {
572 (void) close(fd);
656 int fd;
673 fd = -1;
675 if (pkgcmd(server, pfcmd, len, NULL, NULL, &fd) != 0 || fd == -1) {
679 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
681 server->fp = fdopen(fd, "r");
683 (void) close(fd);