Home
last modified time | relevance | path

Searched refs:f_fd (Results 1 – 4 of 4) sorted by relevance

/freebsd/tools/regression/security/cap_test/
H A Dcap_test_fcntl.c53 int f_fd; member
74 REQUIRE(files[0].f_fd); in test_fcntl()
75 REQUIRE(files[1].f_fd); in test_fcntl()
76 REQUIRE(files[2].f_fd); in test_fcntl()
79 { "file cap", cap_new(files[0].f_fd, rights) }, in test_fcntl()
80 { "socket cap", cap_new(files[1].f_fd, rights) }, in test_fcntl()
81 { "SHM cap", cap_new(files[2].f_fd, rights) }, in test_fcntl()
83 REQUIRE(caps[0].f_fd); in test_fcntl()
84 REQUIRE(caps[1].f_fd); in test_fcntl()
85 REQUIRE(caps[2].f_fd); in test_fcntl()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c1125 fp->f_fd = fd; in zfs_file_open()
1135 close(fp->f_fd); in zfs_file_close()
1158 rc = write(fp->f_fd, buf, count); in zfs_file_write()
1196 rc = pwrite64(fp->f_fd, buf, split, pos); in zfs_file_pwrite()
1199 rc = pwrite64(fp->f_fd, (char *)buf + split, in zfs_file_pwrite()
1243 rc = read(fp->f_fd, buf, count); in zfs_file_read()
1273 rc = pread64(fp->f_fd, buf, count, off); in zfs_file_pread()
1317 rc = lseek(fp->f_fd, *offp, whence); in zfs_file_seek()
1341 if (fstat64_blk(fp->f_fd, &st) == -1) in zfs_file_getattr()
1363 if (fsync(fp->f_fd) < 0) in zfs_file_fsync()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzfs_file.h29 int f_fd; member
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c6540 (void) close(vf->vf_file->f_fd); in ztest_fault_inject()
6541 vf->vf_file->f_fd = -1; in ztest_fault_inject()