Searched refs:bufp (Results 1 - 25 of 273) sorted by relevance

1234567891011

/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmtrace.c111 char buf[1024], *bufp, *endbuf; local
135 bufp = buf; endbuf = buf+sizeof(buf);
136 bufp = trstrcpy(bufp, tritoa(oldaddr ? VLONG(oldaddr) : 0L, 0), ':');
137 bufp = trstrcpy(bufp, tritoa(newaddr ? VLONG(newaddr) : 0L, 0), ':');
138 bufp = trstrcpy(bufp, tritoa((Vmulong_t)size, 1), ':');
139 bufp = trstrcpy(bufp, trito
206 char buf[1024], *bufp; local
[all...]
H A Dvmdebug.c112 char buf[1024], *bufp, *endbuf, *s; local
117 bufp = buf;
121 bufp = (*_Vmstrcpy)(bufp, "alloc error", ':');
123 bufp = (*_Vmstrcpy)(bufp, "free error", ':');
125 bufp = (*_Vmstrcpy)(bufp, "resize error", ':');
127 bufp = (*_Vmstrcpy)(bufp, "corrupte
755 char buf[1024], *bufp; local
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelEmulate.c70 digest_buf_t *bufp; local
76 bufp = opp->context;
78 if (bufp != NULL) {
79 bufp->indata_len = 0;
84 if (buflen > bufp->buf_len) {
85 free(bufp->buf);
86 bufp->buf = NULL;
89 bufp = opp->context = calloc(1, sizeof (digest_buf_t));
90 if (bufp == NULL) {
95 if (bufp
156 digest_buf_t *bufp; local
[all...]
H A DkernelEmulate.h56 digest_buf_t *bufp = (opp)->context; \
57 if (bufp != NULL) { \
58 bzero(bufp->buf, bufp->indata_len); \
59 bufp->indata_len = 0; \
H A DkernelSessionUtil.c296 digest_buf_t *bufp = session_p->digest.context; local
298 if (bufp->buf != NULL) {
300 bzero(bufp->buf, bufp->indata_len);
301 free(bufp->buf);
303 free(bufp);
313 digest_buf_t *bufp = session_p->sign.context; local
315 if (bufp->buf != NULL) {
317 bzero(bufp->buf, bufp
324 digest_buf_t *bufp = session_p->verify.context; local
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dipft_sn.c130 static char *bufp = NULL; local
136 if (!bufp)
137 bufp = malloc(i);
139 bufp = realloc(bufp, i);
141 if (read(sfd, bufp, i) != i)
145 bcopy(bufp, buf, n);
158 static char *bufp = NULL; local
168 if (!bufp)
169 bufp
[all...]
H A Dipft_pc.c193 static char *bufp = NULL; local
199 if (!bufp)
200 bufp = malloc(i);
202 bufp = realloc(bufp, i);
204 if (read(pfd, bufp, i) != i)
208 bcopy(bufp, buf, n);
221 static char *bufp = NULL; local
233 if (!bufp)
234 bufp
[all...]
/illumos-gate/usr/src/cmd/sh/
H A Dprint.c46 static unsigned char *bufp = buffer; variable
201 bufp[index] = '\0';
202 write(buffd, bufp, length(bufp) - 1);
215 bufp[index++] = c;
234 movstr(s, &bufp[index]);
255 unsigned char *ptr = bufp;
295 if (buffd != -1 && ptr >= &bufp[BUFLEN-4]) {
297 prs(bufp);
298 ptr = bufp;
[all...]
/illumos-gate/usr/src/lib/libpri/common/
H A Dpri.c124 * - freep(bufp, size)
137 uint64_t *bufp; /* buf holding PRI */ local
169 if ((bufp = (uint64_t *)allocp(size)) == NULL) {
174 if (read(pri_fd, bufp, size) < 0) {
175 freep(bufp, size);
187 freep(bufp, size);
191 freep(bufp, size);
196 *buf = bufp;
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbtranslate.c66 char *bufp; local
90 bufp = byte ? byte : buf;
93 bufp += _curs_wctomb(bufp, *code & TRIM);
96 *bufp = '\0';
110 wchar_t *bufp; local
130 bufp = code ? code : buf;
144 *bufp++ = wchar;
149 *bufp = 0;
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dserialize.c200 krb5_ser_pack_int32(krb5_int32 iarg, krb5_octet **bufp, size_t *remainp)
203 (*bufp)[0] = (krb5_octet) ((iarg >> 24) & 0xff);
204 (*bufp)[1] = (krb5_octet) ((iarg >> 16) & 0xff);
205 (*bufp)[2] = (krb5_octet) ((iarg >> 8) & 0xff);
206 (*bufp)[3] = (krb5_octet) (iarg & 0xff);
207 *bufp += sizeof(krb5_int32);
221 krb5_ser_pack_int64(krb5_int64 iarg, krb5_octet **bufp, size_t *remainp)
224 store_64_be(iarg, (unsigned char *)*bufp);
225 *bufp += sizeof(krb5_int64);
238 krb5_ser_pack_bytes(krb5_octet *ostring, size_t osize, krb5_octet **bufp, size_
193 krb5_ser_pack_int32(krb5_int32 iarg, krb5_octet **bufp, size_t *remainp) argument
213 krb5_ser_pack_int64(krb5_int64 iarg, krb5_octet **bufp, size_t *remainp) argument
229 krb5_ser_pack_bytes(krb5_octet *ostring, size_t osize, krb5_octet **bufp, size_t *remainp) argument
245 krb5_ser_unpack_int32(krb5_int32 *intp, krb5_octet **bufp, size_t *remainp) argument
264 krb5_ser_unpack_int64(krb5_int64 *intp, krb5_octet **bufp, size_t *remainp) argument
280 krb5_ser_unpack_bytes(krb5_octet *istring, size_t isize, krb5_octet **bufp, size_t *remainp) argument
[all...]
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_rx.c72 dma_area_t *bufp; local
76 bufp = (dma_area_t *)arg;
77 ngep = (nge_t *)bufp->private;
85 if (bufp->signature != brp->buf_sign) {
86 if (bufp->rx_delivered == B_TRUE) {
87 nge_free_dma_mem(bufp);
88 kmem_free(bufp, sizeof (dma_area_t));
98 bufp->rx_recycle.free_func = nge_recv_recycle;
99 bufp->rx_recycle.free_arg = (caddr_t)bufp;
152 dma_area_t *bufp; local
[all...]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.h45 #define NSCD_ALLOC_LOOKUP_BUFFER(bufp, bufsiz, hdrp, space, spsiz) \
48 bufp = space; \
54 (bufp) = NULL; \
58 (bufp) = alloca(bufsiz); \
59 if ((bufp) != NULL) { \
60 (void) memcpy((bufp), (hdrp), NSCD_PHDR_LEN(hdrp)); \
61 (hdrp) = (nss_pheader_t *)(void *)(bufp); \
/illumos-gate/usr/src/uts/i86pc/os/
H A Dbiosdisk.c157 fn48_t *bufp; local
165 bufp = (fn48_t *)BIOS_RES_BUFFER_ADDR;
171 for (i = 0; i < sizeof (*bufp); i++)
172 ((uchar_t *)bufp)[i] = 0;
174 bufp->buflen = sizeof (*bufp);
178 rp.esi.word.si = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp);
179 rp.ds = FP_SEG((uint_t)(uintptr_t)bufp);
199 for (i = 0; i < sizeof (*bufp); i++)
200 tmp[i] = ((uchar_t *)bufp)[
249 caddr_t bufp; local
293 fn4b_t *bufp; local
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/
H A Dsmf_util.c65 char *name, *inst, *bufp, *fullname; local
73 bufp = fmd_hdl_alloc(hdl, len, FMD_SLEEP);
74 (void) snprintf(bufp, len, "svc:/%s:%s", name, inst);
76 fullname = fmd_hdl_strdup(hdl, bufp, FMD_SLEEP);
77 fmd_hdl_free(hdl, bufp, len);
/illumos-gate/usr/src/common/net/dhcp/
H A Doctet.c53 octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen) argument
60 if (nump == NULL || bufp == NULL || blen == NULL)
67 for (i = 0, bp = bufp, np = (const uchar_t *)nump; i < nlen; i++) {
82 hexascii_to_octet(const char *asp, uint_t alen, void *bufp, uint_t *blen) argument
88 if (asp == NULL || bufp == NULL || blen == NULL)
95 for (tp = asp, u_tp = (uchar_t *)bufp, i = 0; i < k; i++, u_tp++) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dinit.c44 static void mdesc_free(void *bufp, size_t size);
97 mdesc_free(void *bufp, size_t size) argument
99 if (bufp)
100 free(bufp);
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/
H A Dinit.c36 static void pri_free(void *bufp, size_t size);
98 pri_free(void *bufp, size_t size) argument
100 if (bufp)
101 free(bufp);
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Ddsparse.c44 static int next_line( char **bufp, long *blenp, char **linep );
48 ldap_next_line_tokens( char **bufp, long *blenp, char ***toksp ) argument
55 if (( rc = next_line( bufp, blenp, &line )) <= 0 ) {
98 next_line( char **bufp, long *blenp, char **linep ) argument
103 linestart = *bufp;
104 p = *bufp;
130 *bufp = p;
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci_tpgs.c57 char *bufp; local
69 bufp = kmem_zalloc(len, KM_NOSLEEP);
70 if (bufp == NULL) {
77 bp->b_un.b_addr = bufp;
82 bufp[4] = (0x0f & set_state);
83 bufp[6] = (0xff00 & tpg_id) >> 8;
84 bufp[7] = (0x00ff & tpg_id);
93 kmem_free((void *)bufp, len);
113 print_buf(bufp, len);
121 kmem_free((void *)bufp, le
307 char *bufp; local
448 char *ptr, *end, *bufp, *mpapi_ptr; local
[all...]
/illumos-gate/usr/src/lib/pam_modules/list/
H A Dlist.c71 char *bufp; local
228 bufp = buf;
260 bufp++;
264 bufp++;
280 bufp++;
287 if ((bufp[0] == '@') && (bufp[1] != '\0')) {
288 bufp++;
291 if (innetgr(bufp, rhost, username,
298 userok = innetgr(bufp, NUL
[all...]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dprintf.c78 char *bufp = buf; local
90 bufend = bufp + bufsize;
91 msgp = bufp;
96 len = msgp - bufp;
98 fakekernel_putlog(bufp, len, flags);
/illumos-gate/usr/src/lib/libcmd/common/
H A Duniq.c88 register char *cp, *ep, *mp, *bufp, *outp; local
95 if(bufp = sfgetr(fdin,'\n',0))
97 else if(bufp = sfgetr(fdin,'\n',SF_LASTR))
100 bufp = memcpy(fmtbuf(n + 1), bufp, n);
101 bufp[n++] = '\n';
107 cp = bufp;
125 if ((reclen = n - (cp - bufp)) <= 0)
128 cp = bufp + n - 1;
236 memcpy(outp+cwidth+sep,bufp,
[all...]
/illumos-gate/usr/src/uts/common/io/vioblk/
H A Dvioblk.c562 char *bufp = buf; local
566 bufp += snprintf(bufp, bufend - bufp, prefix);
569 bufp += virtio_show_features(features, bufp, bufend - bufp);
573 bufp += snprintf(bufp, bufend - bufp, "Viobl
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c184 char *bufp; local
213 shadow->sp_namp = bufp = buffer;
223 if ((bufp = strchr(bufp, ':')) == 0) {
229 *bufp++ = '\0';
231 shadow->sp_pwdp = bufp;
233 if ((bufp = strchr(bufp, ':')) == 0) {
239 *bufp++ = '\0';
240 p = bufp;
[all...]

Completed in 123 milliseconds

1234567891011