Home
last modified time | relevance | path

Searched full:readlink (Results 1 – 25 of 487) sorted by relevance

12345678910>>...20

/external/toybox/tests/
Dreadlink.test9 testing "missing" "readlink notfound || echo yes" "yes\n" "" ""
14 testing "file" "readlink file || echo yes" "yes\n" "" ""
15 testing "-f dir" "readlink -f ." "$APWD\n" "" ""
16 testing "-f missing" "readlink -f notfound" "$APWD/notfound\n" "" ""
19 testing "link" "readlink link" "notfound\n" "" ""
20 testing "link->missing" "readlink -f link" "$APWD/notfound\n" "" ""
22 testing "stays relative" "readlink link" "../../\n" "" ""
25 testing "-f link->file" "readlink -f link" "$APWD/file\n" "" ""
27 testing "-f link->dir" "readlink -f link" "$APWD\n" "" ""
29 testing "link->link (recursive)" "readlink link" "link\n" "" ""
[all …]
Dln.test15 readlink slink" "file\n" "" ""
24 [ -L slink ] && readlink slink" "file\n" "" ""
41 readlink slink && readlink slink/file" "dir\nfile\n" "" ""
45 ln -n -s file slink 2>/dev/null || [ -L slink ] && readlink slink" \
56 [ -L dir/file1 -a -L dir/file2 ] && readlink dir/file1 &&
57 readlink dir/file2" "file1\nfile2\n" "" ""
/external/ltp/testcases/kernel/syscalls/readlink/
Dreadlink03.c18 * 1) readlink(2) returns -1 and sets errno to EACCES if search/write
21 * 2) readlink(2) returns -1 and sets errno to EINVAL if the buffer size
23 * 3) readlink(2) returns -1 and sets errno to EINVAL if the specified
25 * 4) readlink(2) returns -1 and sets errno to ENAMETOOLONG if the
27 * 5) readlink(2) returns -1 and sets errno to ENOENT if the component of
29 * 6) readlink(2) returns -1 and sets errno to ENOTDIR if a component of
31 * 7) readlink(2) returns -1 and sets errno to ELOOP if too many symbolic
33 * 8) readlink(2) returns -1 and sets errno to EFAULT if buf outside the
78 TEST(readlink(tc->link, tc->buf, tc->buf_size)); in verify_readlink()
80 tst_res(TFAIL, "readlink() sueeeeded unexpectedly"); in verify_readlink()
[all …]
Dreadlink01.c18 * Testcase to check the basic functionality of the readlink(2),
19 * readlink() will succeed to read the contents of the symbolic link.
38 TEST(readlink(SYMFILE, buffer, sizeof(buffer))); in test_readlink()
40 tst_res(TFAIL | TTERRNO, "readlink() on %s failed", SYMFILE); in test_readlink()
45 tst_res(TFAIL, "readlink() returned value %ld " in test_readlink()
54 tst_res(TPASS, "readlink() functionality on '%s' was correct", in test_readlink()
/external/ltp/testcases/kernel/fs/mongo/
Dmongo_slinks.c62 // Test readlink in main()
64 // Increase size of buffer to readlink untile whole symlink body will be read. in main()
65 // Check readlink result on every iteration. in main()
69 num = readlink(new_path, buffer, size); in main()
71 perror("checklink: readlink failed"); in main()
75 // Make sure that readlink did not break things in main()
78 ("checklink : readlink corrupts memory\n"); in main()
87 // and call `readlink' again. in main()
/external/ImageMagick/
DAppRun8 HERE="$(dirname "$(readlink -f "${0}")")"
11readlink -f "$HERE/usr/lib/ImageMagick-7.0.7/config-Q16"):$(readlink -f "$HERE/usr/lib/ImageMagick…
13 export LD_LIBRARY_PATH=$(readlink -f "$HERE/usr/lib"):$LD_LIBRARY_PATH
/external/toybox/toys/other/
Dreadlink.c1 /* readlink.c - Return string representation of a symbolic link.
5 USE_READLINK(NEWTOY(readlink, "<1>1nqmef(canonicalize)[-mef]", TOYFLAG_USR|TOYFLAG_BIN))
7 config READLINK
8 bool "readlink"
11 usage: readlink FILE
/external/proguard/bin/
Dretrace.sh10 # Account for possibly missing/basic readlink.
12 PROGUARD=`readlink -f "$0" 2>/dev/null`
15 PROGUARD=`readlink "$0" 2>/dev/null`
Dproguard.sh10 # Account for possibly missing/basic readlink.
12 PROGUARD=`readlink -f "$0" 2>/dev/null`
15 PROGUARD=`readlink "$0" 2>/dev/null`
Dproguardgui.sh10 # Account for possibly missing/basic readlink.
12 PROGUARD=`readlink -f "$0" 2>/dev/null`
15 PROGUARD=`readlink "$0" 2>/dev/null`
/external/strace/tests-m32/
Dreadlink.c37 # define PREFIX "test.readlink"
54 printf("readlink(\"%s\", %p, %u) = -1 ENOENT (%m)\n", in main()
62 perror("readlink"); in main()
67 printf("readlink(\"%s\", \"%s\", %u) = %u\n", in main()
/external/strace/tests-mx32/
Dreadlink.c37 # define PREFIX "test.readlink"
54 printf("readlink(\"%s\", %p, %u) = -1 ENOENT (%m)\n", in main()
62 perror("readlink"); in main()
67 printf("readlink(\"%s\", \"%s\", %u) = %u\n", in main()
/external/strace/tests/
Dreadlink.c37 # define PREFIX "test.readlink"
54 printf("readlink(\"%s\", %p, %u) = -1 ENOENT (%m)\n", in main()
62 perror("readlink"); in main()
67 printf("readlink(\"%s\", \"%s\", %u) = %u\n", in main()
/external/autotest/contrib/
Dservo-stat16 # readlink -f $0, in case $0 is a symlink from somewhere else
17 REPO=$(dirname $(readlink -f $0))/../../../../..
18 REPO=$(readlink -f $REPO)
19 PYTHON=$(readlink -f $REPO/chroot/usr/bin/python2.7)
20 HDCTOOLS=$(readlink -f $REPO/chroot/usr/lib/python2.7/site-packages/servo)
/external/clang/test/Sema/
Dasm-label.c28 void __real_readlink() __asm("readlink");
29 void readlink() __asm("__protected_readlink");
30 void readlink() { __real_readlink(); } in readlink() function
/external/snakeyaml/
Dmvnw145 # readlink(1) is not available as standard on Solaris 10.
146 readLink=`which readlink`
147 if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
152 javaExecutable="`readlink -f \"$javaExecutable\"`"
/external/apache-commons-compress/
Dmvnw123 # readlink(1) is not available as standard on Solaris 10.
124 readLink=`which readlink`
125 if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
130 javaExecutable="`readlink -f \"$javaExecutable\"`"
/external/python/cpython3/Misc/
Dpython-config.sh.in19 if which readlink >/dev/null 2>&1 ; then
20 if readlink -f "$RESULT" >/dev/null 2>&1; then
21 RESULT=$(readlink -f "$RESULT")
/external/linux-kselftest/tools/testing/selftests/proc/
Dproc-self-map-files-001.c16 /* Test readlink /proc/self/map_files/... */
32 if (readlink(name, buf, sizeof(buf)) == -1) in pass()
42 if (readlink(name, buf, sizeof(buf)) == -1 && errno == ENOENT) in fail()
Dproc-self-map-files-002.c16 /* Test readlink /proc/self/map_files/... with minimum address. */
32 if (readlink(name, buf, sizeof(buf)) == -1) in pass()
42 if (readlink(name, buf, sizeof(buf)) == -1 && errno == ENOENT) in fail()
/external/e2fsprogs/debian/
Dss-dev.postinst11 [ "$(readlink "$SYMLINK")" = "$SYMLINK_TARGET" ] || \
12 [ "$(readlink -f "$SYMLINK")" = "$SYMLINK_TARGET" ]
De2fslibs-dev.postinst11 [ "$(readlink "$SYMLINK")" = "$SYMLINK_TARGET" ] || \
12 [ "$(readlink -f "$SYMLINK")" = "$SYMLINK_TARGET" ]
Dss-dev.preinst11 [ "$(readlink "$SYMLINK")" = "$SYMLINK_TARGET" ] || \
12 [ "$(readlink -f "$SYMLINK")" = "$SYMLINK_TARGET" ]
De2fslibs-dev.preinst11 [ "$(readlink "$SYMLINK")" = "$SYMLINK_TARGET" ] || \
12 [ "$(readlink -f "$SYMLINK")" = "$SYMLINK_TARGET" ]
Dcomerr-dev.postinst11 [ "$(readlink "$SYMLINK")" = "$SYMLINK_TARGET" ] || \
12 [ "$(readlink -f "$SYMLINK")" = "$SYMLINK_TARGET" ]

12345678910>>...20