/ast/src/cmd/3d/ |
H A D | std_3d.h | 33 #undef sfsprintf macro 34 #define sfsprintf _3d_sfsprintf macro
|
/ast/src/cmd/tests/sfio/ |
H A D | tlocale.c | 47 sfsprintf(cmp, sizeof(cmp), "1%c000", thousand); 48 else sfsprintf(cmp, sizeof(cmp), "1000"); 49 sfsprintf(buf, sizeof(buf), "%'d", 1000); 54 sfsprintf(cmp, sizeof(cmp), "1%c000%c10", thousand, decimal); 55 else sfsprintf(cmp, sizeof(cmp), "1000%c10", decimal); 61 sfsprintf(buf, sizeof(buf), "%.2f", d);
|
H A D | tprintf.c | 241 sfsprintf(buf,n,"%! %d %d",&fe,3,4); 259 sfsprintf(buf2,sizeof(buf2),"%40s","0123456789"); 266 sfsprintf(buf1,sizeof(buf1),"%4d %4o %4x", 10, 11, 11); 267 sfsprintf(buf2,sizeof(buf2),"%2$4d %1$4o %1$4x", 11, 10); 271 sfsprintf(buf1,sizeof(buf1),"%d %1$d %.*d %1$d", 10, 5, 300); 272 sfsprintf(buf2,sizeof(buf2),"%d %1$d %3$.*2$d %1$d", 10, 5, 300); 281 sfsprintf(buf1,sizeof(buf1),"%4d %4o %4x %4o %4x %s", 10, 11, 12, 11, 10, "abc"); 282 sfsprintf(buf2,sizeof(buf2),"%!%2$4d %3$4O %4$4X %3$4O %2$4x %5$s", &fe); 288 sfsprintf(buf1,sizeof(buf1),"%6.2f",x); 296 sfsprintf(buf [all...] |
H A D | tfmt.c | 53 sfsprintf(buf1,sizeof(buf1),"%s",Mystr); 54 sfsprintf(buf2,sizeof(buf2),"%!", &fe);
|
/ast/src/lib/libast/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 | fmttv.c | 42 sfsprintf(t, n, "%s.%09lu", s, (unsigned long)tv->tv_nsec);
|
/ast/src/lib/libcs/ |
H A D | msgname.c | 37 sfsprintf(buf, sizeof(buf), "user_%d", n); 45 sfsprintf(buf, sizeof(buf), "f%s", msg_info.name[n]); 50 sfsprintf(buf, sizeof(buf), "ipc%s", msg_info.name[n]); 53 sfsprintf(buf, sizeof(buf), "sym%s", msg_info.name[n]);
|
/ast/src/lib/libast/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());
|
/ast/src/cmd/cs/ |
H A D | dbm.c | 173 n = sfsprintf(ret, sizeof(ret), "I closed\n", key.dptr); 178 if (val.dptr) n = sfsprintf(ret, sizeof(ret), "I %s\n", val.dptr); 182 n = sfsprintf(ret, sizeof(ret), "E db io error\n"); 184 else n = sfsprintf(ret, sizeof(ret), "W %s not in db\n", key.dptr); 207 if (val.dptr) n = sfsprintf(ret, sizeof(ret), "I %s %s\n", key.dptr, val.dptr); 213 n = sfsprintf(ret, sizeof(ret), "E db io error\n"); 215 else n = sfsprintf(ret, sizeof(ret), "E %s not in db\n", key.dptr); 219 else n = sfsprintf(ret, sizeof(ret), "I %s\n", key.dptr); 226 n = sfsprintf(ret, sizeof(ret), "E db io error\n"); 228 else n = sfsprintf(re [all...] |
/ast/src/cmd/dsslib/ip_t/ |
H A D | ivfmt.c | 46 s += sfsprintf(s, e - s, "%d", addr[0]); 48 s += sfsprintf(s, e - s, ".%d", addr[i]); 50 sfsprintf(s, e - s, "/%d", bits);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_rscs.c | 40 *n = sfsprintf(ret, *n, "E arguments error\n"); 55 *n = sfsprintf(ret, *n, "E %s cannot open for read\n", rf.path); 60 *n = sfsprintf(ret, *n, "E %s not vcs\n", rf.path); 68 *n = sfsprintf(ret, *n, "E version %s not existed\n", vs.version); 75 *n = sfsprintf(ret, *n, "E %s cannot open for write\n", vs.path); 81 *n = sfsprintf(ret, *n, "E checkout\n"); 90 *n = sfsprintf(ret, *n, "I %s(%s) checkout\n", vs.path, vs.tp->version); 109 *n = sfsprintf(ret, *n, "E %s cannot open for read\n", path); 114 *n = sfsprintf(ret, *n, "E %s not vcs\n", path); 120 *n = sfsprintf(re [all...] |
H A D | ifs_rsh.c | 54 sfsprintf( cmd, sizeof(cmd), "rsh %s", hostid ); 56 sfsprintf( cmd, sizeof(cmd), "rsh -l %s %s", userid, hostid ); 58 sfsprintf( buf, sizeof(buf), "%s /bin/ls -alL %s", cmd, rpath ); 72 sfsprintf( buf, sizeof(buf), "%s/._dir", lpath ); 80 sfsprintf( cmd, sizeof(cmd), "%s", hostid ); 82 sfsprintf( cmd, sizeof(cmd), "%s@%s", userid, hostid ); 85 sfsprintf( buf, sizeof(buf), "rcp %s:%s %s", cmd, rpath, tmpfile );
|
/ast/src/lib/libdll/ |
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"); 78 sfsprintf(state.errorbuf, sizeof(state.errorbuf), "plugin version %lu older than caller %lu", v, ver);
|
/ast/src/lib/libast/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);
|
/ast/src/lib/libast/tm/ |
H A D | tmpoff.c | 59 s += sfsprintf(s, e - s, "%02d%s%02d", n / 60, d == -24*60 ? ":" : "", n % 60);
|
/ast/src/lib/libcodex/ |
H A D | codexpass.c | 41 sfsprintf(prompt, sizeof(prompt), "Enter %s passphrase: ", meth->name);
|
/ast/src/lib/libtk/unix/ |
H A D | tkUnixInit.c | 98 sfsprintf(defaultLibraryDir, sizeof(defaultLibraryDir), "/usr/local/%s", LIB_DIR);
|