Searched refs:fd (Results 51 - 75 of 2844) sorted by relevance

1234567891011>>

/freebsd-current/crypto/heimdal/lib/krb5/
H A Dnet_read.c42 krb5_socket_t fd = *((krb5_socket_t *)p_fd); local
43 return net_read(fd, buf, len);
/freebsd-current/crypto/heimdal/lib/roken/
H A Dewrite.c43 ewrite (int fd, const void *buf, size_t nbytes) argument
47 ret = net_write (fd, buf, nbytes);
H A Deread.c43 eread (int fd, void *buf, size_t nbytes) argument
47 ret = net_read (fd, buf, nbytes);
H A Dfchown.c39 fchown(int fd, uid_t owner, gid_t group) argument
/freebsd-current/sys/contrib/openzfs/lib/libzfs_core/os/linux/
H A Dlibzfs_core_ioctl.c27 lzc_ioctl_fd(int fd, unsigned long request, zfs_cmd_t *zc) argument
29 return (ioctl(fd, request, zc));
/freebsd-current/usr.sbin/bsdinstall/runconsoles/
H A Dchild.h28 void child_leader_run(const char *name, int fd, bool new_session,
/freebsd-current/usr.sbin/pkg/
H A Dhash.c43 sha256_fd(int fd) argument
46 return (SHA256_Fd(fd, NULL));
/freebsd-current/lib/libnv/
H A Dcommon_impl.h40 fd_is_valid(int fd) argument
43 return (fcntl(fd, F_GETFD) != -1 || errno != EBADF);
/freebsd-current/lib/libc/sys/
H A Dgetdents.c34 getdents(int fd, char *buf, size_t nbytes) argument
37 return (__sys_getdirentries(fd, buf, nbytes, NULL));
H A Dclose.c41 close(int fd) argument
43 return (INTERPOS_SYS(close, fd));
H A Dfsync.c40 fsync(int fd) argument
42 return (INTERPOS_SYS(fsync, fd));
/freebsd-current/usr.sbin/mfiutil/
H A Dmfi_properties.c49 mfi_ctrl_get_properties(int fd, struct mfi_ctrl_props *info) argument
52 return (mfi_dcmd_command(fd, MFI_DCMD_CTRL_GET_PROPS, info,
57 mfi_ctrl_set_properties(int fd, struct mfi_ctrl_props *info) argument
60 return (mfi_dcmd_command(fd, MFI_DCMD_CTRL_SET_PROPS, info,
71 int error, fd; local
79 fd = mfi_open(mfi_device, O_RDWR);
80 if (fd < 0) {
86 error = mfi_ctrl_get_properties(fd, &ctrl_props);
90 close(fd);
98 error = mfi_ctrl_set_properties(fd,
123 int error, fd; local
[all...]
/freebsd-current/contrib/netbsd-tests/fs/psshfs/
H A Dh_have_puffs.c37 int exitcode, fd; local
39 fd = open("/dev/puffs", O_RDWR);
40 if (fd != -1) {
42 close(fd);
/freebsd-current/usr.sbin/bhyve/
H A Dsockstream.h32 ssize_t stream_read(int fd, void *buf, ssize_t nbytes);
33 ssize_t stream_write(int fd, const void *buf, ssize_t nbytes);
/freebsd-current/tests/sys/posixshm/
H A Dmemfd_test.c41 int fd; local
44 ATF_REQUIRE((fd = memfd_create("...", 0)) != -1);
47 ATF_REQUIRE(write(fd, buf, sizeof(buf)) == sizeof(buf));
48 ATF_REQUIRE(fstat(fd, &sb) == 0);
52 ATF_REQUIRE(ftruncate(fd, 2 * (sizeof(buf) - 1)) == 0);
55 ATF_REQUIRE(write(fd, buf, sizeof(buf)) == sizeof(buf));
58 ATF_REQUIRE(fstat(fd, &sb) == 0);
61 close(fd);
82 int fd; local
84 ATF_REQUIRE((fd
97 int fd; local
126 int fd; local
176 int err, fd; local
210 int fd; local
227 int fd, fdx; local
256 int fd; local
[all...]
/freebsd-current/contrib/file/src/
H A Dpread.c9 pread(int fd, void *buf, size_t len, off_t off) { argument
13 if ((old = lseek(fd, off, SEEK_SET)) == -1)
16 if ((rv = read(fd, buf, len)) == -1)
19 if (lseek(fd, old, SEEK_SET) == -1)
/freebsd-current/lib/libc/gen/
H A Dfdevname.c36 fdevname_r(int fd, char *buf, int len) argument
43 if (_ioctl(fd, FIODGNAME, &fgn) == -1)
49 fdevname(int fd) argument
53 return (fdevname_r(fd, buf, sizeof(buf)));
H A Deventfd.c43 int eventfd_read(int fd, eventfd_t *value) argument
45 return (sizeof(*value) == _read(fd, value, sizeof(*value)) ? 0 : -1);
48 int eventfd_write(int fd, eventfd_t value) argument
50 return (sizeof(value) == _write(fd, &value, sizeof(value)) ? 0 : -1);
/freebsd-current/contrib/xz/src/common/
H A Dtuklib_open_stdxxx.c38 const int fd = open("/dev/null", O_NOCTTY
41 if (fd != i) {
42 if (fd != -1)
43 (void)close(fd);
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/
H A Dt_fsync.c52 int i, fd[2]; local
56 * when the 'fd' is not a valid descriptor.
71 ATF_REQUIRE(pipe(fd) == 0);
75 ATF_REQUIRE(fsync(fd[0]) == -1);
80 ATF_REQUIRE(fsync(fd[1]) == -1);
83 ATF_REQUIRE(close(fd[0]) == 0);
84 ATF_REQUIRE(close(fd[1]) == 0);
96 int fd, i; local
102 fd = mkstemp(buf);
104 ATF_REQUIRE(fd !
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dstat.h37 fstat64_blk(int fd, struct stat64 *st) argument
39 if (fstat64(fd, st) == -1)
44 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0)
/freebsd-current/tests/sys/kern/pipe/
H A Dbig_pipe_test.c18 write_frame(int fd, char *buf, unsigned long buflen) argument
25 FD_SET(fd, &wfd);
26 i = select(fd+1, NULL, &wfd, NULL, NULL);
33 i = write(fd, buf, buflen);
49 int i, flags, fd[2]; local
51 if (pipe(fd) < 0)
54 flags = fcntl(fd[1], F_GETFL);
55 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) {
65 close(fd[1]);
68 i = read(fd[
[all...]
/freebsd-current/tools/build/cross-build/
H A Dcapsicum_stubs.c43 cap_ioctls_limit(int fd __unused, const cap_ioctl_t *cmds __unused,
50 cap_fcntls_limit(int fd __unused, uint32_t fcntlrights __unused)
56 cap_rights_limit(int fd __unused, const cap_rights_t *rights __unused)
/freebsd-current/lib/libfigpar/
H A Dfigpar.c104 int fd; local
139 if ((fd = open(rpath, O_RDONLY)) < 0)
144 r = read(fd, p, 1);
155 r = read(fd, p, 1);
159 close(fd);
164 curpos = lseek(fd, 0, SEEK_CUR) - 1;
166 close(fd);
180 r = read(fd, p, 1);
185 close(fd);
190 error = (int)lseek(fd, curpo
[all...]
/freebsd-current/lib/libc/stdio/
H A Dfileno.c46 int fd; local
49 fd = __sfileno(fp);
52 return (fd);

Completed in 308 milliseconds

1234567891011>>