Home
last modified time | relevance | path

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

12345678910>>...12

/onnv-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, 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 …]
/onnv-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 …]
/onnv-gate/usr/src/cmd/agents/snmp/snmplib/
H A Dasn1.c59 u_char *bufp = data; in asn_parse_int() local
70 *type = *bufp++; in asn_parse_int()
71 bufp = asn_parse_length(bufp, &asn_length, error_label); in asn_parse_int()
72 if (bufp == NULL){ in asn_parse_int()
77 if (asn_length + (uint32_t)(bufp - data) > *datalength){ in asn_parse_int()
86 *datalength -= asn_length + (uint32_t)(bufp - data); in asn_parse_int()
87 if (*bufp & 0x80) in asn_parse_int()
90 value = (value << 8) | *bufp++; in asn_parse_int()
92 return bufp; in asn_parse_int()
117 u_char *bufp = data; in asn_parse_unsigned_int() local
[all …]
/onnv-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 …]
/onnv-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 …]
/onnv-gate/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 …]
/onnv-gate/usr/src/lib/libparted/common/lib/
H A Dregex.c36 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument
37 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
38 # define re_match(bufp, string, size, pos, regs) \ argument
39 __re_match (bufp, string, size, pos, regs)
40 # define re_search(bufp, string, size, startpos, range, regs) \ argument
41 __re_search (bufp, string, size, startpos, range, regs)
42 # define re_compile_pattern(pattern, length, bufp) \ argument
43 __re_compile_pattern (pattern, length, bufp)
45 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument
46 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop)
[all …]
/onnv-gate/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 …]
/onnv-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 …]
/onnv-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 = 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 …]
/onnv-gate/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()
/onnv-gate/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()
/onnv-gate/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 …]
/onnv-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); \
/onnv-gate/usr/src/lib/libldap4/common/
H A Ddsparse.c52 int next_line_tokens( char **bufp, ssize_t *blenp, char ***toksp );
53 static ssize_t next_line( char **bufp, ssize_t *blenp, char **linep );
60 next_line_tokens( char **bufp, ssize_t *blenp, char ***toksp ) in next_line_tokens() argument
68 if (( rc = next_line( bufp, blenp, &line )) <= 0 ) { in next_line_tokens()
111 next_line( char **bufp, ssize_t *blenp, char **linep ) in next_line() argument
116 linestart = *bufp; in next_line()
117 p = *bufp; in next_line()
143 *bufp = p; in next_line()
/onnv-gate/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()
/onnv-gate/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()
/onnv-gate/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()
/onnv-gate/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 …]
/onnv-gate/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 …]
/onnv-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 ) in ldap_next_line_tokens() argument
55 if (( rc = next_line( bufp, blenp, &line )) <= 0 ) { in ldap_next_line_tokens()
98 next_line( char **bufp, long *blenp, char **linep ) in next_line() argument
103 linestart = *bufp; in next_line()
104 p = *bufp; in next_line()
130 *bufp = p; in next_line()

12345678910>>...12