Home
last modified time | relevance | path

Searched refs:d_namlen (Results 1 – 25 of 52) sorted by relevance

123

/original-bsd/lib/libc/gen/
H A Dscandir.c34 (((dp)->d_namlen + 1 + 3) &~ 3))
75 p->d_namlen = d->d_namlen;
76 bcopy(d->d_name, p->d_name, p->d_namlen + 1);
H A Dgetcwd.c301 bcopy(dp->d_name, bup, dp->d_namlen + 1);
318 if (bpt - pt <= dp->d_namlen + (first ? 1 : 2)) {
336 bpt -= dp->d_namlen;
337 bcopy(dp->d_name, bpt, dp->d_namlen);
/original-bsd/sys/ufs/ffs/
H A Ddir.h50 u_char d_namlen; /* length of string in d_name */ member
82 ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3)))
85 ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
H A Dufs_lookup.c292 namlen = ep->d_namlen;
296 namlen = ep->d_namlen;
570 namlen = ep->d_namlen;
574 namlen = ep->d_namlen;
628 newdir.d_namlen = cnp->cn_namelen;
635 { u_char tmp = newdir.d_namlen;
636 newdir.d_namlen = newdir.d_type;
855 namlen = dp->d_namlen;
859 namlen = dp->d_namlen;
/original-bsd/sys/ufs/ufs/
H A Ddir.h58 u_int8_t d_namlen; /* length of string in d_name */ member
91 ((sizeof(struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3)))
94 ((sizeof(struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
H A Dufs_lookup.c296 namlen = ep->d_namlen;
300 namlen = ep->d_namlen;
594 namlen = ep->d_namlen;
598 namlen = ep->d_namlen;
645 newdir.d_namlen = cnp->cn_namelen;
652 { u_char tmp = newdir.d_namlen;
653 newdir.d_namlen = newdir.d_type;
768 bcmp(ep->d_name, dirp->d_name, dirp->d_namlen) == 0)) {
913 namlen = dp->d_namlen;
917 namlen = dp->d_namlen;
/original-bsd/usr.bin/uucp/port/LIBNDIR/
H A Dndir.h43 u_short d_namlen; /* length of string in d_name */ member
55 ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
H A Dreaddir.c44 dir.d_namlen = strlen(dir.d_name);
/original-bsd/sbin/fsck/
H A Ddir.c103 tmp = tdp->d_namlen;
104 tdp->d_namlen = tdp->d_type;
116 tmp = tdp->d_namlen;
117 tdp->d_namlen = tdp->d_type;
159 dp->d_namlen = 0;
219 type = dp->d_namlen;
222 namlen = dp->d_namlen;
226 namlen = dp->d_namlen;
331 dirp->d_namlen = newent.d_namlen;
343 tmp = dirp->d_namlen;
[all …]
H A Dpass2.c220 proto.d_namlen = 1;
227 proto.d_type = proto.d_namlen;
228 proto.d_namlen = tmp;
263 proto.d_namlen = 2;
270 proto.d_type = proto.d_namlen;
271 proto.d_namlen = tmp;
324 if (dirp->d_namlen <= 2 &&
327 if (dirp->d_namlen == 1) {
/original-bsd/sys/isofs/cd9660/
H A Dcd9660_vnops.c475 dp->d_name[dp->d_namlen] = 0;
508 cl = idp->current.d_namlen;
517 if (!(sl = dp->d_namlen)) {
520 sl = dp->d_namlen - 1;
528 idp->assocent.d_namlen = 0;
533 idp->saveent.d_namlen = 0;
583 idp->saveent.d_namlen = idp->assocent.d_namlen = 0;
674 if (idp->current.d_namlen)
681 idp->current.d_namlen = 1;
685 idp->current.d_namlen = 2;
[all …]
/original-bsd/usr.sbin/dev_mkdb/
H A Ddev_mkdb.c109 bcopy(dp->d_name, buf, dp->d_namlen);
110 buf[dp->d_namlen] = '\0';
111 data.size = dp->d_namlen + 1;
/original-bsd/sbin/restore/
H A Ddirs.c144 nulldir.d_namlen = 1;
238 if (namelen + dp->d_namlen >= MAXPATHLEN) {
242 (void) strncat(locname, dp->d_name, (int)dp->d_namlen);
298 } while (dp->d_namlen != len || strncmp(dp->d_name, name, len) != 0);
331 dp->d_namlen = dp->d_type;
334 dp->d_namlen = dp->d_type;
342 dp->d_namlen > NAME_MAX) {
351 if (dp->d_namlen > NAME_MAX)
354 dp->d_namlen, NAME_MAX);
415 ndp->d_namlen = strlen(ndp->d_name);
H A Dinteractive.c518 if (namelen + dp->d_namlen >= MAXPATHLEN) {
523 (int)dp->d_namlen);
700 adirent.d_namlen = dp->d_namlen;
701 memmove(adirent.d_name, dp->d_name, dp->d_namlen + 1);
/original-bsd/sys/sys/
H A Ddir.h33 ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
H A Ddirent.h25 u_int8_t d_namlen; /* length of string in d_name */ member
/original-bsd/usr.bin/diff/diff/
H A Ddiffdir.c26 short d_namlen; member
207 ep->d_namlen = rp->d_namlen;
210 if (ep->d_namlen > 0) {
211 ep->d_entry = malloc(ep->d_namlen + 1);
/original-bsd/sys/news3400/newsos/
H A Dnews_compat.c52 u_short d_namlen;
60 u_short d_namlen; member
/original-bsd/sys/stand/
H A Dls.c78 if (((DP *)dp)->d_namlen > MAXNAMLEN+1) {
/original-bsd/sys/stand.att/
H A Dls.c71 if (((DP *)dp)->d_namlen > MAXNAMLEN+1) {
/original-bsd/usr.bin/learn/learn/
H A Dstart.c33 n = ep->d_namlen;
/original-bsd/sys/miscfs/procfs/
H A Dprocfs_vnops.c723 dp->d_namlen = pt->pt_namlen;
759 dp->d_namlen = i + 1;
760 bcopy("..", dp->d_name, dp->d_namlen);
767 dp->d_namlen = 7;
780 dp->d_namlen = sprintf(dp->d_name, "%ld",
/original-bsd/sys/tahoe/stand/
H A Dls.c77 if(((struct direct *)dp)->d_namlen > MAXNAMLEN+1)
/original-bsd/usr.bin/uucp/libuu/
H A Danlwrk.c147 (plen != 2 && (dentp->d_namlen-plen) != 5)) {
151 if (dentp->d_name[dentp->d_namlen-5] > MaxGrade) {
/original-bsd/local/sccscmds/sccscmds.2/util/
H A Dcurdir.c69 i = dir->d_namlen; in cat()

123