Home
last modified time | relevance | path

Searched refs:numbuf (Results 1 – 25 of 42) sorted by relevance

12

/titanic_44/usr/src/cmd/swap/
H A Dswap.c310 numbuf_t numbuf; in doswap() local
345 nicenum_scale(allocated, factor, numbuf, sizeof (numbuf), 0); in doswap()
346 (void) printf(gettext("total: %s allocated + "), numbuf); in doswap()
348 nicenum_scale(reserved, factor, numbuf, sizeof (numbuf), 0); in doswap()
349 (void) printf(gettext("%s reserved = "), numbuf); in doswap()
351 nicenum_scale(allocated + reserved, factor, numbuf, in doswap()
352 sizeof (numbuf), 0); in doswap()
353 (void) printf(gettext("%s used, "), numbuf); in doswap()
355 nicenum_scale(available, factor, numbuf, sizeof (numbuf), 0); in doswap()
356 (void) printf(gettext("%s available\n"), numbuf); in doswap()
[all …]
/titanic_44/usr/src/lib/libgss/
H A Doid_ops.c331 int numbuf; local
367 if (sscanf(bp, "%d", &numbuf) != 1) {
375 if (sscanf(bp, "%d", &numbuf) != 1) {
385 if (sscanf(bp, "%d", &numbuf) != 1) {
388 while (numbuf) {
390 numbuf >>= 7;
410 (void) sscanf(bp, "%d", &numbuf);
415 onumbuf = 40*numbuf;
416 (void) sscanf(bp, "%d", &numbuf);
417 onumbuf += numbuf;
[all …]
/titanic_44/usr/src/cmd/sh/
H A Dprint.c43 unsigned char numbuf[21]; variable
128 prs(numbuf); in prn()
144 strncpy(numbuf, abuf, sizeof (numbuf)); in itos()
171 numbuf[20] = '\0'; in ltos()
173 numbuf[i] = n % 10 + '0'; in ltos()
187 numbuf[20] = '\0'; in ulltos()
189 numbuf[i] = n % 10 + '0'; in ulltos()
312 prs_buff(&numbuf[ulltos(lc)]); in prull_buff()
320 prs_buff(numbuf); in prn_buff()
H A Dbltin.c433 extern unsigned char numbuf[]; in builtin()
451 assign(n, numbuf); in builtin()
459 assign(n, numbuf); in builtin()
H A Djobs.c497 sp -= strlen(numbuf) + strlen(gmsg); in printjob()
499 prs_buff(numbuf); in printjob()
509 sp -= strlen(gmsg) + strlen(numbuf) + 2; in printjob()
513 prs_buff(numbuf); in printjob()
811 cp = (char *)numbuf;
/titanic_44/usr/src/lib/libbc/libc/compat/4.1/
H A Dgetpw.c35 char numbuf[20]; in getpw() local
44 sprintf(numbuf, "%d", pw->pw_uid); in getpw()
45 strcat(buf, numbuf); in getpw()
47 sprintf(numbuf, "%d", pw->pw_gid); in getpw()
48 strcat(buf, numbuf); in getpw()
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Doid_ops.c309 long numbuf; local
345 if (sscanf((char *)bp, "%ld", &numbuf) != 1) {
353 if (sscanf((char *)bp, "%ld", &numbuf) != 1) {
364 if (sscanf((char *)bp, "%ld", &numbuf) != 1) {
367 while (numbuf) {
369 numbuf >>= 7;
389 (void) sscanf((char *)bp, "%ld", &numbuf);
394 onumbuf = 40*numbuf;
395 (void) sscanf((char *)bp, "%ld", &numbuf);
396 onumbuf += numbuf;
[all …]
/titanic_44/usr/src/lib/libbc/libc/compat/sys5/
H A Dgetpw.c35 char numbuf[20]; in getpw() local
48 sprintf(numbuf, "%d", pw->pw_uid); in getpw()
49 strcat(buf, numbuf); in getpw()
51 sprintf(numbuf, "%d", pw->pw_gid); in getpw()
52 strcat(buf, numbuf); in getpw()
/titanic_44/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c118 char numbuf[12]; /* Holds -2^31 and trailing ':' */ in getfield() local
129 if ((len = limit - p) > sizeof (numbuf) - 1) { in getfield()
130 len = sizeof (numbuf) - 1; in getfield()
137 if ((endfield = memccpy(numbuf, p, ':', len)) == 0) { in getfield()
142 numbuf[len] = ':'; in getfield()
145 p += (endfield - numbuf); in getfield()
148 unsigned long ux = strtoul(numbuf, &endfield, 10); in getfield()
155 long x = strtol(numbuf, &endfield, 10); in getfield()
/titanic_44/usr/src/cmd/isns/isnsd/
H A Dadmintf.c299 char numbuf[32]; in cb_get_entity_info() local
313 (void) sprintf(numbuf, "%u", attr->value.ui); in cb_get_entity_info()
315 (xmlChar *)ENTITYPROTOCOL, (xmlChar *)numbuf); in cb_get_entity_info()
345 (void) sprintf(numbuf, "%u", attr->value.ui); in cb_get_entity_info()
347 (xmlChar *)ENTITYREGTIMESTAMP, (xmlChar *)numbuf); in cb_get_entity_info()
361 (void) sprintf(numbuf, "%u", in cb_get_entity_info()
364 (xmlChar *)PROTOCOLMAXVERSION, (xmlChar *)numbuf); in cb_get_entity_info()
368 (void) sprintf(numbuf, "%u", attr->value.ui & ISNS_VERSION); in cb_get_entity_info()
370 (xmlChar *)PROTOCOLMINVERSION, (xmlChar *)numbuf); in cb_get_entity_info()
378 (void) sprintf(numbuf, "%u", attr->value.ui); in cb_get_entity_info()
[all …]
/titanic_44/usr/src/lib/libnsl/nss/
H A Dgetrpcent_r.c124 char numbuf[12]; in str2rpcent() local
159 if (numlen >= sizeof (numbuf)) { in str2rpcent()
163 (void) memcpy(numbuf, numstart, numlen); in str2rpcent()
164 numbuf[numlen] = '\0'; in str2rpcent()
165 rpc->r_number = (int)strtol(numbuf, &numend, 10); in str2rpcent()
/titanic_44/usr/src/lib/libsocket/inet/
H A Dgetprotoent_r.c136 char numbuf[16]; in str2protoent() local
175 if (numlen >= (int)sizeof (numbuf)) { in str2protoent()
179 (void) memcpy(numbuf, numstart, (size_t)numlen); in str2protoent()
180 numbuf[numlen] = '\0'; in str2protoent()
181 proto->p_proto = (int)strtol(numbuf, &numend, 10); in str2protoent()
H A Dgetnetent_r.c141 char numbuf[16]; in str2netent() local
179 if (numlen >= (ptrdiff_t)sizeof (numbuf)) { in str2netent()
183 (void) memcpy(numbuf, numstart, numlen); in str2netent()
184 numbuf[numlen] = '\0'; in str2netent()
185 net->n_net = inet_network(numbuf); in str2netent()
/titanic_44/usr/src/lib/nsswitch/files/common/
H A Dgetservent.c133 char numbuf[12], *numend; in check_port() local
152 if (numlen == 0 || numlen >= sizeof (numbuf)) in check_port()
154 (void) memcpy(numbuf, numstart, numlen); in check_port()
155 numbuf[numlen] = '\0'; in check_port()
156 s_port = htons((int)strtol(numbuf, &numend, 10)); in check_port()
/titanic_44/usr/src/lib/krb5/ss/
H A Dutils.c62 char *string, *var_name, numbuf[16]; local
69 sprintf(numbuf, "%d", options);
70 size += strlen(numbuf)+5; /* " }," + NL + NUL */
79 strcat(string, numbuf);
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c305 char numbuf[16]; local
338 (void) slprintf(numbuf, sizeof(numbuf), "%d", uid);
339 script_setenv("ORIG_UID", numbuf, 0);
546 (void) slprintf(numbuf, sizeof(numbuf), "%d", getpid());
547 script_setenv("PPPD_PID", numbuf, 1);
827 (void) slprintf(numbuf, sizeof(numbuf), "%d", baud_rate);
828 script_setenv("SPEED", numbuf, 0);
1153 char numbuf[16]; in detach() local
1194 (void) slprintf(numbuf, sizeof(numbuf), "%d", getpid()); in detach()
1195 script_setenv("PPPD_PID", numbuf, 1); in detach()
[all …]
/titanic_44/usr/src/lib/passwdutil/
H A Dswitch_utils.c453 char numbuf[12]; /* Holds -2^31 and trailing ':' */ local
466 if ((len = limit - p) > sizeof (numbuf) - 1) {
467 len = sizeof (numbuf) - 1;
474 if ((endfield = memccpy(numbuf, p, ':', len)) == 0) {
479 numbuf[len] = ':';
482 p += (endfield - numbuf);
485 ux = strtoul(numbuf, &endfield, 10);
492 x = strtol(numbuf, &endfield, 10);
/titanic_44/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c229 char numbuf[12], *numend; in check_port2() local
248 if (numlen == 0 || numlen >= sizeof (numbuf)) in check_port2()
250 (void) memcpy(numbuf, numstart, numlen); in check_port2()
251 numbuf[numlen] = '\0'; in check_port2()
252 s_port = htons((int)strtol(numbuf, &numend, 10)); in check_port2()
/titanic_44/usr/src/cmd/addbadsec/
H A Daddbadsec.c84 char numbuf[100]; in main() local
233 (void) sprintf(numbuf, "%d", alts_slice); in main()
234 p = strlen(numbuf); in main()
238 (void) strcpy(&alts_name[l - 1], numbuf); in main()
/titanic_44/usr/src/lib/libkmf/libkmf/common/
H A Dgeneralop.c1575 int numbuf; in kmf_string_to_oid() local
1598 if (sscanf(bp, "%d", &numbuf) != 1) in kmf_string_to_oid()
1604 if (sscanf(bp, "%d", &numbuf) != 1) in kmf_string_to_oid()
1613 if (sscanf(bp, "%d", &numbuf) != 1) in kmf_string_to_oid()
1615 while (numbuf) { in kmf_string_to_oid()
1617 numbuf >>= 7; in kmf_string_to_oid()
1635 (void) sscanf(bp, "%d", &numbuf); in kmf_string_to_oid()
1640 onumbuf = 40 * numbuf; in kmf_string_to_oid()
1641 (void) sscanf(bp, "%d", &numbuf); in kmf_string_to_oid()
1642 onumbuf += numbuf; in kmf_string_to_oid()
[all …]
/titanic_44/usr/src/lib/fm/topo/libtopo/common/
H A Dmod.c272 char numbuf[MAXINTSTR]; in fmri_nvl2str() local
321 (void) snprintf(numbuf, MAXINTSTR, "%d", modid); in fmri_nvl2str()
322 topo_fmristr_build(&size, buf, buflen, numbuf, FM_FMRI_MOD_ID "=", in fmri_nvl2str()
/titanic_44/usr/src/lib/libbc/libc/stdio/common/
H A Ddoscan.c204 char numbuf[64], inchar, lookahead; in number() local
205 char *np = numbuf; in number()
349 if (np > numbuf + 62) in number()
/titanic_44/usr/src/cmd/troff/
H A Dn4.c193 tchar numbuf[17]; variable
200 if (numbufp >= &numbuf[16])
216 numbufp = numbuf;
221 pushback(numbuf);
/titanic_44/usr/src/common/util/
H A Dstring.c72 char numbuf[65]; /* sufficient for a 64-bit binary value */ in vsnprintf() local
269 sp = numbuf; in vsnprintf()
275 while (sp > numbuf) { in vsnprintf()
/titanic_44/usr/src/cmd/fm/modules/common/eversholt/
H A Dplatform.c120 static char numbuf[MAXPATHLEN]; variable
422 (void) snprintf(numbuf, MAXPATHLEN, "%lu", ul); in hc_path()
423 (void) strlcat(tmpbuf, numbuf, MAXPATHLEN); in hc_path()
1106 char numbuf[MAXDIGITIDX + 1]; in arglist2argv() local
1163 numbuf[MAXDIGITIDX] = '\0'; in arglist2argv()
1164 nullbyte = &numbuf[MAXDIGITIDX]; in arglist2argv()
1186 numbuf[MAXDIGITIDX] = '\0'; in arglist2argv()
1187 nullbyte = &numbuf[MAXDIGITIDX]; in arglist2argv()

12