Lines Matching refs:fd
1965 int fd;
1967 fd = open(path, O_CREAT | O_WRONLY, mode >= 0 ? mode : 0644);
1968 if (fd < 0) {
1976 close(fd);
1986 if (wsize != write(fd, contents, wsize)) {
1987 close(fd);
1991 close(fd);
1995 close(fd);
2200 int fd, r, flagsa, flagsb;
2203 fd = open(patha, O_RDONLY | O_NONBLOCK);
2204 if (fd < 0) {
2209 r = ioctl(fd,
2216 close(fd);
2222 fd = open(pathb, O_RDONLY | O_NONBLOCK);
2223 if (fd < 0) {
2228 r = ioctl(fd,
2235 close(fd);
2280 int fd, r, flags;
2283 fd = open(pathname, O_RDONLY | O_NONBLOCK);
2284 if (fd < 0) {
2289 r = ioctl(fd,
2307 r = ioctl(fd,
2319 close(fd);
2671 int fd, r, flags;
2674 fd = open(path, O_RDONLY | O_NONBLOCK);
2675 if (fd < 0)
2677 r = ioctl(fd,
2691 r = ioctl(fd,
2700 close(fd);
2701 fd = open(path, O_RDONLY | O_NONBLOCK);
2702 if (fd < 0)
2704 r = ioctl(fd,
2713 close(fd);
2804 sunacl_get(int cmd, int *aclcnt, int fd, const char *path)
2832 cnt = facl(fd, cntcmd, 0, NULL);
2843 cnt = facl(fd, cmd, cnt, aclp);