/freebsd/lib/libc/stdlib/ |
H A D | realpath.c | 60 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; in realpath1() local 148 slen = readlink(resolved, symlink, sizeof(symlink)); in realpath1() 155 if ((size_t)slen >= sizeof(symlink)) { in realpath1() 159 symlink[slen] = '\0'; in realpath1() 160 if (symlink[0] == '/') { in realpath1() 176 if (symlink[slen - 1] != '/') { in realpath1() 177 if ((size_t)slen + 1 >= sizeof(symlink)) { in realpath1() 181 symlink[slen] = '/'; in realpath1() 182 symlink[slen + 1] = 0; in realpath1() 184 left_len = strlcat(symlink, left, in realpath1() [all …]
|
/freebsd/crypto/openssh/ |
H A D | sftp-realpath.c | 65 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; in sftp_realpath() local 173 slen = readlink(resolved, symlink, sizeof(symlink) - 1); in sftp_realpath() 176 symlink[slen] = '\0'; in sftp_realpath() 177 if (symlink[0] == '/') { in sftp_realpath() 194 if (symlink[slen - 1] != '/') { in sftp_realpath() 196 (ptrdiff_t)sizeof(symlink)) { in sftp_realpath() 200 symlink[slen] = '/'; in sftp_realpath() 201 symlink[slen + 1] = 0; in sftp_realpath() 203 left_len = strlcat(symlink, left, sizeof(symlink)); in sftp_realpath() 204 if (left_len >= sizeof(symlink)) { in sftp_realpath() [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | ntp_realpath.c | 87 * values for maxmimum path length and symlink chains/loops. Adjust with 94 * Find the real name of path, by removing all ".", ".." and symlink 106 char left[NTP_PATH_MAX], next_token[NTP_PATH_MAX], symlink[NTP_PATH_MAX]; realpath1() local
|
/freebsd/contrib/pjdfstest/tests/symlink/ |
H A D | 09.t | 28 expect 0 symlink test ${n0}/${n1} 32 expect EPERM symlink test ${n0}/${n1} 34 expect 0 symlink test ${n0}/${n1} 38 expect 0 symlink test ${n0}/${n1} 43 expect 0 symlink test ${n0}/${n1} 50 expect EPERM symlink test ${n0}/${n1} 52 expect 0 symlink test ${n0}/${n1} 56 expect 0 symlink test ${n0}/${n1} 61 expect 0 symlink test ${n0}/${n1}
|
H A D | 12.t | 14 expect EFAULT symlink NULL ${n0} 15 expect EFAULT symlink DEADCODE ${n0} 16 expect EFAULT symlink test NULL 17 expect EFAULT symlink test DEADCODE 18 expect EFAULT symlink NULL DEADCODE 19 expect EFAULT symlink DEADCODE NULL
|
H A D | 07.t | 15 expect 0 symlink ${n0} ${n1} 16 expect 0 symlink ${n1} ${n0} 17 expect ELOOP symlink test ${n0}/test 18 expect ELOOP symlink test ${n1}/test
|
H A D | 02.t | 16 expect 0 symlink ${nx} ${n0} 18 expect 0 symlink ${n0} ${nx} 21 expect ENAMETOOLONG symlink ${n0} ${nxx} 22 expect 0 symlink ${nxx} ${n0}
|
H A D | 03.t | 17 expect 0 symlink ${nx} ${n0} 19 expect 0 symlink ${n0} ${nx} 21 expect ENAMETOOLONG symlink ${n0} ${nxx} 22 expect ENAMETOOLONG symlink ${nxx} ${n0}
|
H A D | 05.t | 23 expect 0 -u 65534 -g 65534 symlink test ${n1}/${n2} 27 expect EACCES -u 65534 -g 65534 symlink test ${n1}/${n2} 29 expect 0 -u 65534 -g 65534 symlink test ${n1}/${n2}
|
H A D | 06.t | 23 expect 0 -u 65534 -g 65534 symlink test ${n1}/${n2} 27 expect EACCES -u 65534 -g 65534 symlink test ${n1}/${n2} 29 expect 0 -u 65534 -g 65534 symlink test ${n1}/${n2}
|
H A D | 10.t | 23 expect 0 symlink test ${n0}/${n1} 26 expect EROFS symlink test ${n0}/${n1} 28 expect 0 symlink test ${n0}/${n1}
|
H A D | 00.t | 17 expect 0 symlink ${n0} ${n1} 18 expect symlink lstat ${n1} type 27 expect 0 symlink test ${n0}/${n1}
|
/freebsd/tools/test/stress2/misc/ |
H A D | symlink5.sh | 47 sed '1,/^EOF/d' < $odir/$0 > symlink.c 48 mycc -o symlink -Wall -Wextra symlink.c || exit 1 49 rm -f symlink.c 67 /tmp/symlink $i & 92 rm -f /tmp/symlink 121 if (symlink("/mnt/not/there", file) == -1) {
|
H A D | symlink.sh | 45 sed '1,/^EOF/d' < $odir/$0 > symlink.c 46 mycc -o symlink -Wall -Wextra symlink.c || exit 1 47 rm -f symlink.c 64 /tmp/symlink $i & 86 rm -f /tmp/symlink $D 111 if (symlink("/mnt/not/there", file) == -1) {
|
/freebsd/contrib/capsicum-test/ |
H A D | openat.cc | 204 EXPECT_OK(symlink("topfile", TmpFile(TOPDIR "/symlink.samedir"))); in OpenatTest() 205 EXPECT_OK(symlink("subdir/bottomfile", TmpFile(TOPDIR "/symlink.down"))); in OpenatTest() 206 EXPECT_OK(symlink(TmpFile(TOPDIR "/topfile"), TmpFile(SUBDIR "/symlink.absolute_in"))); in OpenatTest() 207 EXPECT_OK(symlink("/etc/passwd", TmpFile(TOPDIR "/symlink.absolute_out"))); in OpenatTest() 209 EXPECT_OK(symlink(dots2top.c_str(), TmpFile(TOPDIR "/symlink.relative_in"))); in OpenatTest() 211 EXPECT_OK(symlink(dots2passwd.c_str(), TmpFile(TOPDIR "/symlink.relative_out"))); in OpenatTest() 212 EXPECT_OK(symlink("../topfile", TmpFile(SUBDIR "/symlink.up"))); in OpenatTest() 215 EXPECT_OK(symlink("./", TmpFile(TOPDIR "/dsymlink.samedir"))); in OpenatTest() 216 EXPECT_OK(symlink("subdir/", TmpFile(TOPDIR "/dsymlink.down"))); in OpenatTest() 217 EXPECT_OK(symlink(TmpFile(TOPDIR "/"), TmpFile(SUBDIR "/dsymlink.absolute_in"))); in OpenatTest() [all …]
|
/freebsd/sys/contrib/openzfs/config/ |
H A D | kernel-symlink.m4 | 15 .symlink = tmp_symlink, 32 .symlink = tmp_symlink, 38 AC_MSG_CHECKING([whether iops->symlink() takes struct mnt_idmap*]) 42 [iops->symlink() takes struct mnt_idmap*]) 46 AC_MSG_CHECKING([whether iops->symlink() takes struct user_namespace*]) 50 [iops->symlink() takes struct user_namespace*])
|
/freebsd/contrib/netbsd-tests/lib/librumphijack/ |
H A D | t_cwd.sh | 51 test_case symlink_chdir /rump symlink chdir 52 test_case symlink_fchdir /rump symlink fchdir 53 test_case symlink_slash_chdir // symlink chdir 54 test_case symlink_slash_fchdir // symlink fchdir
|
/freebsd/contrib/pjdfstest/tests/chown/ |
H A D | 00.t | 25 for type in regular dir fifo block char socket symlink; do 34 expect 0 symlink ${n0} ${n1} 61 for type in regular dir fifo block char socket symlink; do 72 expect 0 symlink ${n0} ${n1} 111 for type in regular dir fifo block char socket symlink; do 119 expect 0 symlink ${n0} ${n1} 150 for type in regular dir fifo block char socket symlink; do 164 expect 0 symlink ${n0} ${n1} 216 for type in regular dir fifo block char socket symlink; do 250 expect 0 symlink ${n0} ${n1} [all …]
|
/freebsd/usr.sbin/lpr/lp/ |
H A D | lp.sh | 44 symlink="-s" 62 symlink="";; 82 exec /usr/bin/lpr "-P${dest}" ${symlink} ${ncopies} ${mailafter} ${title:+-J"${title}"} "$@"
|
/freebsd/contrib/pjdfstest/tests/chmod/ |
H A D | 11.t | 24 for type in regular dir fifo block char socket symlink; do 29 expect 0 symlink ${n1} ${n2} 56 expect 0 symlink ${n1} ${n2} 62 for type in regular fifo block char socket symlink; do 65 expect 0 symlink ${n1} ${n2}
|
/freebsd/contrib/ncurses/ |
H A D | mk-1st.awk | 135 function symlink(src,dst) { function 187 symlink(lib_name, abi_name); 188 symlink(abi_name, rel_name); 190 symlink(lib_name, abi_name); 194 symlink(rel_name, abi_name); 195 symlink(abi_name, lib_name); 197 symlink(abi_name, lib_name); 434 symlink(imp_name, ovr_name) 440 symlink(end_name, ovr_name) 553 symlink("libncurses.a", "libcurses.a")
|
/freebsd/contrib/bc/scripts/ |
H A D | safe-install.sh | 17 symlink= 23 l) symlink=yes ;; 53 if test "$symlink" ; then
|
/freebsd/contrib/pjdfstest/tests/rename/ |
H A D | 00.t | 50 expect 0 symlink ${n0} ${n1} 53 expect symlink,${sinode} lstat ${n1} type,inode 57 expect symlink,${sinode} lstat ${n2} type,inode 62 for type in regular dir fifo block char socket symlink; do 77 for type in regular dir fifo block char socket symlink; do
|
/freebsd/tests/sys/pjdfstest/tests/ |
H A D | Makefile | 16 afterinstall: install-tests-symlink 17 install-tests-symlink: .PHONY 33 TESTS_SUBDIRS+= symlink
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | symlink.cc | 125 EXPECT_EQ(0, symlink(dst, FULLPATH)) << strerror(errno); in TEST_F() 149 EXPECT_EQ(-1, symlink(dst, FULLPATH)); in TEST_F() 164 EXPECT_EQ(0, symlink(dst, FULLPATH)) << strerror(errno); in TEST_F() 189 EXPECT_EQ(-1, symlink(dst, FULLPATH)); in TEST_F() 207 EXPECT_EQ(0, symlink(dst, FULLPATH)) << strerror(errno); in TEST_F()
|