/ast/src/lib/libast/stdio/ |
H A D | fdopen.c | 31 if (fd < 0 || !(flags = _sftype(mode, NiL, NiL, NiL))) 33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags);
|
H A D | fmemopen.c | 31 return sfnew(NiL, buf, size, -1, SF_STRING|_sftype(mode, NiL, NiL, NiL));
|
H A D | fopen.c | 29 return sfopen(NiL, path, mode);
|
/ast/src/cmd/cs/ |
H A D | rsh.c | 47 waitpid(-1, NiL, WNOHANG); 53 if (!(p = procopen(NiL, args, NiL, ops, 0))) 64 csserve(NiL, argv[1], NiL, NiL, svc_connect, NiL, NiL, NiL);
|
/ast/src/lib/libast/misc/ |
H A D | procrun.c | 46 return pathpath(path, NiL, PATH_REGULAR|PATH_EXECUTE, buf, sizeof(buf)) ? 0 : -1; 48 return procclose(procopen(path, argv, NiL, NiL, flags|PROC_FOREGROUND|PROC_GID|PROC_UID));
|
H A D | fs3d.c | 57 if (!fsview && (!getenv("LD_PRELOAD") || mount("", "", 0, NiL))) 59 if (FS3D_op(op) == FS3D_OP_INIT && mount(FS3D_init, NiL, FS3D_VIEW, NiL)) 61 if (mount(on, val, FS3D_VIEW|FS3D_GET|FS3D_SIZE(sizeof(val)), NiL)) 70 cur = FS3D_LIMIT((int)strtol(v + sizeof(off) + 1, NiL, 0)); 91 if (v && mount(v, NiL, FS3D_VIEW, NiL))
|
/ast/src/lib/libcoshell/ |
H A D | system.c | 39 if (!(co = coopen(NiL, CO_ANY, NiL))) 41 if (cj = coexec(co, cmd, CO_SILENT, NiL, NiL, NiL))
|
H A D | procrun.c | 41 return procclose(procopen(path, a, NiL, NiL, PROC_FOREGROUND|PROC_GID|PROC_UID|flags));
|
/ast/src/lib/libdss/ |
H A D | dss-null.h | 46 (*disc->errorf)(NiL, disc, ERROR_USAGE|4, "%s", opt_info.arg); 50 (*disc->errorf)(NiL, disc, 2, "%s", opt_info.arg); 61 (*disc->errorf)(NiL, disc, ERROR_USAGE|4, "%s", optusage(NiL));
|
H A D | dssopt.c | 93 if (optout(sp, mp->name, mp->type->name, NiL, NiL, mp->description, mp->type->member ? "This structure type has the following members:" : (char*)0)) 139 i = optout(sp, tp->name, tp->base ? tp->base->name : (const char*)0, NiL, NiL, d, x); 257 for (lib = dsslib(NiL, DSS_VERBOSE, disc); lib; lib = (Dsslib_t*)dtnext(state->cx->libraries, lib)) 258 if (lib->meth && optout(sp, lib->meth->name, NiL, NiL, NiL, lib->meth->description, NiL)) 294 if ((head = !!strchr(s, ' ')) && meth->description && optout(sp, meth->name, NiL, Ni [all...] |
H A D | dss-return.h | 52 (*disc->errorf)(NiL, disc, ERROR_USAGE|4, "%s", opt_info.arg); 56 (*disc->errorf)(NiL, disc, 2, "%s", opt_info.arg); 67 (*disc->errorf)(NiL, disc, ERROR_USAGE|4, "%s", optusage(NiL));
|
H A D | dss-print.h | 72 (*disc->errorf)(NiL, disc, ERROR_USAGE|4, "%s", opt_info.arg); 76 (*disc->errorf)(NiL, disc, 2, "%s", opt_info.arg); 92 (*disc->errorf)(NiL, disc, 2, "%s: no default method print format", DSS(cx)->meth->name); 99 (*disc->errorf)(NiL, disc, ERROR_USAGE|4, "%s", optusage(NiL)); 102 return cx->referencef ? dssprintf(DSS(cx), cx, 0, (char*)expr->data, NiL) : 0; 120 return dssprintf(DSS(cx), cx, 0, s, NiL); 122 return *a ? dssprintf(DSS(cx), cx, 0, *a, NiL) : 0;
|
/ast/src/cmd/3d/ |
H A D | truncate3d.c | 46 if (!fscall(NiL, MSG_truncate, 0, path, size)) 50 if (!(sp = pathreal(path, P_TOP, NiL))) 61 r = (*state.trap.intercept[m].call)(&state.trap.intercept[m], MSG_truncate, SYS3D_truncate64, (void*)sp, (void*)&size, NiL, NiL, NiL, NiL); 73 fscall(NiL, MSG_truncate, 0, path, size); 89 if (!fscall(NiL, MSG_truncate, 0, path, size)) 93 if (!(sp = pathreal(path, P_TOP, NiL))) 100 fscall(NiL, MSG_truncat [all...] |
/ast/src/lib/libast/comp/ |
H A D | tmpnam.c | 50 return pathtemp(s ? s : buf, L_tmpnam, NiL, "tn", NiL);
|
H A D | sigflag.c | 40 if (sigaction(sig, NiL, &sa)) 46 return sigaction(sig, &sa, NiL);
|
H A D | tempnam.c | 57 return pathtmp(NiL, dir, pfx, NiL);
|
/ast/src/lib/libast/path/ |
H A D | pathbin.c | 41 if (!*(bin = astconf("PATH", NiL, NiL)) || !(bin = strdup(bin)))
|
/ast/src/cmd/tests/ |
H A D | date.c | 44 #ifndef NiL 46 #define NiL 0 macro 48 #define NiL (char*)0 macro 150 report(comment, str, pat, NiL, 0); 185 bad("bad \\x\n", NiL, NiL); 211 sigprocmask(op, &mask, NiL); 282 t_now = time(NiL); 320 bad("too many fields\n", NiL, NiL); [all...] |
H A D | base64.c | 52 l = base64encode(dat, i, NiL, buf, sizeof(buf), NiL); 59 t = base64decode(buf, l, NiL, tst, sizeof(tst), NiL); 75 r = base64encode(dat + i, sizeof(dat) - i, NiL, buf + l, sizeof(buf) - l, NiL); 82 t = base64decode(buf + l, r, NiL, tst, sizeof(tst), NiL); 95 t = base64decode(buf, l + r, NiL, tst, sizeof(tst), NiL); [all...] |
/ast/src/lib/libast/include/ |
H A D | mc.h | 62 #define MC_MESSAGE_SET(s) mcindex(s,NiL,NiL,NiL)
|
/ast/src/lib/libast/string/ |
H A D | fmtclock.c | 45 if (!(clk_tck = (unsigned int)strtoul(astconf("CLK_TCK", NiL, NiL), NiL, 10)))
|
/ast/src/lib/libtksh/src/ |
H A D | shcompat.c | 29 return (int)strtol(astconf("OPEN_MAX", NiL, NiL), NiL, 0);
|
/ast/src/cmd/mailx/ |
H A D | edit.c | 109 if (fp = run_editor(setinput(mp), mp->m_size, NiL, type, state.readonly)) { 111 settmp(NiL, 0); 118 filecopy(NiL, fp, state.tmp.dir, state.msg.op, NiL, (off_t)0, &mp->m_lines, &mp->m_size, 0); 173 if (filecopy(NiL, fp, state.tmp.edit, ep, NiL, size, NiL, NiL, 0)) 183 err = run_command(edit, 0, -1, -1, state.tmp.edit, NiL, NiL) < [all...] |
/ast/src/lib/libcs/ |
H A D | cslocal.c | 68 messagef((state->id, NiL, -1, "local: %s: cannot initiate %s", svc, cmd)); 71 while ((n = waitpid(pid, NiL, 0)) == -1 && errno == EINTR); 107 messagef((state->id, NiL, -8, "local(%s) call", path)); 116 messagef((state->id, NiL, -1, "local: %s: %s* expected", path, DEVLOCAL)); 123 messagef((state->id, NiL, -1, "local: %s: %s*/user expected", path, DEVLOCAL)); 143 messagef((state->id, NiL, -1, "local: %s: %s: cannot locate service on ../lib/cs/fdp", path, cmd)); 155 messagef((state->id, NiL, -1, "local: %s: %s: cannot open service", path, tmp)); 160 messagef((state->id, NiL, -1, "local: %s: %s: cannot initiate service %s", path, tmp, exe)); 163 messagef((state->id, NiL, -8, "local(%s) fd=%d server=%s stream=%s", path, fd, exe, tmp)); 183 messagef((state->id, NiL, [all...] |
/ast/src/cmd/coshell/ |
H A D | cotest.c | 51 state.fdtotal = (int)strtol(astconf("OPEN_MAX", NiL, NiL), NiL, 0); 65 state.pool = ((s = getenv(CO_ENV_PROC)) && *s) ? (int)strtol(s, NiL, 0) : POOL; 66 if (!(state.home = search(DEF|NEW, csname(0), NiL, NiL))) 75 info(DEF|NEW, NiL); 106 attributes(s, &attr, NiL); 122 if (!search(SET, s, NiL, NiL)) [all...] |