/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/ |
H A D | linux_setxattr_test.cpp | 16 * @tc.desc: This test verifies whether the setxattr function can handle invalid parameters correctly and whether the 23 int result = setxattr(nullptr, nullptr, nullptr, -1, -1); in HWTEST_F() 30 * @tc.desc: This test verifies whether the setxattr function can handle invalid parameters correctly and whether the 36 const char* filePath = "setxattr.txt"; in HWTEST_F() 43 int setResult = setxattr(filePath, attrName, attrValue, strlen(attrValue), XATTR_CREATE); in HWTEST_F()
|
H A D | linux_getxattr_test.cpp | 41 int setResult = setxattr(filePath, attrName, attrValue, strlen(attrValue), XATTR_CREATE); in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | setxattr.c | 46 int result = setxattr(path, name, value, strlen(value), XATTR_CREATE); in setxattr_0100() 82 int result = setxattr(NULL, NULL, NULL, -1, -1); in setxattr_0200()
|
H A D | getxattr.c | 42 int ret = setxattr(path, name, value, strlen(value), XATTR_CREATE); in getxattr_0100()
|
H A D | listxattr.c | 48 int ret = setxattr(path, name, value, strlen(value), XATTR_CREATE); in listxattr_0100()
|
H A D | removexattr.c | 46 int result = setxattr(path, name, value, strlen(value), XATTR_CREATE); in removexattr_0100()
|
/third_party/ltp/testcases/kernel/syscalls/setxattr/ |
H A D | setxattr03.c | 7 * setxattr(2) to immutable and append-only files should get EPERM 10 * 1. Set attribute to a immutable file, setxattr(2) should return -1 12 * 2. Set attribute to a append-only file, setxattr(2) should return 84 TEST(setxattr(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, in verify_setxattr() 132 if (setxattr("testfile", "user.test", "test", 4, XATTR_CREATE) == -1) in setup()
|
H A D | setxattr01.c | 7 * Basic tests for setxattr(2) and make sure setxattr(2) handles error 12 * setxattr(2) should return -1 and set errno to EINVAL 14 * setxattr(2) should return -1 and set errno to ENODATA 16 * setxattr(2) should return -1 and set errno to ERANGE 18 * setxattr(2) should return -1 and set errno to E2BIG 20 * setxattr(2) should succeed 22 * setxattr(2) should return -1 and set errno to EEXIST 24 * setxattr(2) should succeed 26 * setxattr( [all...] |
H A D | setxattr02.c | 8 * have extended attributes. Otherwise setxattr(2) will return -1 12 * 1. Set attribute to a regular file, setxattr(2) should succeed 13 * 2. Set attribute to a directory, setxattr(2) should succeed 15 * setxattr(2) should return -1 and set errno to EEXIST 16 * 4. Set attribute to a FIFO, setxattr(2) should return -1 and set 18 * 5. Set attribute to a char special file, setxattr(2) should 20 * 6. Set attribute to a block special file, setxattr(2) should 22 * 7. Set attribute to a UNIX domain socket, setxattr(2) should 134 TEST(setxattr(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, in verify_setxattr() 138 tst_brk(TCONF, "setxattr( in verify_setxattr() [all...] |
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | xattr.h | 20 int setxattr(const char *, const char *, const void *, size_t, int);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | xattr.h | 20 int setxattr(const char *, const char *, const void *, size_t, int);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | xattr.h | 20 int setxattr(const char *, const char *, const void *, size_t, int);
|
/third_party/musl/include/sys/ |
H A D | xattr.h | 20 int setxattr(const char *, const char *, const void *, size_t, int);
|
/third_party/toybox/toys/other/ |
H A D | setfattr.c | 37 else rc = (h?lsetxattr:setxattr)(*s, TT.n, TT.v, TT.v?strlen(TT.v):0, 0); in setfattr_main()
|
/third_party/selinux/libselinux/src/ |
H A D | setfilecon.c | 12 int rc = setxattr(path, XATTR_NAME_SELINUX, context, strlen(context) + 1, in setfilecon_raw()
|
H A D | fsetfilecon.c | 28 rc = setxattr(buf, name, value, size, flags); in fsetxattr_wrapper()
|
/third_party/ltp/testcases/kernel/syscalls/removexattr/ |
H A D | removexattr01.c | 74 n = setxattr("testfile", USER_KEY, VALUE, VALUE_SIZE, XATTR_CREATE); in verify_removexattr() 80 tst_brkm(TFAIL | TERRNO, cleanup, "setxattr() failed"); in verify_removexattr()
|
/third_party/ltp/testcases/kernel/syscalls/getxattr/ |
H A D | getxattr03.c | 95 if (setxattr(TESTFILE, XATTR_TEST_KEY, XATTR_TEST_VALUE, in setup() 101 tst_brkm(TBROK | TERRNO, cleanup, "setxattr %s failed", in setup()
|
H A D | getxattr02.c | 31 * 1. Get attribute from a FIFO, setxattr(2) should return -1 and 33 * 2. Get attribute from a char special file, setxattr(2) should 35 * 3. Get attribute from a block special file, setxattr(2) should 37 * 4. Get attribute from a UNIX domain socket, setxattr(2) should 123 if (setxattr("testfile", "user.test", "test", 4, XATTR_CREATE) == -1) in setup()
|
H A D | getxattr01.c | 155 if (setxattr(filename, XATTR_TEST_KEY, XATTR_TEST_VALUE, in setup()
|
/third_party/python/Lib/test/support/ |
H A D | os_helper.py | 205 if not hasattr(os, "setxattr"): 216 os.setxattr(tmp_fp, b"user.test", b"") 217 os.setxattr(tmp_name, b"trusted.foo", b"42") 218 os.setxattr(fp.fileno(), b"user.test", b"") 219 # Kernels < 2.6.39 don't respect setxattr flags.
|
/third_party/toybox/lib/ |
H A D | portability.c | 319 return setxattr(path, name, value, size, 0, flags); in xattr_set() 325 return setxattr(path, name, value, size, 0, flags | XATTR_NOFOLLOW); in xattr_lset() 369 return setxattr(path, name, value, size, flags); in xattr_set()
|
/third_party/musl/src/linux/ |
H A D | xattr.c | 34 int setxattr(const char *path, const char *name, const void *value, size_t size, int flags) in setxattr() function
|
/third_party/ntfs-3g/include/fuse-lite/ |
H A D | fuse.h | 240 int (*setxattr) (const char *, const char *, const char *, size_t, int); member
|
/third_party/libfuse/example/ |
H A D | hello_ll.c | 210 .setxattr = hello_ll_setxattr,
|