/ast/src/lib/libast/misc/ |
H A D | systrace.c | 40 char* av[7]; local 53 av[1] = trace[0]; 54 av[2] = "-o"; 55 av[3] = buf; 56 av[4] = "-p"; 57 av[5] = out + 1; 58 av[6] = 0; 63 if (!procfree(procopen(trace[n], av + 1, NiL, ov, PROC_ARGMOD|PROC_GID|PROC_UID|(n == (elementsof(trace) - 1) ? PROC_CLEANUP : 0))))
|
H A D | getenv.c | 57 register char** av; local 63 av = environ; 64 if (!av || !name || !(c0 = *name)) 68 while (cp = *av++)
|
/ast/src/lib/libast/port/ |
H A D | touch.c | 48 Tv_t av; local 59 av.tv_sec = at; 60 av.tv_nsec = 0; 61 ap = &av;
|
/ast/src/lib/libast/preroot/ |
H A D | setpreroot.c | 42 char** av; local 49 if (av = newof(0, char*, argc, 0)) 51 ap = av; 59 ap = av; 65 execv(*av, av); 66 free(av);
|
/ast/src/lib/libast/tm/ |
H A D | tmxtouch.c | 43 Tv_t av; local 56 av.tv_sec = tmxsec(at); 57 av.tv_nsec = tmxnsec(at); 58 ap = &av;
|
H A D | tvtouch.c | 88 tvtouch(const char* path, register const Tv_t* av, register const Tv_t* mv, const Tv_t* cv, int flags) argument 110 if (!av) 115 else if (av == TV_TOUCH_RETAIN) 122 ts[0].tv_sec = av->tv_sec; 123 ts[0].tv_nsec = NS(av->tv_nsec); 140 if (!cv && av == TV_TOUCH_RETAIN && mv == TV_TOUCH_RETAIN && !stat(path, &st) && !chmod(path, st.st_mode & S_IPERM)) 159 if ((av == TV_TOUCH_RETAIN || mv == TV_TOUCH_RETAIN) && stat(path, &st)) 162 if (av == TV_TOUCH_RETAIN) 163 av = 0; 167 if (!av || !m [all...] |
/ast/src/lib/libcs/ |
H A D | csstat.c | 35 char* av[3]; local 42 av[0] = buf; 43 av[1] = (char*)name; 44 av[2] = 0; 45 procclose(procopen(av[0], av, NiL, NiL, 0));
|
H A D | cslocal.c | 53 char* av[3]; local 63 av[0] = cmd; 64 av[1] = (char*)svc; 65 av[2] = 0; 66 if ((pid = spawnveg(av[0], av, environ, 0)) == -1)
|
H A D | csserve.c | 45 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 49 return (*server->con)(server->handle, fp->fd, ip, 0, av) ? -1 : fp->fd;
|
/ast/src/cmd/tksh/ |
H A D | uinit.c | 25 static char **av; variable 30 char *end = av[0] + strlen(av[0]); 31 int len = strlen(av[0]); 54 args[0] = av[0]; args[1] = NULL; 77 return (sh_main(ac=argc, av=argv, tksh_userinit));
|
H A D | tkMain.c | 672 static char *av[] = { "tkinit", 0 }; 677 argv = av; 669 static char *av[] = { "tkinit", 0 }; local
|
/ast/src/lib/libtksh/src/ |
H A D | tclMain.c | 114 static char *av[] = { "tclinit", 0 }; local 117 av[0] = (char *) context; 121 argv = av;
|
/ast/src/lib/libast/comp/ |
H A D | wordexp.c | 71 char *savebase,**av; local 156 av = (char**)realloc((void*)&wdarg->we_wordv[-1], (wdarg->we_wordc+c)*sizeof(char*)); 157 else if(av = (char**)malloc(c*sizeof(char*))) 160 memset((void*)av,0,(wdarg->we_offs+1)*sizeof(char*)); 162 av[0] = 0; 164 if(!av) 172 ((struct list*)cp)->next = (struct list*)(*av); 173 *av++ = (char*)cp; 175 wdarg->we_wordv = av; 177 av [all...] |
/ast/src/lib/libast/sfio/ |
H A D | sfpopen.c | 147 char* av[4]; local 165 av[0] = "sh"; 166 av[1] = "-c"; 167 av[2] = (char*)command; 168 av[3] = 0; 169 if (!(proc = procopen(0, av, 0, 0, flags)))
|
/ast/src/cmd/std/ |
H A D | touch.c | 124 Tv_t av; local 227 ap = &av;
|
/ast/src/cmd/cs/ |
H A D | css.c | 74 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 78 NoP(av);
|
H A D | tst.c | 47 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 59 if ((ap = av) && (sp = sfstropen())) 63 if (ap > av + 1)
|
H A D | cs.c | 401 char* av[8]; local 617 ap = av; 632 if (procclose(procopen(av[0], av, NiL, NiL, PROC_UID|PROC_GID|(*argv ? PROC_OVERLAY : 0)))) 633 error(ERROR_SYSTEM|2, "%s: cannot %s %s to kill server", path, av[0], host); 641 ap = av; 646 ftwalk((char*)av, list, FTW_MULTIPLE|FTW_PHYSICAL, order);
|
H A D | mbb.c | 258 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 265 NoP(av);
|
/ast/src/lib/libcoshell/ |
H A D | coopen.c | 165 char* av[8]; local 235 if ((n = tokscan(s, NiL, " %v ", av, elementsof(av) - 1)) > 0) 237 if (t = strrchr(s = av[0], '/')) 238 av[0] = t + 1; 240 av[n++] = devfd; 241 av[n] = 0; 245 if ((co->mode & CO_MODE_SEPARATE) || (proc = procopen(s, av, ev, ops, (co->flags & (CO_SHELL|CO_ORPHAN)) ? (PROC_ORPHAN|PROC_DAEMON|PROC_IGNORE) : (PROC_DAEMON|PROC_IGNORE))))
|
/ast/src/cmd/mam/ |
H A D | mamold.c | 346 dumpvar(const char* an, char* av, void* handle) argument 349 struct var* v = (struct var*)av;
|
/ast/src/cmd/coshell/ |
H A D | shell.c | 60 char* av[4]; local 90 av[0] = "sh"; 91 av[1] = "-c"; 96 av[0] = sh = state.remote; 97 av[1] = sp->name; 99 if (!(av[2] = sfstruse(vp))) 101 av[3] = 0; 102 message((-2, "%s %s \"%s\"", sh, av[1], av[2])); 103 if (!(proc = procopen(sh, av, Ni [all...] |
/ast/src/cmd/ksh93/edit/ |
H A D | completion.c | 212 char *av[2], *begin , *dir=0; local 223 av[0] = ep->e_clist[count-1]; 224 av[1] = 0; 316 com = av;
|
/ast/src/cmd/ksh93/sh/ |
H A D | main.c | 121 int sh_main(int ac, char *av[], Shinit_f userinit) argument 140 fixargs(av,0); 141 shp = sh_init(ac,av,userinit); 276 if(((type = sh_type(cp = av[0])) & SH_TYPE_SH) && (!(name = nv_getval(L_ARGNOD)) || !((type = sh_type(cp = name)) & SH_TYPE_SH))) 278 av[0] = (type & SH_TYPE_LOGIN) ? cp : path_basename(cp); 280 execv(pathshell(),av); local 282 shp->st.dolv[0] = av[0]; 286 name = av[0]; 320 error_info.id = av[0];
|
/ast/src/cmd/mailx/ |
H A D | collect.c | 357 char* av[2]; local 488 av[0] = &pp.buf[1]; 489 av[1] = 0; 490 help(av);
|