/haiku/headers/os/package/hpkg/v1/ |
H A D | PackageReader.h | 39 status_t Init(int fd, bool keepFD);
|
/haiku/src/system/kernel/fs/ |
H A D | vfs_tracing.h | 10 #include <fs/fd.h> 42 NewFD(io_context* context, int fd, file_descriptor* descriptor) argument 46 fFD(fd) 53 out.Print("fd new: descriptor: %p (%" B_PRId32 "), context: %p, " 54 "fd: %d", fDescriptor, fReferenceCount, fContext, fFD); 74 out.Print("fd put: descriptor: %p (%" B_PRId32 ")", fDescriptor, 82 GetFD(io_context* context, int fd, file_descriptor* descriptor) argument 86 fFD(fd) 93 out.Print("fd get: descriptor: %p (%" B_PRId32 "), context: %p, " 94 "fd 105 RemoveFD(io_context* context, int fd, file_descriptor* descriptor) argument 160 InheritFD(io_context* context, int fd, file_descriptor* descriptor, io_context* parentContext) argument [all...] |
H A D | vfs.cpp | 43 #include <fd.h> 414 static status_t common_path_read_stat(int fd, char* path, bool traverseLeafLink, 422 static status_t fd_and_path_to_vnode(int fd, char* path, bool traverseLeafLink, 554 FDCloser(int fd, bool kernel) : fFD(fd), fKernel(kernel) {} argument 561 void SetTo(int fd, bool kernel) argument 564 fFD = fd; 581 int fd = fFD; local 583 return fd; 2379 \a path must be given in either case. \a fd migh 2401 fd_and_path_to_dir_vnode(int fd, char* path, VnodePutter& _vnode, char* filename, bool kernel) argument 2707 get_fd_and_vnode(int fd, struct vnode** _vnode, bool kernel) argument 2729 get_vnode_from_fd(int fd, bool kernel) argument 2754 fd_and_path_to_vnode(int fd, char* path, bool traverseLeafLink, VnodePutter& _vnode, ino_t* _parentID, bool kernel) argument 2793 int fd; local 3384 struct file_descriptor* fd = context->fds[i]; local 4051 read_file_io_vec_pages(int fd, const file_io_vec* fileVecs, size_t fileVecCount, const iovec* vecs, size_t vecCount, uint32* _vecIndex, size_t* _vecOffset, size_t* _bytes) argument 4069 write_file_io_vec_pages(int fd, const file_io_vec* fileVecs, size_t fileVecCount, const iovec* vecs, size_t vecCount, uint32* _vecIndex, size_t* _vecOffset, size_t* _bytes) argument 4153 vfs_get_cookie_from_fd(int fd, void** _cookie) argument 4167 vfs_get_vnode_from_fd(int fd, bool kernel, struct vnode** vnode) argument 4325 vfs_read_stat(int fd, const char* path, bool traverseLeafLink, struct stat* stat, bool kernel) argument 5364 int fd = get_new_fd(FDTYPE_FILE, NULL, vnode, cookie, openMode, kernel); local 5442 int fd = open_vnode(vnode.Get(), openMode & ~O_CREAT, kernel); local 5479 int fd = get_new_fd(FDTYPE_FILE, NULL, vnode.Get(), cookie, openMode, kernel); local 5573 file_create(int fd, char* path, int openMode, int perms, bool kernel) argument 5626 file_open(int fd, char* path, int openMode, bool kernel) argument 5900 dir_create(int fd, char* path, int perms, bool kernel) argument 5958 dir_open(int fd, char* path, bool kernel) argument 6094 dir_remove(int fd, char* path, bool kernel) argument 6152 common_fcntl(int fd, int op, size_t argument, bool kernel) argument 6335 common_sync(int fd, bool kernel) argument 6355 common_lock_node(int fd, bool kernel) argument 6375 common_unlock_node(int fd, bool kernel) argument 6395 common_preallocate(int fd, off_t offset, off_t length, bool kernel) argument 6435 common_read_link(int fd, char* path, char* buffer, size_t* _bufferSize, bool kernel) argument 6455 common_create_symlink(int fd, char* path, const char* toPath, int mode, bool kernel) argument 6516 common_unlink(int fd, char* path, bool kernel) argument 6539 common_access(int fd, char* path, int mode, bool effectiveUserGroup, bool kernel) argument 6560 common_rename(int fd, char* path, int newFD, char* newPath, bool kernel) argument 6639 common_path_read_stat(int fd, char* path, bool traverseLeafLink, struct stat* stat, bool kernel) argument 6658 common_path_write_stat(int fd, char* path, bool traverseLeafLink, const struct stat* stat, int statMask, bool kernel) argument 6680 attr_dir_open(int fd, char* path, bool traverseLeafLink, bool kernel) argument 6756 attr_create(int fd, char* path, const char* name, uint32 type, int openMode, bool kernel) argument 6798 attr_open(int fd, char* path, const char* name, int openMode, bool kernel) argument 6968 attr_remove(int fd, const char* name, bool kernel) argument 7049 int fd; local 7252 int fd; local 8052 fs_read_attr(int fd, const char *attribute, uint32 type, off_t pos, void *buffer, size_t readBytes) argument 8095 set_cwd(int fd, char* path, bool kernel) argument 8293 _kern_open(int fd, const char* path, int openMode, int perms) argument 8345 _kern_open_dir(int fd, const char* path) argument 8356 _kern_fcntl(int fd, int op, size_t argument) argument 8363 _kern_fsync(int fd) argument 8370 _kern_lock_node(int fd) argument 8377 _kern_unlock_node(int fd) argument 8384 _kern_preallocate(int fd, off_t offset, off_t length) argument 8413 _kern_create_dir(int fd, const char* path, int perms) argument 8424 _kern_remove_dir(int fd, const char* path) argument 8453 _kern_read_link(int fd, const char* path, char* buffer, size_t* _bufferSize) argument 8479 _kern_create_symlink(int fd, const char* path, const char* toPath, int mode) argument 8518 _kern_unlink(int fd, const char* path) argument 8560 _kern_access(int fd, const char* path, int mode, bool effectiveUserGroup) argument 8591 _kern_read_stat(int fd, const char* path, bool traverseLeafLink, struct stat* stat, size_t statSize) argument 8638 _kern_write_stat(int fd, const char* path, bool traverseLeafLink, const struct stat* stat, size_t statSize, int statMask) argument 8682 _kern_open_attr_dir(int fd, const char* path, bool traverseLeafLink) argument 8693 _kern_open_attr(int fd, const char* path, const char* name, uint32 type, int openMode) argument 8710 _kern_remove_attr(int fd, const char* name) argument 8763 _kern_setcwd(int fd, const char* path) argument 9063 _user_open(int fd, const char* userPath, int openMode, int perms) argument 9103 _user_open_dir(int fd, const char* userPath) argument 9142 _user_open_parent_dir(int fd, char* userName, size_t nameLength) argument 9185 _user_fcntl(int fd, int op, size_t argument) argument 9196 _user_fsync(int fd) argument 9203 _user_flock(int fd, int operation) argument 9255 _user_lock_node(int fd) argument 9262 _user_unlock_node(int fd) argument 9269 _user_preallocate(int fd, off_t offset, off_t length) argument 9294 _user_create_dir(int fd, const char* userPath, int perms) argument 9313 _user_remove_dir(int fd, const char* userPath) argument 9334 _user_read_link(int fd, const char* userPath, char* userBuffer, size_t* userBufferSize) argument 9382 _user_create_symlink(int fd, const char* userPath, const char* userToPath, int mode) argument 9437 _user_unlink(int fd, const char* userPath) argument 9481 _user_create_fifo(int fd, const char* userPath, mode_t perms) argument 9575 _user_access(int fd, const char* userPath, int mode, bool effectiveUserGroup) argument 9594 _user_read_stat(int fd, const char* userPath, bool traverseLink, struct stat* userStat, size_t statSize) argument 9643 _user_write_stat(int fd, const char* userPath, bool traverseLeafLink, const struct stat* userStat, size_t statSize, int statMask) argument 9697 _user_open_attr_dir(int fd, const char* userPath, bool traverseLeafLink) argument 9718 _user_read_attr(int fd, const char* userAttribute, off_t pos, void* userBuffer, size_t readBytes) argument 9743 _user_write_attr(int fd, const char* userAttribute, uint32 type, off_t pos, const void* buffer, size_t writeBytes) argument 9771 _user_stat_attr(int fd, const char* userAttribute, struct attr_info* userAttrInfo) argument 9819 _user_open_attr(int fd, const char* userPath, const char* userName, uint32 type, int openMode) argument 9854 _user_remove_attr(int fd, const char* userName) argument 9988 _user_setcwd(int fd, const char* userPath) argument [all...] |
/haiku/headers/private/package/hpkg/ |
H A D | RepositoryReaderImpl.h | 32 status_t Init(int fd, bool keepFD);
|
/haiku/src/add-ons/accelerants/radeon/ |
H A D | InitAccelerant.c | 42 ai->fd = the_fd; 47 result = ioctl( ai->fd, RADEON_GET_PRIVATE_DATA, &gpd, sizeof(gpd) ); 139 close( ai->fd ); 241 result = ioctl( ai->fd, RADEON_DEVICE_NAME, &dn, sizeof(dn) ); 250 int fd; local 260 fd = open(path, B_READ_WRITE); 261 if( fd < 0 ) 264 result = init_common( fd, 1 ); 280 close( fd );
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | device_io.h | 74 int ntfs_win32_ftruncate(int fd, s64 size);
|
/haiku/src/system/libroot/posix/sys/ |
H A D | utimes.c | 57 utimensat(int fd, const char *path, const struct timespec times[2], int flag) argument 101 status = _kern_write_stat(fd, path, (flag & AT_SYMLINK_NOFOLLOW) == 0, 109 futimens(int fd, const struct timespec times[2]) argument 111 return utimensat(fd, NULL, times, 0);
|
/haiku/src/tests/system/network/ |
H A D | firefox_crash.cpp | 21 int fd = socket(AF_INET, SOCK_STREAM, 0); local 22 if (fd < 0) 26 fcntl(fd, F_SETFL, O_NONBLOCK); 28 return 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/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/headers/os/drivers/ |
H A D | driver_settings.h | 27 extern void *load_driver_settings_file(int fd);
|
/haiku/headers/posix/ |
H A D | poll.h | 16 int fd; member in struct:pollfd
|
/haiku/src/add-ons/accelerants/framebuffer/ |
H A D | accelerant.cpp | 138 int fd = open(path, B_READ_WRITE); local 139 if (fd < 0) 142 status_t status = init_common(fd, true); 158 close(fd);
|
H A D | accelerant_protos.h | 19 status_t framebuffer_init_accelerant(int fd);
|
/haiku/headers/private/fs_shell/ |
H A D | fssh_dirent.h | 25 int fd; member in struct:__anon1
|
/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/headers/private/system/ |
H A D | syscalls.h | 271 extern int _kern_open(int fd, const char *path, int openMode, 275 extern int _kern_open_dir(int fd, const char *path); 276 extern int _kern_open_parent_dir(int fd, char *name, 278 extern status_t _kern_fcntl(int fd, int op, size_t argument); 279 extern status_t _kern_fsync(int fd); 280 extern status_t _kern_flock(int fd, int op); 281 extern off_t _kern_seek(int fd, off_t pos, int seekType); 284 extern status_t _kern_create_dir(int fd, const char *path, int perms); 285 extern status_t _kern_remove_dir(int fd, const char *path); 286 extern status_t _kern_read_link(int fd, cons [all...] |
/haiku/src/add-ons/accelerants/virtio/ |
H A D | accelerant.cpp | 138 int fd = open(path, B_READ_WRITE); local 139 if (fd < 0) 142 status_t status = init_common(fd, true); 158 close(fd);
|
/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/system/boot/loader/ |
H A D | partitions.cpp | 108 Partition::Partition(int fd) argument 121 fFD = dup(fd); 446 add_partitions_for(int fd, bool mountFileSystems, bool isBootDevice) argument 448 TRACE(("add_partitions_for(fd = %d, mountFS = %s)\n", fd, 451 Partition *partition = new(nothrow) Partition(fd); 481 int fd = open_node(device, O_RDONLY); local 482 if (fd < B_OK) 483 return fd; 485 status_t status = add_partitions_for(fd, mountFileSystem [all...] |
/haiku/src/tools/fs_shell/ |
H A D | vfs.cpp | 17 #include "fd.h" 251 static fssh_status_t fd_and_path_to_vnode(int fd, char *path, 1304 * \a path must be given in either case. \a fd might be omitted, in which 1307 * of the directory referred to by \a fd. If \a path is absolute \a fd is 1313 * \param fd The FD. May be < 0. 1327 fd_and_path_to_dir_vnode(int fd, char *path, struct vnode **_vnode, argument 1332 if (fd < 0) 1339 return fd_and_path_to_vnode(fd, path, true, _vnode, NULL, kernel); 1588 get_fd_and_vnode(int fd, struc argument 1608 get_vnode_from_fd(int fd, bool kernel) argument 1634 fd_and_path_to_vnode(int fd, char *path, bool traverseLeafLink, struct vnode **_vnode, fssh_vnode_id *_parentID, bool kernel) argument 1670 int fd; local 1730 common_file_io_vec_pages(int fd, const fssh_file_io_vec *fileVecs, fssh_size_t fileVecCount, const fssh_iovec *vecs, fssh_size_t vecCount, uint32_t *_vecIndex, fssh_size_t *_vecOffset, fssh_size_t *_numBytes, bool doWrite) argument 2172 fssh_read_pages(int fd, fssh_off_t pos, const fssh_iovec *vecs, fssh_size_t count, fssh_size_t *_numBytes) argument 2213 fssh_write_pages(int fd, fssh_off_t pos, const fssh_iovec *vecs, fssh_size_t count, fssh_size_t *_numBytes) argument 2254 fssh_read_file_io_vec_pages(int fd, const fssh_file_io_vec *fileVecs, fssh_size_t fileVecCount, const fssh_iovec *vecs, fssh_size_t vecCount, uint32_t *_vecIndex, fssh_size_t *_vecOffset, fssh_size_t *_bytes) argument 2265 fssh_write_file_io_vec_pages(int fd, const fssh_file_io_vec *fileVecs, fssh_size_t fileVecCount, const fssh_iovec *vecs, fssh_size_t vecCount, uint32_t *_vecIndex, fssh_size_t *_vecOffset, fssh_size_t *_bytes) argument 2324 vfs_get_cookie_from_fd(int fd, void **_cookie) argument 2338 vfs_get_vnode_from_fd(int fd, bool kernel, void **vnode) argument 3097 file_create(int fd, char *path, int openMode, int perms, bool kernel) argument 3143 file_open(int fd, char *path, int openMode, bool kernel) argument 3288 dir_create(int fd, char *path, int perms, bool kernel) argument 3338 dir_open(int fd, char *path, bool kernel) argument 3471 dir_remove(int fd, char *path, bool kernel) argument 3529 common_fcntl(int fd, int op, uint32_t argument, bool kernel) argument 3622 common_sync(int fd, bool kernel) argument 3645 common_lock_node(int fd, bool kernel) argument 3673 common_unlock_node(int fd, bool kernel) argument 3701 common_read_link(int fd, char *path, char *buffer, fssh_size_t *_bufferSize, bool kernel) argument 3722 common_create_symlink(int fd, char *path, const char *toPath, int mode, bool kernel) argument 3785 common_unlink(int fd, char *path, bool kernel) argument 3830 common_rename(int fd, char *path, int newFD, char *newPath, bool kernel) argument 3905 common_path_read_stat(int fd, char *path, bool traverseLeafLink, struct fssh_stat *stat, bool kernel) argument 3931 common_path_write_stat(int fd, char *path, bool traverseLeafLink, const struct fssh_stat *stat, int statMask, bool kernel) argument 3955 attr_dir_open(int fd, char *path, bool kernel) argument 4030 attr_create(int fd, const char *name, uint32_t type, int openMode, bool kernel) argument 4068 attr_open(int fd, const char *name, int openMode, bool kernel) argument 4230 attr_remove(int fd, const char *name, bool kernel) argument 5031 set_cwd(int fd, char *path, bool kernel) argument 5173 _kern_open(int fd, const char *path, int openMode, int perms) argument 5228 _kern_open_dir(int fd, const char *path) argument 5239 _kern_fcntl(int fd, int op, uint32_t argument) argument 5246 _kern_fsync(int fd) argument 5253 _kern_lock_node(int fd) argument 5260 _kern_unlock_node(int fd) argument 5289 _kern_create_dir(int fd, const char *path, int perms) argument 5300 _kern_remove_dir(int fd, const char *path) argument 5334 _kern_read_link(int fd, const char *path, char *buffer, fssh_size_t *_bufferSize) argument 5365 _kern_create_symlink(int fd, const char *path, const char *toPath, int mode) argument 5411 _kern_unlink(int fd, const char *path) argument 5485 _kern_read_stat(int fd, const char *path, bool traverseLeafLink, fssh_struct_stat *stat, fssh_size_t statSize) argument 5554 _kern_write_stat(int fd, const char *path, bool traverseLeafLink, const fssh_struct_stat *stat, fssh_size_t statSize, int statMask) argument 5599 _kern_open_attr_dir(int fd, const char *path) argument 5613 _kern_create_attr(int fd, const char *name, uint32_t type, int openMode) argument 5620 _kern_open_attr(int fd, const char *name, int openMode) argument 5627 _kern_remove_attr(int fd, const char *name) argument 5679 _kern_setcwd(int fd, const char *path) argument 5702 int fd = fssh_open(partition, FSSH_O_RDWR); local [all...] |
/haiku/headers/cpp/ |
H A D | PlotFile.h | 58 PlotFile(int fd) : ofstream(fd) { } argument
|
/haiku/src/add-ons/accelerants/skeleton/ |
H A D | InitAccelerant.c | 26 fd = the_fd; 30 result = ioctl(fd, ENG_GET_PRIVATE_DATA, &gpd, sizeof(gpd)); 230 result = ioctl(fd, ENG_DEVICE_NAME, &dn, sizeof(dn)); 246 fd = open(path, B_READ_WRITE); 247 if (fd < 0) 267 result = init_common(fd); 296 close(fd); 323 if (accelerantIsClone) close(fd);
|
/haiku/src/apps/bootmanager/ |
H A D | LegacyBootMenu.h | 46 status_t _ReadBlocks(int fd, uint8* buffer, size_t size); 47 status_t _WriteBlocks(int fd, const uint8* buffer,
|
/haiku/src/tests/add-ons/kernel/file_systems/bfs/ |
H A D | bfs_attribute_iterator_test.cpp | 85 int fd = file.Dup(); local 86 if (fd < 0) 95 DIR* dir = fs_fopen_attr_dir(fd); 121 close(fd); 137 int fd = file.Dup(); local 138 if (fd < 0) 147 DIR* dir = fs_fopen_attr_dir(fd); 173 close(fd);
|