/titanic_44/usr/src/lib/libast/common/dir/ |
H A D | getdents.c | 103 u = up->d_name; 104 while ((*u = *sp++) && u < up->d_name + MAXNAMLEN) u++; 106 … up->d_reclen = sizeof(struct dirent) - sizeof(up->d_name) + (up->d_namlen = u - up->d_name) + 1; 120 #define MAXREC roundof(sizeof(*up)-sizeof(up->d_name)+sizeof(sp->d_name)+1,8) 128 char tmp[sizeof(sp->d_name) + 1]; 146 s = sp->d_name; 148 while (s < sp->d_name + sizeof(sp->d_name) && *s) 151 strcpy(up->d_name, tmp); 152 up->d_reclen = sizeof(struct dirent) - sizeof(up->d_name) + (up->d_namlen = u - tmp) + 1;
|
/titanic_44/usr/src/cmd/chgrp/ |
H A D | chgrp.c | 399 if ((strcmp(dp->d_name, ".") == 0) || in chgrpr() 400 (strcmp(dp->d_name, "..") == 0)) { in chgrpr() 403 if (lstat(dp->d_name, &st) < 0) { in chgrpr() 404 status += Perror(dp->d_name); in chgrpr() 416 LCHOWN(dp->d_name, -1, gid); in chgrpr() 418 if (stat(dp->d_name, &st2) < 0) { in chgrpr() 419 status += Perror(dp->d_name); in chgrpr() 443 chgrpr(dp->d_name, gid); in chgrpr() 450 dp->d_name, in chgrpr() 463 dp->d_name); in chgrpr() [all …]
|
/titanic_44/usr/src/lib/libcmdutils/common/ |
H A D | process_xattrs.c | 122 if ((dp->d_name[0] == '.' && dp->d_name[1] == '\0') || in mv_xattrs() 123 (dp->d_name[0] == '.' && dp->d_name[1] == '.' && in mv_xattrs() 124 dp->d_name[2] == '\0') || in mv_xattrs() 125 (sysattr_type(dp->d_name) == _RO_SATTR) || in mv_xattrs() 126 (sysattr_type(dp->d_name) == _RW_SATTR)) in mv_xattrs() 129 if ((sattrfd = openat(indfd, dp->d_name, in mv_xattrs() 140 if ((tattrfd = openat(outdfd, dp->d_name, in mv_xattrs() 151 if (writefile(sattrfd, tattrfd, infile, outfile, dp->d_name, in mv_xattrs() 152 dp->d_name, &st1, &st2) != 0) { in mv_xattrs() 165 if (dp->d_name != NULL) in mv_xattrs() [all …]
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | dirent.h | 48 char d_name[1]; /* name of file */ member 59 char d_name[1]; /* name of file */ member 73 char d_name[1]; /* name of file */ member 81 ((offsetof(dirent64_t, d_name[0]) + 1 + (namelen) + 7) & ~ 7) 83 ((reclen) - (offsetof(dirent64_t, d_name[0]))) 85 ((offsetof(dirent32_t, d_name[0]) + 1 + (namelen) + 3) & ~ 3) 87 ((reclen) - (offsetof(dirent32_t, d_name[0])))
|
/titanic_44/usr/src/ucbhead/sys/ |
H A D | dir.h | 76 char d_name[MAXNAMLEN+1]; /* name of entry */ member 83 char d_name[MAXNAMLEN+1]; /* name of entry */ 91 char d_name[MAXNAMLEN+1]; /* name of entry */ member 104 ((sizeof (struct direct) - sizeof ((dp)->d_name) + \ 105 (strlen((dp)->d_name)+1) + 3) & ~3) 108 ((sizeof (struct direct64) - sizeof ((dp)->d_name) + \ 109 (strlen((dp)->d_name)+1) + 3) & ~3) 113 ((sizeof (struct direct64) - sizeof ((dp)->d_name) + \ 114 (strlen((dp)->d_name)+1) + 3) & ~3)
|
/titanic_44/usr/src/cmd/allocate/ |
H A D | mkdevalloc.c | 263 if (strncmp(dep->d_name, "rst", SIZE_OF_RST) && in dotape() 264 strncmp(dep->d_name, "nrst", SIZE_OF_NRST)) in dotape() 275 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1); in dotape() 279 (void) strcat(nm, dep->d_name); in dotape() 322 if (strncmp(dep->d_name, ".", 1) == NULL) in dotape() 333 nm = (char *)malloc(SIZE_OF_RMT + 1 + strlen(dep->d_name) + 1); in dotape() 337 (void) strcat(nm, dep->d_name); in dotape() 341 nm = (char *)malloc(SIZE_OF_TMP + strlen(dep->d_name) + 1); in dotape() 345 (void) strcat(nm, dep->d_name); in dotape() 348 (void) sscanf(dep->d_name, "%d", &tape[i].number); in dotape() [all …]
|
/titanic_44/usr/src/ucblib/libucb/port/gen/ |
H A D | scandir.c | 67 ((sizeof (struct direct) - sizeof ((dp)->d_name) + \ 68 (strlen((dp)->d_name)+1) + 3) & ~3) 111 for (cp1 = p->d_name, cp2 = d->d_name; *cp1++ = *cp2++; ) in scandir64() 181 for (cp1 = p->d_name, cp2 = d->d_name; *cp1++ = *cp2++; ) in scandir() 212 return (strcmp((*d1)->d_name, (*d2)->d_name)); in alphasort() 219 return (strcmp((*d1)->d_name, (*d2)->d_name)); in alphasort64()
|
H A D | readdir.c | 86 dc64.d_namlen = (ushort_t)strlen(dp->d_name); in internal_readdir() 91 (void) strcpy(dc64.d_name, dp->d_name); in internal_readdir() 112 (void) strcpy(dc.d_name, dc64.d_name); in readdir()
|
/titanic_44/usr/src/cmd/chown/ |
H A D | chown.c | 405 if (strcmp(dp->d_name, ".") == 0 || /* skip . and .. */ in chownr() 406 strcmp(dp->d_name, "..") == 0) { in chownr() 409 if (lstat(dp->d_name, &st) < 0) { in chownr() 410 status += Perror(dp->d_name); in chownr() 422 LCHOWN(dp->d_name, uid, gid); in chownr() 424 if (stat(dp->d_name, &st2) < 0) { in chownr() 425 status += Perror(dp->d_name); in chownr() 449 chownr(dp->d_name, in chownr() 461 dp->d_name); in chownr() 470 CHOWN(dp->d_name, uid, gid); in chownr() [all …]
|
/titanic_44/usr/src/cmd/fs.d/cachefs/fsck/ |
H A D | fsck.c | 521 if ((strcmp(dep->d_name, ".") == 0) || in cfs_check() 522 (strcmp(dep->d_name, "..") == 0)) in cfs_check() 526 xx = strlen(cachedirp) + strlen(dep->d_name) + 3; in cfs_check() 529 cachedirp, dep->d_name); in cfs_check() 536 sprintf(buf, "%s/%s", cachedirp, dep->d_name); in cfs_check() 566 if ((strcmp(dep->d_name, ".") == 0) || in cfs_check() 567 (strcmp(dep->d_name, "..") == 0)) in cfs_check() 571 sprintf(buf, "%s/%s", cachedirp, dep->d_name); in cfs_check() 600 xx = process_fsdir(cachedirp, dep->d_name, resp, verbose); in cfs_check() 612 if ((strcmp(dep->d_name, ".") == 0) || in cfs_check() [all …]
|
/titanic_44/usr/src/lib/libbc/libc/sys/common/ |
H A D | getdents.c | 44 char d_name[1]; member 90 strlen(ndir->d_name) + ALIGN) & ~(ALIGN - 1)) < 95 dir->d_namlen = strlen(ndir->d_name); 98 strncpy(dir->d_name, ndir->d_name, dir->d_namlen); 99 dir->d_name[dir->d_namlen] = '\0';
|
/titanic_44/usr/src/cmd/make/bin/ |
H A D | files.cc | 344 ((dp->d_name[0] == (int) period_char) && in read_dir() 345 ((dp->d_name[1] == 0) || in read_dir() 346 ((dp->d_name[1] == (int) period_char) && in read_dir() 347 (dp->d_name[2] == 0))))) { in read_dir() 354 MBSTOWCS(tmp_wcs_buffer, dp->d_name); in read_dir() 381 if ((dp->d_name[0] == 's') && in read_dir() 382 (dp->d_name[1] == (int) period_char)) { in read_dir() 384 MBSTOWCS(tmp_wcs_buffer, dp->d_name + 2); in read_dir() 396 MBSTOWCS(tmp_wcs_buffer, dp->d_name + 2); in read_dir() 490 ((dp->d_name[0] == (int) period_char) && in read_dir() [all …]
|
/titanic_44/usr/src/cmd/svr4pkg/libinst/ |
H A D | scriptvfy.l | 778 printf("Looking at file %s\n", dp->d_name); 815 if (dp->d_name[0] == '.') 818 if ((strcmp(dp->d_name, "preinstall") == 0) || 819 (strcmp(dp->d_name, "preremove") == 0)) { 820 sprintf(path, "%s/%s", inst_dir, dp->d_name); 821 retval |= pre_valid(dp->d_name, path, silent); 825 if ((strncmp(dp->d_name, "i.", 2) == 0) || 826 (strncmp(dp->d_name, "r.", 2) == 0)) { 827 sprintf(path, "%s/%s", inst_dir, dp->d_name); 828 retval |= cas_valid(dp->d_name, path, silent); [all …]
|
/titanic_44/usr/src/cmd/cron/ |
H A D | atq.c | 235 if ((stat(queue[i]->d_name, &stbuf)) < 0) { in countfiles() 288 if ((stat(queue[i]->d_name, &stbuf)) < 0) { in printqueue() 291 curqueue = *(strchr(queue[i]->d_name, '.') + 1); in printqueue() 309 printdate(queue[i]->d_name); in printqueue() 311 printf("%-14s ", queue[i]->d_name); in printqueue() 313 printjobname(queue[i]->d_name); in printqueue() 464 if ((p1 = strchr((*d1)->d_name, '.')) == NULL) in creation() 466 if ((p2 = strchr((*d2)->d_name, '.')) == NULL) in creation() 473 if (stat((*d1)->d_name, &stbuf1) < 0) in creation() 476 if (stat((*d2)->d_name, &stbuf2) < 0) in creation() [all …]
|
/titanic_44/usr/src/cmd/ypcmd/ |
H A D | ypserv_ancil.c | 98 namesz = (int)strlen(dp->d_name); 103 ext = &(dp->d_name[namesz - (sizeof (dbm_pag) - 1)]); 116 if (0 != strncmp(dp->d_name, NTOL_PREFIX, 124 mapname = dp->d_name + strlen(NTOL_PREFIX); 126 if (0 == strncmp(dp->d_name, NTOL_PREFIX, 129 mapname = dp->d_name;
|
/titanic_44/usr/src/stand/lib/fs/nfs/ |
H A D | getdents4.c | 57 ((offsetof(dirent_t, d_name[0]) + 1 + (namelen) + 7) & ~ 7) 194 dep->d_name[0] = '.'; in nfs4getdents() 195 dep->d_name[1] = '\0'; in nfs4getdents() 209 dep->d_name[0] = '.'; in nfs4getdents() 210 dep->d_name[1] = '.'; in nfs4getdents() 211 dep->d_name[2] = '\0'; in nfs4getdents() 240 bcopy(ep->b_name.utf8string_val, dep->d_name, namlen); in nfs4getdents() 241 dep->d_name[namlen] = '\0'; in nfs4getdents()
|
/titanic_44/usr/src/cmd/acpi/acpidump/ |
H A D | osunixdir.c | 146 if (!fnmatch (ExternalInfo->WildcardSpec, dir_entry->d_name, 0)) in AcpiOsGetNextFilename() 148 if (dir_entry->d_name[0] == '.') in AcpiOsGetNextFilename() 153 str_len = strlen (dir_entry->d_name) + in AcpiOsGetNextFilename() 166 strcat (temp_str, dir_entry->d_name); in AcpiOsGetNextFilename() 188 strcpy (ExternalInfo->temp_buffer, dir_entry->d_name); in AcpiOsGetNextFilename()
|
/titanic_44/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | merginfo.c | 452 if (dp->d_name[0] == '.') in merginfo() 456 instdir, dp->d_name); in merginfo() 459 dp->d_name); in merginfo() 464 dp->d_name); in merginfo() 466 progerr(ERR_CREATE_PATH_2, pkgbin, dp->d_name); in merginfo() 471 progerr(ERR_CANNOT_COPY, dp->d_name, pkgbin); in merginfo() 495 if (dp->d_name[0] == '.') in merginfo() 504 if (strcmp(dp->d_name, "i.none") == 0) in merginfo() 508 instdir, dp->d_name); in merginfo() 512 "/install/", dp->d_name); in merginfo() [all …]
|
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | getcwd.c | 46 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ 47 (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) 173 memmove(bup, dp->d_name, dp->d_namlen + 1); in getcwd() 211 memmove(bpt, dp->d_name, dp->d_namlen); in getcwd()
|
/titanic_44/usr/src/cmd/lp/lib/lp/ |
H A D | next.c | 76 STREQU(direntp->d_name, ".") 77 || STREQU(direntp->d_name, "..") 78 || !is(parent, direntp->d_name, what) 83 if (!(ret = Strdup(direntp->d_name)))
|
/titanic_44/usr/src/cmd/mv/ |
H A D | mv.c | 1266 if ((strcmp(dp->d_name, ".") == 0) || in rcopy() 1267 (strcmp(dp->d_name, "..") == 0)) in rcopy() 1269 if (strlen(from)+1+strlen(dp->d_name) >= in rcopy() 1273 cmd, from, dp->d_name); in rcopy() 1278 "%s/%s", from, dp->d_name); in rcopy() 1750 " %s: %s"), cmd, dp->d_name, 1766 "%s\n"), cmd, dp->d_name, target); 1775 dp->d_name, dp->d_name, &s3, &s4) != 0) { 1791 " %s: "), cmd, dp->d_name, target); 1803 if (utimensat(targetdirfd, dp->d_name, times, 0) < 0) { [all …]
|
/titanic_44/usr/src/uts/i86pc/io/dr/ |
H A D | dr_quiesce.c | 357 char d_name[40], d_alias[40], *d_info; in dr_suspend_devices() local 388 d_name[0] = 0; in dr_suspend_devices() 389 if (dr_resolve_devname(dip, d_name, d_alias) == 0) { in dr_suspend_devices() 392 d_name, d_info, d_alias); in dr_suspend_devices() 394 prom_printf("\tsuspending %s@%s\n", d_name, in dr_suspend_devices() 403 d_name[0] ? d_name : dname, d_info); in dr_suspend_devices() 413 d_name[0] ? d_name : dname, d_info); in dr_suspend_devices() 455 char d_name[40], d_alias[40], *d_info; in dr_resume_devices() local 457 d_name[0] = 0; in dr_resume_devices() 462 if (!dr_resolve_devname(dip, d_name, d_alias)) { in dr_resume_devices() [all …]
|
/titanic_44/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_quiesce.c | 358 char d_name[40], d_alias[40], *d_info; in dr_suspend_devices() local 389 d_name[0] = 0; in dr_suspend_devices() 390 if (dr_resolve_devname(dip, d_name, d_alias) == 0) { in dr_suspend_devices() 393 d_name, d_info, d_alias); in dr_suspend_devices() 395 prom_printf("\tsuspending %s@%s\n", d_name, in dr_suspend_devices() 404 d_name[0] ? d_name : dname, d_info); in dr_suspend_devices() 414 d_name[0] ? d_name : dname, d_info); in dr_suspend_devices() 456 char d_name[40], d_alias[40], *d_info; in dr_resume_devices() local 458 d_name[0] = 0; in dr_resume_devices() 463 if (!dr_resolve_devname(dip, d_name, d_alias)) { in dr_resume_devices() [all …]
|
/titanic_44/usr/src/lib/sun_fc/common/ |
H A D | HBANPIVPort.cc | 92 if (strcmp(dirp->d_name, ".") == 0 || in lookupControllerPath() 93 strcmp(dirp->d_name, "..") == 0) { in lookupControllerPath() 96 sprintf(node, "%s/%s", dir, dirp->d_name); in lookupControllerPath() 102 cfg_path += dirp->d_name; in lookupControllerPath()
|
/titanic_44/usr/src/lib/libdevinfo/ |
H A D | devinfo_finddev.c | 125 if ((strcmp(dp->d_name, ".") == 0) || in finddev_readdir_alt() 126 (strcmp(dp->d_name, "..") == 0)) in finddev_readdir_alt() 142 if ((strcmp(dp->d_name, ".") == 0) || in finddev_readdir_alt() 143 (strcmp(dp->d_name, "..") == 0)) in finddev_readdir_alt() 153 handle->paths[n] = strdup(dp->d_name); in finddev_readdir_alt() 274 if ((strcmp(dp->d_name, ".") == 0) || in finddev_emptydir_alt() 275 (strcmp(dp->d_name, "..") == 0)) in finddev_emptydir_alt()
|