/third_party/node/test/parallel/ |
H A D | test-fs-symlink.js | 42 fs.symlink(linkData, linkPath, common.mustSucceed(() => { 56 // Test invalid symlink 61 fs.symlink(linkData, linkPath, common.mustSucceed(() => { 72 assert.throws(() => fs.symlink(input, '', common.mustNotCall()), errObj); 75 assert.throws(() => fs.symlink('', input, common.mustNotCall()), errObj); 85 assert.throws(() => fs.symlink('', '', '?', common.mustNotCall()), errObj);
|
H A D | test-fs-null-bytes.js | 76 check(fs.symlink, fs.symlinkSync, 'foo\u0000bar', 'foobar'); 77 check(fs.symlink, fs.symlinkSync, 'foobar', 'foo\u0000bar'); 111 check(fs.symlink, fs.symlinkSync, fileUrl, 'foobar'); 112 check(fs.symlink, fs.symlinkSync, 'foobar', fileUrl); 143 check(fs.symlink, fs.symlinkSync, fileUrl2, 'foobar'); 144 check(fs.symlink, fs.symlinkSync, 'foobar', fileUrl2);
|
H A D | test-fs-symlink-dir.js | 34 fs.symlink(target, path, common.mustSucceed(() => { 47 // Test invalid symlink 55 fs.symlink(target, path, common.mustSucceed(() => {
|
H A D | test-trace-events-fs-async.js | 251 function symlink() { function 254 fs.symlink('fs27.txt', 'fs28.txt', () => { 300 // On windows, we need permissions to test symlink and readlink. 303 tests.symlink = wrapper(symlink);
|
/third_party/musl/porting/linux/user/tools/ |
H A D | install.sh | 14 symlink= 21 l) symlink=yes ;; 22 r) symlink=yes; symlinkflags="$symlinkflags -r" ;; 52 if test "$symlink" ; then
|
/third_party/musl/tools/ |
H A D | install.sh | 14 symlink= 21 l) symlink=yes ;; 22 r) symlink=yes; symlinkflags="$symlinkflags -r" ;; 52 if test "$symlink" ; then
|
/third_party/python/Lib/test/ |
H A D | test_ntpath.py | 320 os.symlink(ABSTFN, ABSTFN + "1") 345 os.symlink(ABSTFN + "1", ABSTFN) 360 os.symlink(ABSTFN, ntpath.relpath(ABSTFN + "1")) 373 os.symlink(".", "recursive") 374 os.symlink("..", "parent") 376 os.symlink(".", "self") 377 os.symlink("missing", "broken") 378 os.symlink(r"broken\bar", "broken1") 379 os.symlink(r"self\self\broken", "broken2") 380 os.symlink( [all...] |
H A D | test_posixpath.py | 166 os.symlink(os_helper.TESTFN + "1", os_helper.TESTFN + "2") 202 os.symlink("/", ABSTFN) 396 os.symlink(ABSTFN+"1", ABSTFN) 407 os.symlink(ABSTFN+"1", ABSTFN) 417 os.symlink(posixpath.relpath(ABSTFN+"1"), ABSTFN) 426 # symlink loop in non-strict mode (default). 428 os.symlink(ABSTFN, ABSTFN) 431 os.symlink(ABSTFN+"1", ABSTFN+"2") 432 os.symlink(ABSTFN+"2", ABSTFN+"1") 439 os.symlink(ABSTF [all...] |
/third_party/rust/crates/cxx/gen/src/ |
H A D | fs.rs | 73 // If path is a symlink, this returns true, regardless of whether the 74 // symlink points to a path that exists. 110 fn symlink<'a>( in symlink() functions 119 "Failed to create symlink `{}` pointing to `{}`", in symlink() 129 "Failed to create symlink `{}` pointing to `{}`", 145 symlink(original.as_ref(), link.as_ref(), std::os::unix::fs::symlink) 150 symlink( 159 symlink(
|
/third_party/rust/crates/cxx/gen/cmd/src/gen/ |
H A D | fs.rs | 73 // If path is a symlink, this returns true, regardless of whether the 74 // symlink points to a path that exists. 110 fn symlink<'a>( in symlink() functions 119 "Failed to create symlink `{}` pointing to `{}`", in symlink() 129 "Failed to create symlink `{}` pointing to `{}`", 145 symlink(original.as_ref(), link.as_ref(), std::os::unix::fs::symlink) 150 symlink( 159 symlink(
|
/third_party/rust/crates/cxx/gen/build/src/gen/ |
H A D | fs.rs | 73 // If path is a symlink, this returns true, regardless of whether the 74 // symlink points to a path that exists. 110 fn symlink<'a>( in symlink() functions 119 "Failed to create symlink `{}` pointing to `{}`", in symlink() 129 "Failed to create symlink `{}` pointing to `{}`", 145 symlink(original.as_ref(), link.as_ref(), std::os::unix::fs::symlink) 150 symlink( 159 symlink(
|
/third_party/rust/crates/cxx/gen/lib/src/gen/ |
H A D | fs.rs | 73 // If path is a symlink, this returns true, regardless of whether the 74 // symlink points to a path that exists. 110 fn symlink<'a>( in symlink() functions 119 "Failed to create symlink `{}` pointing to `{}`", in symlink() 129 "Failed to create symlink `{}` pointing to `{}`", 145 symlink(original.as_ref(), link.as_ref(), std::os::unix::fs::symlink) 150 symlink( 159 symlink(
|
/third_party/toybox/ |
H A D | install.py | 44 os.symlink("../../bin/toybox", target_link) 46 os.symlink("../bin/toybox", target_link) 48 os.symlink("toybox", target_link)
|
H A D | Makefile | 46 scripts/install.sh --symlink --force 49 scripts/install.sh --symlink --force --airlock 52 scripts/install.sh --long --symlink --force
|
/third_party/node/deps/npm/node_modules/bin-links/lib/ |
H A D | link-gently.js | 2 // if there's a non-symlink there already, eexist 3 // if there's a symlink already, pointing somewhere else, eexist 4 // if there's a symlink already, pointing into our pkg, remove it first 5 // then create the symlink 8 const { lstat, mkdir, readlink, rm, symlink } = require('fs/promises') 75 return symlink(from, to, 'file').catch(er => { 77 return rm(to, rmOpts).then(() => symlink(from, to, 'file'))
|
/third_party/toybox/toys/posix/ |
H A D | rm.c | 62 if (try->symlink) goto skip; in do_rm() 82 if (!dir || try->symlink != (char *)2) perror_msg_raw(try->name); in do_rm() 84 if (try->parent) try->parent->symlink = (char *)2; in do_rm()
|
/third_party/curl/lib/ |
H A D | ftplistparser.c | 34 * 4) Unix symlink 121 } symlink; member 340 /* discard symlink which is containing multiple " -> " */ in ftp_pl_insert_finfo() 722 parser->state.UNIX.sub.symlink = PL_UNIX_SYMLINK_PRESPACE; in Curl_ftp_parselist() 780 switch(parser->state.UNIX.sub.symlink) { in Curl_ftp_parselist() 785 parser->state.UNIX.sub.symlink = PL_UNIX_SYMLINK_NAME; in Curl_ftp_parselist() 791 parser->state.UNIX.sub.symlink = PL_UNIX_SYMLINK_PRETARGET1; in Curl_ftp_parselist() 801 parser->state.UNIX.sub.symlink = PL_UNIX_SYMLINK_PRETARGET2; in Curl_ftp_parselist() 808 parser->state.UNIX.sub.symlink = PL_UNIX_SYMLINK_NAME; in Curl_ftp_parselist() 814 parser->state.UNIX.sub.symlink in Curl_ftp_parselist() [all...] |
/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | tomoyo_new_file_test.c | 111 set_profile(3, "file::symlink"); in stage_file_test() 473 show_result(symlink("/tmp/symlink_dest_test", filename), 1); in stage_file_test() 476 show_result(symlink("/tmp/symlink_dest_test", filename), 0); in stage_file_test() 481 show_result(symlink("/tmp/symlink_dest_test", filename), 1); in stage_file_test() 484 show_result(symlink("/tmp/symlink_dest_test", filename), 0); in stage_file_test() 489 show_result(symlink("/tmp/symlink_dest_test", filename), 1); in stage_file_test() 492 show_result(symlink("/tmp/symlink_dest_test", filename), 0); in stage_file_test() 497 show_result(symlink("/tmp/symlink_dest_test", filename), 1); in stage_file_test() 500 show_result(symlink("/tmp/symlink_dest_test", filename), 0); in stage_file_test() 505 show_result(symlink("/tm in stage_file_test() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | symlink.c | 23 * @tc.desc : Test the symlink function to create a new file link 32 int result = symlink(file_name, link_name); in symlink_0100() 34 t_error("%s symlink get result is %d are not 0\n", __func__, result); in symlink_0100() 37 t_error("%s symlink error link not exist\n", __func__); in symlink_0100() 52 int result = symlink(file_name, link_name); in symlink_0200() 54 t_error("%s symlink get result is %d are not 0\n", __func__, result); in symlink_0200() 57 t_error("%s symlink error link exist\n", __func__); in symlink_0200()
|
H A D | readlink.c | 40 int link = symlink("./readlink.txt", softptr); in readlink_0100() 73 int link = symlink("./readlink.txt", softptr); in readlink_0200()
|
/third_party/toybox/porting/liteos_a/ |
H A D | Makefile | 46 scripts/install.sh --symlink --force 49 scripts/install.sh --symlink --force --airlock 52 scripts/install.sh --long --symlink --force
|
/third_party/python/Tools/scripts/ |
H A D | linktree.py | 15 LINK = '.LINK' # Name of special symlink at the top. 40 os.symlink(os.path.join(os.pardir, oldtree), linkname) 43 print(linkname + ': cannot symlink:', msg) 46 print(linkname + ': warning: cannot symlink:', msg) 77 os.symlink(linkname, newname)
|
/third_party/toybox/porting/liteos_a/toys/posix/ |
H A D | rm.c | 104 if (try->symlink) goto skip; in do_rm() 131 if (!dir || try->symlink != (char *)2) perror_msg_raw(try->name); in do_rm()
|
/third_party/gn/src/base/files/ |
H A D | file_util.h | 62 // the symlink. (even if the symlink points to a non-existent file) 138 // Creates a symbolic link at |symlink| pointing to |target|. Returns 140 bool CreateSymbolicLink(const FilePath& target, const FilePath& symlink); 142 // Reads the given |symlink| and returns where it points to in |target|. 144 bool ReadSymbolicLink(const FilePath& symlink, FilePath* target); 166 // a file which the symlink points to. 169 // the permission of a file which the symlink points to. 220 // fail if |path| is a junction or symlink that points to an empty file, 239 // This function will return if the given file is a symlink o [all...] |
/third_party/toybox/lib/ |
H A D | dirtree.c | 24 // Create a dirtree node from a path, with stat and symlink info. 57 if (linklen) dt->symlink = memcpy(len+(char *)dt, libbuf, linklen); in dirtree_add_node() 68 if (parent) parent->symlink = (char *)1; in dirtree_add_node()
|