Home | History | Annotate | Download | only in lib

Lines Matching defs:result

46   int result;
71 result = dup2 (fd, desired_fd);
76 result = -1;
80 if (result == 0)
81 result = desired_fd;
83 return result;
93 int result;
103 result = dup2 (fd, desired_fd);
106 if (result == -1 && errno == EMFILE)
109 if (fd != desired_fd && result != -1)
110 result = _gl_register_dup (fd, result);
112 return result;
140 int result = fcntl (fd, F_GETFL) < 0 ? -1 : fd;
141 if (result == -1 || fd == desired_fd)
142 return result;
145 result = fcntl (fd, F_DUPFD, desired_fd);
147 if (0 <= result)
148 result = _gl_register_dup (fd, result);
151 result = dupfd (fd, desired_fd);
153 if (result == -1 && (errno == EMFILE || errno == EINVAL))
155 return result;