/haiku/src/system/libroot/posix/unistd/ |
H A D | write.c | 22 write(int fd, void const *buffer, size_t bufferSize) argument 24 int status = _kern_write(fd, -1, buffer, bufferSize); 31 write_pos(int fd, off_t pos, const void *buffer, size_t bufferSize) argument 36 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_write(fd, pos, buffer, bufferSize)); 41 pwrite(int fd, const void *buffer, size_t bufferSize, off_t pos) argument 46 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_write(fd, pos, buffer, bufferSize));
|
/haiku/src/tests/misc/ |
H A D | writev-test.cpp | 11 int fd = open("testfile", O_CREAT | O_RDWR, 0666); local 13 if (fd < 0) { 21 ret = writev(fd, &vec1, 0x80000001); 28 ret = writev(fd, &vec2, 1); 35 ret = writev(fd, &vec3, 0xfff); 41 close(fd);
|
/haiku/src/tools/fixup_amiga_boot_checksum/ |
H A D | fixup_amiga_boot_checksum.c | 11 int fd; local 16 fd = open(argv[1], O_RDWR); 17 if (fd < 0) { 20 if (read(fd, bootblock, BB_SIZE) < BB_SIZE) { 41 lseek(fd, 0LL, SEEK_SET); 42 write(fd, bootblock, BB_SIZE);
|
/haiku/headers/build/host/darwin/ |
H A D | unistd.h | 10 int faccessat(int fd, const char* path, int accessMode, int flag); 11 int fchownat(int fd, const char* path, uid_t owner, gid_t group, int flag); 12 ssize_t readlinkat(int fd, const char *path, char *buffer, size_t bufferSize);
|
/haiku/headers/cpp/ |
H A D | fstream.h | 40 fstreambase(int fd); 41 fstreambase(int fd, char *p, int l); /* Deprecated */ 52 void attach(int fd); 54 int filedesc() { return rdbuf()->fd(); } 62 ifstream(int fd) : fstreambase(fd) { } argument 63 ifstream(int fd, char *p, int l) : fstreambase(fd, p, l) { } /*Deprecated*/ argument 73 ofstream(int fd) : fstreambase(fd) { } argument 74 ofstream(int fd, char *p, int l) argument 84 fstream(int fd) argument 87 fstream(int fd, char *p, int l) argument [all...] |
/haiku/headers/private/libroot/ |
H A D | dirent_private.h | 15 DIR* __create_dir_struct(int fd);
|
/haiku/src/add-ons/accelerants/et6x00/ |
H A D | GlobalData.c | 10 int fd; variable
|
H A D | GlobalData.h | 13 extern int fd;
|
/haiku/src/bin/pcmcia-cs/ |
H A D | dump_cisreg.c | 91 int fd; 98 fd = open(fn, O_RDONLY); 100 if (fd >= 0) 101 return fd; 111 static int get_reg(int fd, int fn, off_t off) argument 119 ret = ioctl(fd, DS_ACCESS_CONFIGURATION_REGISTER, &arg); 127 static int dump_option(int fd, int fn, int mfc) argument 129 int v = get_reg(fd, fn, CISREG_COR); 146 static void dump_status(int fd, int fn) argument 148 int v = get_reg(fd, f 162 dump_pin(int fd, int fn) argument 179 dump_copy(int fd, int fn) argument 189 dump_ext_status(int fd, int fn) argument 201 dump_all(int fd, int fn, int mfc, u_int mask) argument 235 int i, j, nfn, fd, ret; local [all...] |
/haiku/src/build/libroot/ |
H A D | fs_impl.h | 12 status_t get_path(int fd, const char *name, std::string &path);
|
H A D | fs_attr_haiku.cpp | 69 _haiku_build_fs_fopen_attr_dir(int fd) argument 72 status_t error = localFD.Init(fd); 108 _haiku_build_fs_fopen_attr(int fd, const char *attribute, uint32 type, int openMode) argument 110 if (fd < 0) { 116 status_t error = localFD.Init(fd); 132 _haiku_build_fs_close_attr(int fd) argument 134 return fs_close_attr(fd); 139 _haiku_build_fs_read_attr(int fd, const char* attribute, uint32 type, off_t pos, argument 143 status_t error = localFD.Init(fd); 151 int fd local 172 _haiku_build_fs_write_attr(int fd, const char* attribute, uint32 type, off_t pos, const void *buffer, size_t writeBytes) argument 184 int fd = open(localFD.Path(), O_NOTRAVERSE | O_WRONLY); local 198 _haiku_build_fs_remove_attr(int fd, const char* attribute) argument 210 int fd = open(localFD.Path(), O_NOTRAVERSE | O_WRONLY); local 229 _haiku_build_fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo) argument 245 int fd = open(localFD.Path(), O_NOTRAVERSE | O_RDONLY); local 263 _kern_open_attr_dir(int fd, const char *path) argument 306 _kern_remove_attr(int fd, const char *name) argument [all...] |
/haiku/src/system/runtime_loader/ |
H A D | elf_haiku_version.h | 11 void analyze_image_haiku_version_and_abi(int fd, image_t* image,
|
/haiku/src/tests/servers/input/comm/ |
H A D | area.c | 16 int fd = open ("/tmp/input_area.bin", O_WRONLY | O_CREAT | O_TRUNC, 0644); local 17 if (fd >= 0) { 18 write (fd, appBuffer, 0x1000); 19 close (fd);
|
/haiku/src/tests/system/kernel/device_manager/ |
H A D | dm_wrapper.c | 11 static int fd; variable 17 fd = open(device, 0); 18 if (fd < 0) 25 close(fd); 36 return ioctl(fd, params.magic, ¶ms, sizeof(params)); 46 return ioctl(fd, params.magic, ¶ms, sizeof(params)); 56 return ioctl(fd, params.magic, ¶ms, sizeof(params)); 66 return ioctl(fd, params.magic, ¶ms, sizeof(params)); 76 return ioctl(fd, params.magic, ¶ms, sizeof(params));
|
/haiku/src/kits/package/hpkg/ |
H A D | FDDataReader.cpp | 18 BFDDataReader::BFDDataReader(int fd) argument 20 fFD(fd) 26 BFDDataReader::SetFD(int fd) argument 28 fFD = fd;
|
/haiku/src/add-ons/kernel/file_systems/netfs/netfs_config/ |
H A D | netfs_config.cpp | 36 add_server(int fd, const char* serverName) argument 42 if (ioctl(fd, NET_FS_IOCTL_ADD_SERVER, ¶ms) < 0) 50 remove_server(int fd, const char* serverName) argument 56 if (ioctl(fd, NET_FS_IOCTL_REMOVE_SERVER, ¶ms) < 0) 91 int fd = open(mountPoint, O_RDONLY); local 92 if (fd < 0) { 100 error = add_server(fd, serverName); 102 error = remove_server(fd, serverName); 106 close(fd);
|
/haiku/src/system/libroot/posix/ |
H A D | termios.c | 16 /*! 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...] |
/haiku/src/system/libroot/os/ |
H A D | stack_protector.cpp | 27 int fd = open("/dev/random", O_RDONLY, 0); local 28 if (fd >= 0) { 29 done = read(fd, &__stack_chk_guard, sizeof(__stack_chk_guard)) 31 close(fd);
|
/haiku/src/tests/system/kernel/ |
H A D | fifo_poll_test.cpp | 17 int fd = fileno(f); local 18 printf("fd=%d\n", fd); 21 pfd.fd = fd;
|
/haiku/headers/build/private/kernel/ |
H A D | syscalls.h | 58 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/src/system/kernel/disk_device_manager/ |
H A D | KPartitioningSystem.cpp | 69 int fd = -1; local 70 if (partition->Open(O_RDONLY, &fd) != B_OK) 73 close(fd); 77 float result = fModule->identify_partition(fd, partition->PartitionData(), 79 close(fd); 91 int fd = -1; local 92 status_t result = partition->Open(O_RDONLY, &fd); 95 result = fModule->scan_partition(fd, partition->PartitionData(), cookie); 96 close(fd); 161 int fd local 187 int fd = -1; local 213 int fd = -1; local 239 int fd = -1; local 267 int fd = -1; local 295 int fd = -1; local 322 int fd = -1; local 350 int fd = -1; local 378 int fd = -1; local 406 int fd = -1; local 431 int fd = -1; local 460 int fd = -1; local 488 int fd = -1; local [all...] |
/haiku/src/bin/addattr/ |
H A D | addAttr.cpp | 29 writeAttrValue(int fd, const char* name, type_code type, Type value) argument 31 ssize_t bytes = fs_write_attr(fd, name, type, 0, &value, sizeof(Type)); 46 writeAttr(int fd, type_code type, const char* name, const char* value, size_t length) argument 78 return writeAttrValue<int8>(fd, name, type, (int8)int64value); 80 return writeAttrValue<int16>(fd, name, type, (int16)int64value); 82 return writeAttrValue<int32>(fd, name, type, (int32)int64value); 84 return writeAttrValue<int64>(fd, name, type, int64value); 87 return writeAttrValue<uint8>(fd, name, type, (uint8)uint64value); 89 return writeAttrValue<uint16>(fd, name, type, (uint16)uint64value); 91 return writeAttrValue<uint32>(fd, nam 154 int fd = open(file, O_RDONLY | (resolveLinks ? 0 : O_NOTRAVERSE)); local [all...] |
/haiku/src/bin/ |
H A D | eject.cpp | 136 int fd; local 148 fd = open(device, O_RDONLY); 149 if (fd < 0) { 155 if (ioctl(fd, B_EJECT_DEVICE, NULL, 0) < 0) { 157 close(fd); 162 if (ioctl(fd, B_LOAD_MEDIA, NULL, 0) < 0) { 164 close(fd); 170 if (ioctl(fd, B_SCSI_PREVENT_ALLOW, &bval, sizeof(bval)) < 0) { 172 close(fd); 178 if (ioctl(fd, B_SCSI_PREVENT_ALLO [all...] |
/haiku/headers/build/host/freebsd/sys/ |
H A D | stat.h | 16 int futimens(int fd, const struct timespec times[2]); 17 int utimensat(int fd, const char* path, const struct timespec times[2],
|
/haiku/src/add-ons/accelerants/matrox/engine/ |
H A D | mga_globals.h | 1 extern int fd;
|