Searched defs:op (Results 1 - 25 of 207) sorted by relevance

123456789

/ast/src/cmd/tests/sfio/
H A Dtstatus.c25 Sfio_t* op; local
30 if(!(op = sfopen((Sfio_t*)0, tstfile("sf", 0), "w")))
33 n = (int)sfmove(ip, op, SF_UNBOUND, -1);
39 if(sfeof(op))
40 terror("sfeof(op) not expected");
44 if(sferror(op))
45 terror("sferror(op) not expected");
49 if(sfclose(op))
50 terror("sfclose(op)");
/ast/src/lib/libpp/
H A Dppcontext.c27 * args op return
40 struct ppcontext* op; local
44 if (!(op = pp.context)) op = pp.context = newof(0, struct ppcontext, 1, 0);
45 memcpy(op, _PP_CONTEXT_BASE_, sizeof(struct ppcontext));
49 if (!(op = np)) op = (struct ppcontext*)_PP_CONTEXT_BASE_;
50 if (op->filtab) hashfree(op->filtab);
51 if (op
[all...]
/ast/src/lib/libast/stdio/
H A Dfseek.c31 fseek(Sfio_t* f, long off, int op) argument
33 STDIO_INT(f, "fseek", int, (Sfio_t*, long, int), (f, off, op))
35 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
41 fseek64(Sfio_t* f, int64_t off, int op) argument
43 STDIO_INT(f, "fseek64", int, (Sfio_t*, int64_t, int), (f, off, op))
45 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
H A Dfseeko.c31 fseeko(Sfio_t* f, off_t off, int op) argument
33 STDIO_INT(f, "fseeko", int, (Sfio_t*, off_t, int), (f, off, op))
35 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
41 fseeko64(Sfio_t* f, int64_t off, int op) argument
43 STDIO_INT(f, "fseeko64", int, (Sfio_t*, int64_t, int), (f, off, op))
45 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
/ast/src/lib/libast/string/
H A Dswapop.c35 * if size<0 then (-size) used and (-size==4)&&(op==3) => op=7
42 register int op; local
51 for (op = 0; op < z; op++)
52 if (!memcmp(internal, swapmem(op, external, tmp, z), z))
54 if (size < 0 && z == 4 && op == 3)
55 op = 7;
56 return op;
[all...]
H A Dswapput.c34 * put v of n chars into b according to op
38 swapput(int op, void* b, int n, intmax_t v) argument
47 if (op)
48 swapmem(op, p, p, n);
H A Dswapget.c34 * get int_n from b according to op
38 swapget(int op, const void* b, int n) argument
47 if (op) swapmem(op, b, d = tmp, n);
H A Dswapmem.c34 * swap n bytes according to op
39 swapmem(int op, const void* from, void* to, register size_t n) argument
45 switch (op & (n - 1))
H A Dstrperm.c50 int op; local
64 op = num = who = typ = 0;
101 op = c;
145 switch (op)
161 switch (op)
227 op = c;
251 if (!who && (op == '+' || op == '-'))
/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)
31 int op;
40 if (rs->events & op)
42 if ((disc->events & op) &&
43 (r = (*disc->eventf)(rs, op, data, arg, disc)))
H A Drsdisc.c29 Rsdisc_t* rsdisc(Rs_t* rs, Rsdisc_t* disc, int op) argument
31 Rsdisc_t* rsdisc(rs, disc, op)
34 int op;
42 switch (op)
H A Drstemp.c35 Sfio_t* op = sp; local
57 if (!op)
/ast/src/cmd/3d/
H A Dfcntl3d.c31 fcntl3d(int fd, int op, ...) argument
39 va_start(ap, op);
43 if (op == F_DUPFD && state.file[n].reserved)
45 r = FCNTL(fd, op, arg);
48 switch (op)
H A Dfpathconf3d.c29 fpathconf3d(int fd, int op) argument
36 if (!fscall(NiL, MSG_fpathconf, 0, fd, op))
42 r = FPATHCONF(fd, op);
48 fscall(mp, MSG_fpathconf, 0, fd, op);
51 fscall(mp, MSG_fpathconf, 0, fd, op);
H A Dpathconf3d.c29 pathconf3d(const char* path, int op) argument
37 if (!fscall(NiL, MSG_pathconf, 0, path, op))
45 r = PATHCONF(sp, op);
51 fscall(mp, MSG_pathconf, 0, sp, op);
54 fscall(mp, MSG_pathconf, 0, sp, op);
H A Dlseek3d.c53 lseek64(int fd, off64_t off, int op) argument
63 if (!fscall(NiL, MSG_seek, 0, fd, off, op))
76 r = (*state.trap.intercept[m].call)(&state.trap.intercept[m], MSG_seek, SYS3D_lseek64, (void*)fd, (void*)&off, (void*)op, NiL, NiL, NiL) ? -1 : off;
80 r = (*seekf)(fd, off, op);
85 fscall(mp, MSG_seek, r, fd, off, op);
88 fscall(mp, MSG_seek, r, fd, off, op);
99 lseek3d(int fd, off_t off, int op) argument
108 if (!fscall(NiL, MSG_seek, 0, fd, off, op))
116 r = (*seekf)(fd, off, op);
118 else if ((r = LSEEK(fd, off, op))
[all...]
/ast/src/lib/libz/
H A Dinftrees.h14 table that indexes more bits of the code. op indicates whether
17 pointer, the low four bits of op is the number of index bits of
18 that table. For a length or distance, the low four bits of op
25 unsigned char op; /* operation, extra bits, table bits */ member in struct:__anon451
30 /* op values as set by inflate_table():
/ast/src/lib/libast/misc/
H A Dfs3d.c40 fs3d(register int op) argument
59 if (FS3D_op(op) == FS3D_OP_INIT && mount(FS3D_init, NiL, FS3D_VIEW, NiL))
73 if (cur != op)
75 switch (FS3D_op(op))
84 sfsprintf(val, sizeof(val), "%s=%d", off, FS3D_arg(op));
H A Dsigcrit.c36 int op; member in struct:__anon293
88 * op>0 new region according to SIG_REG_*, return region level
89 * op==0 pop region, return region level
90 * op<0 return non-zero if any signals held in current region
96 sigcritical(int op) argument
112 if (op > 0)
116 region = op;
117 if (op & SIG_REG_SET)
122 if (op & signals[i].op)
[all...]
/ast/src/lib/libast/port/
H A Dastquery.c50 Sfio_t* op; local
77 op = wfp;
82 op = sfstderr;
85 sfvprintf(op, format, ap);
86 sfsync(op);
H A Dastwinsize.c124 ttctl(register int fd, int op, void* tt) argument
131 if (!ioctl(fd, op, tt)) return(0);
134 v = ioctl(fd, op, tt);
139 else if (!ioctl(fd, op, tt)) return(0);
/ast/src/lib/libcs/
H A Dcsread.c25 * read at most size chars according to op
40 csread(Cs_t* state, int fd, void* buf, size_t size, int op) argument
47 if (restart = !!(op & CS_RESTART))
48 op &= ~CS_RESTART;
51 messagef((state->id, NiL, -9, "read(%d,%d,%s) before", fd, size, op == CS_EXACT ? "EXACT" : op == CS_LIMIT ? "LIMIT" : "LINE"));
52 if (op == CS_LINE && size > 1)
57 op = CS_EXACT;
65 messagef((state->id, NiL, -9, "read(%d,%d,%s) [%d] `%-.*s'", fd, size, op == CS_EXACT ? "EXACT" : op
101 _cs_read(int fd, void* buf, size_t size, int op) argument
[all...]
/ast/src/lib/libpz/
H A Dpzsync.c38 Sfio_t* op; local
43 op = pz->ws.io ? pz->ws.io : pz->io;
57 while (elt && pzwrite(pz, op, elt->buf, n) == n)
81 * and write it by group to op
101 sfputu(op, m);
106 if (sfwrite(op, buf, m) != m || sfsync(op))
123 sfputu(op, 1);
131 sfputu(op, m);
132 if (sfwrite(op, p
[all...]
/ast/src/cmd/html/
H A Dhtml2db.c48 flatten(const char* path, Sfio_t* ip, Sfio_t* op) argument
118 sfputc(op, ';');
121 sfputc(op, '\n');
136 sfputc(op, c);
/ast/src/cmd/coshell/
H A Dcotest.c93 register int op; local
100 while ((s = sfgetr(sfstdin, '\n', 0)) && sfvalue(sfstdin) > 1) switch (s[sfvalue(sfstdin) - 1] = 0, op = *s == ':' ? (s++, *s++) : '?')
112 if (op == '?') sfputr(sfstdout, sp->name, '\n');

Completed in 37 milliseconds

123456789