Home
last modified time | relevance | path

Searched refs:fhp (Results 1 - 7 of 7) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dname_to_handle_at.c31 struct file_handle *fhp; in name_to_handle_at_0100() local
35 fhsize = sizeof(*fhp); in name_to_handle_at_0100()
36 fhp = malloc(fhsize); in name_to_handle_at_0100()
37 if (fhp == NULL) { in name_to_handle_at_0100()
43 fhp->handle_bytes = 0; in name_to_handle_at_0100()
45 if (name_to_handle_at(dirfd, pathname, fhp, &mount_id, flags) != -1 || errno != EOVERFLOW) { in name_to_handle_at_0100()
49 fhsize = sizeof(*fhp) + fhp->handle_bytes; in name_to_handle_at_0100()
50 fhp = realloc(fhp, fhsiz in name_to_handle_at_0100()
[all...]
/third_party/ltp/include/lapi/
H A Dname_to_handle_at.h38 struct file_handle fh = {}, *fhp; in allocate_file_handle() local
53 fhp = tst_alloc(sizeof(*fhp) + fh.handle_bytes); in allocate_file_handle()
54 fhp->handle_type = fh.handle_type; in allocate_file_handle()
55 fhp->handle_bytes = fh.handle_bytes; in allocate_file_handle()
57 return fhp; in allocate_file_handle()
/third_party/ltp/testcases/kernel/syscalls/name_to_handle_at/
H A Dname_to_handle_at01.c25 static struct file_handle *fhp; variable
76 fhp = allocate_file_handle(AT_FDCWD, TEST_FILE); in setup()
85 TEST(name_to_handle_at(*tc->dfd, tc->pathname, fhp, &mount_id, in run()
92 TEST(fd = open_by_handle_at(*tc->dfd, fhp, tc->flags)); in run()
H A Dname_to_handle_at02.c27 struct file_handle **fhp; member
59 TEST(name_to_handle_at(tc->dfd, *tc->pathname, *tc->fhp, *tc->mount_id, in run()
/third_party/ltp/testcases/kernel/syscalls/open_by_handle_at/
H A Dopen_by_handle_at01.c30 struct file_handle **fhp; member
91 TEST(fd = open_by_handle_at(*tc->dfd, *tc->fhp, tc->flags)); in run()
100 if (file_stat.st_size == 0 || (tc->fhp == &f_fhp)) in run()
H A Dopen_by_handle_at02.c29 struct file_handle **fhp; member
79 TEST(fd = open_by_handle_at(tc->dfd, *tc->fhp, tc->flags)); in run()
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/
H A Dmod.rs3921 pub fn fhlink(fhp: *mut fhandle_t, to: *const ::c_char) -> ::c_int; in fhlink()
3922 pub fn fhlinkat(fhp: *mut fhandle_t, tofd: ::c_int, to: *const ::c_char) -> ::c_int; in fhlinkat()
3924 fhp: *mut fhandle_t, in fhreadlink()
3931 fhp: *mut fhandle, in getfhat()
4259 pub fn fhopen(fhp: *const fhandle_t, flags: ::c_int) -> ::c_int; in fhopen()
4260 pub fn fhstat(fhp: *const fhandle, buf: *mut ::stat) -> ::c_int; in fhstat()
4261 pub fn fhstatfs(fhp: *const fhandle_t, buf: *mut ::statfs) -> ::c_int; in fhstatfs()
4262 pub fn getfh(path: *const ::c_char, fhp: *mut fhandle_t) -> ::c_int; in getfh()
4263 pub fn lgetfh(path: *const ::c_char, fhp: *mut fhandle_t) -> ::c_int; in lgetfh()

Completed in 12 milliseconds