Searched refs:d_name (Results 126 - 150 of 323) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_misc.c661 DPRINTF1("Found %s\n", dp->d_name);
662 if ((strcmp(dp->d_name, ".") != 0) &&
663 (strcmp(dp->d_name, "..") != 0)) {
665 "%s/%s", tmp_path_name, dp->d_name);
1134 if (dirent->d_name[0] == '.') {
1138 dirent->d_name);
1168 if (strstr(dirent->d_name, tmpstr)) {
1380 dev->d_name = (char *)my_zalloc(strlen(user_supplied) + 1);
1381 (void) strcpy(dev->d_name, user_supplied);
1527 if (dev->d_name)
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Druptime.c138 if (strncmp(dp->d_name, "whod.", 5))
162 f = open(dp->d_name, 0);
/illumos-gate/usr/src/cmd/backup/restore/
H A Drestore.c1049 if ((dp->d_name[0] == '.' && dp->d_name[1] == '\0') ||
1050 (dp->d_name[0] == '.' && dp->d_name[1] == '.' &&
1051 dp->d_name[2] == '\0'))
1053 if ((renameat(fromdir, dp->d_name, todir, dp->d_name)) == -1) {
1056 from, dp->d_name);
/illumos-gate/usr/src/cmd/cdrw/
H A Ddae.c166 dev->d_name ? dev->d_name : gettext("CD drive"));
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass3.c338 if ((strcmp(dirp->d_name, ".") == 0) ||
339 (strcmp(dirp->d_name, "..") == 0)) {
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c364 if (dp->d_namlen == len && strcmp(path, dp->d_name) == 0)
371 printf("%s\n", dp->d_name);
382 (get_dcache(devp->di_dcookie, dp->d_name, dp->d_ino) != 0))
385 if (set_rdcache(devp->di_dcookie, dp->d_name, ip->i_number,
864 #define SLOP (sizeof (struct dirent) - offsetof(struct dirent, d_name[1]))
929 * dirent struct's "d_name"
934 n = strlen(dp->d_name);
947 (void) strcpy(dep->d_name, dp->d_name);
/illumos-gate/usr/src/cmd/cron/
H A Dat.c833 if ((r = audit_cron_is_anc_name(dentry->d_name)) == 1)
835 if (stat(dentry->d_name, &buf)) {
836 unlink(dentry->d_name);
837 audit_cron_delete_anc_file(dentry->d_name,
844 ptr = dentry->d_name;
848 strcat(job_file, dentry->d_name);
857 pw->pw_name, dentry->d_name,
863 dentry->d_name, timebuf);
/illumos-gate/usr/src/boot/sys/boot/zfs/
H A Dzfs.c288 strcpy(d->d_name, mze.mze_name);
289 d->d_namlen = strlen(d->d_name);
337 if (namelen > sizeof(d->d_name))
338 namelen = sizeof(d->d_name);
344 p = d->d_name;
355 d->d_name[sizeof(d->d_name) - 1] = 0;
365 d->d_namlen = strlen(d->d_name);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dplugins.c282 #define NAMELEN(D) strlen((D)->d_name)
480 if ((strcmp (d->d_name, ".") == 0) ||
481 (strcmp (d->d_name, "..") == 0)) {
487 if (len < 3 || strcmp(".so", d->d_name + len - 3 ) != 0)
496 sprintf (filepath, "%s/%*s", dirnames[i], len, d->d_name);
/illumos-gate/usr/src/lib/libsasl/lib/
H A Ddlopen.c77 # define NAMLEN(dirent) strlen((dirent)->d_name)
669 if (dir->d_name[0] == '.')
672 if (strcmp(dir->d_name + (length - strlen(SO_SUFFIX)),
674 && strcmp(dir->d_name + (length - strlen(LA_SUFFIX)),
679 memcpy(name,dir->d_name,length);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddocmd.c648 if ((strcmp(dp->d_name, ".") == 0) ||
649 (strcmp(dp->d_name, "..") == 0))
651 if (len + 1 + strlen(dp->d_name) >= RDIST_BUFSIZ - 1) {
652 error("%s/%s: Name too long\n", target, dp->d_name);
657 cp = dp->d_name;
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsmap.c1649 if (strcmp(direntry->d_name, ".") == 0 ||
1650 strcmp(direntry->d_name, "..") == 0)
1654 dirpath, direntry->d_name);
1996 if ((strcmp(dp->d_name, ".") == 0) ||
1997 (strcmp(dp->d_name, "..") == 0))
2000 "%s/%s", device_path, dp->d_name);
2081 if ((strcmp(dp->d_name, ".") == 0) ||
2082 (strcmp(dp->d_name, "..") == 0))
2085 "%s/%s", devpath, dp->d_name);
2089 regexec(&regex, dp->d_name,
[all...]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_traverse.c250 if (rootfs_dot_or_dotdot(ptr->d_name))
254 (void) strlcat(file_path, ptr->d_name, PATH_MAX + 1);
267 if (fs_populate_dents(darg, strlen(ptr->d_name),
268 (char *)ptr->d_name, n_entries, &st, &fh) != 0)
303 (void) strlcat(file_path, dp->d_name, PATH_MAX + 1);
308 (void) strlcpy(nm, dp->d_name, NAME_MAX + 1);
309 *el = strlen(dp->d_name);
490 * sprintf(tsp->ts_end, "/%s", de->d_name);
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dgenf.c495 if (strcmp(entp->d_name, ".") == 0 ||
496 strcmp(entp->d_name, "..") == 0)
499 if (entp->d_name[0] != 'c')
506 sprintf(namebuf, "%s/%s", dev_name, entp->d_name);
522 if (strstr(entp->d_name, s) != NULL) {
530 if (atoi(&s[1]) == atoi(&entp->d_name[1])) {
533 s, entp->d_name);
/illumos-gate/usr/src/lib/libfstyp/common/
H A Dlibfstyp.c448 if (dp->d_name[0] == '.') {
452 "%s/%s", h->libfs_dir, dp->d_name);
453 (void) fstyp_init_module(h, mdir, dp->d_name, NULL);
/illumos-gate/usr/src/lib/libvolmgt/common/
H A Dvolmgt_on_private.c498 if (strncmp(dp->d_name, mtype, mtype_len) != 0) {
503 dp->d_name);
521 if (sscanf(dp->d_name + mtype_len, "%d",
/illumos-gate/usr/src/cmd/rm/
H A Drm.c469 if (strcmp(dent->d_name, ".") == 0 ||
470 strcmp(dent->d_name, "..") == 0)
473 if (rm(dent->d_name, &frame) != 0)
/illumos-gate/usr/src/uts/common/fs/autofs/
H A Dauto_xdr.c372 * ushort_t d_namlen; * length of string in d_name *
373 * char d_name[MAXNAMLEN + 1]; * name no longer than this *
420 name = dp->d_name;
476 if (!xdr_opaque(xdrs, dp->d_name, namlen)||
481 bzero(&dp->d_name[namlen],
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsoconfig.c164 if (dirp->d_name[0] == '.')
168 dirp->d_name) >= sizeof (buf)) {
171 dirname, dirp->d_name);
/illumos-gate/usr/src/cmd/format/
H A Dstartup.c1372 if (strcmp(dp->d_name, ".") == 0 ||
1373 strcmp(dp->d_name, "..") == 0)
1375 if (!conventional_name(dp->d_name)) {
1376 if (!fdisk_physical_name(dp->d_name)) {
1382 (dp->d_name)) {
1385 (void) strcat(path, dp->d_name);
1387 dp->d_name, path);
1400 if (strcmp(dp->d_name, ".") == 0 ||
1401 strcmp(dp->d_name, "..") == 0)
1403 if (whole_disk_name(dp->d_name)) {
[all...]
/illumos-gate/usr/src/common/fs/
H A Dpcfilep.h183 char d_name[NAMESIZ]; member in struct:_dir_entry_
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dufs.h204 char d_name[MAXNAMELEN + 1]; member in struct:direct
/illumos-gate/usr/src/cmd/hal/probing/printer/
H A Dprobe-printer.c90 ep->d_name);
/illumos-gate/usr/src/cmd/lastcomm/
H A Dlc_utils.c167 (void) strcat(file_name, direntp->d_name);
/illumos-gate/usr/src/cmd/lms/tools/
H A DATVersion.cpp160 char *pidstr = namelist[num_entries]->d_name;

Completed in 353 milliseconds

1234567891011>>