Lines Matching refs:lchown
24 * 1) lchown(2) returns -1 and sets errno to EPERM if the effective user id
27 * 2) lchown(2) returns -1 and sets errno to EACCES if search permission is
29 * 3) lchown(2) returns -1 and sets errno to EFAULT if pathname points
31 * 4) lchown(2) returns -1 and sets errno to ENAMETOOLONG if the pathname
33 * 5) lchown(2) returns -1 and sets errno to ENOTDIR if the directory
35 * 6) lchown(2) returns -1 and sets errno to ENOENT if the specified file
39 * lchown() should fail with return value -1 and set expected errno.
118 UID16_CHECK(user_id, lchown, cleanup);
120 GID16_CHECK(group_id, lchown, cleanup);
130 * Call lchown(2) to test different test conditions.
136 /* Check return code from lchown(2) */
140 "lchown(2) fails, %s, errno:%d",
143 tst_resm(TFAIL, "lchown(2) fails, %s, "
149 tst_resm(TFAIL, "lchown(2) returned %ld, "
187 * setup_eperm() - setup function for a test condition for which lchown(2)
215 * setup_eaccess() - setup function for a test condition for which lchown(2)
244 * setup_efault() -- setup for a test condition where lchown(2) returns -1 and
259 * Create a regular file "t_file" to call lchown(2) on "t_file/sfile" later.