/haiku/src/add-ons/kernel/file_systems/ufs2/ |
H A D | Volume.h | 26 status_t Initialize(int fd, const char* name, 40 static status_t Identify(int fd, ufs2_super_block* superBlock);
|
H A D | Inode.cpp | 29 int fd = fVolume->Device(); local 35 if (read_pos(fd, offset, (void*)&fNode, sizeof(fNode)) != sizeof(fNode)) { 98 int fd = fVolume->Device(); local 120 length += read_pos(fd, pos, buffer + length, remainingLength); 129 length = read_pos(fd, pos, buffer, *_length); 139 int fd = fVolume->Device(); local 158 read_pos(fd, indirectOffset, 174 read_pos(fd, indirectOffset, 180 read_pos(fd, indirectOffset, 202 read_pos(fd, indirectOffse [all...] |
/haiku/src/system/kernel/events/ |
H A D | wait_for_objects.cpp | 25 #include <fs/fd.h> 230 fEntries[i].fd = fds->fd; 261 out.Print("<%u: ", fEntries[i].fd); 264 out.Print(", <%u: ", fEntries[i].fd); 283 uint16 fd; member in struct:WaitForObjectsTracing::PollTraceEntry::FDEntry 443 int fd; local 451 for (fd = 0; fd < numFDs; fd 584 int fd = fds[i].fd; local [all...] |
/haiku/src/kits/storage/ |
H A D | FdIO.cpp | 23 BFdIO::BFdIO(int fd, bool keepFd) argument 26 fFd(fd), 39 BFdIO::SetTo(int fd, bool keepFd) argument 43 fFd = fd;
|
/haiku/src/add-ons/kernel/file_systems/shared/ |
H A D | DeviceOpener.cpp | 24 DeviceOpener::DeviceOpener(int fd, int mode) argument 28 Open(fd, mode); 71 DeviceOpener::Open(int fd, int mode) argument 73 fDevice = dup(fd);
|
/haiku/src/add-ons/kernel/drivers/video/usb_vision/ |
H A D | tracing.c | 89 int fd; local 91 fd = open(private_log_path, O_WRONLY | O_APPEND); 92 write(fd, buf, strlen(buf)); 93 close(fd);
|
/haiku/src/tests/system/boot/loader/ |
H A D | Handle.cpp | 21 # define read_pos(fd, pos, buffer, size) pread(fd, buffer, size, pos) 22 # define write_pos(fd, pos, buffer, size) pwrite(fd, buffer, size, pos)
|
/haiku/headers/posix/ |
H A D | fcntl.h | 15 #define F_DUPFD 0x0001 /* duplicate fd */ 16 #define F_GETFD 0x0002 /* get fd flags */ 17 #define F_SETFD 0x0004 /* set fd flags */ 23 #define F_DUPFD_CLOEXEC 0x0200 /* duplicate fd with close on exec set */ 97 extern int openat(int fd, const char *path, int openMode, ...); 99 extern int fcntl(int fd, int op, ...); 101 extern int posix_fadvise(int fd, off_t offset, off_t len, int advice); 102 extern int posix_fallocate(int fd, off_t offset, off_t len);
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/ |
H A D | fs_cache.h | 27 extern _IMPEXP_KERNEL int beos_init_cache_for_device(int fd, 51 extern _IMPEXP_KERNEL size_t beos_read_phys_blocks (int fd, off_t bnum, 53 extern _IMPEXP_KERNEL size_t beos_write_phys_blocks(int fd, off_t bnum,
|
/haiku/headers/os/package/hpkg/ |
H A D | DataReader.h | 42 BFDDataReader(int fd); 44 void SetFD(int fd); 56 BAttributeDataReader(int fd,
|
/haiku/src/add-ons/accelerants/via/engine/ |
H A D | agp.c | 28 ioctl(fd, ENG_GET_NTH_AGP_INFO, &nai, sizeof(nai)); 86 ioctl(fd, ENG_ENABLE_AGP, &nca, sizeof(nca)); 96 ioctl(fd, ENG_ENABLE_AGP, &nca, sizeof(nca));
|
/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/servers/package/ |
H A D | PackageFile.cpp | 64 FileDescriptorCloser fd(file.Dup()); 65 if (!fd.IsSet()) 68 error = fInfo.ReadFromPackageFile(fd.Get());
|
/haiku/src/tests/kits/storage/virtualdrive/ |
H A D | mkvirtualdrive.cpp | 99 int fd = open(VIRTUAL_DRIVE_CONTROL_DEVICE, O_RDONLY); local 100 if (fd < 0) { 139 if (ioctl(fd, VIRTUAL_DRIVE_REGISTER_FILE, &info) != 0) { 146 close(fd); 156 int fd = open(device, O_RDONLY); local 157 if (fd < 0) { 165 if (ioctl(fd, VIRTUAL_DRIVE_UNREGISTER_FILE, immediately) != 0) { 170 close(fd); 179 int fd = open(device, O_RDONLY); local 180 if (fd < [all...] |
/haiku/src/add-ons/kernel/partitioning_systems/gpt/ |
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/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...] |
H A D | fs_descriptors.h | 25 int fd; member in struct:BPrivate::Descriptor 41 FileDescriptor(int fd); 122 Descriptor* get_descriptor(int fd); 124 status_t delete_descriptor(int fd); 125 bool is_unknown_or_system_descriptor(int fd);
|
/haiku/src/tools/fs_shell/ |
H A D | fd.h | 89 extern fssh_status_t select_fd(int fd, uint8_t event, uint32_t ref, 91 extern fssh_status_t deselect_fd(int fd, uint8_t event, 93 extern bool fd_is_valid(int fd, bool kernel); 96 extern bool fd_close_on_exec(struct io_context *context, int fd); 97 extern void fd_set_close_on_exec(struct io_context *context, int fd,
|
/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/bin/ |
H A D | chop.c | 132 int fd; local 167 fd = open(fname, O_RDONLY); 168 if (fd < 0) 171 chop_file(fd, fname, fsize); 172 close(fd);
|
H A D | catattr.cpp | 140 int fd = open(fileName, O_RDONLY | (resolveLinks ? 0 : O_NOTRAVERSE)); local 141 if (fd < 0) 145 if (fs_stat_attr(fd, attribute, &info) < 0) { 146 close(fd); 161 close(fd); 165 ssize_t bytesRead = fs_read_attr(fd, attribute, info.type, 0, buffer, size); 168 close(fd); 176 close(fd); 200 bytesRead = fs_read_attr(fd, attribute, info.type, pos, buffer, 218 close(fd); [all...] |
/haiku/src/tests/system/kernel/ |
H A D | mmap_cut_tests.cpp | 84 int fd = shm_open(name, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600); local 87 if (fd < 0) { 89 return fd; 92 ftruncate(fd, B_PAGE_SIZE * 4); 95 fd, 0);
|
/haiku/src/add-ons/kernel/network/devices/ethernet/ |
H A D | ethernet.cpp | 40 int fd; member in struct:ethernet_device 63 if (ioctl(device->fd, ETHER_GET_LINK_STATE, &state, 166 device->fd = -1; 191 device->fd = open(device->name, O_RDWR); 192 if (device->fd < 0) 196 if (ioctl(device->fd, ETHER_INIT, &dummy, sizeof(dummy)) < 0) 199 if (ioctl(device->fd, ETHER_GETADDR, device->address.data, ETHER_ADDRESS_LENGTH) < 0) 202 if (ioctl(device->fd, ETHER_GETFRAMESIZE, &device->frame_size, sizeof(uint32)) < 0) { 212 ioctl(device->fd, ETHER_SET_LINK_STATE_SEM, &sLinkChangeSemaphore, 246 close(device->fd); [all...] |
/haiku/src/add-ons/kernel/network/devices/dialup/ |
H A D | dialup.cpp | 46 int fd; member in struct:dialup_device 79 ssize_t size = write(device->fd, device->escape_string, 103 ssize_t size = write(device->fd, "ATO", 3); 123 ssize_t bytesWritten = write(device->fd, command, strlen(command)); 127 if (write(device->fd, "\r", 1) != 1) 144 ssize_t bytesRead = read(device->fd, &reply[i], 1); 221 device->fd = -1; 262 device->fd = open(device->name, O_RDWR); 263 if (device->fd < 0) 269 if (ioctl(device->fd, TCGET [all...] |
/haiku/src/apps/debugger/user_interface/gui/team_window/ |
H A D | ConsoleOutputView.cpp | 34 int32 fd; member in struct:ConsoleOutputView::OutputInfo 37 OutputInfo(int32 fd, const BString& text) argument 39 fd(fd), 93 ConsoleOutputView::ConsoleOutputReceived(int32 fd, const BString& output) argument 95 if (fd == 1 && fStdoutEnabled->Value() != B_CONTROL_ON) 97 else if (fd == 2 && fStderrEnabled->Value() != B_CONTROL_ON) 100 OutputInfo* info = new(std::nothrow) OutputInfo(fd, output); 235 if (info->fd == 1 && fStdoutEnabled->Value() != B_CONTROL_ON) 237 else if (info->fd [all...] |