/haiku/headers/posix/sys/ |
H A D | mman.h | 55 int fd, off_t offset);
|
/haiku/src/libs/util/ |
H A D | pidfile.c | 67 int error, fd, i; local 69 fd = open(path, O_RDONLY); 70 if (fd == -1) 73 i = read(fd, buf, sizeof(buf) - 1); 75 close(fd); 92 int error, fd; local 116 fd = open(pfh->pf_path, O_WRONLY | O_CREAT | O_NONBLOCK, mode); 117 if (fd >= 0) { 124 if (fcntl(fd, F_SETLK, &lock) == -1) { 125 close(fd); 166 int error, fd; local [all...] |
/haiku/src/add-ons/kernel/file_systems/netfs/shared/ |
H A D | InsecureConnection.cpp | 42 SocketCloser(int fd) : fFD(fd) {} argument 51 int fd = fFD; local 53 return fd; 76 InsecureConnection::Init(int fd) argument 80 closesocket(fd); 84 Channel* channel = new(std::nothrow) InsecureChannel(fd); 86 closesocket(fd); 229 int fd = socket(AF_INET, SOCK_STREAM, 0); local 230 if (fd < 323 int fd = socket(AF_INET, SOCK_STREAM, 0); local [all...] |
/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | kernel_interface.cpp | 62 reiserfs_identify_partition(int fd, partition_data *partition, void **cookie) argument 68 status_t status = volume->Identify(fd, partition); 81 reiserfs_scan_partition(int fd, partition_data *partition, void *_cookie) argument
|
/haiku/src/libs/gnu/ |
H A D | xattr.cpp | 298 fgetxattr(int fd, const char* attribute, void* buffer, size_t size) argument 300 return Node(fd).Get(attribute, buffer, size); 321 fsetxattr(int fd, const char* attribute, const void* buffer, size_t size, argument 324 return Node(fd).Set(attribute, flags, buffer, size); 343 fremovexattr (int fd, const char* attribute) argument 345 return Node(fd).Remove(attribute); 364 flistxattr(int fd, char* buffer, size_t size) argument 366 return Node(fd).GetList(buffer, size);
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/ |
H A D | beos_kernel_emu.cpp | 251 init_cache_for_device(int fd, off_t max_blocks) argument 253 return beos_init_cache_for_device(fd, max_blocks); 313 read_phys_blocks(int fd, off_t bnum, void *data, uint num_blocks, int bsize) argument 315 return beos_read_phys_blocks(fd, bnum, data, num_blocks, bsize); 319 write_phys_blocks(int fd, off_t bnum, void *data, uint num_blocks, int bsize) argument 321 return beos_write_phys_blocks(fd, bnum, data, num_blocks, bsize);
|
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | Volume.h | 33 status_t Initialize(int fd, const char* label, 70 static status_t Identify(int fd, btrfs_super_block* superBlock);
|
H A D | Volume.cpp | 338 Volume::Initialize(int fd, const char* label, uint32 blockSize, argument 355 DeviceOpener opener(fd, O_RDWR); 541 Volume::Identify(int fd, btrfs_super_block* superBlock) argument 543 if (read_pos(fd, BTRFS_SUPER_BLOCK_OFFSET, superBlock,
|
/haiku/src/add-ons/accelerants/via/ |
H A D | InitAccelerant.c | 26 fd = the_fd; 30 result = ioctl(fd, ENG_GET_PRIVATE_DATA, &gpd, sizeof(gpd)); 228 result = ioctl(fd, ENG_DEVICE_NAME, &dn, sizeof(dn)); 244 fd = open(path, B_READ_WRITE); 245 if (fd < 0) 257 result = fd; 265 result = init_common(fd); 294 close(fd); 321 if (accelerantIsClone) close(fd);
|
/haiku/src/add-ons/accelerants/nvidia/ |
H A D | InitAccelerant.c | 26 fd = the_fd; 30 result = ioctl(fd, NV_GET_PRIVATE_DATA, &gpd, sizeof(gpd)); 261 result = ioctl(fd, NV_DEVICE_NAME, &dn, sizeof(dn)); 278 fd = open(path, B_READ_WRITE); 279 if (fd < 0) 291 result = fd; 299 result = init_common(fd); 340 close(fd); 370 if (accelerantIsClone) close(fd);
|
/haiku/src/add-ons/accelerants/matrox/ |
H A D | InitAccelerant.c | 28 fd = the_fd; 32 result = ioctl(fd, GX00_GET_PRIVATE_DATA, &gpd, sizeof(gpd)); 242 result = ioctl(fd, GX00_DEVICE_NAME, &dn, sizeof(dn)); 258 fd = open(path, B_READ_WRITE); 259 if (fd < 0) 279 result = init_common(fd); 312 close(fd); 342 if (accelerantIsClone) close(fd);
|
/haiku/src/tools/fixup_next_boot_floppy/ |
H A D | fixup_next_boot_floppy.c | 43 int fd; local 103 fd = open(argv[1], O_RDWR); 104 if (fd < 0) { 110 if (read(fd, bootblock, DL_SIZE) < DL_SIZE) { 126 lseek(fd, labelOffsets[i] * 0x200LL, SEEK_SET); 127 write(fd, &disklabel, DL_SIZE);
|
/haiku/src/system/libroot/os/ |
H A D | fs_index.c | 62 int fd = _kern_open_index_dir(device); local 63 if (fd < 0) { 64 __set_errno(fd); 69 if ((dir = __create_dir_struct(fd)) == NULL) { 71 _kern_close(fd);
|
/haiku/headers/private/fs_shell/ |
H A D | fssh_fs_cache.h | 70 extern void * fssh_block_cache_create(int fd, fssh_off_t numBlocks,
|
/haiku/headers/os/drivers/ |
H A D | fs_cache.h | 60 extern void *block_cache_create(int fd, off_t numBlocks, size_t blockSize,
|
/haiku/src/add-ons/kernel/partitioning_systems/sun/ |
H A D | sun.cpp | 95 sun_identify_partition(int fd, partition_data *partition, void **_cookie) argument 98 ssize_t bytesRead = read_pos(fd, 0, buffer, sizeof(buffer)); 133 sun_scan_partition(int fd, partition_data *partition, void *cookie) argument
|
/haiku/src/bin/ |
H A D | dstcheck.cpp | 125 int fd = open(path, O_RDWR | O_EXCL | O_CREAT, S_IRUSR | S_IWUSR); local 126 if (fd < 0) { 127 fd = open(path, O_RDWR); 128 if (fd < 0) { 134 read(fd, &dst_byte, 1); 157 lseek(fd, 0, SEEK_SET); 159 write(fd, &dst_byte, 1); 160 close(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/headers/private/file_systems/ |
H A D | DeviceOpener.h | 20 DeviceOpener(int fd, int mode); 25 int Open(int fd, int mode);
|
/haiku/src/add-ons/kernel/file_systems/exfat/ |
H A D | Volume.cpp | 343 Volume::Identify(int fd, exfat_super_block* superBlock) argument 345 if (read_pos(fd, EXFAT_SUPER_BLOCK_OFFSET, superBlock,
|
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | Volume.cpp | 522 Volume::Identify(int fd, disk_super_block* superBlock) argument 525 if (read_pos(fd, 0, buffer, sizeof(buffer)) != sizeof(buffer)) 538 Volume::Initialize(int fd, const char* name, uint32 blockSize, argument 551 DeviceOpener opener(fd, O_RDWR);
|
/haiku/src/add-ons/kernel/drivers/graphics/via/ |
H A D | driver.c | 136 int fd; local 139 fd = open (kUserDirectory "/" DRIVER_PREFIX ".rom", 141 if (fd < 0) return; 146 write (fd, ((void *)(((uint8 *)rom) + cnt)), 32768); 147 close (fd); 781 /* we don't do anything on close: there might be dup'd fd */
|
/haiku/src/add-ons/kernel/drivers/graphics/skeleton/ |
H A D | driver.c | 131 int fd; local 134 fd = open (kUserDirectory "/" DRIVER_PREFIX ".rom", 136 if (fd < 0) return; 141 write (fd, ((void *)(((uint8 *)rom) + cnt)), 32768); 142 close (fd); 793 /* we don't do anything on close: there might be dup'd fd */
|
/haiku/src/add-ons/kernel/drivers/graphics/neomagic/ |
H A D | driver.c | 139 int fd; local 142 fd = open (kUserDirectory "/" DRIVER_PREFIX ".rom", 144 if (fd < 0) return; 149 write (fd, ((void *)(((uint8 *)rom) + cnt)), 32768); 150 close (fd); 819 /* we don't do anything on close: there might be dup'd fd */
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | link.c | 23 readlinkat(int fd, const char *path, char *buffer, size_t bufferSize) argument 26 status_t status = _kern_read_link(fd, path, buffer, &linkLen); 56 symlinkat(const char *toPath, int fd, const char *symlinkPath) argument 58 RETURN_AND_SET_ERRNO(_kern_create_symlink(fd, symlinkPath, toPath, 0)); 72 unlinkat(int fd, const char *path, int flag) argument 75 RETURN_AND_SET_ERRNO(_kern_remove_dir(fd, path)); 77 RETURN_AND_SET_ERRNO(_kern_unlink(fd, path));
|