Searched refs:fd (Results 101 - 125 of 571) sorted by relevance

1234567891011>>

/haiku/src/kits/debugger/files/
H A DSourceFile.cpp55 int fd = open(path, O_RDONLY); local
56 if (fd < 0)
61 if (fstat(fd, &st) < 0) {
62 close(fd);
67 close(fd);
73 close(fd);
81 close(fd);
86 ssize_t bytesRead = read(fd, fFileContent, fileSize);
87 close(fd);
/haiku/src/tests/system/network/
H A Dipv46_server.cpp16 void recvLoop(int fd) { argument
19 int ret = recv(fd, buffer, sizeof(buffer) - 1, 0);
84 int fd = socket(socketFamily, socketType, 0); local
85 if (fd < 0) {
90 if (bind(fd, (sockaddr *)&localAddress, localAddress.ss_family == AF_INET ?
99 recvLoop(fd);
103 if (listen(fd, 5) < 0) {
108 int clientfd = accept(fd, NULL, 0);
120 close(fd);
H A Dtcp_connection_test.cpp62 int fd = socket(AF_INET, SOCK_STREAM, 0); local
63 if (fd < 0) {
79 if (bind(fd, (sockaddr*)&clientAddr, sizeof(clientAddr)) < 0) {
87 if (connect(fd, (sockaddr*)&addr, addrLen) == 0) {
92 if (getsockname(fd, (sockaddr*)&clientAddr, &clientAddrLen)
94 && getpeername(fd, (sockaddr*)&serverAddr, &serverAddrLen)
113 if (fd >= 0) {
114 read(fd, buffer, sizeof(buffer));
115 close(fd);
118 // close(fd);
125 int fd = accept(listenerSocket, NULL, 0); local
[all...]
/haiku/src/tests/system/network/ipv6/
H A Dtcp_udp_server.cpp28 recvLoop(int fd) argument
32 int status = recv(fd, buffer, sizeof(buffer) - 1, 0);
99 int fd = socket(socketFamily, socketType, 0); local
100 if (fd < 0) {
105 if (bind(fd, (sockaddr *)&localAddress, localAddress.ss_family == AF_INET ?
114 recvLoop(fd);
117 if (listen(fd, 5) < 0) {
122 int clientfd = accept(fd, NULL, 0);
134 close(fd);
/haiku/src/add-ons/kernel/file_systems/cdda/
H A Dcdda.h32 status_t read_cdtext(int fd, cdtext &text);
33 status_t read_table_of_contents(int fd, scsi_toc_toc *toc, size_t length);
34 status_t read_cdda_data(int fd, off_t endFrame, off_t offset, void *data,
/haiku/src/add-ons/media/media-add-ons/finepix_webcam/FinePixUSBKitTest/
H A DFinePixTest.cpp26 int fd = open(fname, O_WRONLY | O_CREAT,0644); local
27 write(fd, frame, total_size);
28 close(fd);
/haiku/src/tests/add-ons/kernel/drivers/random/
H A Drandom_test.cpp16 int fd = open(kRandomDevice, O_RDONLY); local
17 if (fd < 0) {
24 ssize_t bytesRead = read(fd, buffer, sizeof(buffer));
/haiku/src/build/libroot/
H A DLocalFD.h18 status_t Init(int fd) argument
21 Descriptor* descriptor = get_descriptor(fd);
29 fFD = fd;
H A Dfs_descriptors.cpp41 dup_maybe_system(int fd) argument
43 if (get_descriptor(fd) != NULL)
44 return _kern_dup(fd);
46 int clonedFD = dup(fd);
52 close_maybe_system(int fd) argument
54 if (get_descriptor(fd) != NULL)
55 return _kern_close(fd);
57 return close(fd) == 0 ? B_OK : errno;
80 return get_path(fd, NULL, path);
102 FileDescriptor::FileDescriptor(int fd) argument
485 get_descriptor(int fd) argument
502 int fd = -1; local
521 delete_descriptor(int fd) argument
540 is_unknown_or_system_descriptor(int fd) argument
[all...]
/haiku/src/tests/system/kernel/
H A Dadvisory_locking_test.cpp29 do_lock(int fd, int type, off_t start, off_t length) argument
38 if (fcntl(fd, F_SETLK, &flock) != 0) {
49 shared_lock(int fd, off_t start, off_t length) argument
51 return do_lock(fd, F_RDLCK, start, length);
56 exclusive_lock(int fd, off_t start, off_t length) argument
58 return do_lock(fd, F_WRLCK, start, length);
63 remove_lock(int fd, off_t start, off_t length) argument
65 return do_lock(fd, F_UNLCK, start, length);
102 int fd = open(kTemporaryFile, O_CREAT | O_RDWR, 0644); local
103 if (fd <
[all...]
/haiku/headers/build/host/darwin/
H A Dstdio.h11 int symlinkat(const char *oldPath, int fd, const char *newPath);
/haiku/headers/compatibility/gnu/sys/
H A Dxattr.h29 ssize_t fgetxattr(int fd, const char* attribute, void* buffer, size_t size);
35 int fsetxattr(int fd, const char* attribute, const void* buffer,
40 int fremovexattr (int fd, const char* attribute);
44 ssize_t flistxattr(int fd, char* buffer, size_t size);
/haiku/headers/posix/sys/
H A Dfile.h23 extern int flock(int fd, int op);
/haiku/headers/private/kernel/disk_device_manager/
H A Dddm_modules.h23 float (*identify_partition)(int fd, partition_data* partition,
25 status_t (*scan_partition)(int fd, partition_data* partition,
80 status_t (*repair)(int fd, partition_id partition, bool checkOnly,
82 status_t (*resize)(int fd, partition_id partition, off_t size,
84 status_t (*resize_child)(int fd, partition_id partition, off_t size,
86 status_t (*move)(int fd, partition_id partition, off_t offset,
88 status_t (*move_child)(int fd, partition_id partition, partition_id child,
90 status_t (*set_name)(int fd, partition_id partition, const char* name,
92 status_t (*set_content_name)(int fd, partition_id partition,
94 status_t (*set_type)(int fd, partition_i
[all...]
/haiku/src/add-ons/accelerants/matrox/engine/
H A Dmga_globals.c11 int fd; variable
/haiku/src/add-ons/accelerants/skeleton/engine/
H A Dglobals.c12 int fd; variable
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/haiku/
H A DHaikuKernelIORequest.h35 int fd; member in struct:UserlandFS::HaikuKernelIterativeFDIOCookie
41 HaikuKernelIterativeFDIOCookie(int fd, HaikuKernelIORequest* request, argument
45 fd(fd),
/haiku/src/system/libroot/posix/sys/
H A Dchmod.c32 fchmod(int fd, mode_t mode) argument
38 status = _kern_write_stat(fd, NULL, false, &stat, sizeof(struct stat),
46 fchmodat(int fd, const char* path, mode_t mode, int flag) argument
52 status = _kern_write_stat(fd, path, (flag & AT_SYMLINK_NOFOLLOW) == 0, &stat,
H A Dmkdir.c24 mkdirat(int fd, const char *path, mode_t mode) argument
26 RETURN_AND_SET_ERRNO(_kern_create_dir(fd, path, mode & ~__gUmask));
/haiku/src/tools/fs_shell/
H A Dstat_priv.h14 int unrestricted_fstat(int fd, struct fssh_stat *fsshStat);
/haiku/src/servers/power/
H A Dpower_monitor.h20 virtual void HandleEvent(int fd) = 0;
/haiku/src/system/libroot/posix/unistd/
H A Dioctl.c17 __ioctl(int fd, ulong cmd, struct ioctl_args args) argument
19 RETURN_AND_SET_ERRNO(_kern_ioctl(fd, cmd, args.argument, args.size));
25 ioctl(int fd, ulong cmd, ...) argument
37 status = _kern_ioctl(fd, cmd, argument, size);
H A Daccess.c25 faccessat(int fd, const char* path, int accessMode, int flag) argument
27 status_t status = _kern_access(fd, path, accessMode,
/haiku/src/bin/network/traceroute/
H A Difaddrlist.c65 register int fd, nipaddr; local
76 fd = socket(AF_INET, SOCK_DGRAM, 0);
77 if (fd < 0) {
84 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
93 (void)close(fd);
116 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifr, sizeof(ifr)) < 0) {
122 (void)close(fd);
137 if (ioctl(fd, SIOCGIFADDR, (char *)&ifr, sizeof(ifr)) < 0) {
140 (void)close(fd);
147 (void)close(fd);
[all...]
/haiku/src/bin/
H A Drmattr.cpp58 remove_attribute(int fd, const char* attribute, bool isPattern) argument
61 return fs_remove_attr(fd, attribute);
73 gCurrentFile = fd;
84 if (fs_remove_attr(fd, glob.gl_pathv[i]) != 0)
116 int fd = open(argv[i], O_RDONLY | (resolveLinks ? 0 : O_NOTRAVERSE)); local
117 if (fd < 0) {
123 if (remove_attribute(fd, argv[0], isPattern) != B_OK) {
128 close(fd);

Completed in 114 milliseconds

1234567891011>>