Home
last modified time | relevance | path

Searched refs:linklen (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.81.4/tests/vfs/
H A Dlongpaths.c889 ssize_t linklen; in test_symlink_long2long() local
891 T_QUIET; T_ASSERT_POSIX_SUCCESS((linklen = readlink(linkpath, buf, targetlen)), CTXSTR); in test_symlink_long2long()
892 T_QUIET; T_ASSERT_EQ((size_t)linklen, targetlen, in test_symlink_long2long()
893 CTXFMT " linklen %zd", CTXARGS, (size_t)linklen); in test_symlink_long2long()
894 buf[linklen] = '\0'; in test_symlink_long2long()
925 ssize_t linklen; in test_symlink_long2short() local
927 T_QUIET; T_ASSERT_POSIX_SUCCESS((linklen = readlink(path, buf, targetlen)), CTXSTR); in test_symlink_long2short()
928 T_QUIET; T_ASSERT_EQ((size_t)linklen, targetlen, in test_symlink_long2short()
929 CTXFMT " linklen %zd", CTXARGS, (size_t)linklen); in test_symlink_long2short()
930 buf[linklen] = '\0'; in test_symlink_long2short()
[all …]
/xnu-12377.81.4/bsd/vfs/
H A Dvfs_lookup.c1937 u_int linklen = 0; local
1986 linklen = 0;
1993 linklen = (u_int)strnlen(cp, MAXPATHLEN - (u_int)resid);
1998 if (linklen == 0) {
2000 } else if (linklen + ndp->ni_pathlen + rsrclen > maxlen) {
2015 bcopy(ndp->ni_next, cp + linklen, ndp->ni_pathlen);
2025 cnp->cn_pnbuf[linklen] = '\0';
2028 ndp->ni_pathlen += linklen;
2060 if (linklen != 0) {