Searched refs:fd (Results 101 - 125 of 571) sorted by last modified time

1234567891011>>

/haiku/src/build/libroot/
H A Dfs.cpp129 FDFile(int fd) argument
131 fFD(fd)
151 futimens(int fd, const struct timespec times[2]) argument
153 FDFile file(fd);
162 FDPathFile(int fd, const char* path, int flag) argument
164 fFD(fd),
189 utimensat(int fd, const char* path, const struct timespec times[2], int flag) argument
191 FDPathFile file(fd, path, flag);
401 BPrivate::get_path(int fd, const char *name, string &path) argument
403 // get the node ref for the fd, i
481 _kern_create_dir(int fd, const char *path, int perms) argument
546 _kern_open_dir(int fd, const char *path) argument
572 _kern_open_parent_dir(int fd, char *name, size_t nameLength) argument
606 _kern_read_dir(int fd, struct dirent *buffer, size_t bufferSize, uint32 maxCount) argument
640 _kern_rewind_dir(int fd) argument
702 _kern_open(int fd, const char *path, int openMode, int perms) argument
729 _kern_seek(int fd, off_t pos, int seekType) argument
747 _kern_read(int fd, off_t pos, void *buffer, size_t bufferSize) argument
773 _kern_write(int fd, off_t pos, const void *buffer, size_t bufferSize) argument
799 _kern_close(int fd) argument
806 _kern_dup(int fd) argument
826 _kern_fsync(int fd) argument
843 _kern_read_stat(int fd, const char *path, bool traverseLink, struct stat *st, size_t statSize) argument
875 _kern_write_stat(int fd, const char *path, bool traverseLink, const struct stat *st, size_t statSize, int statMask) argument
1013 _kern_create_symlink(int fd, const char *path, const char *toPath, int mode) argument
1031 _kern_read_link(int fd, const char *path, char *buffer, size_t *_bufferSize) argument
1067 _kern_unlink(int fd, const char *path) argument
1109 _kern_lock_node(int fd) argument
1116 _kern_unlock_node(int fd) argument
1127 read_pos(int fd, off_t pos, void *buffer, size_t bufferSize) argument
1145 write_pos(int fd, off_t pos, const void *buffer, size_t bufferSize) argument
1178 _kern_readv(int fd, off_t pos, const struct iovec *vec, size_t count) argument
1191 _kern_writev(int fd, off_t pos, const struct iovec *vec, size_t count) argument
1207 _haiku_build_fchmod(int fd, mode_t mode) argument
1214 _haiku_build_fchmodat(int fd, const char* path, mode_t mode, int flag) argument
1228 _haiku_build_fstat(int fd, struct stat* st) argument
1235 _haiku_build_fstatat(int fd, const char* path, struct stat* st, int flag) argument
1246 _haiku_build_mkdirat(int fd, const char* path, mode_t mode) argument
1256 _haiku_build_mkfifoat(int fd, const char* path, mode_t mode) argument
1265 _haiku_build_utimensat(int fd, const char* path, const struct timespec times[2], int flag) argument
1324 _haiku_build_futimens(int fd, const struct timespec times[2]) argument
1331 _haiku_build_faccessat(int fd, const char* path, int accessMode, int flag) argument
1388 _haiku_build_fchdir(int fd) argument
1398 _haiku_build_close(int fd) argument
1408 _haiku_build_dup(int fd) argument
1439 _haiku_build_unlinkat(int fd, const char* path, int flag) argument
1449 _haiku_build_readlinkat(int fd, const char* path, char* buffer, size_t bufferSize) argument
1464 _haiku_build_symlinkat(const char* toPath, int fd, const char* symlinkPath) argument
1475 _haiku_build_ftruncate(int fd, off_t newSize) argument
1489 _haiku_build_fchown(int fd, uid_t owner, gid_t group) argument
1496 _haiku_build_fchownat(int fd, const char* path, uid_t owner, gid_t group, int flag) argument
1513 _haiku_build_mknodat(int fd, const char* name, mode_t mode, dev_t dev) argument
1536 _haiku_build_openat(int fd, const char* path, int openMode, mode_t permissions) argument
1548 _haiku_build_fcntl(int fd, int op, int argument) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/xfs/
H A DVolume.h30 status_t Initialize(int fd, const char *label,
50 static status_t Identify(int fd, XfsSuperBlock *superBlock);
H A DVolume.cpp38 Volume::Identify(int fd, XfsSuperBlock *superBlock) argument
46 if(read_pos(fd, 0, buf, 512) != 512)
/haiku/headers/build/private/kernel/
H A Dsyscalls.h58 extern int _kern_open(int fd, const char *path, int openMode,
62 extern int _kern_open_dir(int fd, const char *path);
63 extern int _kern_open_parent_dir(int fd, char *name,
65 extern status_t _kern_fsync(int fd);
66 extern off_t _kern_seek(int fd, off_t pos, int seekType);
69 extern status_t _kern_create_dir(int fd, const char *path, int perms);
70 extern status_t _kern_read_link(int fd, const char *path, char *buffer,
72 extern status_t _kern_create_symlink(int fd, const char *path,
74 extern status_t _kern_unlink(int fd, const char *path);
77 extern int _kern_open_attr_dir(int fd, cons
[all...]
/haiku/headers/build/
H A DBeOSBuildCompatibility.h49 extern ssize_t read_pos(int fd, off_t pos, void* buffer, size_t count);
50 extern ssize_t write_pos(int fd, off_t pos, const void* buffer, size_t count);
85 int _haiku_build_fchmod(int fd, mode_t mode);
86 int _haiku_build_fchmodat(int fd, const char* path, mode_t mode, int flag);
87 int _haiku_build_fstat(int fd, struct stat* st);
88 int _haiku_build_fstatat(int fd, const char* path, struct stat* st,
90 int _haiku_build_mkdirat(int fd, const char* path, mode_t mode);
91 int _haiku_build_mkfifoat(int fd, const char* path, mode_t mode);
92 int _haiku_build_utimensat(int fd, const char* path,
94 int _haiku_build_futimens(int fd, cons
[all...]
/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dduckduckgo_request.cpp78 int fd; local
80 fd = open("/tmp/duckduckgo.html", O_CREAT|O_TRUNC|O_RDWR, 0644);
81 write(fd, output.Buffer(), output.BufferLength());
82 close(fd);
86 int fd; local
89 fd = open(FAKE_INPUT, O_RDONLY, 0644);
90 if (fd < 0)
92 if (fstat(fd, &st) < 0) {
93 close(fd);
100 if (read(fd, cn
[all...]
/haiku/src/bin/makebootable/platform/bios_ia32/
H A Dmakebootable.cpp184 write_boot_code_part(const char *fileName, int fd, off_t imageOffset, argument
188 ssize_t bytesWritten = write_pos(fd, imageOffset + offset,
593 int fd = open(fileName, O_RDWR); local
594 if (fd < 0) {
607 if (ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo,
629 write_boot_code_part(fileName, fd, startOffset, bootCodeData, 0,
631 write_boot_code_part(fileName, fd, startOffset, bootCodeData,
672 close(fd);
/haiku/src/add-ons/kernel/file_systems/exfat/
H A Dkernel_interface.cpp82 exfat_identify_partition(int fd, partition_data* partition, void** _cookie) argument
85 status_t status = Volume::Identify(fd, &superBlock);
105 for (uint32 i = 0; read_pos(fd, rootDirectoryOffset + i * entrySize,
131 exfat_scan_partition(int fd, partition_data* partition, void* _cookie) argument
/haiku/src/system/libroot/posix/unistd/
H A Dconf.cpp538 fpathconf(int fd, int name) argument
543 if (fd < 0) {
547 ret = fstat(fd, &st);
550 ret = fstatvfs(fd, &fs);
/haiku/src/add-ons/kernel/file_systems/fat/
H A Ddosfs.cpp48 kprintf("id: %" B_PRIdDEV ", fd: %d, device: %s, flags %" B_PRIu32 "\n",
49 vol->id, vol->fd, vol->device, vol->flags);
173 volume_init(int fd, uint8* buf, argument
189 vol->fd = fd;
337 if ((err = read_pos(vol->fd, vol->bytes_per_sector * (vol->reserved_sectors
357 if ((err = read_pos(vol->fd, vol->bytes_per_sector
401 vol->fBlockCache = block_cache_create(vol->fd, vol->total_sectors,
487 int fd; local
493 if ((err = (fd
670 dosfs_identify_partition(int fd, partition_data *partition, void **_cookie) argument
753 dosfs_scan_partition(int fd, partition_data *partition, void *_cookie) argument
[all...]
H A Dmkdos.cpp92 dosfs_initialize(int fd, partition_id partitionID, const char* name, argument
96 fd, name, parameterString, partitionSize);
134 hasBiosGeometry = B_OK == ioctl(fd, B_GET_BIOS_GEOMETRY, &biosGeometry,
136 hasDeviceGeometry = B_OK == ioctl(fd, B_GET_GEOMETRY, &deviceGeometry,
138 hasPartitionInfo = B_OK == ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo,
223 if (fstat(fd, &stat) < 0) {
325 if (B_OK != ioctl(fd, B_GET_BIOS_DRIVE_ID, &biosDriveId,
465 written = write_pos(fd, pos, zerobuffer, writesize);
479 written = write_pos(fd, BOOT_SECTOR_NUM * 512, bootsector, 512);
486 written = write_pos(fd, BACKUP_SECTOR_NU
633 dosfs_uninitialize(int fd, partition_id partitionID, off_t partitionSize, uint32 blockSize, disk_job_id job) argument
[all...]
/haiku/headers/posix/
H A Dunistd.h337 extern int faccessat(int fd, const char *path, int accessMode, int flag);
340 extern int fchdir(int fd);
344 extern int dup(int fd);
346 extern int close(int fd);
351 extern int unlinkat(int fd, const char *path, int flag);
355 extern ssize_t readlinkat(int fd, const char *path, char *buffer,
358 extern int symlinkat(const char *toPath, int fd, const char *symlinkPath);
360 extern int ftruncate(int fd, off_t newSize);
366 int __ioctl(int fd, ulong cmd, struct ioctl_args args);
368 extern int ioctl(int fd, unsigne
374 ioctl(int fd, unsigned long op, void* argument = NULL, size_t size = 0) argument
[all...]
/haiku/src/add-ons/kernel/drivers/disk/virtual/ram_disk/
H A Dram_disk.cpp398 FileDescriptorCloser fd(open(fFilePath, O_WRONLY));
399 if (!fd.IsSet())
493 ssize_t bytesWritten = pwrite(fd.Get(), buffer,
819 FileDescriptorCloser fd(open(fFilePath, O_RDONLY));
820 if (!fd.IsSet())
861 ssize_t bytesRead = pread(fd.Get(), buffer.Get(), bytesToRead,
/haiku/src/system/libroot/posix/sys/
H A Dmman.cpp92 mmap(void* address, size_t length, int protection, int flags, int fd, argument
103 fd = -1;
104 } else if (fd < 0) {
151 length, areaProtection, mapping, true, fd, offset);
/haiku/src/system/libroot/posix/
H A Dtermios.c16 /*! get the attributes of the TTY device at fd */
18 tcgetattr(int fd, struct termios *termios) argument
20 return ioctl(fd, TCGETA, termios);
24 /*! set the attributes for the TTY device at fd */
26 tcsetattr(int fd, int opt, const struct termios *termios) argument
49 return ioctl(fd, method, termios);
55 tcdrain(int fd) argument
58 * expressly for this purpose (e.g. ioctl(fd, TIOCDRAIN, 0).
63 return ioctl(fd, TCSBRK, 1);
69 tcflow(int fd, in argument
89 tcflush(int fd, int queueSelector) argument
97 tcsendbreak(int fd, int duration) argument
175 tcgetsid(int fd) argument
187 tcsetsid(int fd, pid_t pid) argument
[all...]
H A Dspawn.cpp31 int fd; member in struct:_file_action
137 action->fd = fildes;
165 action->fd = fildes;
190 action->fd = newfildes;
217 action->fd = -1;
243 action->fd = fildes;
459 if (action->fd == *errfd) {
460 int newfd = dup(action->fd);
463 close(action->fd);
469 if (close(action->fd) !
472 int fd = open(action->action.open_action.path, local
[all...]
/haiku/src/system/kernel/vm/
H A DVMAnonymousCache.cpp38 #include <fs/fd.h>
92 int fd; member in struct:swap_file
1425 int fd = open(path, O_RDWR | O_NOCACHE, S_IRUSR | S_IWUSR); local
1426 if (fd < 0)
1431 if (fstat(fd, &st) < 0) {
1432 close(fd);
1437 close(fd);
1442 close(fd);
1447 file_descriptor* descriptor = get_fd(get_current_io_context(true), fd);
1452 close(fd);
1738 int fd = open(swapPath, O_RDWR | O_CREAT | O_NOCACHE, S_IRUSR | S_IWUSR); local
[all...]
/haiku/src/add-ons/kernel/drivers/graphics/nvidia/
H A Ddriver.c402 int fd; local
411 fd = open (fname, O_WRONLY | O_CREAT, 0666);
412 if (fd < 0) return;
417 write (fd, ((void *)(((uint8 *)rom) + cnt)), 32768);
418 close (fd);
1133 /* we don't do anything on close: there might be dup'd fd */
/haiku/headers/private/graphics/nvidia/
H A Dnv_macros.h893 #define CFGR(A) (*(nv_pci_access.offset=NVCFG_##A, ioctl(fd,NV_GET_PCI, &nv_pci_access,sizeof(nv_pci_access)), &nv_pci_access.value))
894 #define CFGW(A,B) (nv_pci_access.offset=NVCFG_##A, nv_pci_access.value = B, ioctl(fd,NV_SET_PCI,&nv_pci_access,sizeof(nv_pci_access)))
897 #define ISAWB(A,B)(nv_isa_access.adress=A, nv_isa_access.data = (uint8)B, nv_isa_access.size = 1, ioctl(fd,NV_ISA_OUT, &nv_isa_access,sizeof(nv_isa_access)))
898 #define ISAWW(A,B)(nv_isa_access.adress=A, nv_isa_access.data = B, nv_isa_access.size = 2, ioctl(fd,NV_ISA_OUT, &nv_isa_access,sizeof(nv_isa_access)))
899 #define ISARB(A) (nv_isa_access.adress=A, ioctl(fd,NV_ISA_IN, &nv_isa_access,sizeof(nv_isa_access)), (uint8)nv_isa_access.data)
900 #define ISARW(A) (nv_isa_access.adress=A, ioctl(fd,NV_ISA_IN, &nv_isa_access,sizeof(nv_isa_access)), nv_isa_access.data)
/haiku/src/apps/poorman/libhttpd/
H A Dlibhttpd.c588 httpd_set_ndelay( int fd )
592 flags = fcntl( fd, F_GETFL, 0 );
597 (void) fcntl( fd, F_SETFL, newflags );
604 httpd_clear_ndelay( int fd )
608 flags = fcntl( fd, F_GETFL, 0 );
613 (void) fcntl( fd, F_SETFL, newflags );
3420 ** fd, and all of those are set to close-on-exec, so we don't
3427 ** below don't screw things up. We arbitrarily pick fd 3 - if there
3429 ** since at this point the only fd of interest is the connection.
3547 ** closed - the last fd dupe
4251 httpd_read_fully( int fd, void* buf, size_t nbytes ) argument
4279 httpd_write_fully( int fd, const char* buf, size_t nbytes ) argument
[all...]
/haiku/src/add-ons/kernel/drivers/input/usb_hid/
H A DHIDDevice.cpp143 int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644); local
144 if (fd >= 0) {
145 write(fd, reportDescriptor, descriptorLength);
146 close(fd);
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DVolume.cpp848 Volume::Identify(int fd, ext2_super_block* superBlock) argument
850 if (read_pos(fd, EXT2_SUPER_BLOCK_OFFSET, superBlock,
H A DVolume.h147 static status_t Identify(int fd, ext2_super_block* superBlock);
/haiku/src/bin/acpi_call/
H A Dacpi_call.cpp76 int fd; local
105 fd = open(dev_path, O_RDWR);
106 if (fd < 0)
111 if (ioctl(fd, 'ACCA', &params) == -1)
/haiku/src/apps/bootmanager/
H A DLegacyBootMenu.cpp382 int fd = open(drive.Path(), O_RDWR); local
383 if (fd < 0)
387 if (read(fd, &oldMBR, sizeof(oldMBR)) != sizeof(oldMBR)) {
388 close(fd);
393 close(fd);
400 close(fd);
451 close(fd);
455 lseek(fd, 0, SEEK_SET);
457 status_t status = _WriteBlocks(fd, buffer, newBootLoader.Position());
458 close(fd);
471 int fd = open(path.String(), O_RDONLY); local
511 int fd = open(path.String(), O_RDWR); local
613 int fd = open(device, O_RDONLY); local
624 _ReadBlocks(int fd, uint8* buffer, size_t size) argument
642 _WriteBlocks(int fd, const uint8* buffer, size_t size) argument
[all...]

Completed in 347 milliseconds

1234567891011>>