Home
last modified time | relevance | path

Searched refs:sfsprintf (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dfmtrec.c50 sfsprintf(s, e - s, "0x%02x", *(unsigned char*)del); in fmtrec()
52 sfsprintf(s, e - s, "%s", fmtquote(del, NiL, NiL, 1, 0)); in fmtrec()
60 sfsprintf(s, e - s, "%lu", REC_F_SIZE(f)); in fmtrec()
65 s += sfsprintf(s, e - s, "%lu", n); in fmtrec()
67 s += sfsprintf(s, e - s, "h%u", REC_V_HEADER(f)); in fmtrec()
69 s += sfsprintf(s, e - s, "o%u", REC_V_OFFSET(f)); in fmtrec()
71 s += sfsprintf(s, e - s, "z%u", REC_V_LENGTH(f)); in fmtrec()
83 sfsprintf(s, e - s, "data"); in fmtrec()
86 sfsprintf(s, e - s, "path"); in fmtrec()
89 sfsprintf(s, e - s, "%lu", n); in fmtrec()
[all …]
H A Dsystrace.c50 out += sfsprintf(out, sizeof(buf), "%s/.%s/%s", s, trace[0], id); in systrace()
61 sfsprintf(out, &buf[sizeof(buf)] - out, ".%d", getpid()); in systrace()
H A Dfastfind.c203 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s/%s", path, findnames[k]); in findopen()
225 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s", path); in findopen()
232 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s", path); in findopen()
252 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%-.*s", b - path, path); in findopen()
256 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s%s", fp->encode.temp, b); in findopen()
381 sfsprintf(fp->decode.path, sizeof(fp->decode.path), "%s/%s", path, findnames[k]); in findopen()
520 sfsprintf(b, sizeof(fp->decode.temp) - 1, "%s", s); in findopen()
524 sfsprintf(b, sizeof(fp->decode.temp) - 1, "%s/%s", p, s); in findopen()
941 len = sfsprintf(fp->encode.mark, sizeof(fp->encode.mark), "%-.*s/", len, path); in findwrite()
H A Dmagic.c705 b += sfsprintf(b, end - b, *q ? q : "%s", p + (*p == '\b')); in ckmagic()
738 b += sfsprintf(b, end - b, q + (*q == '\b'), p); in ckmagic()
967 b += sfsprintf(b, end - b, q, num, num == 1 ? "" : "s", 0, 0, 0, 0, 0, 0); in ckmagic()
969 b += sfsprintf(b, end - b, q, fmttime("%?%QL", (time_t)num), 0, 0, 0, 0, 0, 0, 0); in ckmagic()
971 b += sfsprintf(b, end - b, q, fmtversion(num), 0, 0, 0, 0, 0, 0, 0); in ckmagic()
973 b += sfsprintf(b, end - b, q, fmtnum(num, 0), num == 1 ? "" : "s", 0, 0, 0, 0, 0, 0); in ckmagic()
1109 sfsprintf(mp->mbuf, sizeof(mp->mbuf), "application/x-%s", *s ? s : "sh"); in cklang()
1128 sfsprintf(mp->sbuf, sizeof(mp->sbuf), T("%s%s script"), s, t1); in cklang()
1371 sfsprintf(mp->sbuf, sizeof(mp->sbuf), "%s%s%s", t1, t2, t3); in cklang()
1541 sfsprintf(buf, end - buf, "ascii %s%s", t, s); in cklang()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtelapsed.c45 sfsprintf(buf, z, "%lu.%02lus", t, (u * 100 / n) % 100); in fmtelapsed()
47 sfsprintf(buf, z, "%lum%02lus", t / 60, t - (t / 60) * 60); in fmtelapsed()
49 sfsprintf(buf, z, "%luh%02lum", t / (60*60), (t - (t / (60*60)) * (60*60)) / 60); in fmtelapsed()
51 sfsprintf(buf, z, "%lud%02luh", t / (24*60*60), (t - (t / (24*60*60)) * (24*60*60)) / (60*60)); in fmtelapsed()
53sfsprintf(buf, z, "%luw%02lud", t / (7*24*60*60), (t - (t / (7*24*60*60)) * (7*24*60*60)) / (24*60… in fmtelapsed()
55sfsprintf(buf, z, "%luM%02lud", (t * 12) / (365*24*60*60), ((t * 12) - ((t * 12) / (365*24*60*60))… in fmtelapsed()
57sfsprintf(buf, z, "%luY%02luM", t / (365*24*60*60), ((t - (t / (365*24*60*60)) * (365*24*60*60)) *… in fmtelapsed()
59sfsprintf(buf, z, "%luY%02luM", (t * 4) / ((365UL*4UL+1UL)*24UL*60UL*60UL), (((t * 4) - ((t * 4) /… in fmtelapsed()
H A Dfmtls.c60 s += sfsprintf(s, LS_W_MAX, "%*I*u ", LS_W_INUMBER - 1, sizeof(st->st_ino), st->st_ino); in fmtls()
64 s += sfsprintf(s, LS_W_MAX, "%*I*u ", LS_W_BLOCKS - 1, sizeof(n), n); in fmtls()
68 …s += sfsprintf(s, LS_W_MAX, "%s%3u", fmtmode(st->st_mode, flags & LS_EXTERNAL), (unsigned int)st->… in fmtls()
72 s += sfsprintf(s, LS_W_MAX, " %-*I*d", LS_W_NAME - 1, sizeof(st->st_uid), st->st_uid); in fmtls()
74 s += sfsprintf(s, LS_W_MAX, " %-*s", LS_W_NAME - 1, fmtuid(st->st_uid)); in fmtls()
79 s += sfsprintf(s, LS_W_MAX, " %-*I*d", LS_W_NAME - 1, sizeof(st->st_gid), st->st_gid); in fmtls()
81 s += sfsprintf(s, LS_W_MAX, " %-*s", LS_W_NAME - 1, fmtgid(st->st_gid)); in fmtls()
84 s += sfsprintf(s, LS_W_MAX, "%8s ", fmtdev(st)); in fmtls()
86 s += sfsprintf(s, LS_W_MAX, "%8I*u ", sizeof(st->st_size), st->st_size); in fmtls()
112 s += sfsprintf(s, LS_W_MAX, " %s %s", in fmtls()
H A Dstrtape.c83 sfsprintf(tapefile, sizeof(tapefile), "/dev/rmt/ctape%c%s", mtunit, mtrewind); in strtape()
87sfsprintf(tapefile, sizeof(tapefile), "/dev/rmt/%c%c%s%s", mtunit, mtdensity, mtbehavior, mtrewind… in strtape()
99 sfsprintf(tapefile, sizeof(tapefile), "/dev/%sst%c", mtrewind, mtunit); in strtape()
119 sfsprintf(tapefile, sizeof(tapefile), "/dev/%srmt%c", mtrewind, mtunit); in strtape()
145 sfsprintf(tapefile, sizeof(tapefile), "/dev/rmt%d", mtunit); in strtape()
H A Dfmtversion.c43 sfsprintf(cur, end - cur, "%04lu-%02lu-%02lu", (v / 10000) % 10000, (v / 100) % 100, v % 100); in fmtversion()
47 cur += sfsprintf(cur, end - cur, "%d.", n); in fmtversion()
49 cur += sfsprintf(cur, end - cur, "%d.", n); in fmtversion()
50 sfsprintf(cur, end - cur, "%ld.%ld", (v >> 8) & 0xff, v & 0xff); in fmtversion()
H A Dfmtip4.c39 …i = sfsprintf(buf, z, "%d.%d.%d.%d", (addr>>24)&0xff, (addr>>16)&0xff, (addr>>8)&0xff, (addr)&0xff… in fmtip4()
41 sfsprintf(buf + i, z - i, "/%d", bits); in fmtip4()
H A Dfmtsignal.c47 sfsprintf(buf, z, "Signal %d", sig); in fmtsignal()
58 sfsprintf(buf, z, "%d", sig); in fmtsignal()
H A Dfmtnum.c88 sfsprintf(buf, z, "%lu.%0*lu%s", n, i, r, suf); in fmtnum()
90 sfsprintf(buf, z, "%lu%s", n, suf); in fmtnum()
H A Dfmtscale.c86 sfsprintf(buf, z, "%I*u%c%d%s", sizeof(n), n, p->decimal >= 0 ? p->decimal : '.', r, suf); in fmtscale()
91 sfsprintf(buf, z, "%I*u%s", sizeof(n), n, suf); in fmtscale()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathfind.c107 sfsprintf(buf, size, "%s.%s", name, type); in pathfind()
121 sfsprintf(buf, size, "%-.*s%s", s - error_info.file + 1, error_info.file, name); in pathfind()
126 sfsprintf(buf, size, "%-.*s%s%.s", s - error_info.file + 1, error_info.file, name, type); in pathfind()
138 sfsprintf(tmp, sizeof(tmp), "%s/%s", dp->dir, name); in pathfind()
143 sfsprintf(tmp, sizeof(tmp), "%s/%s.%s", dp->dir, name, type); in pathfind()
157 sfsprintf(tmp, sizeof(tmp), "lib/%s/%s", lib, name); in pathfind()
162 sfsprintf(tmp, sizeof(tmp), "lib/%s/%s.%s", lib, name, type); in pathfind()
H A Dpathprobe.c151 k = lib + sfsprintf(lib, x - lib, "lib/%s/", probe); in pathprobe_20100601()
152 p = k + sfsprintf(k, x - k, "%s/%s/", lang, tool); in pathprobe_20100601()
187 sfsprintf(exe, sizeof(exe), "lib/%s/%s", probe, probe); in pathprobe_20100601()
212 p = path + sfsprintf(path, PATH_MAX - 1, "%s/.%s/%s/", p, probe, HOSTTYPE); in pathprobe_20100601()
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dpptrace.c67 if (iscntrl(c) || !isprint(c)) sfsprintf(buf, sizeof(buf), "`%03o'", c); in pptokstr()
69 else sfsprintf(buf, sizeof(buf), "%c", c); in pptokstr()
100 sfsprintf(buf, sizeof(buf), "%s=%s", ppinmap[i].nam, p->symbol->name); in ppinstr()
107 sfsprintf(buf, sizeof(buf), "UNKNOWN[%d]", p->type); in ppinstr()
128 …if (pplexmap[i].val < 0) sfsprintf(buf, sizeof(buf), "%s|0x%04x%s", pplexmap[i].nam, lex, splice ?… in pplexstr()
129 …else sfsprintf(buf, sizeof(buf), "%s+%d", pplexmap[i-1].nam, lex - pplexmap[i-1].val, splice ? "|S… in pplexstr()
134 sfsprintf(buf, sizeof(buf), "%s|SPLICE", pplexmap[i].nam); in pplexstr()
H A Dppmacref.c38 p += sfsprintf(p, MAXTOKEN, "\n#%s %d", pp.lineid, error_info.line); in ppmacref()
39 …p += sfsprintf(p, MAXTOKEN, "\n#%s %s:%s %s %d", dirname(PRAGMA), pp.pass, keyname(X_MACREF), sym-… in ppmacref()
44 p += sfsprintf(p, MAXTOKEN, " %lu", sum); in ppmacref()
H A Dppsearch.c197 …variant = sfsprintf(pp.tmpbuf, MAXTOKEN, "%c%s%c%s:archive", VDB_DELIMITER, VDB_MAGIC, VDB_DELIMIT… in search()
347 sfsprintf(t = pp.path, PATH_MAX - 1, "%s/%s", dp->name, prefix); in search()
372 sfsprintf(pp.path, PATH_MAX - 1, "%s/%s", dp->name, fp->name); in search()
420 sfsprintf(pp.path, PATH_MAX - 1, "%s/%s", dp->name, fp->name); in search()
629 sfsprintf(name, sizeof(name) - 1, "%s%s", cp->value + cp->op + 1, file + cp->op); in ppsearch()
684 sfsprintf(name, sizeof(name) - 1, "%s/%s", pp.in->prefix, file); in ppsearch()
743 sfsprintf(name, sizeof(name) - 1, "%s/%s", pp.in->prefix, fp->name); in ppsearch()
761 sfsprintf(pp.tmpbuf, MAXTOKEN, "%s.h", file); in ppsearch()
803 sfsprintf(name, sizeof(name), "%s/%s", t + 1, file); in ppsearch()
H A Dppbuiltin.c186 sfsprintf(p = pp.valbuf, MAXTOKEN, "%d", c); in ppbuiltin()
207 sfsprintf(p = pp.valbuf, MAXTOKEN, "%d", error_info.line); in ppbuiltin()
249 sfsprintf(p = pp.valbuf, MAXTOKEN, "%ld", ppoption(a)); in ppbuiltin()
401 sfsprintf(pp.valbuf, MAXTOKEN, "\"%-.*s", MAXTOKEN - 2, p); in ppbuiltin()
/illumos-gate/usr/src/contrib/ast/src/lib/libdll/
H A Ddllscan.c255 sfsprintf(s, i, "lib/%s", lib); in dllsopen()
305 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s", info->prefix, name, info->suffix); in dllsopen()
316 sfsprintf(scan->nam, sizeof(scan->nam), "%s", s); in dllsopen()
319 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s.%s", info->prefix, name, info->suffix, version); in dllsopen()
335 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix); in dllsopen()
338sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(%s([-.])%s%s|%s.%s)", info->prefix, name, strchr(ve… in dllsopen()
342sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(?([-.])%s%s|%s%s)", info->prefix, name, version, in… in dllsopen()
447 b = scan->buf + sfsprintf(scan->buf, sizeof(scan->buf), "%s", b + scan->prelen); in dllsread()
H A Ddllnext.c139 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: next %s\n", vp)); in _dll_next()
145 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: skip %s\n", vp)); in _dll_next()
152 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: this %s\n", vp)); in _dll_next()
H A Ddllcheck.c44 sfsprintf(state.errorbuf, sizeof(state.errorbuf), "plugin_version() not found"); in dllversion()
78sfsprintf(state.errorbuf, sizeof(state.errorbuf), "plugin version %lu older than caller %lu", v, v… in dllcheck()
H A Ddllerror.c49 sfsprintf(state.errorbuf, sizeof(state.errorbuf), "%s", s); in dllerror()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmxfmt.c76 s += sfsprintf(s, e - s, "%0*lu", p, n); in number()
78 s += sfsprintf(s, e - s, "%*lu", -p, n); in number()
80 s += sfsprintf(s, e - s, "%lu", n); in number()
525 f += sfsprintf(f, &fmt[sizeof(fmt)] - f, "%d", width); in tmxfmt()
526 f += sfsprintf(f, &fmt[sizeof(fmt)] - f, "I%du", sizeof(Tmxsec_t)); in tmxfmt()
527 cp += sfsprintf(cp, ep - cp, fmt, tmxsec(now)); in tmxfmt()
530 n = sfsprintf(cp, ep - cp, ".%09I*u", sizeof(Tmxnsec_t), tmxnsec(now)); in tmxfmt()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfprintf.c94 ssize_t sfsprintf(char* s, size_t n, const char* form, ...) in sfsprintf() function
96 ssize_t sfsprintf(va_alist) in sfsprintf()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dulimit.c194 sfsprintf(tmp,sizeof(tmp),"%s (%ss)", tp->description, e_units[tp->type]); in b_ulimit()
196 sfsprintf(tmp,sizeof(tmp),"%s", tp->name); in b_ulimit()

123