Searched refs:linklen (Results 1 – 2 of 2) sorted by relevance
| /xnu-11417.121.6/tests/vfs/ |
| H A D | longpaths.c | 886 ssize_t linklen; in test_symlink_long2long() local 888 T_QUIET; T_ASSERT_POSIX_SUCCESS((linklen = readlink(linkpath, buf, targetlen)), CTXSTR); in test_symlink_long2long() 889 T_QUIET; T_ASSERT_EQ((size_t)linklen, targetlen, in test_symlink_long2long() 890 CTXFMT " linklen %zd", CTXARGS, (size_t)linklen); in test_symlink_long2long() 891 buf[linklen] = '\0'; in test_symlink_long2long() 922 ssize_t linklen; in test_symlink_long2short() local 924 T_QUIET; T_ASSERT_POSIX_SUCCESS((linklen = readlink(path, buf, targetlen)), CTXSTR); in test_symlink_long2short() 925 T_QUIET; T_ASSERT_EQ((size_t)linklen, targetlen, in test_symlink_long2short() 926 CTXFMT " linklen %zd", CTXARGS, (size_t)linklen); in test_symlink_long2short() 927 buf[linklen] = '\0'; in test_symlink_long2short() [all …]
|
| /xnu-11417.121.6/bsd/vfs/ |
| H A D | vfs_lookup.c | 1827 u_int linklen = 0; local 1872 linklen = 0; 1879 linklen = (u_int)strnlen(cp, MAXPATHLEN - (u_int)resid); 1884 if (linklen == 0) { 1886 } else if (linklen + ndp->ni_pathlen + rsrclen > maxlen) { 1905 bcopy(ndp->ni_next, cp + linklen, ndp->ni_pathlen); 1919 cnp->cn_pnbuf[linklen] = '\0'; 1922 ndp->ni_pathlen += linklen; 1954 if (linklen != 0) {
|