Searched refs:fd (Results 151 - 175 of 571) sorted by last modified time

1234567891011>>

/haiku/src/system/boot/loader/file_systems/packagefs/
H A DPackageSettingsItem.cpp48 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 DPackageFile.cpp64 FileDescriptorCloser fd(file.Dup());
65 if (!fd.IsSet())
68 error = fInfo.ReadFromPackageFile(fd.Get());
/haiku/src/kits/package/hpkg/
H A DPackageWriterImpl.cpp257 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 Dramdisk.cpp102 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 Di2c.cpp44 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 Daccelerant_protos.h26 status_t radeon_init_accelerant(int fd);
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DNodeHandle.cpp40 int fd = GetFD(); local
41 if (fd < 0)
44 if (fstat(fd, st) < 0)
/haiku/src/add-ons/kernel/file_systems/fat/
H A Ddosfs.h108 int fd; // File descriptor member in struct:_nspace
/haiku/src/add-ons/accelerants/intel_extreme/
H A Daccelerant_protos.h23 status_t intel_init_accelerant(int fd);
/haiku/src/system/boot/loader/
H A Dvfs.cpp271 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 DNode.cpp450 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 Dfs_attr_untyped.cpp345 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 DNode.cpp440 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 DDirectory.cpp519 BDirectory::set_dir_fd(int fd) argument
521 if (fd < 0)
522 return fd;
524 fDirFd = fd;
/haiku/headers/private/storage/
H A Dstorage_support.h112 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 Dchecksumfs.cpp793 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 Dfssh_dirent.h25 int fd; member in struct:__anon1
/haiku/headers/posix/
H A Ddirent.h39 DIR* fdopendir(int fd);
/haiku/headers/build/os/storage/
H A DNode.h107 status_t set_fd(int fd);
111 status_t _SetTo(int fd, const char *path, bool traverse);
H A DDirectory.h78 status_t set_dir_fd(int fd);
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dwin32_io.c676 * @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 Dxattrs.c414 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 Dunix_io.c54 #include <linux/fd.h>
H A Dsecurity.c1191 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 Dvirtualdrive.cpp73 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...]

Completed in 143 milliseconds

1234567891011>>