Searched refs:nbuf (Results 1 - 24 of 24) sorted by relevance

/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dconfig.c116 char nbuf[100];
122 if (l > sizeof nbuf - 1)
123 l = sizeof nbuf - 1;
124 memmove(nbuf, env, l);
125 nbuf[l] = '\0';
126 return setenv(nbuf, ++p, 1);
H A Dutil.c66 char *nbuf = sm_pmalloc_x(l); local
71 buf = nbuf;
/osnet-11/usr/src/lib/libndr/common/
H A Dndr_marshal.c84 ndr_buf_t *nbuf; local
86 if ((nbuf = calloc(1, sizeof (ndr_buf_t))) == NULL)
89 if ((nbuf->nb_heap = ndr_heap_create()) == NULL) {
90 free(nbuf);
94 nbuf->nb_ti = ti;
95 nbuf->nb_magic = NDR_BUF_MAGIC;
96 return (nbuf);
100 ndr_buf_fini(ndr_buf_t *nbuf) argument
102 assert(nbuf->nb_magic == NDR_BUF_MAGIC);
104 nds_destruct(&nbuf
125 ndr_buf_decode(ndr_buf_t *nbuf, unsigned hdr_type, unsigned opnum, const char *data, size_t datalen, void *result) argument
[all...]
/osnet-11/usr/src/lib/libeti/form/common/
H A Dfield.c54 0, /* nbuf */
142 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) argument
149 /* int nbuf; number of additional buffers */
155 nbuf >= 0 && Alloc(f, FIELD)) {
165 f->nbuf = nbuf;
174 for (i = 0; i <= f->nbuf; ++i)
211 f->nbuf = field->nbuf;
262 f->nbuf
310 field_info(FIELD *f, int *rows, int *cols, int *frow, int *fcol, int *nrow, int *nbuf) argument
[all...]
H A Dfield_buf.c48 if (!f || !v || n < 0 || n > f->nbuf)
84 if (f && n >= 0 && n <= f -> nbuf)
H A Dllib-lform75 new_field(rows, cols, frow, fcol, nrow, nbuf)
81 int nbuf;
104 field_info(f, rows, cols, frow, fcol, nrow, nbuf)
111 int *nbuf;
/osnet-11/usr/src/lib/libresolv/
H A Dres_query.c232 char nbuf[2*MAXDNAME+2]; local
233 char *longname = nbuf;
252 if (name[n] == '.' && n < sizeof (nbuf) - 1) {
254 memcpy((void *)nbuf, (void *)name, n);
256 bcopy(name, nbuf, n);
258 nbuf[n] = '\0';
262 (void) sprintf(nbuf, "%.*s.%.*s",
H A Dres_debug.c396 static char nbuf[40]; variable
453 (void) sprintf(nbuf, "%d", type);
454 return (nbuf);
474 (void) sprintf(nbuf, "%d", class);
475 return (nbuf);
490 strcpy(nbuf, "0 secs");
491 return (nbuf);
502 p = nbuf;
524 return (nbuf);
/osnet-11/usr/src/lib/nsswitch/files/common/
H A Dgetprofattr.c146 char *nbuf; local
154 nbuf = alloca(blen);
156 (void) snprintf(nbuf, blen, "%s,%s", val1,
159 (void) _insert2kva(kv1, key, nbuf);
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dres_query.c365 char nbuf[MAXDNAME]; local
366 const char *longname = nbuf;
386 strncpy(nbuf, name, n);
387 nbuf[n] = '\0';
397 sprintf(nbuf, "%s.%s", name, domain);
H A Dres_debug.c687 char *nbuf = p_option_nbuf; local
721 default: sprintf(nbuf, "?0x%lx?", (u_long)option);
722 return (nbuf);
731 char *nbuf = p_time_nbuf; local
733 if (ns_format_ttl(value, nbuf, sizeof nbuf) < 0)
734 sprintf(nbuf, "%u", value);
735 return (nbuf);
/osnet-11/usr/src/cmd/sendmail/src/
H A Ddomain.c790 char nbuf[SM_MAX(MAXPACKET, MAXDNAME*2+2)]; local
990 (RES_UNC_T) nbuf, sizeof(nbuf));
1069 eom, ap, (RES_UNC_T) nbuf,
1070 sizeof(nbuf))) < 0)
1072 (void) sm_strlcpy(host, nbuf, hbsize);
1134 (void) sm_snprintf(nbuf, sizeof(nbuf), "%.*s%s%.*s", MAXDNAME, host,
1137 (void) sm_strlcpy(host, nbuf, hbsize);
H A Dmap.c922 char nbuf[MAXNAME + 1]; local
924 p = get_column(line, i, '\0', nbuf, sizeof(nbuf));
2805 char nbuf[MAXNAME + 1]; local
2810 if (sm_strlcpy(nbuf, name, sizeof(nbuf)) >= sizeof(nbuf))
2815 (void) shorten_hostname(nbuf);
2816 keylen = strlen(nbuf);
2820 makelower(nbuf);
3185 char nbuf[MAXNAME + 1]; local
3820 char *nbuf; local
5456 char nbuf[MAXNAME]; local
5640 char nbuf[MAXNAME + 1]; local
5889 char nbuf[MAXNAME + 1]; local
6528 char nbuf[MAXNAME + 1]; local
7809 char *nbuf; local
[all...]
H A Denvelope.c1054 char nbuf[100]; local
1057 expand("\201n", nbuf, sizeof(nbuf), e);
1058 from = sm_rpool_strdup_x(e->e_rpool, nbuf);
/osnet-11/usr/src/grub/grub2/grub-core/normal/
H A Dcmdline.c286 grub_uint32_t *nbuf; local
288 nbuf = grub_realloc (buf, sizeof (grub_uint32_t) * max_len);
289 if (nbuf)
290 buf = nbuf;
/osnet-11/usr/src/lib/libdevalloc/common/
H A Dlibdevalloc.c1410 char *nbuf = NULL; local
1440 if ((nbuf = (char *)malloc(nsize + 1)) == NULL)
1442 nbuf[0] = '\0';
1444 (void) strcpy(nbuf, actionstr);
1445 nlen = strlen(nbuf);
1450 len = snprintf(nbuf + plen, nlen - plen, "%s", line);
1452 free(nbuf);
1461 len = snprintf(nbuf + plen, nlen - plen, "%s", line);
1463 free(nbuf);
1468 len = strlen(nbuf)
[all...]
/osnet-11/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c378 char nbuf[INET6_ADDRSTRLEN]; /* address parser */ local
590 np = inet_ntop(AF_INET6, (void *)&v6addr, nbuf,
593 np = inet_ntop(af, (void *)cp, nbuf,
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetexecattr.c130 char *nbuf = newline + 1; local
131 int nlen = buf + lenstr - nbuf;
134 res = _str2execattr(nbuf, nlen, &nexec, nbuf, nlen + 1);
H A Dgetutx.c1271 static int nbuf = 0; /* number of utmpbufs read from disk */ local
1298 nbuf++; /* Number of buf we have read in. */
1305 *off = (((nbuf - 1) * UTMPNBUF) + idx) * sizeof (struct futmpx);
/osnet-11/usr/src/lib/libast/common/misc/
H A Dmagic.c160 char nbuf[256]; /* !CC_NATIVE data */ \
688 if (c >= sizeof(mp->nbuf))
689 c = sizeof(mp->nbuf) - 1;
690 p = (char*)memcpy(mp->nbuf, p, c);
727 if (p == mp->nbuf || ep->mask >= sizeof(mp->nbuf))
729 p = (char*)memcpy(mp->nbuf, p, ep->mask);
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_consume.c2064 dtrace_bufdesc_t nbuf; local
2119 bzero(&nbuf, sizeof (dtrace_bufdesc_t));
2121 if ((nbuf.dtbd_data = malloc(size)) == NULL)
2128 nbuf.dtbd_cpu = i;
2133 if (dt_ioctl(dtp, DTRACEIOC_BUFSNAP, &nbuf) == -1) {
2142 free(nbuf.dtbd_data);
2148 i, &nbuf, pf, rf, arg)) != 0) {
2149 free(nbuf.dtbd_data);
2154 free(nbuf.dtbd_data);
/osnet-11/usr/src/lib/libnsl/nss/
H A Dnetdir_inet.c1139 struct netbuf nbuf; local
1150 nbuf.buf = (char *)&sa;
1151 nbuf.len = nbuf.maxlen = sizeof (sa);
1153 &addrs, &nbuf)) != 0) {
1160 _nderror = ndhostserv2hent(&nbuf, addrs, res->nss.host.hent,
1205 nbuf.buf = (char *)&sa;
1206 nbuf.len = nbuf.maxlen = sizeof (sa);
1208 &addrs, &nbuf)) !
2334 ndhostserv2hent(struct netbuf *nbuf, struct nd_hostservlist *addrs, struct hostent *result, char *buffer, int buflen) argument
[all...]
/osnet-11/usr/src/lib/libeti/form/inc/
H A Dform.h83 int nbuf; /* additional buffers */ member in struct:fieldnode
H A Dutility.h145 #define TotalBuf(f) ((BufSize(f) + 1) * ((f) -> nbuf + 1))

Completed in 80 milliseconds