Home
last modified time | relevance | path

Searched refs:bufp (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/titanic_41/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, tritoa((Vmulong_t)align, 1), ':');
140 bufp = trstrcpy(bufp, tritoa(VLONG(vm), 0), ':');
142 bufp = trstrcpy(bufp, "b", ':');
144 bufp = trstrcpy(bufp, "l", ':');
146 bufp = trstrcpy(bufp, "p", ':');
[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, "corrupted data", ':');
129 bufp = (*_Vmstrcpy)(bufp, "alert", ':');
132 bufp = (*_Vmstrcpy)(bufp, "region", '=');
133 bufp = (*_Vmstrcpy)(bufp, (*_Vmitoa)(VLONG(vm), 0), ':');
136 { bufp = (*_Vmstrcpy)(bufp,"block",'=');
[all …]
H A Dvmprofile.c365 char buf[1024], *bufp, *endbuf; local
366 #define INITBUF() (bufp = buf, endbuf = buf+sizeof(buf)-128)
367 #define CHKBUF() (bufp >= endbuf ? (write(fd,buf,bufp-buf), bufp=buf) : bufp)
368 #define FLSBUF() (bufp > buf ? write(fd,buf,bufp-buf) : 0)
407 bufp = (*_Vmstrcpy)(bufp,"ALLOCATION USAGE SUMMARY", ':');
408 bufp = pfsummary(bufp,nalloc,alloc,nfree,free,0,0);
417 bufp = (*_Vmstrcpy)(bufp,"region", '=');
418 bufp = (*_Vmstrcpy)(bufp, (*_Vmitoa)(VLONG(PFVM(pf)),0), ':');
419 bufp = pfsummary(bufp,PFNALLOC(pf),PFALLOC(pf),
437 bufp = (*_Vmstrcpy)(bufp,"file",'=');
[all …]
/titanic_41/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelEmulate.c70 digest_buf_t *bufp; in emulate_buf_init() local
76 bufp = opp->context; in emulate_buf_init()
78 if (bufp != NULL) { in emulate_buf_init()
79 bufp->indata_len = 0; in emulate_buf_init()
84 if (buflen > bufp->buf_len) { in emulate_buf_init()
85 free(bufp->buf); in emulate_buf_init()
86 bufp->buf = NULL; in emulate_buf_init()
89 bufp = opp->context = calloc(1, sizeof (digest_buf_t)); in emulate_buf_init()
90 if (bufp == NULL) { in emulate_buf_init()
95 if (bufp->buf == NULL) { in emulate_buf_init()
[all …]
H A DkernelSessionUtil.c296 digest_buf_t *bufp = session_p->digest.context; in kernel_delete_session() local
298 if (bufp->buf != NULL) { in kernel_delete_session()
300 bzero(bufp->buf, bufp->indata_len); in kernel_delete_session()
301 free(bufp->buf); in kernel_delete_session()
303 free(bufp); in kernel_delete_session()
313 digest_buf_t *bufp = session_p->sign.context; in kernel_delete_session() local
315 if (bufp->buf != NULL) { in kernel_delete_session()
317 bzero(bufp->buf, bufp->indata_len); in kernel_delete_session()
318 free(bufp->buf); in kernel_delete_session()
320 free(bufp); in kernel_delete_session()
[all …]
/titanic_41/usr/src/uts/common/io/nge/
H A Dnge_rx.c72 dma_area_t *bufp; in nge_recv_recycle() local
76 bufp = (dma_area_t *)arg; in nge_recv_recycle()
77 ngep = (nge_t *)bufp->private; in nge_recv_recycle()
85 if (bufp->signature != brp->buf_sign) { in nge_recv_recycle()
86 if (bufp->rx_delivered == B_TRUE) { in nge_recv_recycle()
87 nge_free_dma_mem(bufp); in nge_recv_recycle()
88 kmem_free(bufp, sizeof (dma_area_t)); in nge_recv_recycle()
98 bufp->rx_recycle.free_func = nge_recv_recycle; in nge_recv_recycle()
99 bufp->rx_recycle.free_arg = (caddr_t)bufp; in nge_recv_recycle()
101 bufp->mp = desballoc(DMA_VPTR(*bufp), in nge_recv_recycle()
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dserialize.c193 krb5_ser_pack_int32(krb5_int32 iarg, krb5_octet **bufp, size_t *remainp) in krb5_ser_pack_int32() argument
196 (*bufp)[0] = (krb5_octet) ((iarg >> 24) & 0xff); in krb5_ser_pack_int32()
197 (*bufp)[1] = (krb5_octet) ((iarg >> 16) & 0xff); in krb5_ser_pack_int32()
198 (*bufp)[2] = (krb5_octet) ((iarg >> 8) & 0xff); in krb5_ser_pack_int32()
199 (*bufp)[3] = (krb5_octet) (iarg & 0xff); in krb5_ser_pack_int32()
200 *bufp += sizeof(krb5_int32); in krb5_ser_pack_int32()
213 krb5_ser_pack_int64(krb5_int64 iarg, krb5_octet **bufp, size_t *remainp) in krb5_ser_pack_int64() argument
216 store_64_be(iarg, (unsigned char *)*bufp); in krb5_ser_pack_int64()
217 *bufp += sizeof(krb5_int64); in krb5_ser_pack_int64()
229 krb5_ser_pack_bytes(krb5_octet *ostring, size_t osize, krb5_octet **bufp, size_t *remainp) in krb5_ser_pack_bytes() argument
[all …]
/titanic_41/usr/src/uts/i86pc/os/
H A Dbiosdisk.c160 fn48_t *bufp; in get_dev_params() local
168 bufp = (fn48_t *)BIOS_RES_BUFFER_ADDR; in get_dev_params()
174 for (i = 0; i < sizeof (*bufp); i++) in get_dev_params()
175 ((uchar_t *)bufp)[i] = 0; in get_dev_params()
177 bufp->buflen = sizeof (*bufp); in get_dev_params()
181 rp.esi.word.si = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp); in get_dev_params()
182 rp.ds = FP_SEG((uint_t)(uintptr_t)bufp); in get_dev_params()
202 for (i = 0; i < sizeof (*bufp); i++) in get_dev_params()
203 tmp[i] = ((uchar_t *)bufp)[i]; in get_dev_params()
252 caddr_t bufp; in read_firstblock() local
[all …]
/titanic_41/usr/src/cmd/sh/
H A Dprint.c46 static unsigned char *bufp = buffer; variable
201 bufp[index] = '\0'; in flushb()
202 write(buffd, bufp, length(bufp) - 1); in flushb()
215 bufp[index++] = c; in prc_buff()
234 movstr(s, &bufp[index]); in prs_buff()
255 unsigned char *ptr = bufp; in prs_cntl()
295 if (buffd != -1 && ptr >= &bufp[BUFLEN-4]) { in prs_cntl()
297 prs(bufp); in prs_cntl()
298 ptr = bufp; in prs_cntl()
306 prs(bufp); in prs_cntl()
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci_tpgs.c57 char *bufp; in vhci_tpgs_set_target_groups() local
69 bufp = kmem_zalloc(len, KM_NOSLEEP); in vhci_tpgs_set_target_groups()
70 if (bufp == NULL) { in vhci_tpgs_set_target_groups()
77 bp->b_un.b_addr = bufp; in vhci_tpgs_set_target_groups()
82 bufp[4] = (0x0f & set_state); in vhci_tpgs_set_target_groups()
83 bufp[6] = (0xff00 & tpg_id) >> 8; in vhci_tpgs_set_target_groups()
84 bufp[7] = (0x00ff & tpg_id); in vhci_tpgs_set_target_groups()
93 kmem_free((void *)bufp, len); in vhci_tpgs_set_target_groups()
113 print_buf(bufp, len); in vhci_tpgs_set_target_groups()
121 kmem_free((void *)bufp, len); in vhci_tpgs_set_target_groups()
[all …]
/titanic_41/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 = malloc(i);
171 bufp = realloc(bufp, i);
[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 = malloc(i);
236 bufp = realloc(bufp, i);
[all …]
/titanic_41/usr/src/lib/libcurses/screen/
H A Dmbtranslate.c66 char *bufp; in _strcode2byte() local
90 bufp = byte ? byte : buf; in _strcode2byte()
93 bufp += _curs_wctomb(bufp, *code & TRIM); in _strcode2byte()
96 *bufp = '\0'; in _strcode2byte()
110 wchar_t *bufp; in _strbyte2code() local
130 bufp = code ? code : buf; in _strbyte2code()
144 *bufp++ = wchar; in _strbyte2code()
149 *bufp = 0; in _strbyte2code()
/titanic_41/usr/src/cmd/mandoc/
H A Droff.c142 char **bufp, /* input buffer */ \
495 roff_res(struct roff *r, char **bufp, size_t *szp, int ln, int pos) in roff_res() argument
511 cp = *bufp + pos; in roff_res()
536 ln, (int)(stesc - *bufp), NULL); in roff_res()
572 (int)(stesc - *bufp), NULL); in roff_res()
593 ln, (int)(stesc - *bufp), NULL); in roff_res()
599 pos = stesc - *bufp; in roff_res()
604 strlcpy(nbuf, *bufp, (size_t)(stesc - *bufp + 1)); in roff_res()
608 free(*bufp); in roff_res()
610 *bufp = nbuf; in roff_res()
[all …]
/titanic_41/usr/src/uts/common/io/vioblk/
H A Dvioblk.c562 char *bufp = buf; in vioblk_show_features() local
566 bufp += snprintf(bufp, bufend - bufp, prefix); in vioblk_show_features()
569 bufp += virtio_show_features(features, bufp, bufend - bufp); in vioblk_show_features()
573 bufp += snprintf(bufp, bufend - bufp, "Vioblk ( "); in vioblk_show_features()
577 bufp += snprintf(bufp, bufend - bufp, "BARRIER "); in vioblk_show_features()
580 bufp += snprintf(bufp, bufend - bufp, "SIZE_MAX "); in vioblk_show_features()
583 bufp += snprintf(bufp, bufend - bufp, "SEG_MAX "); in vioblk_show_features()
586 bufp += snprintf(bufp, bufend - bufp, "GEOMETRY "); in vioblk_show_features()
589 bufp += snprintf(bufp, bufend - bufp, "RO "); in vioblk_show_features()
592 bufp += snprintf(bufp, bufend - bufp, "BLK_SIZE "); in vioblk_show_features()
[all …]
/titanic_41/usr/src/lib/libpri/common/
H A Dpri.c137 uint64_t *bufp; /* buf holding PRI */ in pri_get() local
169 if ((bufp = (uint64_t *)allocp(size)) == NULL) { in pri_get()
174 if (read(pri_fd, bufp, size) < 0) { in pri_get()
175 freep(bufp, size); in pri_get()
187 freep(bufp, size); in pri_get()
191 freep(bufp, size); in pri_get()
196 *buf = bufp; in pri_get()
/titanic_41/usr/src/lib/pam_modules/list/
H A Dlist.c71 char *bufp; in pam_sm_acct_mgmt() local
228 bufp = buf; in pam_sm_acct_mgmt()
260 bufp++; in pam_sm_acct_mgmt()
264 bufp++; in pam_sm_acct_mgmt()
280 bufp++; in pam_sm_acct_mgmt()
287 if ((bufp[0] == '@') && (bufp[1] != '\0')) { in pam_sm_acct_mgmt()
288 bufp++; in pam_sm_acct_mgmt()
291 if (innetgr(bufp, rhost, username, in pam_sm_acct_mgmt()
298 userok = innetgr(bufp, NULL, username, in pam_sm_acct_mgmt()
304 hostok = innetgr(bufp, rhost, NULL, in pam_sm_acct_mgmt()
[all …]
/titanic_41/usr/src/cmd/nscd/
H A Dnscd_frontend.h45 #define NSCD_ALLOC_LOOKUP_BUFFER(bufp, bufsiz, hdrp, space, spsiz) \ argument
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); \
/titanic_41/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c184 char *bufp; in str2spwd() local
213 shadow->sp_namp = bufp = buffer; in str2spwd()
223 if ((bufp = strchr(bufp, ':')) == 0) { in str2spwd()
229 *bufp++ = '\0'; in str2spwd()
231 shadow->sp_pwdp = bufp; in str2spwd()
233 if ((bufp = strchr(bufp, ':')) == 0) { in str2spwd()
239 *bufp++ = '\0'; in str2spwd()
240 p = bufp; in str2spwd()
/titanic_41/usr/src/lib/libcmd/common/
H A Duniq.c88 register char *cp, *ep, *mp, *bufp, *outp; in uniq() local
95 if(bufp = sfgetr(fdin,'\n',0)) in uniq()
97 else if(bufp = sfgetr(fdin,'\n',SF_LASTR)) in uniq()
100 bufp = memcpy(fmtbuf(n + 1), bufp, n); in uniq()
101 bufp[n++] = '\n'; in uniq()
107 cp = bufp; in uniq()
125 if ((reclen = n - (cp - bufp)) <= 0) in uniq()
128 cp = bufp + n - 1; in uniq()
236 memcpy(outp+cwidth+sep,bufp,n); in uniq()
240 orecp = outp+cwidth+sep + (cp-bufp); in uniq()
/titanic_41/usr/src/common/net/dhcp/
H A Doctet.c55 octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen) in octet_to_hexascii() argument
62 if (nump == NULL || bufp == NULL || blen == NULL) in octet_to_hexascii()
69 for (i = 0, bp = bufp, np = (const uchar_t *)nump; i < nlen; i++) { in octet_to_hexascii()
84 hexascii_to_octet(const char *asp, uint_t alen, void *bufp, uint_t *blen) in hexascii_to_octet() argument
90 if (asp == NULL || bufp == NULL || blen == NULL) in hexascii_to_octet()
97 for (tp = asp, u_tp = (uchar_t *)bufp, i = 0; i < k; i++, u_tp++) { in hexascii_to_octet()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wanboot/p12split/
H A Dp12split.c224 char *bufp; in do_certs() local
243 bufp = sunw_subject_attrs(xcert_in, NULL, 0); in do_certs()
244 if (bufp != NULL) { in do_certs()
246 bufp); in do_certs()
247 OPENSSL_free(bufp); in do_certs()
250 bufp = sunw_issuer_attrs(xcert_in, NULL, 0); in do_certs()
251 if (bufp != NULL) { in do_certs()
252 (void) printf(gettext(" Issuer: %s\n"), bufp); in do_certs()
253 OPENSSL_free(bufp); in do_certs()
275 bufp = sunw_subject_attrs(x, NULL, 0); in do_certs()
[all …]
/titanic_41/usr/src/common/fs/
H A Dhsfs.c404 char *bufp; in bhsfs_mountroot() local
429 bufp = head->fi_buf; in bhsfs_mountroot()
430 if ((ISO_DESC_TYPE(bufp) != ISO_VD_PVD) || in bhsfs_mountroot()
431 (strncmp((const char *)ISO_std_id(bufp), ISO_ID_STRING, in bhsfs_mountroot()
432 ISO_ID_STRLEN) != 0) || (ISO_STD_VER(bufp) != ISO_ID_VER)) { in bhsfs_mountroot()
439 hsfsp->vol_size = ISO_VOL_SIZE(bufp); in bhsfs_mountroot()
440 hsfsp->lbn_size = ISO_BLK_SIZE(bufp); in bhsfs_mountroot()
443 hsfsp->vol_set_size = (ushort_t)ISO_SET_SIZE(bufp); in bhsfs_mountroot()
444 hsfsp->vol_set_seq = (ushort_t)ISO_SET_SEQ(bufp); in bhsfs_mountroot()
454 root_ino = IDE_EXT_LBN(ISO_root_dir(bufp)); in bhsfs_mountroot()
[all …]
/titanic_41/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c461 char *bufp; in boot_hsfs_mountroot() local
505 bufp = head->fi_memp; in boot_hsfs_mountroot()
509 if (ISO_DESC_TYPE(bufp) != ISO_VD_PVD || in boot_hsfs_mountroot()
510 strncmp((char *)(ISO_std_id(bufp)), (char *)(ISO_ID_STRING), in boot_hsfs_mountroot()
511 ISO_ID_STRLEN) != 0 || ISO_STD_VER(bufp) != ISO_ID_VER) { in boot_hsfs_mountroot()
517 fsp->vol_size = ISO_VOL_SIZE(bufp); in boot_hsfs_mountroot()
518 fsp->lbn_size = ISO_BLK_SIZE(bufp); in boot_hsfs_mountroot()
521 fsp->vol_set_size = (ushort_t)ISO_SET_SIZE(bufp); in boot_hsfs_mountroot()
522 fsp->vol_set_seq = (ushort_t)ISO_SET_SEQ(bufp); in boot_hsfs_mountroot()
532 root_ino = IDE_EXT_LBN(ISO_root_dir(bufp)); in boot_hsfs_mountroot()
[all …]
/titanic_41/usr/src/cmd/abi/spectrans/spec2trace/
H A Dparseproto.y1094 declspec_ToString(char *bufp, decl_spec_t *dsp) { in declspec_ToString() argument
1098 *bufp = '\0'; in declspec_ToString()
1103 strcat(bufp, "register"); in declspec_ToString()
1116 strcat(bufp, " "); in declspec_ToString()
1118 strcat(bufp, s); in declspec_ToString()
1119 strcat(bufp, " "); in declspec_ToString()
1120 strcat(bufp, dsp->ds_id); in declspec_ToString()
1125 strcat(bufp, " "); in declspec_ToString()
1127 strcat(bufp, dsp->ds_id); in declspec_ToString()
1132 strcat(bufp, " "); in declspec_ToString()
[all …]

12345678910>>...12