Home
last modified time | relevance | path

Searched refs:setxattr (Results 1 - 25 of 52) sorted by relevance

123

/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/
H A Dlinux_setxattr_test.cpp16 * @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 Dlinux_getxattr_test.cpp41 int setResult = setxattr(filePath, attrName, attrValue, strlen(attrValue), XATTR_CREATE); in HWTEST_F()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dsetxattr.c46 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 Dgetxattr.c42 int ret = setxattr(path, name, value, strlen(value), XATTR_CREATE); in getxattr_0100()
H A Dlistxattr.c48 int ret = setxattr(path, name, value, strlen(value), XATTR_CREATE); in listxattr_0100()
H A Dremovexattr.c46 int result = setxattr(path, name, value, strlen(value), XATTR_CREATE); in removexattr_0100()
/third_party/ltp/testcases/kernel/syscalls/setxattr/
H A Dsetxattr03.c7 * 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 Dsetxattr01.c7 * 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 Dsetxattr02.c8 * 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 Dxattr.h20 int setxattr(const char *, const char *, const void *, size_t, int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dxattr.h20 int setxattr(const char *, const char *, const void *, size_t, int);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dxattr.h20 int setxattr(const char *, const char *, const void *, size_t, int);
/third_party/musl/include/sys/
H A Dxattr.h20 int setxattr(const char *, const char *, const void *, size_t, int);
/third_party/toybox/toys/other/
H A Dsetfattr.c37 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 Dsetfilecon.c12 int rc = setxattr(path, XATTR_NAME_SELINUX, context, strlen(context) + 1, in setfilecon_raw()
H A Dfsetfilecon.c28 rc = setxattr(buf, name, value, size, flags); in fsetxattr_wrapper()
/third_party/ltp/testcases/kernel/syscalls/removexattr/
H A Dremovexattr01.c74 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 Dgetxattr03.c95 if (setxattr(TESTFILE, XATTR_TEST_KEY, XATTR_TEST_VALUE, in setup()
101 tst_brkm(TBROK | TERRNO, cleanup, "setxattr %s failed", in setup()
H A Dgetxattr02.c31 * 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 Dgetxattr01.c155 if (setxattr(filename, XATTR_TEST_KEY, XATTR_TEST_VALUE, in setup()
/third_party/python/Lib/test/support/
H A Dos_helper.py205 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 Dportability.c319 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 Dxattr.c34 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 Dfuse.h240 int (*setxattr) (const char *, const char *, const char *, size_t, int); member
/third_party/libfuse/example/
H A Dhello_ll.c210 .setxattr = hello_ll_setxattr,

Completed in 8 milliseconds

123