Home
last modified time | relevance | path

Searched refs:NiL (Results 1 – 25 of 213) sorted by last modified time

123456789

/illumos-gate/usr/src/test/libc-tests/tests/regex/
H A Dtestregex.c147 #ifndef NiL
149 #define NiL 0 macro
151 #define NiL (char*)0 macro
720 report(comment, NiL, re, s, len, NiL, 0, test); in bad()
835 bad("invalid C \\ escape\n", s - 1, NiL, 0, 0); in escape()
899 bad("out of space [discipline string]\n", NiL, NiL, 0, 0); in matchcheck()
904 report("callout failed", NiL, re, s, len, NiL, flags, test); in matchcheck()
951 report("failed: match was", NiL, re, s, len, NiL, flags, test); in matchcheck()
970 report("failed: match was", NiL, re, s, len, NiL, flags, test); in matchcheck()
981 report("failed: overran match array", NiL, re, s, len, NiL, flags, test); in matchcheck()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libsum/
H A Dsum-crc.c156 polynomial = strtoul(t, NiL, 0); in crc_open()
158 sum->done = v ? strtoul(v + 1, NiL, 0) : ~sum->done; in crc_open()
160 sum->init = v ? strtoul(v + 1, NiL, 0) : ~sum->init; in crc_open()
167 sum->xorsize = strtoul(v + 1, NiL, 0); in crc_open()
H A Dsum-prng.c75 sum->mpy = strtoul(t, NiL, 0); in prng_open()
77 sum->add = v ? strtoul(v + 1, NiL, 0) : ~sum->add; in prng_open()
79 sum->init = v ? strtoul(v + 1, NiL, 0) : ~sum->init; in prng_open()
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppinput.c162 …PLUS) || (pp.mode & EXTERNALIZE)) && (cur->buffer = pppopen(NiL, cur->fd, NiL, NiL, NiL, NiL, (PRO… in pppush()
224 ppload(NiL); in pppush()
413 hashwalk(pp.symtab, 0, dump, NiL); in ppdump()
500 if (!(sp = sfnew(NiL, NiL, SF_UNBOUND, pp.in->fd, SF_READ))) in ppload()
507 …if (!(sp = sfnew(NiL, pp.in->buffer + ((pp.in->flags & IN_static) ? 0 : PPBAKSIZ), file_size, -1, … in ppload()
524 index_offset = file_offset + strtol(t + 1, NiL, 10); in ppload()
H A Dpplex.c564 hashdump(NiL, (pp.test & TEST_hashdump) ? HASH_BUCKET : 0); in ppcpp()
1564 hashlook(pp.symtab, tp, HASH_DELETE, NiL); in ppcpp()
1735 (*pp.pragma)(NiL, NiL, NiL, tp, 1); in ppcpp()
1761 (*pp.pragma)(NiL, NiL, NiL, pp.valbuf, 1); in ppcpp()
2394 if (!sfnew(sfstdin, NiL, SF_UNBOUND, pp.pool.input, SF_READ)) in pool()
2413 waitpid(0, NiL, WNOHANG); in pool()
2444 while (wait(NiL) != -1); in pool()
H A Dpplib.h441 #define pptokchr(c) pptokstr(NiL,(c))
449 #define ppgetfile(x) ((struct ppfile*)hashlook(pp.filtab,x,HASH_LOOKUP,NiL))
450 …setfile(x) ((struct ppfile*)hashlook(pp.filtab,x,HASH_CREATE|HASH_SIZE(sizeof(struct ppfile)),NiL))
452 #define ppkeyget(t,n) (struct ppsymkey*)hashlook(t,n,HASH_LOOKUP,NiL)
453 #define ppkeyref(t,n) (struct ppsymkey*)hashlook(t,n,HASH_LOOKUP|HASH_INTERNAL,NiL)
454 …ne ppkeyset(t,n) (struct ppsymkey*)hashlook(t,n,HASH_CREATE|HASH_SIZE(sizeof(struct ppsymkey)),NiL)
584 pppush(IN_FILE,f,NiL,d)
650 pppush(IN_RESCAN,NiL,p,0)
727 #define NiL 0 macro
730 #define NiL ((char*)0) macro
H A Dppmisc.c43 sym = ppsymset(pp.symtab, NiL); in pprefmac()
119 hashput(pp.prdtab, NiL, p); in ppassert()
H A Dppop.c475 ppfsm(FSM_COMPATIBILITY, NiL); in ppop()
491 pp.symtab = hashalloc(NiL, HASH_name, "symbols", 0); in ppop()
716 ppfsm(FSM_INIT, NiL); in ppop()
798 pp.symtab = hashalloc(NiL, HASH_name, "symbols", 0); in ppop()
877 …efault = pathprobe("C", pp.pass, pp.probe ? pp.probe : PPPROBE, 0, pp.path, MAXTOKEN + 1, NiL, 0))) in ppop()
1053 setpreroot(NiL, preroot->value); in ppop()
1065 ppmapinclude(pp.ignore, NiL); in ppop()
1072 ppfsm(FSM_COMPATIBILITY, NiL); in ppop()
1074 ppfsm(FSM_PLUSPLUS, NiL); in ppop()
1089 hashwalk(pp.filtab, 0, unguard, NiL); in ppop()
[all …]
H A Dppprintf.c36 if (!(sp = sfnew(NiL, pp.outp, MAXTOKEN, -1, SF_WRITE|SF_STRING))) in ppprintf()
H A Dppproto.c1362 proto_error((char*)proto + sizeof(Proto_t), 2, op, NiL); in lex()
1513 …proto_error((char*)proto + sizeof(Proto_t), 1, "function pointer argument prototype omitted", NiL); in lex()
2277 …if (!notice && !options || (comlen = astlicense(com, sizeof(com), NiL, "type=check", proto->cc[0],… in pppopen()
2411 proto_error((char*)proto + sizeof(Proto_t), 1, proto->op, NiL); in pppopen()
2428 ppfsm(FSM_INIT, NiL); in pppopen()
2439 proto_error((char*)proto + sizeof(Proto_t), 1, proto->op, NiL); in pppopen()
H A Dppsearch.c147 …C_PREFIX ? "pre" : dp->index == INC_LOCAL ? "lcl" : dp->index == INC_VENDOR ? "vnd" : "std") : NiL, in search()
148 dp ? dp->name : NiL, in search()
149 …!(fp->flags & INC_MEMBER(INC_PREFIX)) && fp->bound[INC_PREFIX] ? fp->bound[INC_PREFIX]->name : NiL, in search()
150 !(fp->flags & INC_MEMBER(INC_LOCAL)) && fp->bound[INC_LOCAL] ? fp->bound[INC_LOCAL]->name : NiL, in search()
151 …!(fp->flags & INC_MEMBER(INC_VENDOR)) && fp->bound[INC_VENDOR] ? fp->bound[INC_VENDOR]->name : NiL, in search()
152 !(fp->flags & INC_MEMBER(INC_STANDARD)) && (xp = fp->bound[INC_STANDARD]) ? xp->name : NiL, in search()
191 if (!(sp = sfopen(NiL, dp->name, "r"))) in search()
272 off = strtol(s + VDB_OFFSET, NiL, 10) - sizeof(VDB_DIRECTORY); in search()
273 siz = strtol(s + VDB_SIZE, NiL, 10); in search()
296 ap->size = strtol(t + 1, NiL, 10); in search()
H A Dppsym.c43 if (dup(3) < 0 || !(out = sfnew(NiL, NiL, -1, 3, SF_WRITE))) in main()
H A Dpp.h80 #define ppsymget(t,n) (struct ppsymbol*)hashlook(t,n,HASH_LOOKUP,NiL)
81 …ppsymref(t,n) (struct ppsymbol*)hashlook(t,n,pp.truncate?HASH_LOOKUP:HASH_LOOKUP|HASH_INTERNAL,NiL)
82 …ne ppsymset(t,n) (struct ppsymbol*)hashlook(t,n,HASH_CREATE|HASH_SIZE(sizeof(struct ppsymbol)),NiL)
H A Dppargs.c176 ppline(error_info.line, NiL); in pplint()
237 ppop(PP_FILENAME, n ? s : NiL); in ppargs()
H A Dppcall.c187 old_next = (c == MARK) ? pp.in->nextchr : NiL; in ppcall()
H A Dppcontrol.c105 hashput(pp.prdtab, NiL, p); in assert()
1325 assert(directive, pp.tmpbuf, NiL); in ppcontrol()
1463 error_info.line = strtol(pp.token, NiL, 0); in ppcontrol()
1722 error_info.trace = i0 ? (p ? -strtol(p, NiL, 0) : -1) : 0; in ppcontrol()
1836 ppop(PP_LINETYPE, i0 ? (p ? strtol(p, NiL, 0) : 1) : 0); in ppcontrol()
1853 c = strtol(s, NiL, 0); in ppcontrol()
1856 …le, error_info.line - (c == REF_NORMAL ? 2 : 1), c, (s = strchr(s, ' ')) ? strtol(s, NiL, 0) : 0L); in ppcontrol()
1929 …ELIMITED|REG_LENIENT|REG_NULL)) && !(i0 = regsubcomp(&edit->re, s += edit->re.re_npat, NiL, 0, 0))) in ppcontrol()
1951 ppmapinclude(NiL, p5); in ppcontrol()
2086 ppop(PP_TRUNCATE, i0 ? (p ? strtol(p, NiL, 0) : TRUNCLENGTH) : 0); in ppcontrol()
H A Dppexpr.c75 if (pathaccess(pp.token, file, NiL, 0, pp.path, MAXTOKEN + 1)) in exists()
129 …, pp.token, REG_AUGMENTED|REG_LENIENT|REG_NULL)) || (c = regexec(&re, tmp, NiL, 0, 0)) && c != REG… in compare()
557 n = strtoul(pp.token, NiL, 0); in subexpr()
/illumos-gate/usr/src/contrib/ast/src/lib/libdll/
H A Ddllplug.c93 errorf("dll", NiL, 1, "dllplugin: %s dlopen failed: %s", dle->path, dllerror(1)); in dllplugin()
125 return dllplugin(lib, name, ver, 0, NiL, flags, path, size); in dllplug()
H A Ddllscan.c103 if (*(s = astconf("LIBPATH", NiL, NiL))) in dllinfo()
135 if (!*s || !p || !h && !*(h = astconf("HOSTTYPE", NiL, NiL))) in dllinfo()
162 info.prefix = astconf("LIBPREFIX", NiL, NiL); in dllinfo()
163 info.suffix = astconf("LIBSUFFIX", NiL, NiL); in dllinfo()
524 errorf("dll", NiL, -1, "dllsread: %s bound to %s", b, p); in dllsread()
H A DRELEASE16 05-02-14 dllscan.c: "" || "-" => NiL
H A Ddll_lib.c138NiL, version, NiL, RTLD_LAZY, names->path, names->data + sizeof(names->data) - names->path)) && (s… in dll_lib()
141 (*dllerrorf)(NiL, disc, 2, "%s: library not found", names->name); in dll_lib()
143 errorf("dll", NiL, -1, "dll_lib: %s version %lu library not found", names->name, version); in dll_lib()
155 …(*dllerrorf)(NiL, disc, 2, "%s: %s: initialization function not found in library", names->path, sy… in dll_lib()
157 …errorf("dll", NiL, -1, "dll_lib: %s version %lu initialization function %s not found in library", … in dll_lib()
172 errorf("dll", NiL, -1, "dll_lib: %s version %lu loaded from %s", names->name, version, lib->path); in dll_lib()
H A Ddllcheck.c45 errorf("dll", NiL, 1, "dllversion: %s: %s", path, state.errorbuf); in dllversion()
79 errorf("dll", NiL, 1, "dllcheck: %s: %s", path, state.errorbuf); in dllcheck()
83 errorf("dll", NiL, -1, "dllversion: %s: %lu >= %lu", path, v, ver); in dllcheck()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Duniq.c314 error(ERROR_usage(2), "%s", optusage(NiL)); in b_uniq()
317 if(!(fpin = sfopen(NiL,cp,"r"))) in b_uniq()
325 if(!(fpout = sfopen(NiL,cp,"w"))) in b_uniq()
333 error(ERROR_usage(2), "%s", optusage(NiL)); in b_uniq()
H A Dvmstate.c176 error(ERROR_USAGE|4, "%s", optusage(NiL)); in b_vmstate()
184 vmwalk(NiL, visit, &state); in b_vmstate()
194 sfkeyprintf(sfstdout, &state, state.format, key, NiL); in b_vmstate()
H A Dwc.c138 error(ERROR_usage(2), "%s", optusage(NiL)); in b_wc()
158 else if (!(fp = sfopen(NiL,cp,"r"))) in b_wc()

123456789