/haiku/src/system/boot/loader/file_systems/packagefs/ |
H A D | PackageSettingsItem.cpp | 48 FileDescriptorCloser fd(open_from(systemDirectory, settingsFilePath, 50 if (!fd.IsSet()) 54 DriverSettingsUnloader settingsHandle(load_driver_settings_file(fd.Get()));
|
/haiku/src/servers/package/ |
H A D | PackageFile.cpp | 64 FileDescriptorCloser fd(file.Dup()); 65 if (!fd.IsSet()) 68 error = fInfo.ReadFromPackageFile(fd.Get());
|
/haiku/src/kits/package/hpkg/ |
H A D | PackageWriterImpl.cpp | 257 Entry(char* name, size_t nameLength, int fd, bool isImplicit) argument 261 fFD(fd), 272 static Entry* Create(const char* name, size_t nameLength, int fd, argument 281 Entry* entry = new(std::nothrow) Entry(clonedName, nameLength, fd, 301 void SetFD(int fd) argument 303 fFD = fd; 511 PackageWriterImpl::AddEntry(const char* fileName, int fd) argument 534 if (fd >= 0) { 538 if (fstat(fd, &st) != 0) 546 ssize_t result = read_pos(fd, 1061 int fd; local 1251 _RegisterEntry(const char* fileName, int fd) argument 1293 _RegisterEntry(Entry* parent, const char* name, size_t nameLength, int fd, bool isImplicit) argument 1410 int fd; local 1561 _AddDirectoryChildren(Entry* entry, int fd, char* pathBuffer) argument [all...] |
/haiku/src/bin/ |
H A D | ramdisk.cpp | 102 FileDescriptorCloser fd(open(kRamDiskControlDevicePath, O_RDONLY)); 103 if (!fd.IsSet()) { 110 if (ioctl(fd.Get(), operation, request) < 0) 333 FileDescriptorCloser fd(open(path, O_RDONLY)); 334 if (!fd.IsSet()) { 341 if (ioctl(fd.Get(), RAM_DISK_IOCTL_FLUSH, NULL) < 0) { 406 FileDescriptorCloser fd(open(path, O_RDONLY)); 407 if (!fd.IsSet()) 412 if (ioctl(fd.Get(), RAM_DISK_IOCTL_INFO, &request, sizeof(request))
|
/haiku/src/bin/i2c/ |
H A D | i2c.cpp | 44 FileDescriptorCloser fd(open(path, O_RDONLY)); 45 if (!fd.IsSet()) { 68 if (ioctl(fd.Get(), I2CEXEC, &exec, sizeof(exec)) == 0)
|
/haiku/src/add-ons/accelerants/radeon_hd/ |
H A D | accelerant_protos.h | 26 status_t radeon_init_accelerant(int fd);
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | NodeHandle.cpp | 40 int fd = GetFD(); local 41 if (fd < 0) 44 if (fstat(fd, st) < 0)
|
/haiku/src/add-ons/kernel/file_systems/fat/ |
H A D | dosfs.h | 108 int fd; // File descriptor member in struct:_nspace
|
/haiku/src/add-ons/accelerants/intel_extreme/ |
H A D | accelerant_protos.h | 23 status_t intel_init_accelerant(int fd);
|
/haiku/src/system/boot/loader/ |
H A D | vfs.cpp | 271 int fd = open_from(this, linkPath, O_RDONLY); local 272 if (fd < 0) { 278 node = get_node_from(fd); 282 close(fd); 850 get_descriptor(int fd) argument 852 if (fd < 0 || fd >= MAX_VFS_DESCRIPTORS) 855 return sDescriptors[fd]; 860 free_descriptor(int fd) argument 862 if (fd > 882 int fd = 0; local 912 dup(int fd) argument 924 lseek(int fd, off_t offset, int whence) argument 939 ftruncate(int fd, off_t newSize) argument 947 read_pos(int fd, off_t offset, void *buffer, size_t bufferSize) argument 958 pread(int fd, void* buffer, size_t bufferSize, off_t offset) argument 965 read(int fd, void *buffer, size_t bufferSize) argument 976 write_pos(int fd, off_t offset, const void *buffer, size_t bufferSize) argument 987 pwrite(int fd, const void* buffer, size_t bufferSize, off_t offset) argument 994 write(int fd, const void *buffer, size_t bufferSize) argument 1005 writev(int fd, const struct iovec* vecs, int count) argument 1116 int fd = open_node(node, mode); local 1130 get_node_from(int fd) argument 1162 close(int fd) argument 1179 _fstat(int fd, struct stat *stat, size_t ) argument [all...] |
/haiku/src/kits/storage/ |
H A D | Node.cpp | 450 int fd = _kern_dup(fFd); local 452 return (fd >= 0 ? fd : -1); 477 \param fd the file descriptor this BNode should be set to (may be -1). 483 BNode::set_fd(int fd) argument 488 fFd = fd; 532 In the first case, \a fd must not be \c NULL; the node it refers to will 533 be opened. If absolute, \a fd is ignored. If relative and \a fd is >= 0, 534 it will be reckoned off the directory identified by \a fd, otherwis 554 _SetTo(int fd, const char* path, bool traverse) argument [all...] |
/haiku/src/build/libroot/ |
H A D | fs_attr_untyped.cpp | 345 fs_fopen_attr_dir(int fd) argument 349 status_t error = attrDir->Init(NULL, fd); 407 fs_fopen_attr(int fd, const char *attribute, uint32 type, int openMode) argument 409 if (fd < 0) { 414 AttributeDescriptor* descriptor = new(std::nothrow) AttributeDescriptor(fd, 440 fs_close_attr(int fd) argument 442 status_t error = delete_descriptor(fd); 453 fs_read_attr(int fd, const char *_attribute, uint32 type, off_t pos, argument 465 status_t error = localFD.Init(fd); 520 fs_write_attr(int fd, cons argument 575 fs_remove_attr(int fd, const char *_attribute) argument 613 fs_stat_attr(int fd, const char *_attribute, struct attr_info *attrInfo) argument 671 _kern_open_attr_dir(int fd, const char *path) argument 714 _kern_remove_attr(int fd, const char *name) argument [all...] |
/haiku/src/build/libbe/storage/ |
H A D | Node.cpp | 440 int fd = _kern_dup(fFd); local 442 return (fd >= 0 ? fd : -1); 467 \param fd the file descriptor this BNode should be set to (may be -1). 473 BNode::set_fd(int fd) argument 478 fFd = fd; 522 In the first case, \a fd must not be \c NULL; the node it refers to will 523 be opened. If absolute, \a fd is ignored. If relative and \a fd is >= 0, 524 it will be reckoned off the directory identified by \a fd, otherwis 544 _SetTo(int fd, const char* path, bool traverse) argument [all...] |
H A D | Directory.cpp | 519 BDirectory::set_dir_fd(int fd) argument 521 if (fd < 0) 522 return fd; 524 fDirFd = fd;
|
/haiku/headers/private/storage/ |
H A D | storage_support.h | 112 FDCloser(int fd) argument 113 : fFD(fd) 122 void SetTo(int fd) argument 125 fFD = fd; 140 int fd = fFD; local 142 return fd;
|
/haiku/src/tests/system/kernel/file_corruption/fs/ |
H A D | checksumfs.cpp | 793 checksumfs_identify_partition(int fd, partition_data* partition, argument 804 if (pread(fd, superBlock, sizeof(*superBlock), kCheckSumFSSuperBlockOffset) 818 checksumfs_scan_partition(int fd, partition_data* partition, void* cookie) argument 869 checksumfs_set_content_name(int fd, partition_id partition, const char* name, argument 878 checksumfs_initialize(int fd, partition_id partition, const char* name, argument 893 status_t error = volume.Init(fd, partitionSize / B_PAGE_SIZE);
|
/haiku/headers/private/fs_shell/ |
H A D | fssh_dirent.h | 25 int fd; member in struct:__anon1
|
/haiku/headers/posix/ |
H A D | dirent.h | 39 DIR* fdopendir(int fd);
|
/haiku/headers/build/os/storage/ |
H A D | Node.h | 107 status_t set_fd(int fd); 111 status_t _SetTo(int fd, const char *path, bool traverse);
|
H A D | Directory.h | 78 status_t set_dir_fd(int fd);
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | win32_io.c | 676 * @fd: a win_fd structure that will be filled 689 static int ntfs_device_win32_getgeo(HANDLE handle, win32_fd *fd) argument 705 fd->geo_cylinders = ((DISK_GEOMETRY*)&b)->Cylinders.QuadPart; 706 fd->geo_sectors = ((DISK_GEOMETRY*)&b)->SectorsPerTrack; 707 fd->geo_size = ((DISK_GEOMETRY_EX*)&b)->DiskSize.QuadPart; 708 fd->geo_sector_size = NTFS_BLOCK_SIZE; 711 fd->geo_cylinders = ddi->Int13.MaxCylinders; 712 fd->geo_sectors = ddi->Int13.SectorsPerTrack; 713 fd->geo_heads = ddi->Int13.MaxHeads; 716 fd 747 ntfs_device_win32_getntgeo(HANDLE handle, win32_fd *fd) argument 797 ntfs_device_win32_open_file(char *filename, win32_fd *fd, int flags) argument 839 ntfs_device_win32_open_drive(int drive_id, win32_fd *fd, int flags) argument 877 ntfs_device_win32_open_lowlevel(int drive_id, win32_fd *fd, int flags) argument 1129 ntfs_device_win32_open_partition(int drive_id, unsigned int partition_id, win32_fd *fd, int flags) argument 1211 win32_fd fd; local 1286 win32_fd *fd = (win32_fd *)dev->d_private; local 1338 ntfs_device_win32_pio(win32_fd *fd, const s64 pos, const s64 count, void *rbuf, const void *wbuf) argument 1428 ntfs_device_win32_pread_simple(win32_fd *fd, const s64 pos, const s64 count, void *b) argument 1446 win32_fd *fd = (win32_fd *)dev->d_private; local 1532 win32_fd *fd = (win32_fd *)dev->d_private; local 1582 win32_fd *fd = (win32_fd *)dev->d_private; local 1620 ntfs_device_win32_pwrite_simple(win32_fd *fd, const s64 pos, const s64 count, const void *b) argument 1639 win32_fd *fd = (win32_fd *)dev->d_private; local 1770 win32_fd *fd = (win32_fd *)dev->d_private; local 1813 win32_fd *fd = (win32_fd *)dev->d_private; local 1835 win32_fd *fd = (win32_fd *)dev->d_private; local 1854 win32_fd *fd = (win32_fd *)dev->d_private; local 1910 win32_fd *fd; local 1930 win32_fd *fd; local 1967 ntfs_win32_set_sparse(int fd) argument 2022 win32_fd *fd; local 2032 ntfs_win32_ftruncate(int fd, s64 size) argument [all...] |
H A D | xattrs.c | 414 int fd; local 421 fd = open(xattrmap_path,O_RDONLY); 422 if (fd > 0) { 423 firstmapping = ntfs_read_xattr_mapping(basicread, (void*)&fd); 424 close(fd);
|
H A D | unix_io.c | 54 #include <linux/fd.h>
|
H A D | security.c | 1191 int fd; local 1205 fd = open(filename,O_RDONLY); 1206 if (fd >= 0) { 1207 got = read(fd, &basecreds, sizeof(prcred_t)); 1222 got = read(fd, groups, 1232 close(fd); 1274 int fd; local 1289 fd = open(filename,O_RDONLY); 1290 if (fd >= 0) { 1291 got = read(fd, bu 4329 int fd; local [all...] |
/haiku/src/tests/kits/storage/virtualdrive/ |
H A D | virtualdrive.cpp | 73 int fd; member in struct:device_info 160 info.fd = -1; 185 int fd = open(initInfo->file_name, (readOnly ? O_RDONLY : O_RDWR)); local 186 if (fd < 0) 194 if (fstat(fd, &st) == 0) 212 if (ftruncate(fd, size) != 0) 254 fsync(fd); 258 if (ioctl(fd, 10000) != 0) { 267 info.fd = fd; [all...] |