| /freebsd-14.2/crypto/openssh/openbsd-compat/ |
| H A D | bsd-statvfs.c | 27 #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 D | mailstats.c | 43 #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 D | nfsdiskless.h | 67 char root_hostnam[MNAMELEN]; /* Host name for mount pt */ 101 char root_hostnam[MNAMELEN]; /* Host name for mount pt */
|
| H A D | nfs_mountcommon.h | 49 char nmcom_hostname[MNAMELEN]; /* server's name */
|
| H A D | nfs_diskless.c | 287 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 D | rpc.umntall.c | 226 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 D | mnttab.c | 96 static __thread char gmntfromname[MNAMELEN]; 97 static __thread char gmntonname[MNAMELEN];
|
| /freebsd-14.2/sys/nfsclient/ |
| H A D | nfsmount.h | 85 char nm_principal[MNAMELEN]; /* GSS-API principal of server */
|
| /freebsd-14.2/sys/fs/nfsclient/ |
| H A D | nfs_clvfsops.c | 383 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 D | nfs_clport.c | 1354 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 D | vfs_mount.c | 695 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 D | vfs_mountroot.c | 371 fspath, MNAMELEN); in vfs_mountroot_shuffle()
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_file.c | 1081 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 D | fuse_vfsops.c | 441 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 D | df.c | 125 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 D | spl_vfs.c | 141 if (strlen(fstype) >= MFSNAMELEN || strlen(fspath) >= MNAMELEN) in mount_snapshot()
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | fstab.c | 89 static char buf[sizeof(_PATH_DEV) + MNAMELEN]; in fixfsfile()
|
| /freebsd-14.2/sys/sys/ |
| H A D | mount.h | 81 #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 D | getmntopts.c | 163 char device[sizeof(_PATH_DEV) - 1 + MNAMELEN]; in getmntpoint()
|
| /freebsd-14.2/usr.sbin/pnfsdscopymr/ |
| H A D | pnfsdscopymr.c | 81 char host[MNAMELEN + NI_MAXHOST + 2], *cp; in main()
|
| /freebsd-14.2/usr.sbin/autofs/ |
| H A D | autounmountd.c | 56 char af_mountpoint[MNAMELEN];
|
| /freebsd-14.2/sbin/mount_nfs/ |
| H A D | mount_nfs.c | 593 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 D | smbfs_vfsops.c | 216 bzero(pc, MNAMELEN); in smbfs_mount()
|
| /freebsd-14.2/sys/fs/unionfs/ |
| H A D | union_vfsops.c | 362 snprintf(mp->mnt_stat.f_mntfromname, MNAMELEN, "<%s>:%s", in unionfs_domount()
|
| /freebsd-14.2/lib/libprocstat/ |
| H A D | libprocstat.c | 1706 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()
|