Home
last modified time | relevance | path

Searched refs:NiL (Results 1 – 25 of 213) sorted by relevance

123456789

/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Duname.c344 error(ERROR_usage(2), "%s", optusage(NiL)); in b_uname()
359 …astconflist(sfstdout, NiL, ASTCONF_base|ASTCONF_defined|ASTCONF_lower|ASTCONF_quote|ASTCONF_matchc… in b_uname()
372 …sfprintf(sfstdout, "%s%c", *(t = astconf(buf, NiL, NiL)) ? t : *(t = astconf(buf+3, NiL, NiL)) ? t… in b_uname()
397 if (!*(s = astconf("ARCHITECTURE", NiL, NiL))) in b_uname()
403 if (!*(s = astconf("PLATFORM", NiL, NiL)) && !*(s = astconf("HW_NAME", NiL, NiL))) in b_uname()
415 s = astconf("OPERATING_SYSTEM", NiL, NiL); in b_uname()
426 s = astconf("RELEASE", NiL, NiL); in b_uname()
434 if (!*(s = astconf("HW_SERIAL", NiL, NiL))) in b_uname()
445 s = astconf("HW_PROVIDER", NiL, NiL); in b_uname()
450 if (!*(s = astconf("SRPC_DOMAIN", NiL, NiL))) in b_uname()
[all …]
H A Dcmd.h120 if (dll = dlopen(NiL, RTLD_LAZY)) in main()
127 if (dll = dllplug(NiL, "cmd", NiL, RTLD_LAZY, NiL, 0)) in main()
136 return (*fun)(argc, argv, NiL); in main()
138 return CMD_STANDALONE(argc, argv, NiL); in main()
H A Drm.c119 fts_set(NiL, ent, FTS_SKIP); in rm()
130 fts_set(NiL, ent, FTS_AGAIN); in rm()
139 fts_set(NiL, ent, FTS_SKIP); in rm()
147 fts_set(NiL, ent, FTS_SKIP); in rm()
156 fts_set(NiL, ent, FTS_SKIP); in rm()
178 …st_dev == ent->fts_parent->fts_statp->st_dev || strchr(astconf("PATH_ATTRIBUTES", path, NiL), 'l'); in rm()
190 fts_set(NiL, ent, FTS_SKIP); in rm()
227 fts_set(NiL, ent, FTS_AGAIN); in rm()
387 error(ERROR_USAGE|4, "%s", optusage(NiL)); in b_rm()
407 if (fts = fts_open(argv, FTS_PHYSICAL, NiL)) in b_rm()
H A Dcksum.c156 sfopen(sp, NiL, mode); in openfile()
158 else if (!(sp = sfopen(NiL, path, mode))) in openfile()
308 pr(state, rp, sp, file, -1, NiL, NiL); in verify()
414 pr(state, sfstdout, sp, file, state->permissions, NiL, state->check); in list()
541 error(ERROR_USAGE|4, "%s", optusage(NiL)); in b_cksum()
549 … && !(state.sum = sumopen(error_info.id)) && !(state.sum = sumopen(astconf("UNIVERSE", NiL, NiL)))) in b_cksum()
550 state.sum = sumopen(NiL); in b_cksum()
584 else if (sp = openfile(NiL, "rt")) in b_cksum()
591 pr(&state, sfstdout, sfstdin, "/dev/stdin", state.permissions, NiL, state.check); in b_cksum()
601 fts_set(NiL, ent, FTS_FOLLOW); in b_cksum()
H A Dpathchk.c95 if ((r = strtol(astconf(ops[op], path, NiL), NiL, 0)) < 0 && !errno) in mypathconf()
201 error(2,"%s: path component begins with '-'",path,fmtquote(buf, NiL, "'", 1, 0)); in pathchk()
209 error(2,"%s: '%s' not in portable character set",path,fmtquote(buf, NiL, "'", 1, 0)); in pathchk()
261 error(ERROR_usage(2),"%s", optusage(NiL)); in b_pathchk()
H A Dfds.c57 #define getconf(x) strtol(astconf(x,NiL,NiL),NiL,0)
212 error(ERROR_USAGE|4, "%s", optusage(NiL)); in b_fds()
217 else if (fstat(unit, &st) || !(sp = sfnew(NiL, NiL, SF_UNBOUND, unit, SF_WRITE))) in b_fds()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Derror.c156 error_state.breakpoint = strtol(v, NiL, 0); in setopt()
172 error_state.count = strtol(v, NiL, 0); in setopt()
177 error_info.fd = n ? strtol(v, NiL, 0) : -1; in setopt()
187 error_info.mask = strtol(v, NiL, 0); in setopt()
228 error_info.trace = -strtol(v, NiL, 0); in setopt()
311 print(sp, cp->id, NiL); in context()
315 sfprintf(sp, ": \"%s\", %s %d", cp->file, ERROR_translate(NiL, NiL, ast.id, "line"), cp->line); in context()
332 if (error_state.tty || (error_state.tty = sfopen(NiL, "/dev/tty", "r+"))) in error_break()
339 stropt(s, options, sizeof(*options), setopt, NiL); in error_break()
350 errorv(NiL, level, ap); in error()
[all …]
H A Dfs3d.c57 if (!fsview && (!getenv("LD_PRELOAD") || mount("", "", 0, NiL))) in fs3d()
59 if (FS3D_op(op) == FS3D_OP_INIT && mount(FS3D_init, NiL, FS3D_VIEW, NiL)) in fs3d()
61 if (mount(on, val, FS3D_VIEW|FS3D_GET|FS3D_SIZE(sizeof(val)), NiL)) in fs3d()
70 cur = FS3D_LIMIT((int)strtol(v + sizeof(off) + 1, NiL, 0)); in fs3d()
91 if (v && mount(v, NiL, FS3D_VIEW, NiL)) in fs3d()
H A Dcmdarg.c130 if ((x = strtol(astconf("ARG_MAX", NiL, NiL), NiL, 0)) <= 0) in cmdopen_20120411()
140 (*disc->errorf)(NiL, sh, 2, "size must be at least %d", m); in cmdopen_20120411()
152 (*disc->errorf)(NiL, sh, ERROR_SYSTEM|2, "out of space"); in cmdopen_20120411()
176 if (!pathpath(exe, NiL, PATH_REGULAR|PATH_EXECUTE, s, n + m)) in cmdopen_20120411()
180 (*cmd->errorf)(NiL, cmd, ERROR_SYSTEM|2, "%s: command not found", exe); in cmdopen_20120411()
244 (*cmd->errorf)(NiL, cmd, 2, "%d arg command would be too long", cmd->argcount); in cmdflush()
299 (*cmd->errorf)(NiL, cmd, 2, "%s: command too large after insert", a); in cmdflush()
330 (*cmd->errorf)(NiL, cmd, ERROR_SYSTEM|2, "%s: command exec error", *cmd->argv); in cmdflush()
367 (*cmd->errorf)(NiL, cmd, 2, "%s: path too long for exec args", file); in cmdarg()
402 (*cmd->errorf)(NiL, cmd, 2, "only %d arguments for last command", cmd->argcount); in cmdclose()
H A Dprocrun.c46 return pathpath(path, NiL, PATH_REGULAR|PATH_EXECUTE, buf, sizeof(buf)) ? 0 : -1; in procrun()
48 return procclose(procopen(path, argv, NiL, NiL, flags|PROC_FOREGROUND|PROC_GID|PROC_UID)); in procrun()
H A Dglob.c144 return strchr(astconf("PATH_ATTRIBUTES", path, NiL), 'c') ? GLOB_ICASE : 0; in gl_attr()
344 trim(ap->gl_begin, rescan, &t1, NiL, NiL); in glob_dir()
353 addmatch(gp, NiL, prefix, NiL, rescan - 1, anymeta); in glob_dir()
356 addmatch(gp, NiL, prefix, NiL, NiL, anymeta); in glob_dir()
534 if (ire && !regexec(ire, name, 0, NiL, 0)) in glob_dir()
537 addmatch(gp, prefix, name, matchdir, NiL, anymeta); in glob_dir()
538 if (!regexec(pre, name, 0, NiL, 0)) in glob_dir()
541 addmatch(gp, prefix, name, rescan, NiL, anymeta); in glob_dir()
543 addmatch(gp, prefix, name, starstar==2?"":NiL, NiL, anymeta); in glob_dir()
/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/libast/stdio/
H A Dfdopen.c31 if (fd < 0 || !(flags = _sftype(mode, NiL, NiL, NiL))) in fdopen()
33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags); in fdopen()
H A Dfmemopen.c31 return sfnew(NiL, buf, size, -1, SF_STRING|_sftype(mode, NiL, NiL, NiL)); in fmemopen()
/illumos-gate/usr/src/contrib/ast/src/lib/libdll/
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/cmd/msgcc/
H A Dmsggen.c258 error(ERROR_USAGE|4, "%s", optusage(NiL)); in main()
266 sfprintf(sfstdout, "%d\n", mcindex(catfile, NiL, NiL, NiL)); in main()
271 if (!(sp = sfopen(NiL, catfile, "r"))) in main()
359 if (!(mp = sfopen(NiL, msgfile, "r"))) in main()
361 sp = sfopen(NiL, catfile, "r"); in main()
391 num = (int)strtol(s, NiL, 0); in main()
394 mcput(mc, num, i, NiL); in main()
420 if (mcput(mc, set, num, NiL)) in main()
511 if (!(s = pathtemp(NiL, 0, "", error_info.id, NiL)) || !(sp = sfopen(NiL, s, "w"))) in main()
H A Dmsgget.c80 error(ERROR_USAGE|4, "%s", optusage(NiL)); in main()
84 mcindex(s, NiL, &set, &num); in main()
88 error(ERROR_USAGE|4, "%s", optusage(NiL)); in main()
99 if (!(sp = sfopen(NiL, path, "r"))) in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastlicense.c109 #ifndef NiL
110 #define NiL ((char*)0) macro
807 comment(&notice, &buf, NiL, 1, 0); in astlicense()
808 comment(&notice, &buf, NiL, 0, 0); in astlicense()
859 comment(&notice, &buf, NiL, 0, 0); in astlicense()
877 comment(&notice, &buf, NiL, 0, 0); in astlicense()
914 comment(&notice, &buf, NiL, 0, 0); in astlicense()
924 comment(&notice, &buf, NiL, 0, 0); in astlicense()
938 comment(&notice, &buf, NiL, 0, 0); in astlicense()
942 comment(&notice, &buf, NiL, 0, 0); in astlicense()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrerror.c116 p = setlocale(LC_MESSAGES, NiL); in _ast_strerror()
126 return ERROR_translate(NiL, NiL, "errlist", msg); in _ast_strerror()
132 sfsprintf(msg, z, ERROR_translate(NiL, NiL, "errlist", "Error %d"), err); in _ast_strerror()
H A Dfmtclock.c45 if (!(clk_tck = (unsigned int)strtoul(astconf("CLK_TCK", NiL, NiL), NiL, 10))) in fmtclock()
H A Dstrmatch.c94 regcache(NiL, 0, NiL); in strgrpmatch()
135 if (!(re = regcache(p, reflags, NiL))) in strgrpmatch()
179 return strgrpmatch(s, p, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT); in strmatch()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregsubexec.c156 return fatal(p->env->disc, REG_BADPAT, NiL); in regsubexec()
165 PUTS(p, b, s, match->rm_eo, return fatal(p->env->disc, c, NiL)); in regsubexec()
168 PUTS(p, b, s, match->rm_so, return fatal(p->env->disc, c, NiL)); in regsubexec()
170 return fatal(p->env->disc, c, NiL); in regsubexec()
178 return fatal(p->env->disc, c, NiL); in regsubexec()
190 PUTC(p, b, c, return fatal(p->env->disc, c, NiL)); in regsubexec()
192 NEED(p, b, 1, return fatal(p->env->disc, c, NiL)); in regsubexec()
236 return regsubexec_20120528(p, s, 0, NiL); in regsubexec()
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dmamake.c98 #define NiL ((char*)0) macro
116 #define add(b,c) (((b)->nxt >= (b)->end) ? append(b, "") : NiL, *(b)->nxt++ = (c))
386 report(3, "out of space [buffer]", NiL, (unsigned long)0); in buffer()
418 report(3, "out of space [buffer resize]", NiL, (unsigned long)0); in appendn()
468 report(3, "out of space [dictionary]", NiL, (unsigned long)0); in dictionary()
606 if (!(r = (Rule_t*)search(state.rules, name, NiL))) in rule()
658 if ((s = (char*)search(state.vars, "PWD", NiL)) && !stat(s, &ts) && in view()
664 report(3, "cannot determine PWD", NiL, (unsigned long)0); in view()
668 if ((s = (char*)search(state.vars, "VPATH", NiL)) && *s) in view()
799 v = (char*)search(state.vars, t, NiL); in substitute()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dmc.h62 #define MC_MESSAGE_SET(s) mcindex(s,NiL,NiL,NiL)

123456789