/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmtrace.c | 142 bufp = trstrcpy(bufp, "b", ':'); 144 bufp = trstrcpy(bufp, "l", ':'); 146 bufp = trstrcpy(bufp, "p", ':'); 148 bufp = trstrcpy(bufp, "s", ':'); 150 bufp = trstrcpy(bufp, "d", ':'); 163 bufp = trstrcpy(bufp, "file", '='); 168 bufp = trstrcpy(bufp, "..", '.'); 170 bufp = trstrcpy(bufp, file, ','); 171 bufp = trstrcpy(bufp, "line", '='); 211 bufp = trstrcpy(bufp, s1, ':'); [all …]
|
H A D | vmdebug.c | 122 bufp = (*_Vmstrcpy)(bufp, "free error", ':'); 128 bufp = (*_Vmstrcpy)(bufp, "alert", ':'); 131 bufp = (*_Vmstrcpy)(bufp, "region", '='); 135 { bufp = (*_Vmstrcpy)(bufp,"block",'='); 150 { bufp = (*_Vmstrcpy)(bufp, "size", '='); 166 bufp = (*_Vmstrcpy)(bufp, s, ','); 174 bufp = (*_Vmstrcpy)(bufp, file, ','); 706 bufp = (*_Vmstrcpy)(bufp, "n_busy", '='); 708 bufp = (*_Vmstrcpy)(bufp, " s_busy", '='); 710 bufp = (*_Vmstrcpy)(bufp, "n_free", '='); [all …]
|
H A D | vmprofile.c | 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", '='); 419 bufp = pfsummary(bufp,PFNALLOC(pf),PFALLOC(pf), 437 bufp = (*_Vmstrcpy)(bufp,"file",'='); 439 bufp = pfsummary(bufp,nalloc,alloc,nfree,free,0,0); 443 bufp = (*_Vmstrcpy)(bufp,"\tline",'='); 445 bufp = (*_Vmstrcpy)(bufp, "region", '='); [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/xsave/ |
H A D | bad_xregs.c | 46 bad_xregs_no_data(void **bufp, size_t *sizep) in bad_xregs_no_data() argument 48 *bufp = NULL; in bad_xregs_no_data() 53 bad_xregs_null_buf(void **bufp, size_t *sizep) in bad_xregs_null_buf() argument 55 *bufp = NULL; in bad_xregs_null_buf() 60 bad_xregs_short_hdr(void **bufp, size_t *sizep) in bad_xregs_short_hdr() argument 70 *bufp = hdr; in bad_xregs_short_hdr() 86 *bufp = hdr; in bad_xregs_hdr_too_large() 91 bad_xregs_std_init(void **bufp, size_t *sizep) in bad_xregs_std_init() argument 100 *bufp = hdr; in bad_xregs_std_init() 108 (void) bad_xregs_std_init(bufp, sizep); in bad_xregs_missing_data() [all …]
|
/illumos-gate/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() 85 free(bufp->buf); in emulate_buf_init() 86 bufp->buf = NULL; in emulate_buf_init() 98 free(bufp); in emulate_buf_init() 189 } else if (ulPartLen > (bufp->buf_len - bufp->indata_len)) { in emulate_update() 191 bufp->buf_len * 2 : bufp->buf_len + ulPartLen; in emulate_update() 194 bufp->buf = realloc(bufp->buf, siz); in emulate_update() 217 DO_SOFT_UPDATE(opp, bufp->buf, bufp->indata_len, opflag); in emulate_update() [all …]
|
H A D | kernelSessionUtil.c | 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() 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() 328 bzero(bufp->buf, bufp->indata_len); in kernel_delete_session() 329 free(bufp->buf); in kernel_delete_session() [all …]
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_rx.c | 72 dma_area_t *bufp; in nge_recv_recycle() local 99 bufp->rx_recycle.free_arg = (caddr_t)bufp; in nge_recv_recycle() 101 bufp->mp = desballoc(DMA_VPTR(*bufp), in nge_recv_recycle() 104 if (bufp->mp == NULL) { in nge_recv_recycle() 126 freemsg(bufp->mp); in nge_recv_recycle() 152 dma_area_t *bufp; in nge_recv_packet() local 176 bufp = brp->free_list; in nge_recv_packet() 209 mp = srbdp->bufp->mp; in nge_recv_packet() 217 srbdp->bufp = NULL; in nge_recv_packet() 221 srbdp->bufp = bufp; in nge_recv_packet() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | serialize.c | 199 (*bufp)[3] = (krb5_octet) (iarg & 0xff); in krb5_ser_pack_int32() 200 *bufp += sizeof(krb5_int32); in krb5_ser_pack_int32() 216 store_64_be(iarg, (unsigned char *)*bufp); in krb5_ser_pack_int64() 217 *bufp += sizeof(krb5_int64); in krb5_ser_pack_int64() 232 (void) memcpy(*bufp, ostring, osize); in krb5_ser_pack_bytes() 233 *bufp += osize; in krb5_ser_pack_bytes() 252 *bufp += sizeof(krb5_int32); in krb5_ser_unpack_int32() 267 *intp = load_64_be((unsigned char *)*bufp); in krb5_ser_unpack_int64() 268 *bufp += sizeof(krb5_int64); in krb5_ser_unpack_int64() 283 (void) memcpy(istring, *bufp, isize); in krb5_ser_unpack_bytes() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | biosdisk.c | 153 fn48_t *bufp; in get_dev_params() local 167 for (i = 0; i < sizeof (*bufp); i++) in get_dev_params() 168 ((uchar_t *)bufp)[i] = 0; in get_dev_params() 170 bufp->buflen = sizeof (*bufp); in get_dev_params() 195 for (i = 0; i < sizeof (*bufp); i++) in get_dev_params() 196 tmp[i] = ((uchar_t *)bufp)[i]; in get_dev_params() 245 caddr_t bufp; in read_firstblock() local 274 *(uint32_t *)(bufp +0x1b8))); in read_firstblock() 289 fn4b_t *bufp; in is_eltorito() local 302 ((uchar_t *)bufp)[i] = 0; in is_eltorito() [all …]
|
/illumos-gate/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 70 if (bufp == NULL) { in vhci_tpgs_set_target_groups() 77 bp->b_un.b_addr = bufp; in vhci_tpgs_set_target_groups() 113 print_buf(bufp, len); in vhci_tpgs_set_target_groups() 307 char *bufp; in vhci_tpgs_page83() local 319 if (bufp == NULL) { in vhci_tpgs_page83() 361 rx_bsize = (((bufp[2] & 0xff) << 8) | (bufp[3] & 0xff)); in vhci_tpgs_page83() 377 ptr = bufp; in vhci_tpgs_page83() 379 end = bufp + rx_bsize; in vhci_tpgs_page83() 463 if (bufp == NULL) { in vhci_tpgs_report_target_groups() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | print.c | 200 bufp[index] = '\0'; in flushb() 201 write(buffd, bufp, length(bufp) - 1); in flushb() 214 bufp[index++] = c; in prc_buff() 296 prs(bufp); in prs_cntl() 297 ptr = bufp; in prs_cntl() 305 prs(bufp); in prs_cntl() 331 if (bufp[index-1]) { in setb() 332 bufp[index++] = 0; in setb() 334 endstak(bufp+index); in setb() 339 bufp = locstak(); in setb() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
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 = malloc(i); 171 bufp = realloc(bufp, i); [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 = malloc(i); 236 bufp = realloc(bufp, i); [all …]
|
/illumos-gate/usr/src/lib/pam_modules/list/ |
H A D | list.c | 73 char *bufp; in pam_sm_acct_mgmt() local 250 bufp = buf; in pam_sm_acct_mgmt() 284 bufp++; in pam_sm_acct_mgmt() 288 bufp++; in pam_sm_acct_mgmt() 304 bufp++; in pam_sm_acct_mgmt() 312 if ((bufp[0] == '@') && (bufp[1] != '\0')) { in pam_sm_acct_mgmt() 313 bufp++; in pam_sm_acct_mgmt() 316 if (innetgr(bufp, rhost, username, in pam_sm_acct_mgmt() 339 } else if ((bufp[0] == '%') && (bufp[1] != '\0')) { in pam_sm_acct_mgmt() 346 bufp++; in pam_sm_acct_mgmt() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | mbtranslate.c | 64 char *bufp; in _strcode2byte() local 88 bufp = byte ? byte : buf; in _strcode2byte() 91 bufp += _curs_wctomb(bufp, *code & TRIM); in _strcode2byte() 94 *bufp = '\0'; in _strcode2byte() 108 wchar_t *bufp; in _strbyte2code() local 128 bufp = code ? code : buf; in _strbyte2code() 142 *bufp++ = wchar; in _strbyte2code() 147 *bufp = 0; in _strbyte2code()
|
/illumos-gate/usr/src/lib/libpri/common/ |
H A D | pri.c | 135 uint64_t *bufp; /* buf holding PRI */ in pri_get() local 167 if ((bufp = (uint64_t *)allocp(size)) == NULL) { in pri_get() 172 if (read(pri_fd, bufp, size) < 0) { in pri_get() 173 freep(bufp, size); in pri_get() 185 freep(bufp, size); in pri_get() 189 freep(bufp, size); in pri_get() 194 *buf = bufp; in pri_get()
|
/illumos-gate/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); \
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getspent_r.c | 183 char *bufp; in str2spwd() local 212 shadow->sp_namp = bufp = buffer; in str2spwd() 222 if ((bufp = strchr(bufp, ':')) == 0) { in str2spwd() 228 *bufp++ = '\0'; in str2spwd() 230 shadow->sp_pwdp = bufp; in str2spwd() 232 if ((bufp = strchr(bufp, ':')) == 0) { in str2spwd() 238 *bufp++ = '\0'; in str2spwd() 239 p = bufp; in str2spwd()
|
/illumos-gate/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,n); in uniq() 240 orecp = outp+cwidth+sep + (cp-bufp); in uniq()
|
/illumos-gate/usr/src/common/fs/ |
H A D | hsfs.c | 403 char *bufp; in bhsfs_mountroot() local 428 bufp = head->fi_buf; in bhsfs_mountroot() 653 udp->d_reclen = IDE_DIR_LEN(bufp); in parse_dir() 658 hdp->ext_lbn = IDE_EXT_LBN(bufp); in parse_dir() 660 hdp->xar_len = IDE_XAR_LEN(bufp); in parse_dir() 668 c = IDE_FLAGS(bufp); in parse_dir() 687 nmlen = IDE_NAME_LEN(bufp); in parse_dir() 688 c = *IDE_NAME(bufp); in parse_dir() 704 c = *(IDE_name(bufp)+i); in parse_dir() 716 ce_len = IDE_SUA_LEN(bufp); in parse_dir() [all …]
|
/illumos-gate/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 461 char *bufp; in boot_hsfs_mountroot() local 505 bufp = head->fi_memp; 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() 750 hdp->ext_lbn = IDE_EXT_LBN(bufp); in parse_dir() 753 hdp->xar_len = IDE_XAR_LEN(bufp); in parse_dir() 760 c = IDE_FLAGS(bufp); in parse_dir() 775 nmlen = IDE_NAME_LEN(bufp); in parse_dir() 776 c = *IDE_NAME(bufp); in parse_dir() 792 c = *(IDE_name(bufp)+i); in parse_dir() [all …]
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | parseproto.y | 1098 *bufp = '\0'; in declspec_ToString() 1118 strcat(bufp, s); in declspec_ToString() 1134 strcat(bufp, s); in declspec_ToString() 1159 strcat(bufp, ""); in declspec_ToString() 1162 strcat(bufp, ""); in declspec_ToString() 1164 return (bufp); in declspec_ToString() 1870 *bufp = '\0'; in decl_ToString() 1958 return (bufp); in decl_ToString() 2180 bufp[0] = 0; in decl_ToFormal() 2181 bend = bufp; in decl_ToFormal() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | printf.c | 81 char *bufp = buf; in cprintf() local 111 bufend = bufp + bufsize; in cprintf() 112 msgp = bufp; in cprintf() 130 if (msgp - bufp >= bufsize && !on_intr) { in cprintf() 131 ASSERT(bufp == buf); in cprintf() 132 bufsize = msgp - bufp + 1; in cprintf() 133 bufp = kmem_alloc(bufsize, KM_NOSLEEP); in cprintf() 134 if (bufp != NULL) in cprintf() 137 bufp = buf; in cprintf() 178 if (bufp != buf) in cprintf() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | dsparse.c | 41 static int next_line( char **bufp, long *blenp, char **linep ); 45 ldap_next_line_tokens( char **bufp, long *blenp, char ***toksp ) in ldap_next_line_tokens() argument 52 if (( rc = next_line( bufp, blenp, &line )) <= 0 ) { in ldap_next_line_tokens() 95 next_line( char **bufp, long *blenp, char **linep ) in next_line() argument 100 linestart = *bufp; in next_line() 101 p = *bufp; in next_line() 127 *bufp = p; in next_line()
|