/ast/src/lib/libast/comp/ |
H A D | tempnam.c | 55 tempnam(const char* dir, const char* pfx) argument 57 return pathtmp(NiL, dir, pfx, NiL);
|
/ast/src/lib/libardir/ |
H A D | testar.c | 27 Ardir_t* dir; local 37 else if (dir = ardiropen(file, NiL, touch ? ARDIR_UPDATE : 0)) 39 sfprintf(sfstdout, "%s: type=%s truncate=%d%s\n", file, dir->meth->name, dir->truncate, (dir->flags & ARDIR_RANLIB) ? " ranlib" : ""); 40 while (ent = ardirnext(dir)) 45 ardirchange(dir, ent); 51 if (ardirclose(dir))
|
/ast/src/lib/libast/path/ |
H A D | pathtmp.c | 35 pathtmp(char* buf, const char* dir, const char* pfx, int* fdp) argument 39 len = !buf ? 0 : !dir ? L_tmpnam : (strlen(dir) + 14); 40 return pathtemp(buf, len, dir, pfx, fdp);
|
H A D | pathshell.c | 79 char dir[PATH_MAX]; local 92 if (strlen(s) >= sizeof(dir)) 94 strcpy(dir, s); 95 if (!(s = strrchr(dir, '/'))) 98 s = dir;
|
H A D | pathfind.c | 40 char dir[1]; /* directory path */ member in struct:Dir_s 50 * append dir to pathfind() include list 54 pathinclude(const char* dir) argument 59 if (dir && *dir && !streq(dir, ".") && directory(dir, &st)) 62 if (streq(dir, dp->dir)) 64 if (!(dp = oldof(0, Dir_t, 1, strlen(dir)))) [all...] |
H A D | pathtemp.c | 28 * [<dir>/][<pfx>]<bas>.<suf> 46 * dir and pfx may be 0 59 * /cycle dir specifies TMPPATH cycle control 61 * manual cycled by application with dir=(nil) 63 * /prefix dir specifies the default prefix (default ast) 64 * /private private file/dir modes 65 * /public public file/dir modes 66 * /seed dir specifies pseudo-random generator seed 68 * /TMPPATH dir overrides the env value 69 * /TMPDIR dir override 90 char** dir; member in struct:__anon300 102 pathtemp(char* buf, size_t len, const char* dir, const char* pfx, int* fdp) argument [all...] |
/ast/src/lib/libcs/ |
H A D | SERVICE.mk | 6 * service [ type [ mode ] [ dir ] ] :SERVICE: prerequisites 18 local opt service type mode dir 28 dir := $(opt) macro 32 if dir 33 $(dir)/$(service) :INSTALL: preserve=1 $(service)$(SERVICESUFFIX) 35 for dir $(type) 36 $$(SERVICEDIR)/$(dir)/$(service)/$(service)$(SERVICESUFFIX) :INSTALL: preserve=1 $(mode) $(service)$(SERVICESUFFIX) 39 for dir $(type) 40 $$(SERVICEDIR)/$(dir)/$(service) :INSTALLDIR: $(>:N=export|hosts)
|
H A D | csstat.c | 61 static char* dir; local 73 dir = strdup(buf); 75 if (!dir) 77 sfsprintf(buf, sizeof(buf), "%s/%s", dir, name);
|
/ast/src/lib/libast/preroot/ |
H A D | setpreroot.c | 25 * force current command to run under dir preroot 36 setpreroot(register char** argv, const char* dir) argument 45 if ((argv || (argv = opt_info.argv)) && (dir || (dir = getenv(PR_BASE)) && *dir) && !ispreroot(dir) && (*(cmd = *argv++) == '/' || (cmd = pathpath(cmd, NiL, PATH_ABSOLUTE|PATH_REGULAR|PATH_EXECUTE, buf, sizeof(buf))))) 53 *ap++ = (char*)dir;
|
H A D | ispreroot.c | 25 * return 1 if dir [any dir] is the preroot 58 ispreroot(const char* dir) argument 62 if (dir) return(same("/", dir));
|
/ast/src/lib/libast/include/ |
H A D | mnt.h | 39 char* dir; /* mounted dir */ member in struct:__anon271
|
/ast/src/lib/libcmd/ |
H A D | mktemp.c | 76 char* dir = ""; local 96 dir = 0; 98 dir = opt_info.arg; 104 dir = 0; 133 if (dir && !*dir) 134 dir = 0; 139 dir = fmtbuf(i); 140 memcpy(dir, pfx, i); 141 dir[ [all...] |
H A D | rmdir.c | 59 register char* dir; local 94 while (dir = *argv++) 96 end = dir; 97 if (pflag) end += strlen(dir); 101 if (rmdir(dir) < 0) 112 error(ERROR_system(0), "%s: cannot remove", dir); 118 do if (end <= dir) goto next; while (*--end != '/'); 119 do if (end <= dir) goto next; while (*(end - 1) == '/' && end--);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_marker.c | 33 rdirent_t* dir; local 40 if (from && *from && search_tag(rp->fd, rp->ap, from, 0, &tp, G_LINK, &dir)) 46 if (!gettagbyspec(dir, to, 0, &dump)) 54 if (!force && (dump = getmarker(dir, buf))) 77 tag_t* getmarker(dir, s) 78 rdirent_t* dir; 83 for (ep=dir; ep ; ep = ep->next) 91 tag_t* getmarkerbyfrom(dir, s) 92 rdirent_t* dir; 100 for (ep = dir; e [all...] |
H A D | vcs_replica.c | 47 register DIR* dir; local 55 if (((rd = getrdir(path, dirbuf, sizeof(dirbuf))) == NULL) || (dir = opendir(rd)) == NULL) 67 while((rca = readdir(dir))) 111 register DIR* dir; local 120 if (((rd = getrdir(path, dirbuf, sizeof(dirbuf))) == NULL) || (dir = opendir(rd)) == NULL) 132 while((rca = readdir(dir)))
|
H A D | vcs_checkout.c | 38 rdirent_t* dir; local 53 if (search_tag(rp->fd, ap, vp->version, vp->domain, &tp, G_LINK, &dir)) 55 if ((marker = getmarkerbyfrom(dir, vp->tp->version)))
|
/ast/src/cmd/pax/ |
H A D | pax-ar.c | 32 Ardir_t* dir; member in struct:Ar_s 40 Ardir_t* dir; local 42 if (!(dir = ardiropen(ap->name, NiL, 0))) 46 ardirclose(dir); 51 ar->dir = dir; 52 ap->type = (char*)dir->meth->name; 63 if (ar->dir) 64 ardirclose(ar->dir); 77 if (!(ar->ent = ardirnext(ar->dir))) [all...] |
H A D | pax-pds.c | 44 Pdsdir_t dir[1]; member in struct:Pds_s 93 memcpy(pds->dir[i].name, b, 8); 94 ccmapstr(pds->map, pds->dir[i].name, 8); 95 pds->dir[i].block = (b[8] << 16) | (b[9] << 8) | b[10]; 96 pds->dir[i].time = (n > 25) ? tmscan(sfprints("%02x %02x%01x %02x %02x", b[21], b[22], b[23] >> 4, b[24], b[25]), NiL, "%y %j %H %M", NiL, NiL, 0) : NOW; 100 pds->dir[i].link = &pds->dir[i].name[0]; 103 pds->dir[i].link = 0; 105 for (n = 8; n > 0 && pds->dir[i].name[n - 1] == ' '; n--); 106 pds->dir[ [all...] |
/ast/src/cmd/3d/ |
H A D | dir_3d.h | 187 #define CHEATDIR(p) ((p)->dir = *(p)->viewp->dirp) 203 DIRDIR dir; /* in case user checks *DIRDIR */ member in struct:__anon17
|
/ast/src/cmd/ksh93/bltins/ |
H A D | cd_pwd.c | 54 register char *dir; local 81 dir = argv[0]; 88 dir = sh_substitute(oldpwd,dir,argv[1]); 89 else if(!dir) 90 dir = nv_getval(HOME); 91 else if(*dir == '-' && dir[1]==0) 92 dir = nv_getval(opwdnod); 93 if(!dir || *di [all...] |
/ast/src/lib/libtksh/tcl/ |
H A D | tclGlob.c | 25 static int DoGlob _ANSI_ARGS_((Tcl_Interp *interp, char *dir, 42 * given by the dir and rem arguments. After an error the 52 DoGlob(interp, dir, rem) 55 char *dir; /* Name of a directory at which to 64 * DoGlob. The part that's already been expanded is in "dir" 72 * dir plus the first part of rem. */ 88 if (*dir == '\0') { 91 dirName = dir; 124 * recursive call to DoGlob uses the same "dir" that we got. 147 result = DoGlob(interp, dir, newNam 292 char *dir; local [all...] |
/ast/src/lib/libjcl/ |
H A D | find.c | 166 * append dir to jclfind() include list 170 jclinclude(Jcl_t* jcl, const char* dir, unsigned long flags, Jcldisc_t* disc) argument 176 if (dir && *(dir = (const char*)expand(jcl, dir, 0)) && !streq(dir, ".") && directory(dir, &st)) 180 if (streq(dir, dp->dir)) 182 if (!(dp = oldof(0, Dir_t, 1, strlen(dir)))) 203 search(Jcl_t* jcl, const char* dir, const char* name, unsigned long flags, struct stat* st) argument [all...] |
H A D | run.c | 94 * create dd dir if it doesn't exist 101 Jcldir_t* dir; local 105 if (dir = vmnewof(jcl->vm, NiL, Jcldir_t, 1, strlen(dd->path))) 107 strcpy(dir->name, dd->path); 108 dtinsert(jcl->outdir, dir);
|
/ast/src/cmd/std/ |
H A D | pss.c | 287 register DIR* dir; local 297 if (!(dir = opendir(path))) 307 while (ent = readdir(dir)) 320 sub = dir; 321 if (dir = opendir(path)) 328 dir = sub; 335 closedir(dir); 341 closedir(dir); 342 dir = sub; 346 closedir(dir); [all...] |
/ast/src/cmd/tests/cdt/ |
H A D | tvthread.c | 96 int deldt, insdt, n_move, dir, k; local 108 for(dir = 1; dir >= -1; dir -= 2) 109 { for(k = dir > 0 ? 0 : N_OBJ-1; k >= 0 && k < N_OBJ; k += dir)
|