Home
last modified time | relevance | path

Searched refs:nmlen (Results 1 – 25 of 28) sorted by relevance

12

/titanic_41/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_node.c78 smbfs_hash(uint32_t ival, const char *name, int nmlen) in smbfs_hash() argument
82 for (v = ival; nmlen; name++, nmlen--) { in smbfs_hash()
107 smbfs_getino(struct smbnode *dnp, const char *name, int nmlen) in smbfs_getino() argument
121 ino = smbfs_hash(ino, name, nmlen); in smbfs_getino()
131 smbfs_name_alloc(const char *name, int nmlen) in smbfs_name_alloc() argument
135 cp = kmem_alloc(nmlen + 1, KM_SLEEP); in smbfs_name_alloc()
136 bcopy(name, cp, nmlen); in smbfs_name_alloc()
137 cp[nmlen] = 0; in smbfs_name_alloc()
147 smbfs_name_free(const char *name, int nmlen) in smbfs_name_free() argument
149 kmem_free((char *)name, nmlen + 1); in smbfs_name_free()
[all …]
H A Dsmbfs_subr.h174 int smbfs_smb_open(struct smbnode *np, const char *name, int nmlen,
183 int smbfs_smb_create(struct smbnode *dnp, const char *name, int nmlen,
202 struct smbnode *dnp, const char *name, int nmlen, uint8_t sep);
260 uint32_t smbfs_getino(struct smbnode *dnp, const char *name, int nmlen);
265 const char *name, int nmlen,
268 int smbfs_nget(vnode_t *dvp, const char *name, int nmlen,
272 char *smbfs_name_alloc(const char *name, int nmlen);
273 void smbfs_name_free(const char *name, int nmlen);
295 const char *name, int nmlen);
H A Dsmbfs_smb.c70 int smbfs_smb_query_info(struct smbnode *np, const char *name, int nmlen,
782 smbfs_smb_query_info(struct smbnode *np, const char *name, int nmlen, in smbfs_smb_query_info() argument
804 name, nmlen, '\\'); in smbfs_smb_query_info()
1105 int nmlen, in smbfs_smb_ntcreatex() argument
1124 nmlen = 0; in smbfs_smb_ntcreatex()
1126 np, name, nmlen, xattr ? ':' : '\\'); in smbfs_smb_ntcreatex()
1195 int nmlen, in smbfs_smb_oldopen() argument
1238 error = smbfs_fullpath(mbp, vcp, np, name, nmlen, in smbfs_smb_oldopen()
1375 int nmlen, in smbfs_smb_open() argument
1391 name, nmlen, xattr, in smbfs_smb_open()
[all …]
H A Dsmbfs_xattr.c376 int error, skip, used, nmlen; in smbfs_xa_findnext() local
409 nmlen = min(size, SMB_MAXFNAMELEN * 2); in smbfs_xa_findnext()
415 nmlen = min(size, SMB_MAXFNAMELEN); in smbfs_xa_findnext()
418 ASSERT(nmlen < ctx->f_namesz); in smbfs_xa_findnext()
419 ctx->f_nmlen = nmlen; in smbfs_xa_findnext()
420 error = md_get_mem(mdp, ctx->f_name, nmlen, MB_MSYSTEM); in smbfs_xa_findnext()
423 used += nmlen; in smbfs_xa_findnext()
429 if (nmlen) in smbfs_xa_findnext()
H A Dsmbfs_vnops.c1451 int nmlen = strlen(nm); in smbfslookup() local
1481 if (nmlen == 0) { in smbfslookup()
1504 if (nmlen == 1 && name[0] == '.') { in smbfslookup()
1514 if (nmlen > supplen) in smbfslookup()
1543 if (nmlen == 2 && name[0] == '.' && name[1] == '.') { in smbfslookup()
1603 error = smbfslookup_cache(dvp, nm, nmlen, &vp, cr); in smbfslookup()
1619 error = smbfs_smb_lookup(dnp, &name, &nmlen, &fa, &scred); in smbfslookup()
1633 error = smbfs_nget(dvp, name, nmlen, &fa, &vp); in smbfslookup()
1643 smbfs_name_free(name, nmlen); in smbfslookup()
1668 smbfslookup_cache(vnode_t *dvp, char *nm, int nmlen, in smbfslookup_cache() argument
[all …]
H A Dsmbfs_subr.c70 const char *name, int nmlen, u_int8_t sep) in smbfs_fullpath() argument
121 name, nmlen, caseopt, NULL); in smbfs_fullpath()
H A Dsmbfs_subr2.c212 int nmlen, in smbfs_node_findcreate() argument
231 rplen += nmlen; in smbfs_node_findcreate()
246 bcopy(name, p, nmlen); in smbfs_node_findcreate()
247 p += nmlen; in smbfs_node_findcreate()
/titanic_41/usr/src/uts/common/fs/dev/
H A Dsdev_netops.c120 int nmlen; in devnet_lookup() local
129 nmlen = strlen(nm); in devnet_lookup()
130 if ((nmlen == 0) || ((nmlen == 1) && (nm[0] == '.'))) { in devnet_lookup()
139 if ((nmlen == 2) && (strcmp(nm, "..") == 0)) { in devnet_lookup()
H A Dsdev_profile.c1003 int nmlen; in prof_lookup() local
1008 nmlen = strlen(nm); in prof_lookup()
1009 if ((nmlen == 0) || ((nmlen == 1) && (nm[0] == '.'))) { in prof_lookup()
1018 if ((nmlen == 2) && (strcmp(nm, "..") == 0)) { in prof_lookup()
H A Dsdev_subr.c300 size_t nmlen, len; in sdev_nodeinit() local
303 nmlen = strlen(nm) + 1; in sdev_nodeinit()
304 if (nmlen > MAXNAMELEN) { in sdev_nodeinit()
313 dv->sdev_name = kmem_alloc(nmlen, KM_SLEEP); in sdev_nodeinit()
314 bcopy(nm, dv->sdev_name, nmlen); in sdev_nodeinit()
315 dv->sdev_namelen = nmlen - 1; /* '\0' not included */ in sdev_nodeinit()
1864 int rv = 0, nmlen; in devname_lookup_func() local
1883 nmlen = strlen(nm); in devname_lookup_func()
1884 if ((nmlen == 0) || ((nmlen == 1) && (nm[0] == '.'))) { in devname_lookup_func()
1893 if ((nmlen == 2) && (strcmp(nm, "..") == 0)) { in devname_lookup_func()
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dfile.c78 int err, nmlen; in smb_fh_ntcreate() local
82 nmlen = strlen(path); in smb_fh_ntcreate()
83 if (nmlen >= SMBIOC_MAX_NAME) { in smb_fh_ntcreate()
/titanic_41/usr/src/uts/common/fs/devfs/
H A Ddevfs_subr.c335 size_t nmlen; in dv_mkdir() local
341 nmlen = strlen(nm) + 1; in dv_mkdir()
342 dv->dv_name = kmem_alloc(nmlen, KM_SLEEP); in dv_mkdir()
343 bcopy(nm, dv->dv_name, nmlen); in dv_mkdir()
344 dv->dv_namelen = nmlen - 1; /* '\0' not included */ in dv_mkdir()
387 size_t nmlen; in dv_mknod() local
392 nmlen = strlen(nm) + 1; in dv_mknod()
393 dv->dv_name = kmem_alloc(nmlen, KM_SLEEP); in dv_mknod()
394 bcopy(nm, dv->dv_name, nmlen); in dv_mknod()
395 dv->dv_namelen = nmlen - 1; /* no '\0' */ in dv_mknod()
[all …]
/titanic_41/usr/src/cmd/refer/
H A Drefer0.c35 int nmlen = 0, dtlen = 0; variable
H A Drefer..c41 extern int nmlen, dtlen;
H A Drefer5.c70 nmlen > 0 ? "%%.%ds%%s" : "%%s%%s", in putsig()
71 nmlen); in putsig()
H A Drefer1.c60 nmlen = atoi(s); in main()
/titanic_41/usr/src/cmd/fs.d/ufs/ncheck/
H A Dncheck.c424 int nmlen; in pass2() local
436 nmlen = strlen(dp->d_name); in pass2()
438 if (strngloc + nmlen + 1 > MAX_STRNGTAB_INDEX()) { in pass2()
447 strngloc += nmlen + 1; in pass2()
/titanic_41/usr/src/common/fs/
H A Dhsfs.c648 uint_t nmlen; in parse_dir() local
688 nmlen = IDE_NAME_LEN(bufp); in parse_dir()
691 if (nmlen == 1 && c == '\0') { in parse_dir()
696 } else if (nmlen == 1 && c == '\001') { in parse_dir()
704 for (i = 0; i < nmlen; i++) { in parse_dir()
/titanic_41/usr/src/cmd/fs.d/ufs/ff/
H A Dff.c466 int nmlen; in pass2() local
476 nmlen = strlen(dp->d_name); in pass2()
478 if (strngloc + nmlen + 1 > MAX_STRNGTAB_INDEX()) { in pass2()
487 strngloc += nmlen + 1; in pass2()
/titanic_41/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c742 uint_t nmlen; in parse_dir() local
775 nmlen = IDE_NAME_LEN(bufp); in parse_dir()
778 if (nmlen == 1 && c == '\0') { in parse_dir()
783 } else if (nmlen == 1 && c == '\001') { in parse_dir()
791 for (i = 0; i < nmlen; i++) { in parse_dir()
/titanic_41/usr/src/uts/common/fs/cachefs/
H A Dcachefs_dir.c89 int nmlen; in cachefs_dir_look() local
118 nmlen = (int)strlen(nm); in cachefs_dir_look()
132 (nmlen == dep->d_namelen) && in cachefs_dir_look()
444 int nmlen; in cachefs_dir_rmentry() local
475 nmlen = (int)strlen(nm); in cachefs_dir_rmentry()
491 (nmlen == dep->d_namelen) && in cachefs_dir_rmentry()
/titanic_41/usr/src/cmd/ndmpd/tlm/
H A Dtlm_backup_reader.c358 int nmlen, lnklen; in output_file_header() local
390 nmlen = strlen(section_name); in output_file_header()
391 if (nmlen >= NAMSIZ) { in output_file_header()
410 "%011o ", nmlen); in output_file_header()
429 (void *)section_name, nmlen); in output_file_header()
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_usr.c444 int err, nmlen; in smb_usr_ntcreate() local
464 nmlen = strnlen(ioc->ioc_name, SMBIOC_MAX_NAME-1); in smb_usr_ntcreate()
466 ioc->ioc_name, nmlen, in smb_usr_ntcreate()
H A Dsmb_rq.c947 int error, doff, poff, txdcount, txpcount, nmlen, nmsize; in smb_t2_request_int() local
996 nmlen = t2p->t_name ? t2p->t_name_len : 0; in smb_t2_request_int()
997 nmsize = nmlen + 1; /* null term. */ in smb_t2_request_int()
1036 error = smb_put_dmem(mbp, vcp, t2p->t_name, nmlen + 1, in smb_t2_request_int()
/titanic_41/usr/src/uts/common/fs/hsfs/
H A Dhsfs_node.c112 uint_t last_offset, char *nm, int nmlen, struct hsfs *fsp,
1447 int nmlen, /* length of name */ in process_dirblock() argument
1649 if (*nm != *dname || nmlen != dnamelen) in process_dirblock()
1652 if ((res = bcmp(dname, nm, nmlen)) == 0) { in process_dirblock()

12