/ast/src/cmd/3d/ |
H A D | fchdir3d.c | 31 Dir_t* dp; local 34 if (fd >= 0 && fd < elementsof(state.file) && (dp = state.file[fd].dir) && !FSTAT(fd, &st) && dp->dev == st.st_dev && dp->ino == st.st_ino) 35 chdir(dp->path);
|
H A D | pathcanon.c | 40 register char* dp = path; local 42 register char* begin = dp; 47 if (!size) size = strlen(dp) + 1; 49 if (*dp == '/' && *(dp + 1) == '/') 50 path = ++dp; 52 if (*dp != '/') dp--; 53 sp = dp; 93 if (dp < begi [all...] |
H A D | rmdir3d.c | 31 register DIRDIR* dp; local 38 if (!(dp = OPENDIR(path))) return(0); 42 if (!(ep = (struct DIRdirent*)READDIR(dp))) 46 CLOSEDIR(dp); 49 SEEKDIR(dp, 0L); 77 CLOSEDIR(dp);
|
H A D | open3d.c | 289 Dir_t* dp; local 296 if (dp = newof(0, Dir_t, 1, strlen(sp))) 298 strcpy(dp->path, sp); 299 dp->dev = st.st_dev; 300 dp->ino = st.st_ino; 301 state.file[r].dir = dp;
|
/ast/src/lib/libcs/ |
H A D | msgblast.c | 43 struct dirent* dp; local 111 (ap++)->pointer = (void*)(dp = (struct dirent*)vp); 112 while (n = msggetz(&b, e, dp->d_name, sizeof(dp->d_name))) 116 dp->d_namlen = n; 119 dp->d_fileno = 123 dp->d_off = 0; 125 n = D_RECSIZ(dp, n); 127 dp->d_reclen = n; 129 dp [all...] |
H A D | msgsend.c | 39 register struct dirent* dp; local 62 dp = (struct dirent*)data; 63 de = (struct dirent*)((char*)dp + ret); 64 while (dp < de) 66 i = D_NAMLEN(dp); 67 msgputz(&b, e, dp->d_name, i + 1); 68 msgputu(&b, e, D_FILENO(dp)); 70 i = dp->d_reclen; 72 i = D_RECSIZ(dp, i); 74 dp [all...] |
H A D | msglist.c | 112 struct dirent* dp; local 166 dp = (struct dirent*)(ap++)->pointer; 167 de = (struct dirent*)((char*)dp + msg->ret.number); 169 while (dp < de) 172 r += sfprintf(sp, " %lu", dp->d_fileno); 174 i = D_NAMLEN(dp); 175 r += buffer(sp, dp->d_name, i); 177 i = dp->d_reclen; 179 i = D_RECSIZ(dp, i); 181 dp [all...] |
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_dir.c | 33 register rdirent_t* dp; local 48 dp = head; 50 while (dp != NULL) 52 if (!marker && R_ISMARKER(dp->tag)) 54 if ((dp->tag->stat.st_ctime < tp->stat.st_ctime) && markermatch(dp->tag->version, tp->version)) 56 *prev_posn = dp->next; 57 ndp = dp->next; 58 free((char *)dp->tag); 59 free((char *)dp); 114 register rdirent_t* dp; local [all...] |
/ast/src/lib/libast/path/ |
H A D | pathfind.c | 56 register Dir_t* dp; local 61 for (dp = state.head; dp; dp = dp->next) 62 if (streq(dir, dp->dir)) 64 if (!(dp = oldof(0, Dir_t, 1, strlen(dir)))) 66 strcpy(dp->dir, dir); 67 dp->next = 0; 69 state.tail = state.tail->next = dp; 87 register Dir_t* dp; local [all...] |
/ast/src/lib/libast/regex/ |
H A D | regsub.c | 35 subold(register Sfio_t* dp, const char* op, register const char* sp, size_t nmatch, register regmatch_t* match, register regflags_t flags, int sre) argument 53 sfputc(dp, c); 62 sfputc(dp, chresc(sp - 1, &s)); 69 sfputc(dp, c); 76 sfputc(dp, c); 99 sfputc(dp, c); 128 sfputc(dp, c); 146 sfputc(dp, c); 190 sfputc(dp, chresc(sp - 2, &s)); 203 sfputc(dp, * 242 regsub(const regex_t* p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* match, regflags_t flags) argument [all...] |
/ast/src/lib/libast/stdio/ |
H A D | vfwscanf.c | 39 wideexcept(Sfio_t* f, int op, void* val, Sfdisc_t* dp) argument 52 free(dp); 65 wideread(Sfio_t* f, Void_t* buf, size_t size, Sfdisc_t* dp) argument 67 register Wide_t* w = (Wide_t*)dp;
|
/ast/src/lib/libast/uwin/ |
H A D | err.c | 52 struct _astdll* dp = _ast_getdll(); local 56 if (s = dp->_ast__argv[0])
|
/ast/src/cmd/pzip/ |
H A D | pzip.c | 200 Sfio_t* dp; local 217 if (!(dp = sfstropen())) 240 sfprintf(dp, "library=%s\n", opt_info.arg); 243 sfputr(dp, opt_info.arg, '\n'); 251 sfprintf(dp, "row=%d\n", opt_info.num); 258 sfprintf(dp, "split%s%s\n", opt_info.arg ? "=" : "", opt_info.arg ? opt_info.arg : ""); 288 sfprintf(dp, "regress\n"); 291 sfprintf(dp, "test=%s\n", opt_info.arg); 297 sfprintf(dp, "prefix=%s\n", opt_info.arg); 304 sfputr(dp, opt_inf [all...] |
/ast/src/cmd/std/ |
H A D | banner.c | 184 register const char *cp,*dp; local 192 dp = delim; 193 for (n = 0, cp = string; c = ccmapchr(map, *cp++) & 0x07f; dp++) 195 if(*dp==0) 196 dp = delim; 211 sfputc(sfstdout,*dp);
|
H A D | iconv.c | 78 optinfo(Opt_t* op, Sfio_t* sp, const char* s, Optdisc_t* dp) argument
|
/ast/src/cmd/builtin/ |
H A D | uudecode.c | 64 optinfo(Opt_t* op, Sfio_t* sp, const char* s, Optdisc_t* dp) argument
|
H A D | uuencode.c | 63 optinfo(Opt_t* op, Sfio_t* sp, const char* s, Optdisc_t* dp) argument
|
/ast/src/lib/libast/comp/ |
H A D | wordexp.c | 43 register char *sp=string, *dp; local 49 if((dp=sp) > string && sp[-1]=='$') 54 *dp++ = *++sp; 59 *dp++ = c; 61 *dp=0; 62 return(dp-string);
|
/ast/src/lib/libast/disc/ |
H A D | sfdcprefix.c | 47 static ssize_t pfxwrite(Sfio_t* f, const Void_t* buf, register size_t n, Sfdisc_t* dp) argument 49 static ssize_t pfxwrite(f, buf, n, dp) 53 Sfdisc_t* dp; 56 register Prefix_t* pfx = (Prefix_t*)dp; 80 sfwr(f, pfx->prefix, n > 1 ? pfx->length : pfx->empty, dp); 81 w += sfwr(f, s, n, dp); 95 static int pfxexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* dp) argument 97 static int pfxexcept(f, type, data, dp) 101 Sfdisc_t* dp; 105 free(dp); [all...] |
H A D | sfdcmore.c | 59 static ssize_t moreread(Sfio_t* f, void* buf, size_t n, Sfdisc_t* dp) argument 61 static ssize_t moreread(f, buf, n, dp) 65 Sfdisc_t* dp; 68 register More_t* more = (More_t*)dp; 73 return sfrd(f, buf, n, dp); 82 static int ttyquery(Sfio_t* rp, Sfio_t* wp, const char* label, Sfdisc_t* dp) argument 84 static int ttyquery(rp, wp, label, dp) 88 Sfdisc_t* dp; 136 sfwr(wp, label, n, dp); 147 static ssize_t morewrite(Sfio_t* f, const Void_t* buf, register size_t n, Sfdisc_t* dp) argument 260 moreexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* dp) argument [all...] |
/ast/src/lib/libbz/ |
H A D | sfdcbzip.c | 74 sfbzexcept(Sfio_t* sp, int op, void* val, Sfdisc_t* dp) argument 76 register Sfbzip_t* bz = (Sfbzip_t*)dp; 110 free(dp); 134 sfbzread(Sfio_t* fp, Void_t* buf, size_t size, Sfdisc_t* dp) argument 136 register Sfbzip_t* bz = (Sfbzip_t*)dp; 146 sfbzwrite(Sfio_t* fp, const Void_t* buf, size_t size, Sfdisc_t* dp) argument 148 register Sfbzip_t* bz = (Sfbzip_t*)dp;
|
/ast/src/cmd/ksh93/bltins/ |
H A D | cd_pwd.c | 56 register const char *dp; local 101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=sh_scoped(shp,CDPNOD)->nvalue.cp)) 103 if(cdpath=path_addpath(shp,(Pathcomp_t*)0,dp,PATH_CDPATH)) 117 for(dp=dir; *dp=='.'; dp++) 119 if(*++dp=='.' && (*++dp=='/' || *dp==0)) 121 else if(*dp [all...] |
H A D | ulimit.c | 51 static int infof(Opt_t* op, Sfio_t* sp, const char* s, Optdisc_t* dp) argument
|
/ast/src/cmd/tests/sfio/ |
H A D | tscanf.c | 53 extf(Sfio_t* sp, Void_t* vp, Sffmt_t* dp) argument 55 extf(sp, vp, dp) 58 Sffmt_t* dp; 61 register Fmt_t* fmt = (Fmt_t*)dp; 63 dp->flags |= SFFMT_VALUE;
|
/ast/src/cmd/codex/ |
H A D | codex.c | 118 optinfo(Opt_t* op, Sfio_t* sp, const char* s, Optdisc_t* dp) argument
|