Searched refs:dirFD (Results 1 – 7 of 7) sorted by relevance
/haiku/src/kits/storage/ |
H A D | Entry.cpp | 223 int dirFD = _kern_dup(dir->get_fd()); in SetTo() local 224 if (dirFD < 0) in SetTo() 225 return (fCStatus = dirFD); in SetTo() 226 return (fCStatus = _SetTo(dirFD, path, traverse)); in SetTo() 242 int dirFD = _kern_open_dir_entry_ref(ref->device, ref->directory, NULL); in SetTo() local 243 if (dirFD < 0) in SetTo() 244 return (fCStatus = dirFD); in SetTo() 245 return (fCStatus = _SetTo(dirFD, ref->name, traverse)); in SetTo() 397 int dirFD = _kern_dup(fDirFd); in Rename() local 398 if (dirFD < 0) in Rename() [all …]
|
H A D | Directory.cpp | 192 int dirFD = dir->fDirFd; in SetTo() local 199 status_t error = _SetTo(dirFD, path, true); in SetTo() 204 fDirFd = _kern_open_dir(dirFD, path); in SetTo() 213 _kern_close(dirFD); in SetTo()
|
/haiku/src/build/libbe/storage/ |
H A D | Entry.cpp | 411 int dirFD = _kern_dup(dir->get_fd()); in SetTo() local 412 if (dirFD < 0) in SetTo() 413 return (fCStatus = dirFD); in SetTo() 414 return (fCStatus = set(dirFD, path, traverse)); in SetTo() 433 int dirFD = _kern_open_dir_entry_ref(ref->device, ref->directory, NULL); in SetTo() local 434 if (dirFD < 0) in SetTo() 435 return (fCStatus = dirFD); in SetTo() 436 return (fCStatus = set(dirFD, ref->name, traverse)); in SetTo() 693 int dirFD = _kern_dup(fDirFd); in Rename() local 694 if (dirFD < 0) in Rename() [all …]
|
H A D | Directory.cpp | 186 int dirFD = dir->fDirFd; in SetTo() local 193 status_t error = _SetTo(dirFD, path, true); in SetTo() 206 _kern_close(dirFD); in SetTo()
|
/haiku/src/system/libroot/posix/ |
H A D | dirent.cpp | 136 int dirFD = _kern_open_dir(fd, NULL); in fdopendir() local 137 if (dirFD < 0) { in fdopendir() 138 __set_errno(dirFD); in fdopendir() 146 if (dup2(dirFD, fd) == -1) { in fdopendir() 149 close(dirFD); in fdopendir() 150 dirFD = fd; in fdopendir() 151 fcntl(dirFD, F_SETFD, FD_CLOEXEC); in fdopendir() 155 DIR* dir = __create_dir_struct(dirFD); in fdopendir() 157 close(dirFD); in fdopendir()
|
/haiku/headers/private/package/hpkg/ |
H A D | PackageWriterImpl.h | 89 Attribute* parentAttribute, int dirFD, 104 void _AddEntry(int dirFD, Entry* entry,
|
/haiku/src/kits/package/hpkg/ |
H A D | PackageWriterImpl.cpp | 1048 int dirFD, Entry* entry, const char* fileName, char* pathBuffer) in _UpdateCheckEntryCollisions() argument 1068 fd = openat(dirFD, fileName, in _UpdateCheckEntryCollisions() 1400 PackageWriterImpl::_AddEntry(int dirFD, Entry* entry, const char* fileName, in _AddEntry() argument 1417 fd = openat(dirFD, fileName, in _AddEntry() 1512 ssize_t bytesRead = readlinkat(dirFD, fileName, path, in _AddEntry()
|