/third_party/selinux/libselinux/src/ |
H A D | getfilecon.c | 22 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 D | fgetfilecon.c | 29 ret = getxattr(buf, name, value, size); in fgetxattr_wrapper()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | getxattr.c | 27 * @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 D | removexattr.c | 58 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100() 78 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100()
|
H A D | setxattr.c | 58 result = getxattr(path, name, buf, sizeof(buf)); in setxattr_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/ |
H A D | linux_getxattr_test.cpp | 17 * @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 D | xattr.h | 14 ssize_t getxattr(const char *, const char *, void *, size_t);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | xattr.h | 14 ssize_t getxattr(const char *, const char *, void *, size_t);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | xattr.h | 14 ssize_t getxattr(const char *, const char *, void *, size_t);
|
/third_party/musl/include/sys/ |
H A D | xattr.h | 14 ssize_t getxattr(const char *, const char *, void *, size_t);
|
/third_party/ltp/testcases/kernel/syscalls/removexattr/ |
H A D | removexattr01.c | 90 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 D | getxattr03.c | 26 * 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 D | getxattr04.c | 10 * 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 D | getxattr02.c | 27 * have extended attributes. Otherwise getxattr(2) will return -1 97 TEST(getxattr(tc[0], XATTR_TEST_KEY, buf, BUFSIZ)); in main()
|
H A D | getxattr01.c | 26 * 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 D | lremovexattr01.c | 91 TEST(getxattr(FILENAME, XATTR_KEY, &got_value, XATTR_VALUE_SIZE)); in verify_lremovexattr()
|
/third_party/toybox/lib/ |
H A D | portability.c | 288 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 D | xattr.c | 4 ssize_t getxattr(const char *path, const char *name, void *value, size_t size) in getxattr() function
|
/third_party/toybox/toys/pending/ |
H A D | getfattr.c | 33 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 D | cgroup_xattr.c | 352 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 D | fuse.h | 243 int (*getxattr) (const char *, const char *, char *, size_t); member
|
H A D | fuse_lowlevel.h | 647 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 D | hello_ll.c | 211 .getxattr = hello_ll_getxattr,
|
H A D | passthrough_hp.cc | 1017 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 D | passthrough_ll.c | 975 ret = getxattr(procname, name, value, size); in lo_getxattr() 984 ret = getxattr(procname, name, NULL, 0); in lo_getxattr() 1171 .getxattr = lo_getxattr,
|