/ast/src/lib/libpp/ |
H A D | ppcontext.c | 27 * 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...] |
H A D | ppproto.c | 88 char* op; /* output buffer pointer */ member in struct:Proto_s 391 init(Proto_t* proto, char* op, int flags) argument 397 op = strcopy(op, "\ 459 op = strcopy(op, "\ 491 switch (*op++ = *s++) 494 op--; 497 op = strcopy(op 578 register char* op; local 2534 register char* op = proto->ob; local [all...] |
/ast/src/lib/libast/string/ |
H A D | swapop.c | 35 * 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 D | swapput.c | 34 * 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 D | swapget.c | 34 * 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);
|
/ast/src/lib/libast/stdio/ |
H A D | fseek.c | 31 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 D | fseeko.c | 31 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/comp/ |
H A D | getsubopt.c | 42 getsubopt(register char** op, char* const* tp, char** vp) 48 if (*(b = *op)) 74 *op = s; 76 for (op = (char**)tp; *op; op++) 77 if (streq(b, *op)) 78 return op - (char**)tp;
|
H A D | open.c | 48 _ast_open(const char* path, int op, ...) 57 va_start(ap, op); 58 mode = (op & O_CREAT) ? va_arg(ap, int) : S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH; 60 if (op & ~(_ast_O_LOCAL-1)) 62 if (!(op & O_CREAT)) 63 op &= ~O_EXCL; 66 if (op & O_TRUNC) 68 if ((op & O_EXCL) && !access(path, F_OK)) 73 if ((fd = creat(path, (op & O_EXCL) ? 0 : mode)) < 0) 75 if (op [all...] |
H A D | fcntl.c | 52 _ast_fcntl(int fd, int op, ...) 60 va_start(ap, op); 61 if (op >= _ast_F_LOCAL) switch (op) 66 op = dup2(fd, n); 71 op = fstat(fd, &st); 77 op = ioctl(fd, n == FD_CLOEXEC ? FIOCLEX : FIONCLEX, 0); 82 op = -1; 87 op = fcntl(fd, op, va_ar [all...] |
H A D | sigunblock.c | 42 int op; 49 op = SIG_UNBLOCK; 51 else op = SIG_SETMASK; 52 return(sigprocmask(op, &mask, NiL));
|
/ast/src/lib/librecsort/ |
H A D | rsnotify.c | 27 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)))
|
/ast/src/cmd/tests/sfio/ |
H A D | tstatus.c | 25 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/libz/ |
H A D | inffast.c | 92 unsigned op; /* code bits, operation, extra bits, or */ local 130 op = (unsigned)(this.bits); 131 hold >>= op; local 132 bits -= op; 133 op = (unsigned)(this.op); 134 if (op == 0) { /* literal */ 140 else if (op & 16) { /* length base */ 142 op &= 15; /* number of extra bits */ 143 if (op) { 149 hold >>= op; local 162 hold >>= op; local 184 hold >>= op; local [all...] |
/ast/src/lib/libcs/ |
H A D | csread.c | 25 * 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/cmd/mailx/ |
H A D | main.c | 171 * op list for resetopt() after the rc's. 174 setopt(register struct list* op, char* s, char* v) argument 182 if (!(op->next = newof(0, struct list, 1, n))) 184 op = op->next; 185 s = strcopy(op->name, s); 192 getargs(&vec, op->name); 200 return op; 207 resetopt(register struct list* op) argument 212 np = op 237 struct list* op; local [all...] |
/ast/src/cmd/msgcc/ |
H A D | msgcvt.c | 190 sfpututf(Sfio_t* op, register int w) argument 193 return sfputc(op, w); 195 sfputc(op, 0xC0 + (w >> 6)); 198 sfputc(op, 0xE0 + (w >> 12)); 199 sfputc(op, 0x80 + (w >> 6 ) & 0x3F); 202 return sfputc(op, '?'); 203 return sfputc(op, 0x80 + (w & 0x3F)); 216 html2msg(register Sfio_t* ip, register Sfio_t* op, int flags) argument 258 sfpututf(op, c); 277 sfputc(op, 411 encode(Sfio_t* op, register int c) argument 430 msg2html(register Sfio_t* ip, register Sfio_t* op, register int flags) argument [all...] |
/ast/src/cmd/3d/ |
H A D | fpathconf3d.c | 29 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 D | fcntl3d.c | 31 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 D | pathconf3d.c | 29 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 D | lseek3d.c | 53 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/cmd/std/ |
H A D | split.c | 163 struct op struct 165 struct op* next; 175 static struct op* 176 getop(struct op** prev, Sfoff_t size, size_t repeat, int flags, int re) 178 struct op* op; local 180 if (op = newof(0, struct op, 1, re ? sizeof(regex_t) : 0)) 182 op->repeat = repeat; 183 op 204 struct op* op; local 371 split(Sfio_t* in, struct fname* fp, struct op* op, int flags) argument 571 struct op* op = 0; local [all...] |
/ast/src/lib/libast/misc/ |
H A D | sigcrit.c | 36 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/libdss/ |
H A D | dss-compress.h | 81 if (expr->parent->op != expr->op) 83 if (expr->parent->op != sfstdout) 84 sfclose(expr->parent->op); 85 expr->parent->op = expr->op; 88 sfdisc(expr->op, &dssstate(disc)->compress_preferred); 99 if (sfdczip(expr->op, expr->file, meth, disc->errorf) < 0)
|
/ast/src/cmd/at/ |
H A D | at.c | 171 int op = EXEC; local 192 op |= MAIL; 202 op |= ACCESS; 211 op |= INFO; 214 op |= LIST; 217 op |= MAIL; 220 op &= ~EXEC; 223 op |= STATUS; 229 op |= REMOVE; 238 op | [all...] |