Searched defs:numbuf (Results 1 - 25 of 37) sorted by relevance

12

/illumos-gate/usr/src/lib/libbc/libc/compat/4.1/
H A Dgetpw.c35 char numbuf[20]; local
44 sprintf(numbuf, "%d", pw->pw_uid);
45 strcat(buf, numbuf);
47 sprintf(numbuf, "%d", pw->pw_gid);
48 strcat(buf, numbuf);
/illumos-gate/usr/src/lib/libbc/libc/compat/sys5/
H A Dgetpw.c35 char numbuf[20]; local
48 sprintf(numbuf, "%d", pw->pw_uid);
49 strcat(buf, numbuf);
51 sprintf(numbuf, "%d", pw->pw_gid);
52 strcat(buf, numbuf);
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetservent.c133 char numbuf[12], *numend; local
152 if (numlen == 0 || numlen >= sizeof (numbuf))
154 (void) memcpy(numbuf, numstart, numlen);
155 numbuf[numlen] = '\0';
156 s_port = htons((int)strtol(numbuf, &numend, 10));
/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/lib/libsocket/inet/
H A Dgetnetent_r.c141 char numbuf[16]; local
179 if (numlen >= (ptrdiff_t)sizeof (numbuf)) {
183 (void) memcpy(numbuf, numstart, numlen);
184 numbuf[numlen] = '\0';
185 net->n_net = inet_network(numbuf);
H A Dgetprotoent_r.c136 char numbuf[16]; local
175 if (numlen >= (int)sizeof (numbuf)) {
179 (void) memcpy(numbuf, numstart, (size_t)numlen);
180 numbuf[numlen] = '\0';
181 proto->p_proto = (int)strtol(numbuf, &numend, 10);
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c229 char numbuf[12], *numend; local
248 if (numlen == 0 || numlen >= sizeof (numbuf))
250 (void) memcpy(numbuf, numstart, numlen);
251 numbuf[numlen] = '\0';
252 s_port = htons((int)strtol(numbuf, &numend, 10));
/illumos-gate/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...]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgetrpcent_r.c124 char numbuf[12]; local
159 if (numlen >= sizeof (numbuf)) {
163 (void) memcpy(numbuf, numstart, numlen);
164 numbuf[numlen] = '\0';
165 rpc->r_number = (int)strtol(numbuf, &numend, 10);
/illumos-gate/usr/src/cmd/addbadsec/
H A Daddbadsec.c84 char numbuf[100]; local
233 (void) sprintf(numbuf, "%d", alts_slice);
234 p = strlen(numbuf);
238 (void) strcpy(&alts_name[l - 1], numbuf);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c119 char numbuf[12]; /* Holds -2^31 and trailing ':' */ local
130 if ((len = limit - p) > sizeof (numbuf) - 1) {
131 len = sizeof (numbuf) - 1;
138 if ((endfield = memccpy(numbuf, p, ':', len)) == 0) {
143 numbuf[len] = ':';
146 p += (endfield - numbuf);
149 unsigned long ux = strtoul(numbuf, &endfield, 10);
156 long x = strtol(numbuf, &endfield, 10);
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dmod.c272 char numbuf[MAXINTSTR]; local
321 (void) snprintf(numbuf, MAXINTSTR, "%d", modid);
322 topo_fmristr_build(&size, buf, buflen, numbuf, FM_FMRI_MOD_ID "=",
/illumos-gate/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...]
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Ddoscan.c204 char numbuf[64], inchar, lookahead; local
205 char *np = numbuf;
349 if (np > numbuf + 62)
/illumos-gate/usr/src/cmd/sh/
H A Dprint.c43 unsigned char numbuf[21]; variable
128 prs(numbuf);
144 strncpy(numbuf, abuf, sizeof (numbuf));
171 numbuf[20] = '\0';
173 numbuf[i] = n % 10 + '0';
187 numbuf[20] = '\0';
189 numbuf[i] = n % 10 + '0';
312 prs_buff(&numbuf[ulltos(lc)]);
320 prs_buff(numbuf);
[all...]
/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/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; local
515 if (snprintf(numbuf, MAX_INT_LEN, "%d", value) >= MAX_INT_LEN)
522 strp = strdup(numbuf);
531 strp = strdup(numbuf);
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Ddoor.c1150 char numbuf[32]; local
1161 (void) sprintf(numbuf, "%d", ISNS_RSP_SUCCESSFUL);
1163 (xmlChar *)numbuf) == NULL) {
1167 (void) sprintf(numbuf, "%d", code);
1169 (xmlChar *)numbuf) == NULL) {
H A Dadmintf.c299 char numbuf[32]; local
313 (void) sprintf(numbuf, "%u", attr->value.ui);
315 (xmlChar *)ENTITYPROTOCOL, (xmlChar *)numbuf);
345 (void) sprintf(numbuf, "%u", attr->value.ui);
347 (xmlChar *)ENTITYREGTIMESTAMP, (xmlChar *)numbuf);
361 (void) sprintf(numbuf, "%u",
364 (xmlChar *)PROTOCOLMAXVERSION, (xmlChar *)numbuf);
368 (void) sprintf(numbuf, "%u", attr->value.ui & ISNS_VERSION);
370 (xmlChar *)PROTOCOLMINVERSION, (xmlChar *)numbuf);
378 (void) sprintf(numbuf, "
454 char numbuf[32]; local
599 char numbuf[32]; local
682 char numbuf[32]; local
866 char numbuf[32]; local
1297 char numbuf[32]; local
1361 char numbuf[32]; local
1432 char numbuf[32]; local
[all...]
/illumos-gate/usr/src/cmd/swap/
H A Dswap.c310 numbuf_t numbuf; local
345 nicenum_scale(allocated, factor, numbuf, sizeof (numbuf), 0);
346 (void) printf(gettext("total: %s allocated + "), numbuf);
348 nicenum_scale(reserved, factor, numbuf, sizeof (numbuf), 0);
349 (void) printf(gettext("%s reserved = "), numbuf);
351 nicenum_scale(allocated + reserved, factor, numbuf,
352 sizeof (numbuf), 0);
353 (void) printf(gettext("%s used, "), numbuf);
378 numbuf_t numbuf; local
[all...]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Ddoscan.c603 char numbuf[64]; local
604 char *np = numbuf;
779 if (np > numbuf + 62) {
/illumos-gate/usr/src/common/util/
H A Dstring.c79 char numbuf[65]; /* sufficient for a 64-bit binary value */ local
267 sp = numbuf;
302 while (sp > numbuf) {
/illumos-gate/usr/src/cmd/fm/fmtopo/common/
H A Dfmtopo.c191 char buf[PATH_MAX], numbuf[64]; local
237 (void) snprintf(numbuf, sizeof (numbuf), "%u", ul);
238 (void) strlcat(buf, numbuf, sizeof (buf));
/illumos-gate/usr/src/cmd/mandoc/
H A Dhtml.c426 char numbuf[16]; local
540 (void)snprintf(numbuf, sizeof(numbuf), "&#x%.4X;", c);
541 print_word(h, numbuf);

Completed in 190 milliseconds

12