/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | readdir.c | 39 register struct dirent *dp; local 44 dp = (struct dirent *)&dirp->dd_buf[dirp->dd_loc]; 46 dirp->dd_loc += dp->d_reclen; 60 dp = (struct dirent *)&dirp->dd_buf[dirp->dd_loc]; 61 if (dp->d_reclen <= 0) 63 if (dp->d_fileno == 0) 65 dirp->dd_off = dp->d_off; 66 return(dp);
|
H A D | ftw.c | 117 struct direct *dp; local 189 while((dp = readdir(dirp)) != NULL) { 190 if(strcmp(dp->d_name, ".") != 0 && 191 strcmp(dp->d_name, "..") != 0) { 195 (void)strcpy(component, dp->d_name); 234 * the final readdir is in dp. Clean up.
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | gnamef.c | 45 register struct dirent *dp = &dentry; local 48 if ((dp = readdir(p)) == NULL) 50 if (dp->d_ino != 0 && dp->d_name[0] != '.') 54 (void) strncpy(filename, dp->d_name, MAXBASENAME);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | readdir.c | 64 dirent_t *dp; /* -> directory data */ local 68 dp = (dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; 70 dirp->dd_loc += (int)dp->d_reclen;
|
H A D | telldir.c | 58 dirent_t *dp; local 64 dp = (dirent_t *)(uintptr_t)(&dirp->dd_buf[dirp->dd_loc]); 65 off = dp->d_off;
|
H A D | readdir_r.c | 61 dirent_t *dp; /* -> directory data */ local 66 dp = (dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; 68 dirp->dd_loc += (int)dp->d_reclen; 88 dp = (dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; 89 (void) memcpy(entry, dp, (size_t)dp->d_reclen);
|
H A D | seekdir.c | 56 dirent_t *dp; local 61 dp = (dirent_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc]; 62 off = dp->d_off;
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_create.c | 60 struct dirent *dp; local 76 while ((dp = readdir(dir)) != NULL) { 77 if (dp->d_name[0] == '.') 79 if ((q = strrchr(dp->d_name, '.')) == NULL || 83 (void) mdb_snprintf(p, sizeof (buf) - len, "/%s", dp->d_name);
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass1b.c | 46 struct dinode *dp; local 66 dp = ginode(inumber); 68 (void) ckinode(dp, &idesc, CKI_TRAVERSE);
|
H A D | pass4.c | 45 struct dinode *dp; local 128 dp = ginode(inumber); 129 if (dp->di_size == 0) {
|
/illumos-gate/usr/src/ucbcmd/printenv/ |
H A D | printenv.c | 51 static int prefix(char *cp, char *dp); 79 prefix(char *cp, char *dp) argument 82 while (*cp && *dp && *cp == *dp) 83 cp++, dp++; 85 return (*dp == '=');
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | readdir.c | 62 struct dirent64 *dp; /* -> directory data */ local 66 dp = (struct dirent64 *)&dirp->dd_buf[dirp->dd_loc]; 68 dirp->dd_loc += dp->d_reclen; 81 dp = (struct dirent64 *)&dirp->dd_buf[dirp->dd_loc]; 84 dc64.d_ino = dp->d_ino; 85 dc64.d_reclen = dp->d_reclen; 86 dc64.d_namlen = (ushort_t)strlen(dp->d_name); 91 (void) strcpy(dc64.d_name, dp->d_name);
|
/illumos-gate/usr/src/uts/sun/io/scsi/adapters/ |
H A D | fas_callbacks.c | 166 register struct fas_cmd *dp = fas->f_c_qb; local 167 ASSERT(dp != NULL); 170 dp->cmd_forw = sp;
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | sdssc_bind.c | 134 void *dp; local 151 if ((dp = dlopen(SDSSC_PATH, RTLD_LAZY)) == NULL) { 161 if ((lb = (int (*)())dlsym(dp, "_bind_library")) != NULL) { 174 if ((*ftp->fptr = dlsym(dp, ftp->fname)) == NULL) {
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/pcibus/ |
H A D | pci_i86pc.c | 60 parent_is_rc(topo_mod_t *mod, did_t *dp) argument 62 return (strcmp(topo_node_name(did_gettnode(dp)), PCIEX_ROOT) == 0); 71 ba_is_2(topo_mod_t *mod, did_t *dp) argument 77 ptp = did_gettnode(dp); 100 ba_is_4(topo_mod_t *mod, did_t *dp) argument 106 ptp = did_gettnode(dp);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4u/pcibus/ |
H A D | pci_sun4u.c | 66 sunfire_test_func(topo_mod_t *mod, did_t *dp) argument 73 tp = did_gettnode(dp); 76 topo_mod_dprintf(mod, "%s: dp=0x%p, tp=0x%p\n", 77 __func__, dp, tp); 82 binding_name = di_binding_name(did_dinode(dp)); 96 n = di_compatible_names(did_dinode(dp), &compatible_names); 113 (dp = did_find(mod, topo_node_getspecific(tp))) == NULL) {
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | xdr_float.c | 77 xdr_double(XDR *xdrs, double *dp) argument 79 int64_t *i64p = (int64_t *)dp; 90 ret = XDR_GETBYTES(xdrs, (char *)dp, sizeof (double)); 216 xdr_double(XDR *xdrs, double *dp) argument 232 d = *dp; 300 *dp = d;
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_door.c | 111 vs_door_scan_req(void *cookie, char *ptr, size_t size, door_desc_t *dp, argument
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypserv_ancil.c | 66 struct dirent *dp; local 92 for (dp = readdir(dirp); error == YP_TRUE && dp != NULL; 93 dp = readdir(dirp)) { 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 [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_ctl.c | 120 const fmd_ctl_desc_t *dp; local 139 for (dp = _fmd_ctls; dp->cde_class != NULL; dp++) { 140 if (strcmp(class, dp->cde_class) == 0) 144 cp->ctl_func = vers > dp->cde_vers ? &fmd_ctl_inval : dp->cde_func;
|
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_ecache.c | 61 struct dirent *dp; local 68 while ((dp = readdir(mcdir)) != NULL) { 72 if (strncmp(dp->d_name, pref, strlen(pref)) != 0) 75 (void) snprintf(path, sizeof (path), "%s/%s", dir, dp->d_name);
|
/illumos-gate/usr/src/cmd/sendmail/db/os/ |
H A D | os_dir.c | 52 struct dirent *dp; local 63 for (arraysz = cnt = 0; (dp = readdir(dirp)) != NULL; ++cnt) { 70 if ((ret = __os_strdup(dp->d_name, &names[cnt])) != 0)
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | partial.c | 220 struct dinode *dp; local 222 dp = getino(ino = i); 223 mark(dp);
|
/illumos-gate/usr/src/ucblib/libtermcap/ |
H A D | tgoto.c | 81 char *dp = result; local 96 *dp++ = (char) c; 116 *dp++ = (which / 100) | '0'; 122 *dp++ = which / 10 | '0'; 124 *dp++ = which % 10 | '0'; 177 *dp++ = (char) which; 191 *dp++ = (char) c; 210 (void) strcpy(dp, added);
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | HBANPIVPort.cc | 73 DIR *dp; local 81 if ((dp = opendir(dir)) == NULL) { 91 while ((readdir_r(dp, dirp, dirpp)) == 0 && dirp != NULL) { 103 closedir(dp); 110 closedir(dp);
|