Searched defs:arg (Results 1 - 25 of 126) sorted by relevance

123456

/ast/src/lib/librecsort/
H A Drsnotify.c27 int rsnotify(Rs_t* rs, int op, Void_t* data, Void_t* arg, reg Rsdisc_t* disc) argument
29 int rsnotify(rs, op, data, arg, disc)
33 Void_t* arg;
43 (r = (*disc->eventf)(rs, op, data, arg, disc)))
/ast/src/cmd/3d/
H A Dfcntl3d.c35 void* arg; local
40 arg = va_arg(ap, void*);
42 n = (int)integralof(arg);
45 r = FCNTL(fd, op, arg);
/ast/src/lib/libcmd/
H A Dmkfifo.c55 register char* arg; local
67 mode = strperm(arg = opt_info.arg, &opt_info.arg, mode);
68 if (*opt_info.arg)
69 error(ERROR_exit(0), "%s: invalid mode", arg);
72 error(2, "%s", opt_info.arg);
75 error(ERROR_usage(2), "%s", opt_info.arg);
90 while (arg = *argv++)
91 if (mkfifo(arg, mod
[all...]
H A Dpids.c59 key(void* handle, Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
105 format = opt_info.arg;
108 error(ERROR_USAGE|4, "%s", opt_info.arg);
111 error(2, "%s", opt_info.arg);
H A Dvmstate.c70 key(void* handle, Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
163 state.format = opt_info.arg;
166 error(ERROR_USAGE|4, "%s", opt_info.arg);
169 error(2, "%s", opt_info.arg);
/ast/src/cmd/ksh93/bltins/
H A Dcflow.c48 register char *arg; local
56 errormsg(SH_DICT,2, "%s", opt_info.arg);
59 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg);
67 n = (((arg= *argv)?(int)strtol(arg, (char**)0, 10):shp->oldexit));
87 char *arg; local
93 errormsg(SH_DICT,2, "%s", opt_info.arg);
96 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg);
103 if(arg= *argv)
105 n = (int)strtol(arg,
[all...]
/ast/src/cmd/tests/sfio/
H A Dtstring.c25 static int putrextend(Sfio_t* f, int type, Void_t* arg, Sfdisc_t* disc) argument
H A Dtmtsafe.c62 void* writesmall(void* arg) argument
64 void* writesmall(arg)
65 void* arg;
71 s = Str[integralof(arg)];
80 return arg;
84 void* writebig(void* arg) argument
86 void* writebig(arg)
87 void* arg;
95 return arg;
H A Dtscanf.c48 int arg; member in struct:Fmt_s
64 *((Void_t**)vp) = fmt->args[fmt->arg++];
239 fmt.arg = 0;
H A Dtsync.c25 static int except(Sfio_t* f, int type, Void_t* arg, Sfdisc_t* disc) argument
27 static int except(f, type, arg, disc)
30 Void_t* arg;
34 if(type == SF_SYNC && integralof(arg) == 1)
47 int event(Sfio_t* f, int type, Void_t* arg, Sfdisc_t* disc) argument
49 int event(f,type,arg,disc)
52 Void_t* arg;
57 ((Mydisc_t*)disc)->sync = integralof(arg);
/ast/src/cmd/tests/vmalloc/
H A Dtmmopen.c31 char *arg[5]; local
91 arg[0] = argv[0];
92 arg[1] = "--child";
93 arg[2] = shmfile;
94 arg[3] = mapfile;
95 arg[4] = 0;
96 if(execv(argv[0], arg) < 0 )
H A Dtsafemalloc.c40 void* allocate(void* arg) argument
44 int thread = (int)((long)arg);
/ast/src/cmd/cs/
H A D6263.c73 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument
78 error(ERROR_SYSTEM|3, "%s: interrupt exit", fmtsignal(arg));
84 error(ERROR_SYSTEM|3, "poll error op=0x%08x arg=0x%08x", op, arg);
H A Dcss.c41 "\nconnect-stream command [ arg ... ]\n"
156 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument
161 error(ERROR_SYSTEM|3, "%s: interrupt exit", fmtsignal(arg));
167 error(ERROR_SYSTEM|3, "poll error op=0x%08x arg=0x%08x", op, arg);
195 state.disc.timeout = strelapsed(opt_info.arg, &e, 1);
197 error(3, "%s: invalid timeout value", opt_info.arg);
201 error(ERROR_USAGE|4, "%s", opt_info.arg);
204 error(2, "%s", opt_info.arg);
H A Dtst.c119 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument
124 error(ERROR_SYSTEM|3, "%s: interrupt exit", fmtsignal(arg));
133 error(ERROR_SYSTEM|3, "poll error op=0x%08x arg=0x%08x", op, arg);
/ast/src/cmd/dsslib/html/
H A Dhtml.c31 html_ref_F(Cx_t* cx, Cxvariable_t* var, Cxoperand_t* ret, Cxoperand_t* arg, int n, void* data, Cxdisc_t* disc) argument
42 if (!(t = vmnewof(cx->em, 0, char, arg->value.string.size, 1)))
53 s = arg->value.string.data;
96 ret->value = arg->value;
/ast/src/lib/libast/comp/
H A Dwordexp.c203 struct list *arg, *argnext; local
207 while(arg=argnext)
209 argnext = arg->next;
210 free((void*)arg);
/ast/src/lib/libast/string/
H A Dtokline.c33 * if <arg> is a file and first line matches
35 * then error(<lev>,"%s: %s",<arg>,<msg>) called
149 * flags: 0 arg: open Sfio_t*
150 * flags: SF_READ arg: file name
151 * flags: SF_STRING arg: null terminated char*
158 tokline(const char* arg, int flags, int* line) argument
176 f = (Sfio_t*)arg;
177 else if (!(f = sfopen(NiL, arg, (flags & SF_STRING) ? "s" : "r")))
186 error(flags, "%s:%-.*s", arg, e - p - 4, p);
/ast/src/lib/libcs/
H A Dcsauth.c31 * csauth(state,fd,path,arg) called by csopen()
32 * csauth(state,-1,path,arg) called by `cs -O...'
33 * csauth(state,fd,0,arg) normal user call
43 csauth(register Cs_t* state, int fd, const char* path, const char* arg) argument
61 messagef((state->id, NiL, -8, "auth(%d,%s,%s) call", fd, path, arg));
101 if ((t = (char*)arg) && !(st.st_mode & S_IXOTH))
176 if (arg)
182 while (s < b && *arg)
183 if ((*s++ = *arg++) == '/' && *arg
246 _cs_auth(int fd, const char* path, const char* arg) argument
[all...]
/ast/src/cmd/jcl/
H A Djcl.c127 char* arg; member in struct:Map_s
160 p->arg = opt_info.arg;
172 jclinclude(NiL, opt_info.arg, JCL_JOB|JCL_PROC, disc);
219 *t = tmdate(opt_info.arg, &s, NiL);
222 error(2, "%s: %s: invalid date", opt_info.name, opt_info.arg);
251 error(2, "%s", opt_info.arg);
254 error(ERROR_USAGE|4, "%s", opt_info.arg);
296 if (jclmap(jcl, p->arg, &state.disc))
/ast/src/cmd/ksh93/sh/
H A Dtdump.c147 if(p_arg(&(t->lst.lstlef->arg))<0)
150 return(p_arg(&(t->lst.lstrit->arg)));
157 static int p_arg(register const struct argnod *arg) argument
161 while(arg)
163 if((n = strlen(arg->argval)) || (arg->argflag&~(ARG_APPEND|ARG_MESSAGE|ARG_QUOTED)))
167 fp=(struct fornod*)arg->argchn.ap;
177 outstring(outfile,arg->argval,n);
178 sfputc(outfile,arg->argflag);
184 else if(n==0 && (arg
[all...]
/ast/src/cmd/tests/aso/
H A Dtthread.c46 static void* consumer(void* arg) argument
49 unsigned int id = (unsigned int)integralof(arg);
/ast/src/cmd/tests/cdt/
H A Dtrhbags.c35 static unsigned int objhash(Dt_t* dt, Void_t* arg, Dtdisc_t* disc) argument
37 Obj_t *o = (Obj_t*)arg;
/ast/src/cmd/builtin/
H A Ddlls.c82 char* arg[3]; local
114 error(2, "%s", opt_info.arg);
117 error(ERROR_usage(2), "%s", opt_info.arg);
152 for (i = 0; i < elementsof(arg); i++)
153 if (arg[i] = *argv)
160 if (dls = dllsopen(arg[0], arg[1], arg[2]))
241 if (!r || !arg[0] || streq(arg[
[all...]
/ast/src/cmd/cs/vcs_src/
H A Difs_news.c36 NewsCommand( nFile, cmd, arg )
38 char *cmd, *arg;
44 sfsprintf( buf, sizeof(buf), arg ? "%s %s\r\n" : "%s\r\n", cmd, arg );
136 char *arg[ 10 ]; local
148 SplitFields( arg, 5, buf, ' ' ) != 5 ) {
158 sfsprintf( buf, sizeof(buf), "%d-%d", (int)strtol( arg[2], (char**)0, 0 ), (int)strtol( arg[3], (char**)0, 0 ) );
175 if( SplitFields( arg, 7, buf, '\t' ) == 7 ) {
176 MakeImageFile( arg[
[all...]

Completed in 59 milliseconds

123456