Searched refs:d_name (Results 51 - 75 of 323) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/fs.d/nfs/statd/
H A Dsm_svc.c322 if (strcmp(dirp->d_name, ".") != 0 &&
323 strcmp(dirp->d_name, "..") != 0) {
324 if (strlen(path_dir) + strlen(dirp->d_name) +2 >
329 dirp->d_name);
335 (void) strcat(tmp_path, dirp->d_name);
366 if (strcmp(dirp->d_name, ".") == 0 ||
367 strcmp(dirp->d_name, "..") == 0) {
373 (void) strcat(path, dirp->d_name);
390 (void) create_symlink(to_dir, rname, dirp->d_name);
397 (void) strcat(path, dirp->d_name);
[all...]
H A Dsm_statd.c231 if (strcmp(dirp->d_name, ".") != 0 &&
232 strcmp(dirp->d_name, "..") != 0) {
234 (void) move_file(CURRENT, dirp->d_name, BACKUP);
283 (void) sprintf(buf, "%s/%s", BACKUP, dirp->d_name);
304 name = strdup(dirp->d_name);
308 dirp->d_name);
316 "for name %s.\n", dirp->d_name);
342 if (strcmp(dirp->d_name, ".") == 0 ||
343 strcmp(dirp->d_name, "..") == 0) {
347 (void) sprintf(buf, "%s/%s", BACKUP, dirp->d_name);
[all...]
/illumos-gate/usr/src/cmd/cron/
H A Datrm.c164 (void) removentry(namelist[i]->d_name,
199 if (strcmp(namelist[i]->d_name, *argv))
207 if (removentry(namelist[i]->d_name, statlist[i],
361 if (stat(namelist[i]->d_name, statptr) < 0) {
362 atperror2("Can't stat", namelist[i]->d_name);
H A Dfuncs.c206 p = direntry->d_name;
208 if (p == direntry->d_name)
215 if (audit_cron_is_anc_name(direntry->d_name))
/illumos-gate/usr/src/cmd/csh/
H A Dsh.exec.c407 if (dp->d_name[0] == '.' &&
408 (dp->d_name[1] == '\0' ||
409 dp->d_name[1] == '.' && dp->d_name[2] == '\0'))
411 hashval = hash(hashname(strtots(curdir_, dp->d_name)),
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c253 udp->d_name[0] == '.' &&
254 udp->d_name[1] == '\0')
257 udp->d_name[0] == '.' &&
258 udp->d_name[1] == '.' &&
259 udp->d_name[2] == '\0')
261 if (udp->d_namlen == len && (strcmp(path, udp->d_name) == 0)) {
271 printf("%s\n", udp->d_name);
779 udp->d_name[0] = '.';
780 udp->d_name[1] = '\0';
784 udp->d_name[
[all...]
/illumos-gate/usr/src/cmd/sh/
H A Dexpand.c174 if (e->d_name[0] == '.' && *cs != '.')
177 if (gmatch(e->d_name, cs)) {
178 addg(s, (unsigned char *)e->d_name, rescan,
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dcheck.c220 if ((strcmp(dp->d_name, "preremove") == NULL) ||
221 (strcmp(dp->d_name, "postremove") == NULL) ||
222 (strncmp(dp->d_name, "r.", 2) == NULL)) {
/illumos-gate/usr/src/lib/sun_sas/common/
H A Ddevlink_disco.c190 if (strcmp(dirp->d_name, ".") == 0 ||
191 strcmp(dirp->d_name, "..") == 0) {
195 * set to another pointer since dirp->d_name length is 1
198 charptr = dirp->d_name;
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_quiesce.c316 char d_name[40], d_alias[40], *d_info; local
340 d_name[0] = 0;
341 if (sbdp_resolve_devname(dip, d_name, d_alias) == 0) {
344 d_name, d_info, d_alias);
347 d_name, d_info);
436 char d_name[40], d_alias[40], *d_info; local
438 d_name[0] = 0;
443 if (!sbdp_resolve_devname(dip, d_name,
448 d_name, d_info,
453 d_name, d_inf
[all...]
/illumos-gate/usr/src/cmd/backup/dump/
H A Dlftw.c241 if (strcmp(dp->d_name, ".") != 0 &&
242 strcmp(dp->d_name, "..") != 0) {
246 (void) strncpy(component, dp->d_name, sublen);
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ffs.c271 && (!*dirname || substring (dirname, dp->d_name) <= 0))
276 print_a_completion (dp->d_name);
280 while (!dp->d_ino || (substring (dirname, dp->d_name) != 0
H A Dfsys_ufs2.c292 && (!*dirname || substring (dirname, dp->d_name) <= 0))
297 print_a_completion (dp->d_name);
301 while (!dp->d_ino || (substring (dirname, dp->d_name) != 0
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_cmd.c385 nsize = strlen(((struct dirent64 *)data)->d_name);
389 iname = ((struct dirent64 *)data)->d_name;
390 oname = ((struct dirent64 *)newdata)->d_name;
403 ret = strlen(((struct dirent64 *)newdata)->d_name);
455 iname = dp->d_name;
457 oname = ndp->d_name;
474 ndp->d_name[ilen] = '\0';
479 ndp->d_reclen = DIRENT64_RECLEN(strlen(ndp->d_name) + 1);
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_quiesce.c358 char d_name[40], d_alias[40], *d_info; local
389 d_name[0] = 0;
390 if (dr_resolve_devname(dip, d_name, d_alias) == 0) {
393 d_name, d_info, d_alias);
395 prom_printf("\tsuspending %s@%s\n", d_name,
404 d_name[0] ? d_name : dname, d_info);
414 d_name[0] ? d_name : dname, d_info);
456 char d_name[4 local
[all...]
/illumos-gate/usr/src/cmd/backup/restore/
H A Ddirs.c78 char d_name[ODIRSIZ]; member in struct:odirect
150 (void) strcpy(nulldir.d_name, "/");
256 if (dp != NULL && strcmp(dp->d_name, ".") == 0)
262 if (dp != NULL && strcmp(dp->d_name, "..") == 0)
278 locname, dp->d_name, MAXCOMPLEXLEN);
281 (void) strcpy(locname + loclen, dp->d_name);
315 strcmp(dp->d_name, "..") == 0) {
399 } while (dp->d_namlen != len || strncmp(dp->d_name, cp, len) != 0);
500 /* Note that odp->d_name may not be null-terminated */
502 assert(sizeof (ndp->d_name) > sizeo
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnegprot.c77 const char *d_name; member in struct:smb_dialect
183 mb_put_astring(mbp, dp->d_name);
217 DPRINT("Dialect %s", dp->d_name);
220 DPRINT("old dialect %s", dp->d_name);
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_events.c242 if (strncmp(dp->d_name, NWAM_EVENT_MSG_FILE,
247 NWAM_EVENT_MSG_DIR, dp->d_name);
346 if (strncmp(dp->d_name, NWAM_EVENT_MSG_FILE,
351 NWAM_EVENT_MSG_DIR, dp->d_name);
/illumos-gate/usr/src/lib/libc/port/gen/
H A D_xftw.c209 if (strcmp(direntp->d_name, ".") == 0 ||
210 strcmp(direntp->d_name, "..") == 0)
215 subpath = malloc(n + strlen(direntp->d_name) + 2);
226 (void) strlcpy(&subpath[n], direntp->d_name, MAXNAMELEN);
/illumos-gate/usr/src/lib/libcommputil/common/
H A Dsdp_parse.h70 boolean_t d_name; /* Name field */ member in struct:sdp_description
/illumos-gate/usr/src/cmd/news/
H A Dnews.c193 strncpy (fname, nf->d_name, (unsigned) strlen(nf->d_name) + 1);
198 while (*p && strncmp (*p, nf->d_name, MAXNAMLEN))
218 nf->d_name, MAXNAMLEN);
/illumos-gate/usr/src/cmd/cdrw/
H A Ddevice.h43 char *d_name; member in struct:_device
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Ddockdeps.c387 if (drp->d_name[0] == '.')
390 if (strcmp(drp->d_name, rmpkginst) == 0)
393 "%s/%s/%s", pkgdir, drp->d_name, DEPEND_FILE);
397 ckpreq(fp, drp->d_name, a_preinstallCheck);
/illumos-gate/usr/src/cmd/svr4pkg/pkgchk/
H A Dckentry.c227 if (strcmp(drp->d_name, ".") == NULL ||
228 strcmp(drp->d_name, "..") == NULL)
231 dirname, drp->d_name);
249 if (strcmp(drp->d_name, &mine.path[len+1]) ==
/illumos-gate/usr/src/lib/sun_fc/common/
H A DHBAPort.cc229 if (strcmp(dirp->d_name, ".") == 0 ||
230 strcmp(dirp->d_name, "..") == 0) {
233 sprintf(node, "%s/%s", dir, dirp->d_name);
239 cfg_path += dirp->d_name;

Completed in 150 milliseconds

1234567891011>>