/titanic_51/usr/src/lib/libast/common/vmalloc/ |
H A D | vmtrace.c | 111 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 D | vmdebug.c | 112 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 D | vmprofile.c | 365 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_51/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmtrace.c | 111 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 205 char buf[1024], *bufp; global() local [all...] |
H A D | vmdebug.c | 111 char buf[1024], *bufp, *endbuf, *s; local 116 bufp = buf; 120 bufp = (*_Vmstrcpy)(bufp, "alloc error", ':'); 122 bufp = (*_Vmstrcpy)(bufp, "free error", ':'); 124 bufp = (*_Vmstrcpy)(bufp, "resize error", ':'); 126 bufp = (*_Vmstrcpy)(bufp, "corrupte 702 char buf[1024], *bufp; global() local [all...] |
H A D | vmprofile.c | 365 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,"ALLOCATIO [all...] |
/titanic_51/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelEmulate.c | 70 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 in emulate_buf_init() 156 digest_buf_t *bufp; emulate_update() local [all...] |
H A D | kernelSessionUtil.c | 296 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 in kernel_delete_session() 324 digest_buf_t *bufp = session_p->verify.context; kernel_delete_session() local [all...] |
/titanic_51/usr/src/uts/common/io/nge/ |
H A D | nge_rx.c | 72 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() 152 dma_area_t *bufp; nge_recv_packet() local [all...] |
/titanic_51/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | serialize.c | 200 krb5_ser_pack_int32(krb5_int32 iarg, krb5_octet **bufp, size_t *remainp) in krb5_ser_pack_int32() 203 (*bufp)[0] = (krb5_octet) ((iarg >> 24) & 0xff); in krb5_ser_pack_int32() 204 (*bufp)[1] = (krb5_octet) ((iarg >> 16) & 0xff); in krb5_ser_pack_int32() 205 (*bufp)[2] = (krb5_octet) ((iarg >> 8) & 0xff); in krb5_ser_pack_int32() 206 (*bufp)[3] = (krb5_octet) (iarg & 0xff); in krb5_ser_pack_int32() 207 *bufp += sizeof(krb5_int32); 221 krb5_ser_pack_int64(krb5_int64 iarg, krb5_octet **bufp, size_t *remainp) in krb5_ser_pack_int64() 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_ in krb5_ser_pack_bytes() 193 krb5_ser_pack_int32(krb5_int32 iarg,krb5_octet ** bufp,size_t * remainp) krb5_ser_pack_int32() argument 213 krb5_ser_pack_int64(krb5_int64 iarg,krb5_octet ** bufp,size_t * remainp) krb5_ser_pack_int64() argument 229 krb5_ser_pack_bytes(krb5_octet * ostring,size_t osize,krb5_octet ** bufp,size_t * remainp) krb5_ser_pack_bytes() argument 245 krb5_ser_unpack_int32(krb5_int32 * intp,krb5_octet ** bufp,size_t * remainp) krb5_ser_unpack_int32() argument 264 krb5_ser_unpack_int64(krb5_int64 * intp,krb5_octet ** bufp,size_t * remainp) krb5_ser_unpack_int64() argument 280 krb5_ser_unpack_bytes(krb5_octet * istring,size_t isize,krb5_octet ** bufp,size_t * remainp) krb5_ser_unpack_bytes() argument [all...] |
/titanic_51/usr/src/uts/i86pc/os/ |
H A D | biosdisk.c | 160 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)[ in get_dev_params() 252 caddr_t bufp; read_firstblock() local 296 fn4b_t *bufp; is_eltorito() local [all...] |
/titanic_51/usr/src/cmd/sh/ |
H A D | print.c | 46 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() [all...] |
/titanic_51/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | scsi_vhci_tpgs.c | 57 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, le in vhci_tpgs_set_target_groups() 307 char *bufp; vhci_tpgs_page83() local 448 char *ptr, *end, *bufp, *mpapi_ptr; vhci_tpgs_report_target_groups() local [all...] |
/titanic_51/usr/src/cmd/ipf/lib/common/ |
H A D | ipft_sn.c | 130 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 D | ipft_pc.c | 193 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...] |
/titanic_51/usr/src/lib/libcurses/screen/ |
H A D | mbtranslate.c | 66 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_51/usr/src/uts/common/io/vioblk/ |
H A D | vioblk.c | 562 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, "Viobl in vioblk_show_features() [all...] |
/titanic_51/usr/src/lib/libpri/common/ |
H A D | pri.c | 124 * - freep(bufp, size) 137 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_51/usr/src/lib/pam_modules/list/ |
H A D | list.c | 71 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, NUL in pam_sm_acct_mgmt() [all...] |
/titanic_51/usr/src/cmd/nscd/ |
H A D | nscd_frontend.h | 45 #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_51/usr/src/lib/libc/port/gen/ |
H A D | getspent_r.c | 184 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() [all...] |
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | uniq.c | 88 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, in uniq() [all...] |
/titanic_51/usr/src/lib/libcmd/common/ |
H A D | uniq.c | 88 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_51/usr/src/common/net/dhcp/ |
H A D | octet.c | 53 octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen) in octet_to_hexascii() argument 60 if (nump == NULL || bufp == NULL || blen == NULL) in octet_to_hexascii() 67 for (i = 0, bp = bufp, np = (const uchar_t *)nump; i < nlen; i++) { in octet_to_hexascii() 82 hexascii_to_octet(const char *asp, uint_t alen, void *bufp, uint_t *blen) in hexascii_to_octet() argument 88 if (asp == NULL || bufp == NULL || blen == NULL) in hexascii_to_octet() 95 for (tp = asp, u_tp = (uchar_t *)bufp, i = 0; i < k; i++, u_tp++) { in hexascii_to_octet()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/wanboot/p12split/ |
H A D | p12split.c | 224 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 in do_certs() [all...] |