• Home
  • Raw
  • Download

Lines Matching +full:symbolic +full:- +full:ref

17  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 * 1) symlink(2) returns -1 and sets errno to EACCES if search/write
26 * permission is denied in the directory where the symbolic link is
28 * 2) symlink(2) returns -1 and sets errno to EEXIST if the specified
29 * symbolic link already exists.
30 * 3) symlink(2) returns -1 and sets errno to EFAULT if the specified
31 * file or symbolic link points to invalid address.
32 * 4) symlink(2) returns -1 and sets errno to ENAMETOOLONG if the
33 * pathname component of symbolic link is too long (ie, > PATH_MAX).
34 * 5) symlink(2) returns -1 and sets errno to ENOTDIR if the directory
35 * component in pathname of symbolic link is not a directory.
36 * 6) symlink(2) returns -1 and sets errno to ENOENT if the component of
37 * symbolic link points to an empty string.
40 * symlink() should fail with return value -1 and set expected errno.
51 * Check return code, if system call failed (return=-1)
63 * Usage: <for command-line>
64 * symlink03 [-c n] [-e] [-i n] [-I x] [-p x] [-t]
65 * where, -c n : Run n copies concurrently.
66 * -e : Turn on errno logging.
67 * -i n : Execute test n times.
68 * -I x : Execute test for x seconds.
69 * -P x : Pause for x seconds between iterations.
70 * -t : Turn on syscall timing.
74 * -Ported
115 struct test_case_t { /* test case struct. to hold ref. test cond's */
145 char *sym_file; /* symbolic link file name */ in main()
168 * verify that it fails with -1 return value and sets in main()
173 if (TEST_RETURN == -1) { in main()
176 * test executed without (-f) option. in main()
190 "expected -1, errno:%d", TEST_RETURN, in main()
205 * setup() - performs all ONE TIME setup for this test.
218 * TEST_PAUSE contains the code to fork the test with the -i option. in setup()
226 if (setuid(ltpuser->pw_uid) == -1) in setup()
227 tst_resm(TINFO | TERRNO, "setuid(%d) failed", ltpuser->pw_uid); in setup()
241 * no_setup() - Some test conditions for mknod(2) do not any setup.
252 * setup1() - setup function for a test condition for which symlink(2)
253 * returns -1 and sets errno to EACCES.
267 if ((fd = open(TEST_FILE1, O_RDWR | O_CREAT, 0666)) == -1) { in setup1()
281 * setup2() - EEXIST
287 if ((fd = open(TEST_FILE2, O_RDWR | O_CREAT, 0666)) == -1) { in setup2()
300 * longpath_setup() - setup to create a node with a name length exceeding
316 * setup3() - setup function for a test condition for which symlink(2)
317 * returns -1 and sets errno to ENOTDIR.
328 if ((fd = open("t_file", O_RDWR | O_CREAT, MODE_RWX)) == -1) { in setup3()
339 * cleanup() - performs all ONE TIME cleanup for this test at