Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 25 of 155) sorted by relevance

1234567

/original-bsd/usr.sbin/config/
H A Dmkioconf.c55 dp->d_name); in vax_ioconf()
122 (!eq(mp->d_name, "uba") && !eq(mp->d_name, "bi"))) in vax_ioconf()
126 dp->d_name); in vax_ioconf()
256 eq(mp->d_name, "uba") ? dp->d_name : mp->d_name, dp->d_unit, in vax_ioconf()
299 dp->d_name); in tahoe_ioconf()
324 dp->d_name); in tahoe_ioconf()
431 eq(mp->d_name, "vba") ? dp->d_name : mp->d_name, dp->d_unit, in tahoe_ioconf()
619 dp->d_name, dp->d_name, dp->d_unit); in i386_ioconf()
768 !eq(mp->d_name, "asc") && !eq(mp->d_name, "sii")) { in pmax_ioconf()
886 eq(mp->d_name, "iop") || eq(mp->d_name, "vme")) in news_ioconf()
[all …]
H A Dconfig.y423 cur.d_name = $3;
428 cur.d_name = $3;
434 if (!eq(cur.d_name, "cd"))
493 cur.d_name = $2;
518 if (eq(cur.d_name, "mba") || eq(cur.d_name, "uba")) {
715 fl->f_fn = ns(dp->d_name);
790 if (eq(dp->d_name, dev))
814 dp->d_name = ns(dev);
839 dp->d_name = "OHNO!!!";
866 if (!eq(dev->d_name, "uba") && !eq(dev->d_name, "mba") &&
[all …]
H A Dmkglue.c41 !eq(mp->d_name, "mba")) { in ubglue()
61 !eq(mp->d_name, "mba")) { in ubglue()
140 eq(mp->d_name, "mba")) in vbglue()
156 !eq(mp->d_name, "mba")) { in vbglue()
343 eq(mp->d_name, "isa")) { in vector()
351 id->id, dp->d_name, dp->d_unit); in vector()
353 dp->d_name, dp->d_unit); in vector()
355 dp->d_name, dp->d_unit, in vector()
359 dp->d_name, dp->d_unit); in vector()
/original-bsd/usr.bin/uucp/uuclean/
H A Duuclean.c106 if (checkprefix && !chkpre(dentp->d_name))
109 if (stat(dentp->d_name, &stbuf) == -1) {
110 DEBUG(4, "stat on %s failed\n", dentp->d_name);
119 if (dentp->d_name[0] == CMDPRE)
120 notfyuser(dentp->d_name);
121 DEBUG(4, "unlink file %s\n", dentp->d_name);
122 unlink(dentp->d_name);
124 sdmail(dentp->d_name, stbuf.st_uid);
/original-bsd/usr.sbin/amd/amd/
H A Dinfo_union.c101 if (dp->d_name[0] == '.' &&
102 (dp->d_name[1] == '\0' ||
103 (dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
107 dlog("... gives %s", dp->d_name);
111 (*fn)(m, strdup(dp->d_name), val);
/original-bsd/old/berknet/
H A Dnetrm.c70 if(dp->d_name[0] != 'd'
71 || dp->d_name[1] != 'f'
72 || stat(dp->d_name,&statbuf) < 0)
77 dp->d_name[3] = dp->d_name[2];
78 rmfile(dp->d_name+3);
H A Dnetq.c92 if(dp->d_name[0] != 'c'
93 || dp->d_name[1] != 'f'
94 || stat(dp->d_name,&statbuf) < 0)
96 if(mach != dp->d_name[2])continue;
97 dp->d_name[0] = 'd';
317 if(dp->d_name[0] != 'c'
318 || dp->d_name[1] != 'f'
319 || stat( dp->d_name, &statbuf ) < 0 )
321 if( mach != dp->d_name[2] )
323 dp->d_name[0] = 'd';
[all …]
/original-bsd/lib/libc/gen/
H A Dscandir.c33 ((sizeof(struct dirent) - sizeof(dp)->d_name) + \
76 bcopy(d->d_name, p->d_name, p->d_namlen + 1);
107 return(strcmp((*(struct dirent **)d1)->d_name,
108 (*(struct dirent **)d2)->d_name));
H A Dgetcwd.c29 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
30 dp->d_name[1] == '.' && dp->d_name[2] == '\0'))
301 bcopy(dp->d_name, bup, dp->d_namlen + 1);
337 bcopy(dp->d_name, bpt, dp->d_namlen);
/original-bsd/usr.bin/learn/learn/
H A Dstart.c34 if (n >= 2 && ep->d_name[n-2] == '.' && ep->d_name[n-1] == 'c')
36 c = ep->d_name[0];
38 unlink(ep->d_name);
/original-bsd/old/vpr/
H A Dvpq.c95 if (dirp->d_name[0] != 'd')
97 if (dirp->d_name[1] != 'f')
99 if (stat(dirp->d_name, &stbuf) < 0)
116 jf = fopen(dirp->d_name, "r");
135 &(dirp->d_name[3]), stbuf.st_size, line+1);
H A Dvprm.c62 if (dirp->d_name[0] == 'd' &&
63 dirp->d_name[1] == 'f' &&
64 delcheck(dirp->d_name, *argv)) {
65 printf(" removing %s", &(dirp->d_name[3]));
/original-bsd/usr.bin/at/atq/
H A Datq.c179 if (isowner(*ptr,queue[i]->d_name))
228 if ((stat(queue[i]->d_name, &stbuf)) < 0) {
236 if (isowner(*ptr,queue[i]->d_name))
244 printdate(queue[i]->d_name);
245 powner(queue[i]->d_name);
247 printjobname(queue[i]->d_name);
504 filename = direntry->d_name;
518 if (stat((*d1)->d_name,&stbuf1) < 0)
521 if (stat((*d2)->d_name,&stbuf2) < 0)
/original-bsd/usr.bin/uucp/libuu/
H A Danlwrk.c146 if (!prefix(pre, dentp->d_name) ||
148 DEBUG(99,"bldflst rejects %s\n",dentp->d_name);
151 if (dentp->d_name[dentp->d_namlen-5] > MaxGrade) {
153 dentp->d_name);
161 if (pcompar(dentp->d_name, Filent[i-1]) <= 0)
169 DEBUG(99,"bldflst accepts %s",dentp->d_name);
171 strcpy(Filent[i], dentp->d_name);
175 DEBUG(99,"Filent full, %s rejected by bldflst\n", dentp->d_name);
/original-bsd/usr.bin/uucp/uusnap/
H A Duusnap.c155 if(*dentp->d_name == '.')
157 if(strncmp(dentp->d_name, prfx, plen) != SAME) {
159 dentp->d_name, dnam);
162 strcpy(fnam, &dentp->d_name[plen]);
216 if (strcmp(&dentp->d_name[5], X_LOCK) == SAME) {
220 if(strncmp(dentp->d_name, "LCK..", 5) == SAME) {
221 if(strncmp(&dentp->d_name[5], "tty", 3) == SAME ||
222 strncmp(&dentp->d_name[5], "cul", 3) == SAME)
224 strcpy(fnam, dentp->d_name);
251 if(*dentp->d_name == '.')
[all …]
/original-bsd/usr.bin/uucp/port/LIBNDIR/
H A Dreaddir.c42 strncpy(dir.d_name, dp->od_name, ODIRSIZ);
43 dir.d_name[ODIRSIZ] = '\0'; /* insure null termination */
44 dir.d_namlen = strlen(dir.d_name);
/original-bsd/usr.sbin/chown/
H A Dchgrp.c146 if (lstat(dp->d_name, &st) < 0) {
147 ecode = Perror(dp->d_name);
154 dp->d_name);
158 ecode = chownr(dp->d_name);
163 if (chown(dp->d_name, -1, gid) < 0 &&
164 (ecode = Perror(dp->d_name)))
/original-bsd/sys/luna68k/stand/
H A Dautoconf.c61 (strcmp((d)->d_name, (s)) == 0)
108 match_c->hp_driver->d_name,
129 printf("%s%d", hc->hp_driver->d_name, hc->hp_unit);
180 match_d->hp_driver->d_name,
201 printf("%s%d", hd->hp_driver->d_name, hd->hp_unit);
235 hc->hp_driver->d_name, hc->hp_unit);
250 if (!dr_type(hc->hp_driver, hd->hp_cdriver->d_name))
322 hd->hp_driver->d_name,
332 hd->hp_driver->d_name, hd->hp_unit,
333 hc->hp_driver->d_name, hd->hp_ctlr,
/original-bsd/usr.bin/at/atrm/
H A Datrm.c146 if (stat(namelist[i]->d_name,statptr) < 0) {
161 owner = fowner(namelist[i]->d_name);
163 removentry(namelist[i]->d_name,
195 owner = fowner(namelist[i]->d_name);
215 removentry(namelist[i]->d_name,
257 filename = direntry->d_name;
/original-bsd/usr.bin/uucp/uucico/
H A Dgnsys.c58 if (dentp->d_name[0] != pre || dentp->d_name[1] != '.')
60 p2 = dentp->d_name + dentp->d_namlen - WSUFSIZE;
61 p1 = dentp->d_name + 2;
/original-bsd/sys/sys/
H A Ddirent.h27 char d_name[255 + 1]; /* name must be no longer than this */ member
30 char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ member
/original-bsd/sys/luna68k/luna68k/
H A Dautoconf.c92 (strcmp((d)->d_name, (s)) == 0)
139 match_c->hp_driver->d_name,
160 printf("%s%d", hc->hp_driver->d_name, hc->hp_unit);
211 match_d->hp_driver->d_name,
232 printf("%s%d", hd->hp_driver->d_name, hd->hp_unit);
266 hc->hp_driver->d_name, hc->hp_unit);
281 if (!dr_type(hc->hp_driver, hd->hp_cdriver->d_name))
353 hd->hp_driver->d_name,
363 hd->hp_driver->d_name, hd->hp_unit,
364 hc->hp_driver->d_name, hd->hp_ctlr,
[all …]
/original-bsd/usr.sbin/config.new/
H A Dsem.c79 errdev.d_name = "<internal>"; in initsem()
98 fname, dev->d_name);
232 error("redefinition of `%s'", dev->d_name);
248 if (defattr(dev->d_name, nv))
250 nv = newnv(dev->d_name, NULL, getattr(dev->d_name), 0);
278 dev->d_name, a->a_name);
327 dev->d_name = name;
373 d->d_name, d->d_major);
463 nv->nv_name = dev->d_name;
657 ib->d_name);
[all …]
/original-bsd/sbin/fsck/
H A Dpass2.c199 if (dirp->d_ino != 0 && strcmp(dirp->d_name, ".") == 0) {
221 (void)strcpy(proto.d_name, ".");
232 if (dirp->d_ino != 0 && strcmp(dirp->d_name, "..") != 0) {
234 dirp->d_name);
264 (void)strcpy(proto.d_name, "..");
287 if (dirp->d_ino != 0 && strcmp(dirp->d_name, "..") == 0) {
297 if (dirp->d_ino != 0 && strcmp(dirp->d_name, ".") != 0) {
300 dirp->d_name);
325 dirp->d_name[0] == '.' &&
334 if (dirp->d_name[1] == '.') {
/original-bsd/usr.sbin/lpr/common_source/
H A Dcommon.c218 if (d->d_name[0] != 'c' || d->d_name[1] != 'f')
220 if (stat(d->d_name, &stbuf) < 0)
222 q = (struct queue *)malloc(sizeof(time_t)+strlen(d->d_name)+1);
226 strcpy(q->q_name, d->d_name);

1234567