Home
last modified time | relevance | path

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

12

/illumos-gate/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()
348 nicenum_scale(reserved, factor, numbuf, sizeof (numbuf), 0); in doswap()
352 sizeof (numbuf), 0); in doswap()
355 nicenum_scale(available, factor, numbuf, sizeof (numbuf), 0); in doswap()
378 numbuf_t numbuf; in list() local
463 sizeof (numbuf), 0); in list()
464 (void) printf(gettext(" %8s"), numbuf); in list()
467 diskblks_per_page, numbuf, sizeof (numbuf), 0); in list()
468 (void) printf(gettext(" %8s"), numbuf); in list()
[all …]
/illumos-gate/usr/src/lib/libgss/
H A Doid_ops.c331 int numbuf; local
388 while (numbuf) {
390 numbuf >>= 7;
417 onumbuf += numbuf;
428 onumbuf = numbuf;
429 while (numbuf) {
431 numbuf >>= 7;
433 numbuf = onumbuf;
436 while (numbuf) {
438 numbuf & 0x7f;
[all …]
/illumos-gate/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;
H A Dmacro.c240 v = numbuf;
245 v = numbuf;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Doid_ops.c309 long numbuf; local
367 while (numbuf) {
369 numbuf >>= 7;
394 onumbuf = 40*numbuf;
396 onumbuf += numbuf;
407 onumbuf = numbuf;
408 while (numbuf) {
410 numbuf >>= 7;
412 numbuf = onumbuf;
415 while (numbuf) {
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c119 char numbuf[12]; /* Holds -2^31 and trailing ':' */ in getfield() local
130 if ((len = limit - p) > sizeof (numbuf) - 1) { in getfield()
131 len = sizeof (numbuf) - 1; in getfield()
138 if ((endfield = memccpy(numbuf, p, ':', len)) == 0) { in getfield()
143 numbuf[len] = ':'; in getfield()
146 p += (endfield - numbuf); in getfield()
149 unsigned long ux = strtoul(numbuf, &endfield, 10); in getfield()
156 long x = strtol(numbuf, &endfield, 10); in getfield()
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dadmintf.c299 char numbuf[32]; in cb_get_entity_info() local
454 char numbuf[32]; in cb_get_portal_info() local
507 (xmlChar *)numbuf); in cb_get_portal_info()
599 char numbuf[32]; in cb_get_dd_info() local
638 (xmlChar *)numbuf); in cb_get_dd_info()
682 char numbuf[32]; in cb_get_ddset_info() local
723 (xmlChar *)numbuf); in cb_get_ddset_info()
866 char numbuf[32]; in i_enumerate_dd_dds_info() local
1297 char numbuf[32]; in handle_partial_success() local
1361 char numbuf[32]; in handle_partial_failure() local
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c302 char numbuf[16]; local
335 (void) slprintf(numbuf, sizeof(numbuf), "%d", uid);
543 (void) slprintf(numbuf, sizeof(numbuf), "%d", getpid());
824 (void) slprintf(numbuf, sizeof(numbuf), "%d", baud_rate);
1150 char numbuf[16]; in detach() local
1191 (void) slprintf(numbuf, sizeof(numbuf), "%d", getpid()); in detach()
1576 (void) slprintf(numbuf, sizeof(numbuf), "%d", link_connect_time);
1583 (void) slprintf(numbuf, sizeof(numbuf), "%" PPP_COUNTER_F,
1586 (void) slprintf(numbuf, sizeof(numbuf), "%" PPP_COUNTER_F,
1589 (void) slprintf(numbuf, sizeof(numbuf), "%" PPP_COUNTER_F,
[all …]
/illumos-gate/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);
H A Dldap_attr.c511 char numbuf[MAX_INT_LEN], *strp; in attr_addmod() local
515 if (snprintf(numbuf, MAX_INT_LEN, "%d", value) >= MAX_INT_LEN) in attr_addmod()
522 strp = strdup(numbuf); in attr_addmod()
531 strp = strdup(numbuf); in attr_addmod()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dgeneralop.c1575 int numbuf; in kmf_string_to_oid() local
1615 while (numbuf) { in kmf_string_to_oid()
1617 numbuf >>= 7; in kmf_string_to_oid()
1640 onumbuf = 40 * numbuf; in kmf_string_to_oid()
1642 onumbuf += numbuf; in kmf_string_to_oid()
1652 onumbuf = numbuf; in kmf_string_to_oid()
1653 while (numbuf) { in kmf_string_to_oid()
1655 numbuf >>= 7; in kmf_string_to_oid()
1657 numbuf = onumbuf; in kmf_string_to_oid()
1660 while (numbuf) { in kmf_string_to_oid()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/troff/
H A Dn4.c193 tchar numbuf[17]; variable
200 if (numbufp >= &numbuf[16])
216 numbufp = numbuf;
221 pushback(numbuf);
/illumos-gate/usr/src/common/util/
H A Dstring.c79 char numbuf[65]; /* sufficient for a 64-bit binary value */ in vsnprintf() local
269 sp = numbuf; in vsnprintf()
304 while (sp > numbuf) { in vsnprintf()
/illumos-gate/usr/src/cmd/mandoc/
H A Dhtml.c426 char numbuf[16]; in print_encode() local
540 (void)snprintf(numbuf, sizeof(numbuf), "&#x%.4X;", c); in print_encode()
541 print_word(h, numbuf); in print_encode()
/illumos-gate/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()
1108 char numbuf[MAXDIGITIDX + 1]; in arglist2argv() local
1165 numbuf[MAXDIGITIDX] = '\0'; in arglist2argv()
1166 nullbyte = &numbuf[MAXDIGITIDX]; in arglist2argv()
1188 numbuf[MAXDIGITIDX] = '\0'; in arglist2argv()
1189 nullbyte = &numbuf[MAXDIGITIDX]; in arglist2argv()

12