/haiku/src/bin/ |
H A D | fstrim.cpp | 64 IsDirectory(const int fd) argument 67 if (fstat(fd, &fdStat) == -1) { 77 IsBlockDevice(const int fd) argument 80 if (fstat(fd, &fdStat) == -1) { 90 IsCharacterDevice(const int fd) argument 93 if (fstat(fd, &fdStat) == -1) { 206 int fd = open(path, O_RDONLY); local 207 if (fd < 0) { 213 FileDescriptorCloser closer(fd); 215 if (IsDirectory(fd)) { [all...] |
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/accelerants/et6x00/ |
H A D | InitAccelerant.c | 26 fd = the_fd; 30 result = ioctl(fd, ET6000_GET_PRIVATE_DATA, &gpd, sizeof(gpd)); 155 result = ioctl(fd, ET6000_DEVICE_NAME, &dn, sizeof(dn)); 170 fd = open(path, B_READ_WRITE); 171 if (fd < 0) { 172 result = fd; 180 result = initCommon(fd); 199 close(fd); 213 if (accelerantIsClone) close(fd);
|
/haiku/src/system/libroot/os/ |
H A D | fs_query.cpp | 31 int fd = _kern_open_query(device, query, strlen(query), flags, port, token); local 32 if (fd < 0) { 33 __set_errno(fd); 38 DIR *dir = __create_dir_struct(fd); 40 _kern_close(fd);
|
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/src/kits/storage/ |
H A D | File.cpp | 111 int fd = _kern_open_entry_ref(ref->device, ref->directory, ref->name, local 113 if (fd >= 0) { 114 set_fd(fd); 118 fCStatus = fd; 138 int fd = _kern_open(entry->fDirFd, entry->fName, openMode | O_CLOEXEC, local 140 if (fd >= 0) { 141 set_fd(fd); 145 fCStatus = fd; 163 int fd = _kern_open(-1, path, openMode, DEFFILEMODE & ~__gUmask); local 164 if (fd > 188 int fd = _kern_open(dir->fDirFd, path, openMode, DEFFILEMODE & ~__gUmask); local 317 int fd = _kern_dup(file.get_fd()); local [all...] |
/haiku/src/add-ons/mail_daemon/outbound_filters/fortune/ |
H A D | FortuneFilter.cpp | 67 FILE *fd; local 69 fd = popen(fortuneFile.String(), "r"); 70 if (!fd) { 80 while (fgets(buffer, 768, fd)) { 84 pclose(fd);
|
/haiku/src/tests/system/libroot/posix/ |
H A D | truncate.cpp | 52 int fd = open(argv[1], O_RDONLY); local 53 if (fd < 0) { 58 if (ftruncate(fd, newSize) == 0 || errno != EINVAL) { 61 close(fd); 64 close(fd);
|
/haiku/src/tests/system/network/posixnet/ |
H A D | SocketTests.cpp | 23 int fd = ::socket(AF_INET, SOCK_STREAM, 0); local 24 CPPUNIT_ASSERT(fd > 0); 34 fd, 43 fd, 48 close(fd);
|
/haiku/src/system/libroot/posix/ |
H A D | dirent.cpp | 26 int fd; member in struct:__DIR 44 status_t status = _kern_rewind_dir(dir->fd); 82 count = _kern_read_dir(dir->fd, &dir->first_entry, 104 __create_dir_struct(int fd) argument 114 dir->fd = fd; 127 fdopendir(int fd) argument 133 int dirFD = _kern_open_dir(fd, NULL); 143 if (dup2(dirFD, fd) == -1) 144 close(fd); 167 int fd = _kern_open_dir(-1, path); local [all...] |
/haiku/headers/libs/agg/dbg_new/ |
H A D | agg_dbg_new.h | 41 FILE* fd = fopen("stdout.txt", "at"); local 47 fputs(msg, fd); 48 fclose(fd);
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | InsecureConnectionListener.cpp | 70 int fd = -1; local 72 fd = accept(fSocket, NULL, 0); 73 if (fd < 0) { 78 } while (fd < 0); 82 closesocket(fd); 85 status_t error = connection->Init(fd);
|
/haiku/src/system/libroot/posix/glibc/include/sys/ |
H A D | stat.h | 48 #define fstat64(fd, buf) __fxstat64 (_STAT_VER, fd, buf) 49 #define fstat(fd, buf) __fxstat (_STAT_VER, fd, buf) 50 #define __fstat(fd, buf) __fxstat (_STAT_VER, fd, buf)
|
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | freopen.c | 74 int fd = -1; 82 fd = __dup (_IO_fileno (fp)); 83 if (fd != -1) 84 filename = fd_to_filename (fd); 112 if (fd != -1) 114 __close (fd);
|
/haiku/src/tests/kits/media/playsound/ |
H A D | playwav.cpp | 18 int fd = -1; variable 48 size = read(fd, buffer, SIZE); 80 fd = open(argv[1], O_RDONLY); 81 if (fd < 0) { 86 lseek(fd, 44, SEEK_SET); 132 close(fd);
|
/haiku/src/tools/fs_shell/ |
H A D | stat.cpp | 27 extern "C" status_t _kern_read_stat(int fd, const char *path, 57 FSShell::unrestricted_fstat(int fd, struct fssh_stat *fsshStat) argument 64 if (fstat(fd, &st) < 0) 67 status_t error = _kern_read_stat(fd, NULL, false, &st, sizeof(st)); 125 fssh_fstat(int fd, struct fssh_stat *fsshStat) argument 127 if (FSShell::unrestricted_fstat(fd, fsshStat) < 0)
|
/haiku/src/tests/kits/media/playwav/ |
H A D | playwav.cpp | 22 int fd = -1; variable 46 size = read(fd, buffer, SIZE); 61 fd = open((argc > 1) ? argv[1] : FILENAME, O_RDONLY); 62 if (fd < 0) 65 lseek(fd, 44, SEEK_SET); // skip wav header 101 close(fd);
|
/haiku/src/kits/network/libnetapi/ |
H A D | Socket.cpp | 61 int fd = -1; local 63 status_t error = AcceptNext(fd, peer); 68 close(fd); 72 socket->_SetTo(fd, fLocal, peer); 111 BSocket::_SetTo(int fd, const BNetworkAddress& local, argument 117 fSocket = fd;
|
/haiku/src/add-ons/accelerants/neomagic/engine/ |
H A D | nm_globals.h | 1 extern int fd;
|
/haiku/src/kits/package/hpkg/ |
H A D | AttributeDataReader.cpp | 19 BAttributeDataReader::BAttributeDataReader(int fd, const char* attribute, argument 22 fFD(fd),
|
/haiku/src/servers/midi/ |
H A D | PortDrivers.h | 19 MidiPortConsumer(int fd, const char* path); 30 MidiPortProducer(int fd, const char* path = NULL);
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | truncate.c | 33 ftruncate(int fd, off_t newSize) argument 39 status = _kern_write_stat(fd, NULL, false, &stat, sizeof(struct stat),
|
/haiku/src/add-ons/kernel/partitioning_systems/intel/ |
H A D | write_support.h | 39 status_t pm_resize(int fd, partition_id partitionID, off_t size, 41 status_t pm_resize_child(int fd, partition_id partitionID, off_t size, 43 status_t pm_move(int fd, partition_id partitionID, off_t offset, 45 status_t pm_move_child(int fd, partition_id partitionID, 47 status_t pm_set_type(int fd, partition_id partitionID, const char* type, 49 status_t pm_set_parameters(int fd, partition_id partitionID, 51 status_t pm_initialize(int fd, partition_id partitionID, const char* name, 53 status_t pm_uninitialize(int fd, partition_id partitionID, 55 status_t pm_create_child(int fd, partition_id partitionID, off_t offset, 59 status_t pm_delete_child(int fd, partition_i [all...] |
/haiku/headers/private/kernel/fs/ |
H A D | fd.h | 93 extern status_t close_fd_index(struct io_context *context, int fd); 97 extern int dup_foreign_fd(team_id fromTeam, int fd, bool kernel); 98 extern status_t select_fd(int32 fd, struct select_info *info, bool kernel); 99 extern status_t deselect_fd(int32 fd, struct select_info *info, bool kernel); 100 extern bool fd_is_valid(int fd, bool kernel); 103 extern bool fd_close_on_exec(struct io_context *context, int fd); 104 extern void fd_set_close_on_exec(struct io_context *context, int fd, 109 extern status_t user_fd_kernel_ioctl(int fd, ulong op, void *buffer,
|
/haiku/src/bin/fwcontrol/ |
H A D | fwcontrol.c | 125 get_dev(int fd, struct fw_devlstreq *data) argument 129 if( ioctl(fd, FW_GDEVLST, data) < 0) { 135 str2node(int fd, const char *nodestr) argument 165 get_dev(fd,data); 189 list_dev(int fd) argument 200 get_dev(fd, data); 217 read_write_quad(int fd, struct fw_eui64 eui, u_int32_t addr_lo, int readmode, u_int32_t data) argument 246 if (ioctl(fd, FW_ASYREQ, asyreq) < 0) { 273 send_phy_config(int fd, int root_node, int gap_count) argument 294 if (ioctl(fd, FW_ASYRE 300 link_on(int fd, int node) argument 319 reset_start(int fd, int node) argument 343 set_pri_req(int fd, u_int32_t pri_req) argument 403 get_crom(int fd, int node, void *crom_buf, int len) argument 527 show_topology_map(int fd) argument 572 read_phy_registers(int fd, u_int8_t *buf, int offset, int len) argument 588 read_phy_page(int fd, u_int8_t *buf, int page, int port) argument 600 dump_phy_registers(int fd) argument 659 open_dev(int *fd, char *devname) argument 680 detect_recv_fn(int fd, char ich) argument 754 int fd = -1, ch, len=1024; local [all...] |