Searched defs:dp (Results 1 - 25 of 708) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dreaddir.c39 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 Dftw.c117 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 Dgnamef.c45 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 Dreaddir.c64 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 Dtelldir.c58 dirent_t *dp; local
64 dp = (dirent_t *)(uintptr_t)(&dirp->dd_buf[dirp->dd_loc]);
65 off = dp->d_off;
H A Dreaddir_r.c61 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 Dseekdir.c56 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 Dmdb_create.c60 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 Dpass1b.c46 struct dinode *dp; local
66 dp = ginode(inumber);
68 (void) ckinode(dp, &idesc, CKI_TRAVERSE);
H A Dpass4.c45 struct dinode *dp; local
128 dp = ginode(inumber);
129 if (dp->di_size == 0) {
/illumos-gate/usr/src/ucbcmd/printenv/
H A Dprintenv.c51 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 Dreaddir.c62 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 Dfas_callbacks.c166 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 Dsdssc_bind.c134 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 Dpci_i86pc.c60 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 Dpci_sun4u.c66 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 Dxdr_float.c77 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 Dvs_door.c111 vs_door_scan_req(void *cookie, char *ptr, size_t size, door_desc_t *dp, argument
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_ancil.c66 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 Dfmd_ctl.c120 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 Dcmd_ecache.c61 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 Dos_dir.c52 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 Dpartial.c220 struct dinode *dp; local
222 dp = getino(ino = i);
223 mark(dp);
/illumos-gate/usr/src/ucblib/libtermcap/
H A Dtgoto.c81 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 DHBANPIVPort.cc73 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);

Completed in 1309 milliseconds

1234567891011>>