/titanic_50/usr/src/lib/libast/common/misc/ |
H A D | fmtrec.c | 50 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 D | systrace.c | 50 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 D | fastfind.c | 224 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s/%s", path, findnames[k]); in findopen() 246 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s", path); in findopen() 253 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s", path); in findopen() 273 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%-.*s", b - path, path); in findopen() 277 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s%s", fp->encode.temp, b); in findopen() 402 sfsprintf(fp->decode.path, sizeof(fp->decode.path), "%s/%s", path, findnames[k]); in findopen() 541 sfsprintf(b, sizeof(fp->decode.temp) - 1, "%s", s); in findopen() 545 sfsprintf(b, sizeof(fp->decode.temp) - 1, "%s/%s", p, s); in findopen() 962 len = sfsprintf(fp->encode.mark, sizeof(fp->encode.mark), "%-.*s/", len, path); in findwrite()
|
/titanic_50/usr/src/lib/libast/common/string/ |
H A D | fmtelapsed.c | 45 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() 53 …sfsprintf(buf, z, "%luw%02lud", t / (7*24*60*60), (t - (t / (7*24*60*60)) * (7*24*60*60)) / (24*60… in fmtelapsed() 55 …sfsprintf(buf, z, "%luM%02lud", (t * 12) / (365*24*60*60), ((t * 12) - ((t * 12) / (365*24*60*60))… in fmtelapsed() 57 …sfsprintf(buf, z, "%luY%02luM", t / (365*24*60*60), ((t - (t / (365*24*60*60)) * (365*24*60*60)) *… in fmtelapsed() 59 …sfsprintf(buf, z, "%luY%02luM", (t * 4) / ((365UL*4UL+1UL)*24UL*60UL*60UL), (((t * 4) - ((t * 4) /… in fmtelapsed()
|
H A D | fmtls.c | 60 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 D | strtape.c | 83 sfsprintf(tapefile, sizeof(tapefile), "/dev/rmt/ctape%c%s", mtunit, mtrewind); in strtape() 87 …sfsprintf(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 D | fmtversion.c | 43 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 D | fmtip4.c | 39 …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 D | fmtsignal.c | 47 sfsprintf(buf, z, "Signal %d", sig); in fmtsignal() 58 sfsprintf(buf, z, "%d", sig); in fmtsignal()
|
H A D | fmtbase.c | 44 sfsprintf(buf, z, "%I*d", sizeof(n), n); in fmtbasell() 46 sfsprintf(buf, z, p ? "%#..*I*u" : "%..*I*u", b, sizeof(n), n); in fmtbasell()
|
H A D | fmtnum.c | 88 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 D | fmtscale.c | 86 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()
|
H A D | fmtdev.c | 55 sfsprintf(buf, z, "%03d,%03d", ma, mi); in fmtdev()
|
H A D | fmttv.c | 42 sfsprintf(t, n, "%s.%09lu", s, (unsigned long)tv->tv_nsec); in fmttv()
|
/titanic_50/usr/src/lib/libast/common/path/ |
H A D | pathfind.c | 107 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 D | pathprobe.c | 136 k = lib + sfsprintf(lib, x - lib, "lib/%s/", probe); in pathprobe() 137 p = k + sfsprintf(k, x - k, "%s/%s/", lang, tool); in pathprobe() 172 sfsprintf(exe, sizeof(exe), "lib/%s/%s", probe, probe); in pathprobe() 197 p = path + sfsprintf(path, PATH_MAX - 1, "%s/.%s/%s/", p, probe, HOSTTYPE); in pathprobe()
|
/titanic_50/usr/src/lib/libpp/common/ |
H A D | pptrace.c | 67 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 D | ppmacref.c | 38 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 D | ppbuiltin.c | 186 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()
|
H A D | ppsearch.c | 197 …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() 626 sfsprintf(name, sizeof(name) - 1, "%s%s", cp->value + cp->op + 1, file + cp->op); in ppsearch() 681 sfsprintf(name, sizeof(name) - 1, "%s/%s", pp.in->prefix, file); in ppsearch() 740 sfsprintf(name, sizeof(name) - 1, "%s/%s", pp.in->prefix, fp->name); in ppsearch() 756 sfsprintf(pp.tmpbuf, MAXTOKEN, "%s.h", file); in ppsearch()
|
/titanic_50/usr/src/lib/libdll/common/ |
H A D | dllnext.c | 139 (*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 D | dllscan.c | 253 sfsprintf(s, i, "lib/%s", lib); in dllsopen() 285 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s", info->prefix, name, info->suffix); in dllsopen() 296 sfsprintf(scan->nam, sizeof(scan->nam), "%s", s); in dllsopen() 299 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s.%s", info->prefix, name, info->suffix, version); in dllsopen() 315 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix); in dllsopen() 318 …sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(%s([-.])%s%s|%s.%s)", info->prefix, name, strchr(ve… in dllsopen() 322 …sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(?([-.])%s%s|%s%s)", info->prefix, name, version, in… in dllsopen() 427 b = scan->buf + sfsprintf(scan->buf, sizeof(scan->buf), "%s", b + scan->prelen); in dllsread()
|
/titanic_50/usr/src/lib/libast/common/tm/ |
H A D | tmxfmt.c | 76 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() 445 f += sfsprintf(f, &fmt[sizeof(fmt)] - f, "%d", width); in tmxfmt() 446 f += sfsprintf(f, &fmt[sizeof(fmt)] - f, "I%du", sizeof(Tmxsec_t)); in tmxfmt() 447 cp += sfsprintf(cp, ep - cp, fmt, tmxsec(now)); in tmxfmt() 450 n = sfsprintf(cp, ep - cp, ".%09I*u", sizeof(Tmxnsec_t), tmxnsec(now)); in tmxfmt()
|
H A D | tmpoff.c | 59 s += sfsprintf(s, e - s, "%02d%02d", n / 60, n % 60); in tmpoff()
|
/titanic_50/usr/src/lib/libast/common/sfio/ |
H A D | sfprintf.c | 90 ssize_t sfsprintf(char* s, size_t n, const char* form, ...) in sfsprintf() function 92 ssize_t sfsprintf(va_alist) in sfsprintf()
|