Home
last modified time | relevance | path

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

/netbsd/sys/kern/
H A Dvfs_lookup.c733 size_t linklen; in namei_follow() local
765 linklen = MAXPATHLEN - auio.uio_resid; in namei_follow()
766 if (linklen == 0) { in namei_follow()
779 symlink_magic(self->l_proc, cp, &linklen)) || in namei_follow()
780 (linklen + ndp->ni_pathlen >= MAXPATHLEN)) { in namei_follow()
786 memcpy(cp + linklen, ndp->ni_next, ndp->ni_pathlen); in namei_follow()
788 cp[linklen] = '\0'; in namei_follow()
790 ndp->ni_pathlen += linklen; in namei_follow()
/netbsd/tests/fs/puffs/h_dtfs/
H A Ddtfs_vnops.c414 const struct puffs_cred *cred, char *linkname, size_t *linklen) in dtfs_node_readlink() argument
420 strlcpy(linkname, df->df_linktarget, *linklen); in dtfs_node_readlink()
421 *linklen = strlen(linkname); in dtfs_node_readlink()
/netbsd/lib/libpuffs/
H A Dnull.c551 const struct puffs_cred *pcred, char *linkname, size_t *linklen) in puffs_null_node_readlink() argument
556 rv = readlink(PNPATH(pn), linkname, *linklen); in puffs_null_node_readlink()
560 *linklen = rv; in puffs_null_node_readlink()
/netbsd/sys/arch/sparc/stand/bootblk/
H A Dbootblk.fth813 \ Now deal with symlink XXX drop high word of linklen
814 cur-inode di-size d@ drop ( pino right len linklen.lo )
815 dup sb-buf fs_maxsymlinklen l@ ( pino right len linklen linklen maxlinklen )
817 0 cur-inode di-db@ drop ( pino right len linklen linkp )
818 swap boot-path-str strmov ( pino right len new-linkp linklen )
822 0 block-map ( pino right len linklen boot-path-str bsize blockno.lo blockno.hi )
823 strategy drop swap ( pino right len boot-path-str linklen )
824 then ( pino right len linkp linklen )
/netbsd/lib/librefuse/
H A Drefuse.c485 const struct puffs_cred *cred, char *linkname, size_t *linklen) in puffs_fuse_node_readlink() argument
497 ret = fuse_fs_readlink(fuse->fs, path, linkname, *linklen); in puffs_fuse_node_readlink()
500 p = memchr(linkname, '\0', *linklen); in puffs_fuse_node_readlink()
504 *linklen = (size_t)(p - linkname); in puffs_fuse_node_readlink()
/netbsd/sys/rump/librump/rumpvfs/
H A Drumpfs.c1191 size_t linklen; in rump_vop_symlink() local
1194 linklen = strlen(target); in rump_vop_symlink()
1195 KASSERT(linklen < MAXPATHLEN); in rump_vop_symlink()
1196 rn = makeprivate(VLNK, va->va_mode & ALLPERMS, NODEV, linklen, false); in rump_vop_symlink()
1207 KASSERT(linklen < MAXPATHLEN); in rump_vop_symlink()
1209 rn->rn_linklen = linklen; in rump_vop_symlink()
/netbsd/usr.sbin/puffs/mount_psshfs/
H A Dnode.c673 const struct puffs_cred *cred, char *linkvalue, size_t *linklen) in psshfs_node_readlink() argument
718 *linklen = strlen(psn->symlink); in psshfs_node_readlink()
719 (void) memcpy(linkvalue, psn->symlink, *linklen); in psshfs_node_readlink()
/netbsd/sys/fs/nfs/server/
H A Dnfs_nfsdport.c354 int lockleaf = (cnp->cn_flags & LOCKLEAF) != 0, linklen; in nfsvno_namei() local
485 linklen = MAXPATHLEN - auio.uio_resid; in nfsvno_namei()
486 if (linklen == 0) { in nfsvno_namei()
490 if (linklen + ndp->ni_pathlen >= MAXPATHLEN) { in nfsvno_namei()
499 NFSBCOPY(ndp->ni_next, cp + linklen, ndp->ni_pathlen); in nfsvno_namei()
503 cnp->cn_pnbuf[linklen] = '\0'; in nfsvno_namei()
504 ndp->ni_pathlen += linklen; in nfsvno_namei()
/netbsd/lib/libp2k/
H A Dp2k.c1182 const struct puffs_cred *pcr, char *linkname, size_t *linklen) in p2k_node_readlink() argument
1190 uio = rump_pub_uio_setup(linkname, *linklen, 0, RUMPUIO_READ); in p2k_node_readlink()
1194 *linklen -= rump_pub_uio_free(uio); in p2k_node_readlink()
/netbsd/external/bsd/jemalloc/dist/src/
H A Djemalloc.c930 ssize_t linklen = 0; in malloc_conf_init() local
945 linklen = readlink(linkname, buf, sizeof(buf) - 1); in malloc_conf_init()
946 if (linklen == -1) { in malloc_conf_init()
948 linklen = 0; in malloc_conf_init()
953 buf[linklen] = '\0'; in malloc_conf_init()
/netbsd/sys/fs/puffs/
H A Dpuffs_vnops.c2086 size_t linklen; in puffs_vnop_readlink() local
2091 linklen = sizeof(readlink_msg->pvnr_link); in puffs_vnop_readlink()
2092 readlink_msg->pvnr_linklen = linklen; in puffs_vnop_readlink()
2102 if (readlink_msg->pvnr_linklen > linklen) { in puffs_vnop_readlink()
/netbsd/external/bsd/libarchive/dist/test_utils/
H A Dtest_main.c1850 ssize_t linklen; in is_symlink()
1866 linklen = readlink(pathname, buff, sizeof(buff) - 1); in is_symlink()
1867 if (linklen < 0) { in is_symlink()
1872 buff[linklen] = '\0'; in is_symlink()
/netbsd/lib/libc/stdlib/
H A Djemalloc.c3401 ssize_t linklen; in malloc_init_hard() local
3452 if ((linklen = readlink("/etc/malloc.conf", buf, in malloc_init_hard()
3458 buf[linklen] = '\0'; in malloc_init_hard()
/netbsd/lib/libperfuse/
H A Dops.c2639 const struct puffs_cred *pcr, char *linkname, size_t *linklen) in perfuse_node_readlink() argument
2660 if (len > *linklen) in perfuse_node_readlink()
2674 *linklen = len; in perfuse_node_readlink()