/osnet-11/usr/src/lib/libast/common/string/ |
H A D | fmtversion.c | 43 sfsprintf(cur, end - cur, "%04lu-%02lu-%02lu", (v / 10000) % 10000, (v / 100) % 100, v % 100); 47 cur += sfsprintf(cur, end - cur, "%d.", n); 49 cur += sfsprintf(cur, end - cur, "%d.", n); 50 sfsprintf(cur, end - cur, "%ld.%ld", (v >> 8) & 0xff, v & 0xff);
|
H A D | fmtelapsed.c | 45 sfsprintf(buf, z, "%lu.%02lus", t, (u * 100 / n) % 100); 47 sfsprintf(buf, z, "%lum%02lus", t / 60, t - (t / 60) * 60); 49 sfsprintf(buf, z, "%luh%02lum", t / (60*60), (t - (t / (60*60)) * (60*60)) / 60); 51 sfsprintf(buf, z, "%lud%02luh", t / (24*60*60), (t - (t / (24*60*60)) * (24*60*60)) / (60*60)); 53 sfsprintf(buf, z, "%luw%02lud", t / (7*24*60*60), (t - (t / (7*24*60*60)) * (7*24*60*60)) / (24*60*60)); 55 sfsprintf(buf, z, "%luM%02lud", (t * 12) / (365*24*60*60), ((t * 12) - ((t * 12) / (365*24*60*60)) * (365*24*60*60)) / (12*24*60*60)); 57 sfsprintf(buf, z, "%luY%02luM", t / (365*24*60*60), ((t - (t / (365*24*60*60)) * (365*24*60*60)) * 5) / (152 * 24 * 60 * 60)); 59 sfsprintf(buf, z, "%luY%02luM", (t * 4) / ((365UL*4UL+1UL)*24UL*60UL*60UL), (((t * 4) - ((t * 4) / ((365UL*4UL+1UL)*24UL*60UL*60UL)) * ((365UL*4UL+1UL)*24UL*60UL*60UL)) * 5) / ((4 * 152 + 1) * 24 * 60 * 60));
|
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); 41 sfsprintf(buf + i, z - i, "/%d", bits);
|
H A D | fmtsignal.c | 47 sfsprintf(buf, z, "Signal %d", sig); 58 sfsprintf(buf, z, "%d", sig);
|
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); 64 s += sfsprintf(s, LS_W_MAX, "%*I*u ", LS_W_BLOCKS - 1, sizeof(n), n); 68 s += sfsprintf(s, LS_W_MAX, "%s%3u", fmtmode(st->st_mode, flags & LS_EXTERNAL), (unsigned int)st->st_nlink); 72 s += sfsprintf(s, LS_W_MAX, " %-*I*d", LS_W_NAME - 1, sizeof(st->st_uid), st->st_uid); 74 s += sfsprintf(s, LS_W_MAX, " %-*s", LS_W_NAME - 1, fmtuid(st->st_uid)); 79 s += sfsprintf(s, LS_W_MAX, " %-*I*d", LS_W_NAME - 1, sizeof(st->st_gid), st->st_gid); 81 s += sfsprintf(s, LS_W_MAX, " %-*s", LS_W_NAME - 1, fmtgid(st->st_gid)); 84 s += sfsprintf(s, LS_W_MAX, "%8s ", fmtdev(st)); 86 s += sfsprintf(s, LS_W_MAX, "%8I*u ", sizeof(st->st_size), st->st_size); 112 s += sfsprintf( [all...] |
H A D | strtape.c | 83 sfsprintf(tapefile, sizeof(tapefile), "/dev/rmt/ctape%c%s", mtunit, mtrewind); 87 sfsprintf(tapefile, sizeof(tapefile), "/dev/rmt/%c%c%s%s", mtunit, mtdensity, mtbehavior, mtrewind); 99 sfsprintf(tapefile, sizeof(tapefile), "/dev/%sst%c", mtrewind, mtunit); 119 sfsprintf(tapefile, sizeof(tapefile), "/dev/%srmt%c", mtrewind, mtunit); 145 sfsprintf(tapefile, sizeof(tapefile), "/dev/rmt%d", mtunit);
|
H A D | fmtnum.c | 88 sfsprintf(buf, z, "%lu.%0*lu%s", n, i, r, suf); 90 sfsprintf(buf, z, "%lu%s", n, suf);
|
H A D | fmtdev.c | 55 sfsprintf(buf, z, "%03d,%03d", ma, mi);
|
H A D | fmttv.c | 42 sfsprintf(t, n, "%s.%09lu", s, (unsigned long)tv->tv_nsec);
|
H A D | fmtbase.c | 50 sfsprintf(buf, z, p ? "%#..*I*u" : "%..*I*u", b, sizeof(n), n);
|
H A D | fmtclock.c | 61 sfsprintf(buf, z, "%I*u%cs", sizeof(t), t, u);
|
H A D | fmtscale.c | 86 sfsprintf(buf, z, "%I*u%c%d%s", sizeof(n), n, p->decimal >= 0 ? p->decimal : '.', r, suf); 91 sfsprintf(buf, z, "%I*u%s", sizeof(n), n, suf);
|
H A D | fmtfmt.c | 200 s += sfsprintf(s, 10, "%d", extra[m]);
|
/osnet-11/usr/src/lib/libast/common/misc/ |
H A D | fmtrec.c | 50 sfsprintf(s, e - s, "0x%02x", *(unsigned char*)del); 52 sfsprintf(s, e - s, "%s", fmtquote(del, NiL, NiL, 1, 0)); 60 sfsprintf(s, e - s, "%lu", REC_F_SIZE(f)); 65 s += sfsprintf(s, e - s, "%lu", n); 67 s += sfsprintf(s, e - s, "h%u", REC_V_HEADER(f)); 69 s += sfsprintf(s, e - s, "o%u", REC_V_OFFSET(f)); 71 s += sfsprintf(s, e - s, "z%u", REC_V_LENGTH(f)); 83 sfsprintf(s, e - s, "data"); 86 sfsprintf(s, e - s, "path"); 89 sfsprintf( [all...] |
H A D | systrace.c | 50 out += sfsprintf(out, sizeof(buf), "%s/.%s/%s", s, trace[0], id); 61 sfsprintf(out, &buf[sizeof(buf)] - out, ".%d", getpid());
|
H A D | fs3d.c | 84 sfsprintf(val, sizeof(val), "%s=%d", off, FS3D_arg(op));
|
/osnet-11/usr/src/lib/libdll/common/ |
H A D | dllerror.c | 49 sfsprintf(state.errorbuf, sizeof(state.errorbuf), "%s", s);
|
H A D | dllcheck.c | 44 sfsprintf(state.errorbuf, sizeof(state.errorbuf), "plugin_version() not found"); 79 sfsprintf(state.errorbuf, sizeof(state.errorbuf), "plugin version %lu older than caller %lu", v, ver);
|
H A D | dllnext.c | 139 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: next %s\n", vp)); 145 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: skip %s\n", vp)); 152 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: this %s\n", vp));
|
/osnet-11/usr/src/lib/libast/common/path/ |
H A D | pathfind.c | 107 sfsprintf(buf, size, "%s.%s", name, type); 121 sfsprintf(buf, size, "%-.*s%s", s - error_info.file + 1, error_info.file, name); 126 sfsprintf(buf, size, "%-.*s%s%.s", s - error_info.file + 1, error_info.file, name, type); 138 sfsprintf(tmp, sizeof(tmp), "%s/%s", dp->dir, name); 143 sfsprintf(tmp, sizeof(tmp), "%s/%s.%s", dp->dir, name, type); 157 sfsprintf(tmp, sizeof(tmp), "lib/%s/%s", lib, name); 162 sfsprintf(tmp, sizeof(tmp), "lib/%s/%s.%s", lib, name, type);
|
H A D | pathprobe.c | 151 k = lib + sfsprintf(lib, x - lib, "lib/%s/", probe); 152 p = k + sfsprintf(k, x - k, "%s/%s/", lang, tool); 187 sfsprintf(exe, sizeof(exe), "lib/%s/%s", probe, probe); 212 p = path + sfsprintf(path, PATH_MAX - 1, "%s/.%s/%s/", p, probe, HOSTTYPE);
|
/osnet-11/usr/src/lib/libast/common/tm/ |
H A D | tmpoff.c | 59 s += sfsprintf(s, e - s, "%02d%s%02d", n / 60, d == -24*60 ? ":" : "", n % 60);
|
/osnet-11/usr/src/lib/libpp/common/ |
H A D | ppmacref.c | 38 p += sfsprintf(p, MAXTOKEN, "\n#%s %d", pp.lineid, error_info.line); 39 p += sfsprintf(p, MAXTOKEN, "\n#%s %s:%s %s %d", dirname(PRAGMA), pp.pass, keyname(X_MACREF), sym->name, type); 44 p += sfsprintf(p, MAXTOKEN, " %lu", sum);
|
H A D | pptrace.c | 67 if (iscntrl(c) || !isprint(c)) sfsprintf(buf, sizeof(buf), "`%03o'", c); 69 else sfsprintf(buf, sizeof(buf), "%c", c); 100 sfsprintf(buf, sizeof(buf), "%s=%s", ppinmap[i].nam, p->symbol->name); 107 sfsprintf(buf, sizeof(buf), "UNKNOWN[%d]", p->type); 128 if (pplexmap[i].val < 0) sfsprintf(buf, sizeof(buf), "%s|0x%04x%s", pplexmap[i].nam, lex, splice ? "|SPLICE" : ""); 129 else sfsprintf(buf, sizeof(buf), "%s+%d", pplexmap[i-1].nam, lex - pplexmap[i-1].val, splice ? "|SPLICE" : ""); 134 sfsprintf(buf, sizeof(buf), "%s|SPLICE", pplexmap[i].nam);
|
/osnet-11/usr/src/lib/libast/common/sfio/ |
H A D | sfprintf.c | 90 ssize_t sfsprintf(char* s, size_t n, const char* form, ...) function 92 ssize_t sfsprintf(va_alist)
|