Home
last modified time | relevance | path

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

12345678910

/illumos-gate/usr/src/contrib/ast/src/lib/libast/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.c111 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, "corrupted data", ':');
128 bufp = (*_Vmstrcpy)(bufp, "alert", ':');
131 bufp = (*_Vmstrcpy)(bufp, "region", '=');
132 bufp = (*_Vmstrcpy)(bufp, (*_Vmitoa)(VLONG(vm), 0), ':');
135 { 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 …]
/illumos-gate/usr/src/test/os-tests/tests/xsave/
H A Dbad_xregs.c46 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()
75 bad_xregs_hdr_too_large(void **bufp, size_t *sizep) in bad_xregs_hdr_too_large() argument
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()
[all …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dbiosdisk.c153 fn48_t *bufp; in get_dev_params() local
161 bufp = (fn48_t *)BIOS_RES_BUFFER_ADDR; in get_dev_params()
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()
174 rp.esi.word.si = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp); in get_dev_params()
175 rp.ds = FP_SEG((uint_t)(uintptr_t)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
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/cmd/sh/
H A Dprint.c45 static unsigned char *bufp = buffer; variable
200 bufp[index] = '\0'; in flushb()
201 write(buffd, bufp, length(bufp) - 1); in flushb()
214 bufp[index++] = c; in prc_buff()
233 movstr(s, &bufp[index]); in prs_buff()
254 unsigned char *ptr = bufp; in prs_cntl()
294 if (buffd != -1 && ptr >= &bufp[BUFLEN-4]) { in prs_cntl()
296 prs(bufp); in prs_cntl()
297 ptr = bufp; in prs_cntl()
305 prs(bufp); in prs_cntl()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
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 …]
/illumos-gate/usr/src/lib/pam_modules/list/
H A Dlist.c73 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()
323 userok = innetgr(bufp, NULL, username, in pam_sm_acct_mgmt()
329 hostok = innetgr(bufp, rhost, NULL, in pam_sm_acct_mgmt()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbtranslate.c64 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 Dpri.c135 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 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); \
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c183 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 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()
/illumos-gate/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 …]
/illumos-gate/usr/src/common/fs/
H A Dhsfs.c403 char *bufp; in bhsfs_mountroot() local
428 bufp = head->fi_buf; in bhsfs_mountroot()
429 if ((ISO_DESC_TYPE(bufp) != ISO_VD_PVD) || in bhsfs_mountroot()
430 (strncmp((const char *)ISO_std_id(bufp), ISO_ID_STRING, in bhsfs_mountroot()
431 ISO_ID_STRLEN) != 0) || (ISO_STD_VER(bufp) != ISO_ID_VER)) { in bhsfs_mountroot()
438 hsfsp->vol_size = ISO_VOL_SIZE(bufp); in bhsfs_mountroot()
439 hsfsp->lbn_size = ISO_BLK_SIZE(bufp); in bhsfs_mountroot()
442 hsfsp->vol_set_size = (ushort_t)ISO_SET_SIZE(bufp); in bhsfs_mountroot()
443 hsfsp->vol_set_seq = (ushort_t)ISO_SET_SEQ(bufp); in bhsfs_mountroot()
453 root_ino = IDE_EXT_LBN(ISO_root_dir(bufp)); in bhsfs_mountroot()
[all …]
/illumos-gate/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 …]
/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) 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 Dprintf.c81 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()
140 mp = log_makemsg(mid, sid, level, sl, LOG_KERN, bufp, in cprintf()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Ddsparse.c41 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()

12345678910