Lines Matching refs:fd
164 int fd = _kern_open_entry_ref(ref->device, ref->directory, ref->name,
166 if (fd >= 0) {
167 set_fd(fd);
171 fcntl(fd, F_SETFD, FD_CLOEXEC);
174 fCStatus = fd;
208 int fd = _kern_open(entry->fDirFd, entry->fName, openMode,
210 if (fd >= 0) {
211 set_fd(fd);
215 fcntl(fd, F_SETFD, FD_CLOEXEC);
217 fCStatus = fd;
247 int fd = _kern_open(-1, path, openMode, DEFFILEMODE & ~__gUmask);
248 if (fd >= 0) {
249 set_fd(fd);
253 fcntl(fd, F_SETFD, FD_CLOEXEC);
255 fCStatus = fd;
289 int fd = _kern_open(dir->fDirFd, path, openMode, DEFFILEMODE & ~__gUmask);
290 if (fd >= 0) {
291 set_fd(fd);
295 fcntl(fd, F_SETFD, FD_CLOEXEC);
297 fCStatus = fd;
486 int fd = _kern_dup(file.get_fd());
488 if (fd >= 0) {
489 fFd = fd;
493 fCStatus = fd;