Lines Matching refs:fd
44 static int xpg4_fixup(int fd);
45 static void push_module(int fd);
46 static int isptsfd(int fd);
52 int fd = syscall(SYS_openat, dfd, path, oflag, mode);
53 return (xpg4_fixup(fd));
67 int fd = syscall(SYS_openat64, dfd, path, oflag, mode);
68 return (xpg4_fixup(fd));
86 xpg4_fixup(int fd)
88 if (libc__xpg4 != 0 && fd >= 0 && isptsfd(fd))
89 push_module(fd);
90 return (fd);
98 isptsfd(int fd)
107 if (fstat64(fd, &fsb) == 0 && S_ISCHR(fsb.st_mode)) {
152 push_module(int fd)
161 if (ioctl(fd, I_STR, &istr) != -1) {
162 (void) ioctl(fd, __I_PUSH_NOCTTY, "ptem");
163 (void) ioctl(fd, __I_PUSH_NOCTTY, "ldterm");
164 (void) ioctl(fd, __I_PUSH_NOCTTY, "ttcompat");
169 (void) ioctl(fd, I_STR, &istr);