Home
last modified time | relevance | path

Searched refs:getxattr (Results 1 - 25 of 50) sorted by relevance

12

/third_party/selinux/libselinux/src/
H A Dgetfilecon.c22 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1); in getfilecon_raw()
26 size = getxattr(path, XATTR_NAME_SELINUX, NULL, 0); in getfilecon_raw()
37 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1); in getfilecon_raw()
H A Dfgetfilecon.c29 ret = getxattr(buf, name, value, size); in fgetxattr_wrapper()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dgetxattr.c27 * @tc.desc : Verify getxattr process success
50 ret = getxattr(path, name, buf, sizeof(buf)); in getxattr_0100()
59 * @tc.desc : Verify getxattr process fail bacause param is null
64 int ret = getxattr(NULL, NULL, NULL, -1); in getxattr_0200()
H A Dremovexattr.c58 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100()
78 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100()
H A Dsetxattr.c58 result = getxattr(path, name, buf, sizeof(buf)); in setxattr_0100()
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/
H A Dlinux_getxattr_test.cpp17 * @tc.desc: This test verifies whether the getxattr function can correctly return -1 when passing invalid parameters,
23 int result = getxattr(nullptr, nullptr, nullptr, -1); in HWTEST_F()
29 * @tc.desc: This test tests whether the getxattr function can correctly obtain the extension properties of a file.
34 const char* filePath = "getxattr.txt"; in HWTEST_F()
44 int getResult = getxattr(filePath, attrName, buffer, sizeof(buffer)); in HWTEST_F()
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dxattr.h14 ssize_t getxattr(const char *, const char *, void *, size_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dxattr.h14 ssize_t getxattr(const char *, const char *, void *, size_t);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dxattr.h14 ssize_t getxattr(const char *, const char *, void *, size_t);
/third_party/musl/include/sys/
H A Dxattr.h14 ssize_t getxattr(const char *, const char *, void *, size_t);
/third_party/ltp/testcases/kernel/syscalls/removexattr/
H A Dremovexattr01.c90 n = getxattr("testfile", USER_KEY, buf, size); in verify_removexattr()
92 tst_resm(TFAIL, "getxattr() succeeded for deleted key"); in verify_removexattr()
97 tst_resm(TFAIL | TTERRNO, "getxattr() failed unexpectedly"); in verify_removexattr()
/third_party/ltp/testcases/kernel/syscalls/getxattr/
H A Dgetxattr03.c26 * An empty buffer of size zero can be passed into getxattr(2) to return
71 TEST(getxattr(TESTFILE, XATTR_TEST_KEY, NULL, 0)); in main()
74 tst_resm(TPASS, "getxattr(2) returned correct value"); in main()
76 tst_resm(TFAIL | TTERRNO, "getxattr(2) failed"); in main()
H A Dgetxattr04.c10 * getxattr() fails to get an existing xattr and returns ENOATTR in xfs
56 res = getxattr(TEST_FILE, TRUSTED_SMALL, NULL, 0); in loop_getxattr()
59 tst_res(TFAIL, "getxattr() failed to get an " in loop_getxattr()
63 "getxattr() failed without ENOATTR"); in loop_getxattr()
70 tst_res(TPASS, "getxattr() succeeded to get an existing attribute"); in loop_getxattr()
H A Dgetxattr02.c27 * have extended attributes. Otherwise getxattr(2) will return -1
97 TEST(getxattr(tc[0], XATTR_TEST_KEY, buf, BUFSIZ)); in main()
H A Dgetxattr01.c26 * Basic tests for getxattr(2) and make sure getxattr(2) handles error
31 * getxattr(2) should return -1 and set errno to ENODATA
33 * getxattr(2) should return -1 and set errno to ERANGE
34 * 3. Get attribute, getxattr(2) should succeed
35 * 4. Verify the attribute got by getxattr(2) is same as the value we set
112 TEST(getxattr(tc[i].fname, tc[i].key, tc[i].value, in main()
126 "getxattr() returned wrong size %ld expected %d", in main()
/third_party/ltp/testcases/kernel/syscalls/lremovexattr/
H A Dlremovexattr01.c91 TEST(getxattr(FILENAME, XATTR_KEY, &got_value, XATTR_VALUE_SIZE)); in verify_lremovexattr()
/third_party/toybox/lib/
H A Dportability.c288 return getxattr(path, name, value, size, 0, 0); in xattr_get()
293 return getxattr(path, name, value, size, 0, XATTR_NOFOLLOW); in xattr_lget()
338 return getxattr(path, name, value, size); in xattr_get()
/third_party/musl/src/linux/
H A Dxattr.c4 ssize_t getxattr(const char *path, const char *name, void *value, size_t size) in getxattr() function
/third_party/toybox/toys/pending/
H A Dgetfattr.c33 ssize_t (*getter)(const char *, const char *, void *, size_t) = getxattr; in do_getfattr()
75 if (value_len == -1) perror_msg("getxattr failed"); in do_getfattr()
/third_party/ltp/testcases/kernel/controllers/cgroup_xattr/
H A Dcgroup_xattr.c352 ssize_t size = getxattr(file, tkeys[i].name, NULL, 0); in get_xattrs()
366 if (getxattr(file, tkeys[i].name, xval, size) == -1) { in get_xattrs()
/third_party/ntfs-3g/include/fuse-lite/
H A Dfuse.h243 int (*getxattr) (const char *, const char *, char *, size_t); member
H A Dfuse_lowlevel.h647 void (*getxattr) (fuse_req_t req, fuse_ino_t ino, const char *name, member
953 * read, readdir, getxattr, listxattr
967 * read, readdir, getxattr, listxattr
993 * getxattr, listxattr
/third_party/libfuse/example/
H A Dhello_ll.c211 .getxattr = hello_ll_getxattr,
H A Dpassthrough_hp.cc1017 ret = getxattr(procname, name, value, size); in sfs_getxattr()
1026 ret = getxattr(procname, name, nullptr, 0); in sfs_getxattr()
1151 sfs_oper.getxattr = sfs_getxattr; in assign_operations()
H A Dpassthrough_ll.c975 ret = getxattr(procname, name, value, size); in lo_getxattr()
984 ret = getxattr(procname, name, NULL, 0); in lo_getxattr()
1171 .getxattr = lo_getxattr,

Completed in 16 milliseconds

12