Searched refs:fd (Results 151 - 175 of 1127) sorted by relevance

1234567891011>>

/haiku-fatelf/src/system/kernel/disk_device_manager/
H A DKPartitioningSystem.cpp69 int fd = -1; local
70 if (partition->Open(O_RDONLY, &fd) != B_OK)
72 float result = fModule->identify_partition(fd, partition->PartitionData(),
74 close(fd);
86 int fd = -1; local
87 status_t result = partition->Open(O_RDONLY, &fd);
90 result = fModule->scan_partition(fd, partition->PartitionData(), cookie);
91 close(fd);
156 int fd = -1; local
157 status_t result = partition->Open(O_RDWR, &fd);
182 int fd = -1; local
208 int fd = -1; local
234 int fd = -1; local
262 int fd = -1; local
290 int fd = -1; local
317 int fd = -1; local
345 int fd = -1; local
373 int fd = -1; local
401 int fd = -1; local
426 int fd = -1; local
455 int fd = -1; local
483 int fd = -1; local
[all...]
/haiku-fatelf/src/tests/kits/net/sock/
H A Dservopen.c22 int fd, newfd, i, on, pid; local
53 if ( (fd = socket(AF_INET, udp ? SOCK_DGRAM : SOCK_STREAM, 0)) < 0)
58 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0)
65 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on)) < 0)
71 if (bind(fd, (struct sockaddr *) &servaddr, sizeof(servaddr)) < 0)
74 join_mcast(fd, &servaddr);
77 buffers(fd);
88 if (connect(fd, (struct sockaddr *) &cliaddr, sizeof(cliaddr))
94 sockopts(fd, 1);
96 return(fd); /* nothin
[all...]
H A Dcliopen.c15 int fd, i, on; local
48 if ( (fd = socket(AF_INET, udp ? SOCK_DGRAM : SOCK_STREAM, 0)) < 0)
53 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)) < 0)
60 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof (on)) < 0)
85 if (bind(fd, (struct sockaddr *) &cliaddr, sizeof(cliaddr)) < 0)
93 buffers(fd);
94 sockopts(fd, 0); /* may also want to set SO_DEBUG */
102 if (connect(fd, (struct sockaddr *) &servaddr, sizeof(servaddr))
118 if (getsockname(fd, (struct sockaddr *) &cliaddr, &i) < 0)
129 sockopts(fd,
[all...]
H A Dwriten.c6 writen(int fd, const void *vptr, size_t n) argument
15 if ( (nwritten = write(fd, ptr, nleft)) <= 0) {
/haiku-fatelf/headers/build/host/darwin/
H A Dfcntl.h27 int unlinkat(int fd, const char *path, int flag);
28 int futimesat(int fd, const char *path, const struct timeval times[2]);
/haiku-fatelf/headers/build/host/freebsd/sys/
H A Dstat.h16 int futimens(int fd, const struct timespec times[2]);
17 int utimensat(int fd, const char* path, const struct timespec times[2],
/haiku-fatelf/src/add-ons/accelerants/matrox/engine/
H A Dmga_globals.h1 extern int fd;
/haiku-fatelf/src/add-ons/accelerants/matrox/
H A Dglobal.h1 extern int fd;
/haiku-fatelf/src/bin/bash/lib/readline/examples/
H A Drl.c3 * (or another fd) using readline.
86 int opt, fd, nch; local
97 fd = nch = 0;
108 fd = atoi(optarg);
109 if (fd < 0)
132 if (fd != 0)
134 if (fstat (fd, &sb) < 0)
136 fprintf (stderr, "%s: %d: bad file descriptor\n", progname, fd);
139 ifp = fdopen (fd, "r");
/haiku-fatelf/src/bin/coreutils/lib/
H A Dfdopendir.c38 First, try to simulate it via opendir ("/proc/self/fd/FD"). Failing
46 Unlike other fd-related functions, this one effectively consumes
51 associated fd at all. */
53 fdopendir (int fd) argument
59 char *proc_file = openat_proc_name (buf, fd, ".");
76 const char *name = _gl_directory_name (fd);
85 if (fchdir (fd) != 0)
104 close (fd);
121 rpl_fdopendir (int fd) argument
124 if (fstat (fd,
[all...]
H A Dopenat-safer.c29 openat_safer (int fd, char const *file, int flags, ...) argument
45 return fd_safer (openat (fd, file, flags, mode));
H A Dsockets.h40 gl_fd_to_handle (int fd) argument
42 return _get_osfhandle (fd);
/haiku-fatelf/src/bin/gdb/readline/examples/
H A Drl.c3 * (or another fd) using readline.
80 int opt, fd, nch; local
91 fd = nch = 0;
102 fd = atoi(optarg);
103 if (fd < 0)
126 if (fd != 0)
128 if (fstat (fd, &sb) < 0)
130 fprintf (stderr, "%s: %d: bad file descriptor\n", progname, fd);
133 ifp = fdopen (fd, "r");
/haiku-fatelf/src/libs/expat/xmlwf/
H A Dreadfilemap.c41 int fd; local
46 fd = open(name, O_RDONLY|O_BINARY);
47 if (fd < 0) {
51 if (fstat(fd, &sb) < 0) {
65 n = read(fd, p, nbytes);
69 close(fd);
75 close(fd);
80 close(fd);
/haiku-fatelf/src/system/libroot/posix/sys/
H A Dflock.c17 flock(int fd, int op) argument
19 status_t status = _kern_flock(fd, op);
H A Dmkfifo.c23 mkfifoat(int fd, const char *path, mode_t mode) argument
25 RETURN_AND_SET_ERRNO(_kern_create_fifo(fd, path, mode));
H A Duio.c24 readv(int fd, const struct iovec *vecs, size_t count) argument
26 ssize_t bytes = _kern_readv(fd, -1, vecs, count);
33 readv_pos(int fd, off_t pos, const struct iovec *vecs, size_t count) argument
40 bytes = _kern_readv(fd, pos, vecs, count);
47 writev(int fd, const struct iovec *vecs, size_t count) argument
49 ssize_t bytes = _kern_writev(fd, -1, vecs, count);
56 writev_pos(int fd, off_t pos, const struct iovec *vecs, size_t count) argument
63 bytes = _kern_writev(fd, pos, vecs, count);
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Ddup.c16 dup(int fd) argument
18 RETURN_AND_SET_ERRNO(_kern_dup(fd));
H A Dlseek.c15 lseek(int fd, off_t pos, int whence) argument
17 off_t result = _kern_seek(fd, pos, whence);
H A Dsync.c19 fsync(int fd) argument
21 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_fsync(fd));
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/MyNetwork/
H A Dksocket_internal.h32 int fd; member in struct:ks_bind_param
46 int fd; member in struct:ks_getsockname_param
61 int fd; member in struct:ks_recvfrom_param
78 int fd; member in struct:ks_sendto_param
94 int fd; member in struct:ks_recv_param
109 int fd; member in struct:ks_send_param
124 int fd,backlog; member in struct:ks_listen_param
136 int fd; member in struct:ks_closesocket_param
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/bt_fs/ksocket_v3/
H A Dksocket_internal.h32 int fd; member in struct:ks_bind_param
46 int fd; member in struct:ks_getsockname_param
61 int fd; member in struct:ks_recvfrom_param
78 int fd; member in struct:ks_sendto_param
94 int fd; member in struct:ks_recv_param
109 int fd; member in struct:ks_send_param
124 int fd,backlog; member in struct:ks_listen_param
136 int fd; member in struct:ks_closesocket_param
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/mounthost/
H A Dksocket_internal.h32 int fd; member in struct:ks_bind_param
46 int fd; member in struct:ks_getsockname_param
61 int fd; member in struct:ks_recvfrom_param
78 int fd; member in struct:ks_sendto_param
94 int fd; member in struct:ks_recv_param
109 int fd; member in struct:ks_send_param
124 int fd,backlog; member in struct:ks_listen_param
136 int fd; member in struct:ks_closesocket_param
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/fs_shell/
H A Dfs_shell_command_unix.cpp23 int fd = socket(AF_UNIX, SOCK_STREAM, 0); local
24 if (fd < 0)
32 if (connect(fd, (sockaddr*)&addr, addrLen) < 0) {
33 close(fd);
42 bytesWritten = write(fd, messageBuffer, toWrite);
52 close(fd);
61 int bytesRead = read(fd, replyBuffer, toRead);
68 close(fd);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/aio_write/
H A D9-1.c46 int fd; local
56 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
58 if (fd == -1)
68 aiocb.aio_fildes = fd;
82 close (fd);
86 close (fd);
94 close(fd);
99 close(fd);

Completed in 212 milliseconds

1234567891011>>