/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | Volume.cpp | 93 Volume::Identify(int fd, partition_data *partition) argument 96 fDevice = dup(fd);
|
H A D | Volume.h | 44 status_t Identify(int fd, partition_data *partition);
|
/haiku/src/tests/kits/storage/ |
H A D | NodeTest.cpp | 690 "fd", "kkgkjsdhfgkjhsd", "lihuhuh", "", "alkfgnakdfjgn" 973 "fd", "kkgkjsdhfgkjhsd", "lihuhuh", "", "alkfgnakdfjgn" 1097 int fd = node.Dup(); local 1098 CPPUNIT_ASSERT( fd != -1 ); 1099 ::close(fd);
|
/haiku/src/system/boot/loader/ |
H A D | loader.cpp | 75 int fd = open_maybe_packaged(volume, sKernelPaths[i][0], O_RDONLY); local 76 if (fd >= 0) { 80 return fd; 99 int fd = find_kernel(bootVolume); local 100 if (fd < 0) 103 close(fd); 113 int fd = find_kernel(volume, &name); local 114 if (fd < B_OK) 115 return fd; 121 status_t status = elf_load_image(fd, 149 int fd = open_maybe_packaged(volume, path, O_RDONLY); local [all...] |
H A D | load_driver_settings.cpp | 28 int fd = open_from(directory, name, O_RDONLY); local 29 if (fd < 0) 30 return fd; 33 if (fstat(fd, &stat) < 0) 40 if (read(fd, buffer, stat.st_size) != stat.st_size) { 89 int fd = open_from(volume, "home/config/settings/kernel/drivers", O_RDONLY); local 90 if (fd < B_OK) 91 return fd; 93 Directory* settings = (Directory*)get_node_from(fd);
|
/haiku/src/tools/ |
H A D | elf2aout.c | 44 int elf2aout32(void *v, int fd); 45 int elf2aout64(void *v, int fd); 165 elf2aout32(void *v, int fd) argument 207 if (write(fd, &a, sizeof(a)) != sizeof(a) || 208 write(fd, (char *)e + offset, filesz) != (ssize_t)filesz) 220 elf2aout64(void *v, int fd) argument 262 if (write(fd, &a, sizeof(a)) != sizeof(a) || 263 write(fd, (char *)e + offset, filesz) != (ssize_t)filesz) 285 int fd; local 288 fd [all...] |
/haiku/src/bin/ |
H A D | diff_zip.cpp | 40 EntryWriter(int fd) argument 41 : fFD(fd)
|
H A D | fortune.c | 56 int fd; local 63 fd = open(name, O_RDONLY); 64 if (fd >= 0) { 66 return fd; 82 int fd; local 98 fd = open(file, O_RDONLY, 0); 99 if (fd < 0) { 104 if (fstat(fd, &stat) < 0) { 110 close(fd); 112 fd [all...] |
/haiku/src/tests/system/network/posixnet/ |
H A D | SocketTests.cpp | 23 int fd = ::socket(AF_INET, SOCK_STREAM, 0); local 24 CPPUNIT_ASSERT(fd > 0); 34 fd, 43 fd, 48 close(fd);
|
/haiku/src/system/runtime_loader/ |
H A D | elf_haiku_version.cpp | 23 analyze_object_gcc_version(int fd, image_t* image, elf_ehdr& eheader, argument 36 ssize_t length = _kern_read(fd, eheader.e_shoff, buffer, sheaderSize); 54 length = _kern_read(fd, sectionHeader->sh_offset, sectionStrings, 85 length = _kern_read(fd, commentOffset, buffer, commentSize); 213 analyze_image_haiku_version_and_abi(int fd, image_t* image, elf_ehdr& eheader, argument 244 if (!analyze_object_gcc_version(fd, image, eheader, sheaderSize,
|
/haiku/src/add-ons/kernel/partitioning_systems/gpt/ |
H A D | gpt.cpp | 78 efi_gpt_identify_partition(int fd, partition_data* partition, void** _cookie) argument 80 EFI::Header* header = new (std::nothrow) EFI::Header(fd, 103 efi_gpt_scan_partition(int fd, partition_data* partition, void* _cookie) argument 455 efi_gpt_repair(int fd, partition_id partition, bool checkOnly, disk_job_id job) argument 463 efi_gpt_resize(int fd, partition_id partitionID, off_t size, disk_job_id job) argument 465 if (fd < 0) 492 efi_gpt_resize_child(int fd, partition_id partitionID, off_t size, argument 495 if (fd < 0) 530 status_t result = header->WriteEntry(fd, entryIndex); 545 efi_gpt_move(int fd, partition_i argument 553 efi_gpt_move_child(int fd, partition_id partitionID, partition_id childID, off_t offset, disk_job_id job) argument 614 efi_gpt_set_name(int fd, partition_id partitionID, const char* name, disk_job_id job) argument 660 efi_gpt_set_type(int fd, partition_id partitionID, const char* type, disk_job_id job) argument 708 efi_gpt_initialize(int fd, partition_id partitionID, const char* name, const char* parameters, off_t partitionSize, disk_job_id job) argument 741 efi_gpt_uninitialize(int fd, partition_id partitionID, off_t partitionSize, uint32 blockSize, disk_job_id job) argument 780 efi_gpt_create_child(int fd, partition_id partitionID, off_t offset, off_t size, const char* type, const char* name, const char* parameters, disk_job_id job, partition_id* childID) argument 854 efi_gpt_delete_child(int fd, partition_id partitionID, partition_id childID, disk_job_id job) argument [all...] |
H A D | Header.h | 19 Header(int fd, uint64 lastBlock, 44 status_t WriteEntry(int fd, uint32 entryIndex); 45 status_t Write(int fd); 50 status_t _WriteHeader(int fd); 51 status_t _Write(int fd, off_t offset, const void* data, 57 status_t _Read(int fd, off_t offset, void* data,
|
H A D | Header.cpp | 50 Header::Header(int fd, uint64 lastBlock, uint32 blockSize) argument 61 fStatus = _Read(fd, (uint64)EFI_HEADER_LOCATION * blockSize, 75 status_t status = _Read(fd, lastBlock * blockSize, &fBackupHeader, 108 fStatus = _Read(fd, fHeader.EntriesBlock() * blockSize, 112 fStatus = _Read(fd, fBackupHeader.EntriesBlock() * blockSize, 209 Header::WriteEntry(int fd, uint32 entryIndex) argument 213 status_t status = _Write(fd, 220 status = _WriteHeader(fd); 223 status_t backupStatus = _Write(fd, 234 Header::Write(int fd) argument 273 _WriteHeader(int fd) argument 288 _Write(int fd, off_t offset, const void* data, size_t size) const argument 319 _Read(int fd, off_t offset, void* data, size_t size) const argument [all...] |
/haiku/src/system/kernel/device_manager/ |
H A D | FileDevice.cpp | 61 int fd; member in struct:FileDevice::Cookie 63 Cookie(int fd) argument 65 fd(fd) 71 if (fd >= 0) 72 close(fd); 178 int fd = vfs_open_vnode(vnode, openMode, true); local 179 if (fd < 0) { 181 return fd; 185 Cookie* cookie = new(std::nothrow) Cookie(fd); [all...] |
/haiku/src/tests/kits/media/playwav/ |
H A D | playwav.cpp | 22 int fd = -1; variable 46 size = read(fd, buffer, SIZE); 61 fd = open((argc > 1) ? argv[1] : FILENAME, O_RDONLY); 62 if (fd < 0) 65 lseek(fd, 44, SEEK_SET); // skip wav header 101 close(fd);
|
/haiku/src/tests/add-ons/kernel/partitioning_systems/ |
H A D | PartitioningSystemsTest.cpp | 43 create_disk_device(int fd, const char* path, partition_id* _id) argument 55 if (ioctl(fd, B_GET_GEOMETRY, &device->geometry) < 0) { 58 if (fstat(fd, &stat) < 0) { 141 scan_partition(int fd, partition_id partitionID) argument 153 float priority = moduleInfo->identify_partition(fd, data, &cookie); 159 moduleInfo->scan_partition(fd, data, cookie); 317 int fd = open(partition->path, O_RDONLY); local 318 if (fd < 0) 321 scan_partition(fd, partitionID);
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | sync.c | 19 fsync(int fd) argument 21 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_fsync(fd));
|
/haiku/src/add-ons/accelerants/neomagic/engine/ |
H A D | nm_bes.c | 388 ioctl(fd, NM_PGM_BES, &bi, sizeof(bi)); 682 ioctl(fd, NM_PGM_BES, &bi, sizeof(bi));
|
/haiku/headers/private/userlandfs/shared/ |
H A D | Compatibility.h | 16 # define closesocket(fd) close(fd)
|
/haiku/src/add-ons/kernel/drivers/graphics/radeon/ |
H A D | CP_setup.c | 53 res = ioctl( ai->fd, RADEON_ALLOC_MEM, &am ); \ 72 ioctl( ai->fd, RADEON_FREE_MEM, &fm ); \
|
/haiku/src/apps/codycam/ |
H A D | SpawningUploadClient.cpp | 128 int32 fd = -1; local 136 fd = open(pty, O_RDWR|O_NOCTTY); 137 if (fd >= 0) 138 return fd; 142 return fd;
|
/haiku/src/add-ons/accelerants/via/ |
H A D | SetDisplayMode.c | 28 result = ioctl(fd, ENG_RUN_INTERRUPTS, &sbs, sizeof(sbs));
|
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/ |
H A D | nvme_common.h | 156 extern uint64_t nvme_file_get_size(int fd); 161 extern ssize_t nvme_dev_get_blocklen(int fd);
|
/haiku/headers/compatibility/bsd/ |
H A D | pty.h | 21 extern int login_tty(int fd);
|
H A D | libutil.h | 94 properties properties_read(int fd);
|