Home
last modified time | relevance | path

Searched refs:MNAMELEN (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-14.2/crypto/openssh/openbsd-compat/
H A Dbsd-statvfs.c27 #ifndef MNAMELEN
28 # define MNAMELEN 32 macro
53 to->f_namemax = MNAMELEN; in copy_statfs_to_statvfs()
/freebsd-14.2/contrib/sendmail/mailstats/
H A Dmailstats.c43 #define MNAMELEN 20 /* max length of mailer name */ macro
64 char mtable[MAXMAILERS][MNAMELEN + 1];
133 (void) sm_strlcpy(mtable[mno++], "prog", MNAMELEN + 1);
134 (void) sm_strlcpy(mtable[mno++], "*file*", MNAMELEN + 1);
135 (void) sm_strlcpy(mtable[mno++], "*include*", MNAMELEN + 1);
199 s = m + MNAMELEN; /* is [MNAMELEN + 1] */
/freebsd-14.2/sys/nfs/
H A Dnfsdiskless.h67 char root_hostnam[MNAMELEN]; /* Host name for mount pt */
101 char root_hostnam[MNAMELEN]; /* Host name for mount pt */
H A Dnfs_mountcommon.h49 char nmcom_hostname[MNAMELEN]; /* server's name */
H A Dnfs_diskless.c287 strncpy(nd3->root_hostnam, cp, MNAMELEN - 1); in nfs_setup_diskless()
321 strncpy(nd->root_hostnam, cp, MNAMELEN - 1); in nfs_setup_diskless()
/freebsd-14.2/usr.sbin/rpc.umntall/
H A Drpc.umntall.c226 char name[MNAMELEN + 1]; in is_mounted()
230 if (strlen(hostname) + strlen(dirp) >= MNAMELEN) in is_mounted()
/freebsd-14.2/sys/contrib/openzfs/lib/libspl/os/freebsd/
H A Dmnttab.c96 static __thread char gmntfromname[MNAMELEN];
97 static __thread char gmntonname[MNAMELEN];
/freebsd-14.2/sys/nfsclient/
H A Dnfsmount.h85 char nm_principal[MNAMELEN]; /* GSS-API principal of server */
/freebsd-14.2/sys/fs/nfsclient/
H A Dnfs_clvfsops.c383 bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN); in nfs_statfs()
384 bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN); in nfs_statfs()
806 nam = malloc(MNAMELEN + 1, M_TEMP, M_WAITOK); in nfs_mount_parse_from()
839 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { in nfs_mount_parse_from()
943 hst = malloc(MNAMELEN, M_TEMP, M_WAITOK); in nfs_mount()
1319 error = copyinstr(args.hostname, hst, MNAMELEN - 1, &hstlen); in nfs_mount()
1322 bzero(&hst[hstlen], MNAMELEN - hstlen); in nfs_mount()
1332 bcopy(args.hostname, hst, MNAMELEN); in nfs_mount()
1333 hst[MNAMELEN - 1] = '\0'; in nfs_mount()
1360 if (len >= MNAMELEN) { in nfs_mount()
[all …]
H A Dnfs_clport.c1354 buf = malloc(MNAMELEN + 1, M_TEMP, M_WAITOK); in nfssvc_nfscl()
1355 error = copyinstr(uap->argp, buf, MNAMELEN + 1, NULL); in nfssvc_nfscl()
/freebsd-14.2/sys/kern/
H A Dvfs_mount.c695 strlcpy(mp->mnt_stat.f_mntonname, fspath, MNAMELEN); in vfs_mount_alloc()
985 if (fstypelen > MFSNAMELEN || fspathlen > MNAMELEN) { in vfs_donmount()
1097 ma = mount_argsu(ma, "fspath", uap->path, MNAMELEN); in sys_mount()
1673 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); in vfs_domount()
1682 MNAMELEN); in vfs_domount()
1685 nd.ni_dvp, pathbuf, MNAMELEN, in vfs_domount()
1740 fsidbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); in kern_unmount()
1741 error = copyinstr(path, fsidbuf, MNAMELEN, NULL); in kern_unmount()
1760 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); in kern_unmount()
1761 error = copyinstr(path, pathbuf, MNAMELEN, NULL); in kern_unmount()
[all …]
H A Dvfs_mountroot.c371 fspath, MNAMELEN); in vfs_mountroot_shuffle()
/freebsd-14.2/sys/compat/linux/
H A Dlinux_file.c1081 fstypename = malloc(MNAMELEN, M_TEMP, M_WAITOK); in linux_mount()
1082 mntonname = malloc(MNAMELEN, M_TEMP, M_WAITOK); in linux_mount()
1083 mntfromname = malloc(MNAMELEN, M_TEMP, M_WAITOK); in linux_mount()
1085 error = copyinstr(args->filesystemtype, fstypename, MNAMELEN - 1, in linux_mount()
1090 error = copyinstr(args->specialfile, mntfromname, MNAMELEN - 1, NULL); in linux_mount()
1096 error = copyinstr(args->dir, mntonname, MNAMELEN - 1, NULL); in linux_mount()
1112 data = malloc(MNAMELEN, M_TEMP, M_WAITOK); in linux_mount()
1113 error = copyinstr(args->data, data, MNAMELEN - 1, NULL); in linux_mount()
/freebsd-14.2/sys/fs/fuse/
H A Dfuse_vfsops.c441 memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN); in fuse_vfsop_mount()
444 fsname == NULL ? fspec : fsname, MNAMELEN); in fuse_vfsop_mount()
/freebsd-14.2/bin/df/
H A Ddf.c125 strlcpy(totalbuf.f_mntfromname, "total", MNAMELEN); in main()
570 if (strncmp(sfsp->f_mntfromname, "total", MNAMELEN) != 0) in prtstat()
/freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_vfs.c141 if (strlen(fstype) >= MFSNAMELEN || strlen(fspath) >= MNAMELEN) in mount_snapshot()
/freebsd-14.2/lib/libc/gen/
H A Dfstab.c89 static char buf[sizeof(_PATH_DEV) + MNAMELEN]; in fixfsfile()
/freebsd-14.2/sys/sys/
H A Dmount.h81 #define MNAMELEN 1024 /* size of on/from name bufs */ macro
106 char f_mntfromname[MNAMELEN]; /* mounted filesystem */
107 char f_mntonname[MNAMELEN]; /* directory on which mounted */
/freebsd-14.2/sbin/mount/
H A Dgetmntopts.c163 char device[sizeof(_PATH_DEV) - 1 + MNAMELEN]; in getmntpoint()
/freebsd-14.2/usr.sbin/pnfsdscopymr/
H A Dpnfsdscopymr.c81 char host[MNAMELEN + NI_MAXHOST + 2], *cp; in main()
/freebsd-14.2/usr.sbin/autofs/
H A Dautounmountd.c56 char af_mountpoint[MNAMELEN];
/freebsd-14.2/sbin/mount_nfs/
H A Dmount_nfs.c593 static char nam[MNAMELEN + 1], pname[MAXHOSTNAMELEN + 5]; in getnfsargs()
622 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { in getnfsargs()
/freebsd-14.2/sys/fs/smbfs/
H A Dsmbfs_vfsops.c216 bzero(pc, MNAMELEN); in smbfs_mount()
/freebsd-14.2/sys/fs/unionfs/
H A Dunion_vfsops.c362 snprintf(mp->mnt_stat.f_mntfromname, MNAMELEN, "<%s>:%s", in unionfs_domount()
/freebsd-14.2/lib/libprocstat/
H A Dlibprocstat.c1706 char mntonname[MNAMELEN + 1]; in getmnton()
1720 bcopy(&mnt.mnt_stat.f_mntonname[0], &mt->mntonname[0], MNAMELEN); in getmnton()
1721 mt->mntonname[MNAMELEN] = '\0'; in getmnton()

12