MNAMELEN
strlcpy(totalbuf.f_mntfromname, "total", MNAMELEN);
if (strncmp(sfsp->f_mntfromname, "total", MNAMELEN) != 0)
#ifndef MNAMELEN
to->f_namemax = MNAMELEN;
static char buf[sizeof(_PATH_DEV) + MNAMELEN];
char mntonname[MNAMELEN + 1];
bcopy(&mnt.mnt_stat.f_mntonname[0], &mt->mntonname[0], MNAMELEN);
mt->mntonname[MNAMELEN] = '\0';
char device[sizeof(_PATH_DEV) - 1 + MNAMELEN];
static char nam[MNAMELEN + 1], pname[MAXHOSTNAMELEN + 5];
if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) {
in->f_mntonname, min(MNAMELEN, FREEBSD4_OMNAMELEN));
in->f_mntfromname, min(MNAMELEN, FREEBSD4_OMNAMELEN));
fstypename = malloc(MNAMELEN, M_TEMP, M_WAITOK);
mntonname = malloc(MNAMELEN, M_TEMP, M_WAITOK);
mntfromname = malloc(MNAMELEN, M_TEMP, M_WAITOK);
error = copyinstr(args->filesystemtype, fstypename, MNAMELEN - 1,
error = copyinstr(args->specialfile, mntfromname, MNAMELEN - 1, NULL);
error = copyinstr(args->dir, mntonname, MNAMELEN - 1, NULL);
data = malloc(MNAMELEN, M_TEMP, M_WAITOK);
error = copyinstr(args->data, data, MNAMELEN - 1, NULL);
memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN);
fsname == NULL ? fspec : fsname, MNAMELEN);
buf = malloc(MNAMELEN + 1, M_TEMP, M_WAITOK);
error = copyinstr(uap->argp, buf, MNAMELEN + 1, NULL);
error = copyinstr(args.hostname, hst, MNAMELEN - 1, &hstlen);
bzero(&hst[hstlen], MNAMELEN - hstlen);
MNAMELEN, &dirlen) == 0) {
bcopy(args.hostname, hst, MNAMELEN);
hst[MNAMELEN - 1] = '\0';
if (len >= MNAMELEN) {
strlcpy(dirpath, name, MNAMELEN);
strlcpy(mp->mnt_stat.f_mntfromname, hst, MNAMELEN);
bcopy(nfs_diskless.root_hostnam, nfsv3_diskless.root_hostnam, MNAMELEN);
bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN);
bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN);
nam = malloc(MNAMELEN + 1, M_TEMP, M_WAITOK);
if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) {
hst = malloc(MNAMELEN, M_TEMP, M_WAITOK);
dirpath = malloc(MNAMELEN, M_TEMP, M_WAITOK);
bzero(pc, MNAMELEN);
snprintf(mp->mnt_stat.f_mntfromname, MNAMELEN, "<%s>:%s",
ma = mount_argsu(ma, "fspath", uap->path, MNAMELEN);
if (strlen(fstype) >= MFSNAMELEN || strlen(fspath) >= MNAMELEN)
pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK);
MNAMELEN);
nd.ni_dvp, pathbuf, MNAMELEN,
fsidbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK);
error = copyinstr(path, fsidbuf, MNAMELEN, NULL);
pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK);
error = copyinstr(path, pathbuf, MNAMELEN, NULL);
MNAMELEN);
strlcpy(mp->mnt_stat.f_mntonname, fspath, MNAMELEN);
if (fstypelen > MFSNAMELEN || fspathlen > MNAMELEN) {
fspath, MNAMELEN);
MIN(MNAMELEN, OMNAMELEN));
MIN(MNAMELEN, OMNAMELEN));
MIN(MNAMELEN, sizeof(osp->f_mntonname)));
MIN(MNAMELEN, sizeof(osp->f_mntfromname)));
strlcpy(path, p, MNAMELEN);
strncpy(nd3->root_hostnam, cp, MNAMELEN - 1);
strncpy(nd->root_hostnam, cp, MNAMELEN - 1);
char nmcom_hostname[MNAMELEN]; /* server's name */
char root_hostnam[MNAMELEN]; /* Host name for mount pt */
char root_hostnam[MNAMELEN]; /* Host name for mount pt */
char nm_principal[MNAMELEN]; /* GSS-API principal of server */
servername = malloc(MNAMELEN, M_TEMP, M_WAITOK); /* XXXKIB vp locked */
char f_mntfromname[MNAMELEN]; /* mounted filesystem */
char f_mntonname[MNAMELEN]; /* directory on which mounted */
char af_mountpoint[MNAMELEN];
char host[MNAMELEN + NI_MAXHOST + 2], *cp;
char name[MNAMELEN + 1];
if (strlen(hostname) + strlen(dirp) >= MNAMELEN)