/titanic_51/usr/src/lib/libast/common/misc/ |
H A D | getcwd.c | 119 size_t namlen; 145 …if (fs3d(FS3D_TEST) && (namlen = mount(".", dots, FS3D_GET|FS3D_VIEW|FS3D_SIZE(sizeof(dots)), NiL)… 149 namlen++; 152 if (len < namlen) ERROR(ERANGE); 154 else if (!(buf = newof(0, char, namlen, len))) ERROR(ENOMEM); 155 return (char*)memcpy(buf, p, namlen); 169 namlen = strlen(p); 232 namlen = D_NAMLEN(entry); 246 namlen = D_NAMLEN(entry); 247 if ((d - dots) > (PATH_MAX - 1 - namlen)) [all …]
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | getcwd.c | 161 size_t namlen; 187 if (fs3d(FS3D_TEST) && (namlen = mount(".", dots, FS3D_GET|FS3D_VIEW|FS3D_SIZE(sizeof(dots)), NiL)) > 1 && namlen < sizeof(dots)) 191 namlen++; 194 if (len < namlen) ERROR(ERANGE); 196 else if (!(buf = newof(0, char, namlen, len))) ERROR(ENOMEM); 197 return (char*)memcpy(buf, p, namlen); 211 namlen = strlen(p); 274 namlen = D_NAMLEN(entry); 288 namlen [all...] |
/titanic_51/usr/src/uts/common/fs/ |
H A D | dnlc.c | 257 kmem_free((ncp), sizeof (ncache_t) + (ncp)->namlen); \ 325 static ncache_t *dnlc_get(uchar_t namlen); 326 static ncache_t *dnlc_search(vnode_t *dp, const char *name, uchar_t namlen, 440 uchar_t namlen; in dnlc_enter() local 455 DNLCHASH(name, dp, hash, namlen); in dnlc_enter() 456 if ((ncp = dnlc_get(namlen)) == NULL) in dnlc_enter() 462 bcopy(name, ncp->name, namlen + 1); /* name and null */ in dnlc_enter() 467 if (dnlc_search(dp, name, namlen, hash) != NULL) { in dnlc_enter() 509 uchar_t namlen; in dnlc_update() local 527 DNLCHASH(name, dp, hash, namlen); in dnlc_update() 590 uchar_t namlen; dnlc_lookup() local 669 uchar_t namlen; dnlc_remove() local 929 dnlc_search(vnode_t * dp,const char * name,uchar_t namlen,int hash) dnlc_search() argument 971 dnlc_get(uchar_t namlen) dnlc_get() argument 1108 uchar_t namlen; dnlc_dir_lookup() local 1249 uchar_t namlen; dnlc_dir_add_entry() local 1551 uchar_t namlen; dnlc_dir_rem_entry() local 1749 uchar_t namlen; dnlc_dir_update() local [all...] |
/titanic_51/usr/src/contrib/ast/src/lib/libast/preroot/ |
H A D | getpreroot.c | 68 int namlen; in getpreroot() local 128 namlen = D_NAMLEN(entry); in getpreroot() 142 namlen = D_NAMLEN(entry); in getpreroot() 143 if ((d - dots) > (PATH_MAX - 1 - namlen)) ERROR(ERANGE); in getpreroot() 144 memcpy(d, entry->d_name, namlen + 1); in getpreroot() 149 if ((p -= namlen) <= (path + 1)) ERROR(ERANGE); in getpreroot() 150 memcpy(p, entry->d_name, namlen); in getpreroot()
|
/titanic_51/usr/src/lib/libast/common/preroot/ |
H A D | getpreroot.c | 68 int namlen; in getpreroot() local 128 namlen = D_NAMLEN(entry); in getpreroot() 142 namlen = D_NAMLEN(entry); in getpreroot() 143 if ((d - dots) > (PATH_MAX - 1 - namlen)) ERROR(ERANGE); in getpreroot() 144 memcpy(d, entry->d_name, namlen + 1); in getpreroot() 149 if ((p -= namlen) <= (path + 1)) ERROR(ERANGE); in getpreroot() 150 memcpy(p, entry->d_name, namlen); in getpreroot()
|
/titanic_51/usr/src/cmd/fs.d/autofs/ |
H A D | autod_xdr.c | 394 uint_t namlen; local 414 namlen = strlen(name); 418 roundup(namlen, BYTES_PER_XDR_UNIT); 426 !xdr_bytes(xdrs, &name, &namlen, AUTOFS_MAXPATHLEN) || 443 #define reclen(namlen) DIRENT64_RECLEN((namlen)) argument 454 uint_t namlen; local 470 !xdr_u_int(xdrs, &namlen)) { 473 if (reclen(namlen) > size) { 477 if (!xdr_opaque(xdrs, dp->d_name, namlen)|| [all...] |
/titanic_51/usr/src/uts/common/fs/autofs/ |
H A D | auto_xdr.c | 403 uint_t namlen; in xdr_autofs_putrddirres() local 421 namlen = (uint_t)strlen(name); in xdr_autofs_putrddirres() 425 roundup(namlen, BYTES_PER_XDR_UNIT); in xdr_autofs_putrddirres() 433 !xdr_bytes(xdrs, &name, &namlen, AUTOFS_MAXPATHLEN) || in xdr_autofs_putrddirres() 454 uint_t namlen; in xdr_autofs_getrddirres() local 470 !xdr_u_int(xdrs, &namlen)) in xdr_autofs_getrddirres() 472 if (DIRENT64_RECLEN(namlen) > size) { in xdr_autofs_getrddirres() 476 if (!xdr_opaque(xdrs, dp->d_name, namlen)|| in xdr_autofs_getrddirres() 480 dp->d_reclen = (ushort_t)DIRENT64_RECLEN(namlen); in xdr_autofs_getrddirres() 481 bzero(&dp->d_name[namlen], in xdr_autofs_getrddirres() [all...] |
/titanic_51/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_jfs.c | 281 int namlen, cmp, n, link_count; in jfs_dir() local 337 namlen = de->namlen; in jfs_dir() 339 uni2ansi (de->name, namebuf, namlen); in jfs_dir() 340 namebuf[namlen] = 0; in jfs_dir() 345 namlen -= DTLHDRDATALEN; in jfs_dir() 350 namlen -= DTSLOTDATALEN; in jfs_dir() 353 uni2ansi (ds->name, ptr, namlen); in jfs_dir() 354 ptr += namlen; in jfs_dir()
|
H A D | jfs.h | 297 u8 namlen; /* 1: */ member 309 u8 namlen; /* 1: */ member
|
/titanic_51/usr/src/stand/lib/fs/nfs/ |
H A D | getdents4.c | 226 int namlen; in nfs4getdents() local 231 if ((namlen = ep->b_name.utf8string_len) == 0) in nfs4getdents() 234 n = BDIRENT_RECLEN(namlen); in nfs4getdents() 240 bcopy(ep->b_name.utf8string_val, dep->d_name, namlen); in nfs4getdents() 241 dep->d_name[namlen] = '\0'; in nfs4getdents()
|
/titanic_51/usr/src/uts/common/fs/ufs/ |
H A D | ufs_dir.c | 197 int namlen; /* length of name */ in ufs_dirlook() local 380 namlen = strlen(namep); in ufs_dirlook() 468 if (ep->d_ino && ep->d_namlen == namlen && in ufs_dirlook() 489 if (namlen == 2 && namep[0] == '.' && namep[1] == '.') { in ufs_dirlook() 652 int namlen; /* length of name */ in ufs_direnter_cm() local 670 for (s = namep, namlen = 0; *s; s++, namlen++) in ufs_direnter_cm() 673 ASSERT(namlen); in ufs_direnter_cm() 686 (namlen == 1 || (namlen in ufs_direnter_cm() 818 int namlen; /* length of name */ ufs_direnter_lr() local 1010 ufs_dircheckforname(struct inode * tdp,char * namep,int namlen,struct ufs_slot * slotp,struct inode ** ipp,struct cred * cr,int noentry) ufs_dircheckforname() argument 1768 ufs_diraddentry(struct inode * tdp,char * namep,enum de_op op,int namlen,struct ufs_slot * slotp,struct inode * sip,struct inode * sdp,struct cred * cr) ufs_diraddentry() argument 2418 int namlen; ufs_dirremove() local [all...] |
/titanic_51/usr/src/lib/libtecla/common/ |
H A D | cplfile.c | 773 int namlen; /* The number of characters in nambuf[] */ in cf_read_name() local 782 for(sptr=string,namlen=0; in cf_read_name() 783 namlen < nmax && (slen-namlen < FS_DIR_SEP_LEN || in cf_read_name() 785 namlen++) { in cf_read_name() 786 nambuf[namlen] = *sptr++; in cf_read_name() 791 if(namlen >= nammax) { in cf_read_name() 798 nambuf[namlen] = '\0'; in cf_read_name()
|
/titanic_51/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_hyper.c | 329 unsigned namlen; in cvt_metal_option() local 339 namlen = value - optstr; in cvt_metal_option() 344 if (strncmp(optstr, "console", namlen) == 0) { in cvt_metal_option() 349 if ((strncmp(optstr, "ttya-mode", namlen) == 0) || in cvt_metal_option() 350 (strncmp(optstr, "ttyb-mode", namlen) == 0)) { in cvt_metal_option() 351 char *port = strndupa(optstr, namlen); in cvt_metal_option() 378 unsigned namlen; in cvt_hyper_option() local 396 namlen = value - optstr; in cvt_hyper_option() 416 if (strncmp(optstr, "console", namlen) == 0) { in cvt_hyper_option() 431 if ((strncmp(optstr, "com1", namlen) in cvt_hyper_option() [all...] |
/titanic_51/usr/src/boot/include/ufs/ufs/ |
H A D | dir.h | 111 #define DIRECTSIZ(namlen) \ argument 113 ((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3)
|
/titanic_51/usr/src/uts/common/sys/ |
H A D | dnlc.h | 70 * Note namlen is a uchar_t to conserve space 84 uchar_t namlen; /* length of name */ member 158 * 'hash' and 'namlen' must be l-values. A check is made to ensure 161 #define DNLCHASH(name, dvp, hash, namlen) \ argument 169 (namlen) = Xcp - (name); \
|
/titanic_51/usr/src/cmd/svr4pkg/libinst/ |
H A D | mntinfo.c | 132 if (fs1->namlen == fs2->namlen) in fs_tab_ent_comp() 135 return (fs2->namlen - fs1->namlen); in fs_tab_ent_comp() 624 nfte->namlen = strlen(mountp); in fs_tab_init() 628 if ((nfte->name = malloc(nfte->namlen+1)) == NULL) { in fs_tab_init() 1102 else if (fs_tab[i]->namlen <= pathlen) in fsys() 1111 fs_namelen = fs_tab[i]->namlen; in fsys()
|
/titanic_51/usr/src/uts/common/syscall/ |
H A D | getdents.c | 134 uint32_t reclen, namlen; in getdents32() local 153 namlen = strlen(dp->d_name); in getdents32() 154 reclen = DIRENT32_RECLEN(namlen); in getdents32()
|
/titanic_51/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_node.c | 763 int namlen, /* length of 'name' */ in hs_dirlook() argument 802 if (!is_rrip && *name == '\1' && namlen == 1) in hs_dirlook() 808 if (namlen >= cmpname_size) in hs_dirlook() 809 namlen = cmpname_size - 1; in hs_dirlook() 816 cmpnamelen = namlen; in hs_dirlook() 823 name[namlen-1] == '.' && in hs_dirlook() 824 CAN_TRUNCATE_DOT(name, namlen)) in hs_dirlook() 825 name[--namlen] = '\0'; in hs_dirlook() 828 cmpnamelen = hs_iso_copy(name, cmpname, namlen); in hs_dirlook() 830 cmpnamelen = hs_uppercase_copy(name, cmpname, namlen); in hs_dirlook() [all...] |
/titanic_51/usr/src/uts/common/fs/nfs/ |
H A D | nfs3_xdr.c | 2032 uint_t namlen; in xdr_putdirlist() local 2066 namlen = (uint_t)strlen(dp->d_name); in xdr_putdirlist() 2078 roundup(namlen, BYTES_PER_XDR_UNIT); in xdr_putdirlist() 2098 !xdr_bytes(xdrs, &name, &namlen, ~0) || in xdr_putdirlist() 2184 uint_t namlen; in xdr_READDIR3vres() local 2208 if (!XDR_GETINT32(xdrs, (int32_t *)&namlen)) in xdr_READDIR3vres() 2210 this_reclen = DIRENT64_RECLEN(namlen); in xdr_READDIR3vres() 2222 if (!xdr_opaque(xdrs, dp->d_name, namlen)) in xdr_READDIR3vres() 2224 bzero(&dp->d_name[namlen], in xdr_READDIR3vres() 2225 DIRENT64_NAMELEN(this_reclen) - namlen); in xdr_READDIR3vres() 2426 uint_t namlen; xdr_READDIRPLUS3vres() local [all...] |
H A D | nfs_xdr.c | 777 uint_t namlen; in xdr_putrddirres() local 805 namlen = (uint_t)strlen(name); in xdr_putrddirres() 807 roundup(namlen, BYTES_PER_XDR_UNIT); in xdr_putrddirres() 815 !xdr_bytes(xdrs, &name, &namlen, NFS_MAXNAMLEN) || in xdr_putrddirres() 835 uint_t namlen; in xdr_getrddirres() local 858 !xdr_u_int(xdrs, &namlen)) in xdr_getrddirres() 860 this_reclen = DIRENT64_RECLEN(namlen); in xdr_getrddirres() 865 if (!xdr_opaque(xdrs, dp->d_name, namlen)|| in xdr_getrddirres() 869 bzero(&dp->d_name[namlen], in xdr_getrddirres() 870 DIRENT64_NAMELEN(this_reclen) - namlen); in xdr_getrddirres() [all...] |
/titanic_51/usr/src/cmd/svr4pkg/hdrs/ |
H A D | install.h | 111 int namlen; /* The length of the name (mountpoint) */ member
|
/titanic_51/usr/src/uts/common/sys/fs/ |
H A D | hsfs_impl.h | 53 extern int hs_dirlook(struct vnode *dvp, char *name, int namlen,
|
/titanic_51/usr/src/uts/common/fs/udfs/ |
H A D | udf_dir.c | 340 int32_t namlen, err; in ud_direnter() local 349 for (s = namep, namlen = 0; *s; s++, namlen++) { in ud_direnter() 355 if (namlen == 0) { in ud_direnter() 366 (namlen == 1 || (namlen == 2 && namep[1] == '.'))) { in ud_direnter() 475 namep, namlen, &slot, &tip, buf, cr)) { in ud_direnter() 522 namlen, &slot, sip, sdp, cr)) { in ud_direnter()
|
/titanic_51/usr/src/boot/lib/libstand/ |
H A D | ufs.c | 451 int namlen, length; local 467 namlen = dp->d_namlen; 468 if (namlen == length &&
|
/titanic_51/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | dir.c | 366 (void) printf(" ino %d reclen %d namlen %d name `%s'\n", in dircheck() 1287 int namlen; in lftempname() local 1294 namlen = cp - bufp; in lftempname() 1295 if ((namlen > BUFSIZ) || (namlen > MAXPATHLEN)) { in lftempname()
|