Home
last modified time | relevance | path

Searched refs:databuf (Results 1 – 25 of 49) sorted by relevance

12

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpassutils.c69 char *databuf = NULL; in pkcs11_get_pass() local
96 databuf = strdup(tmpbuf); in pkcs11_get_pass()
98 if (databuf == NULL) in pkcs11_get_pass()
111 (void) memset(databuf, 0, strlen(databuf)); in pkcs11_get_pass()
112 free(databuf); in pkcs11_get_pass()
116 if (strcmp(databuf, tmpbuf) != 0) { in pkcs11_get_pass()
119 (void) memset(databuf, 0, strlen(databuf)); in pkcs11_get_pass()
120 free(databuf); in pkcs11_get_pass()
125 *pdata = databuf; in pkcs11_get_pass()
126 *psize = strlen(databuf); in pkcs11_get_pass()
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_rcv.c171 databuf.len = 0; in _tx_rcv()
172 databuf.buf = buf; in _tx_rcv()
197 if (databuf.len == -1) databuf.len = 0; in _tx_rcv()
271 databuf.len, in _tx_rcv()
292 databuf.maxlen = in _tx_rcv()
295 databuf.len = 0; in _tx_rcv()
296 databuf.buf = in _tx_rcv()
308 &databuf, &flg); in _tx_rcv()
315 if (databuf.len == -1) databuf.len = 0; in _tx_rcv()
329 databuf.len; in _tx_rcv()
[all …]
H A Dt_rcvv.c186 databuf.len = 0; in _tx_rcvv()
187 databuf.buf = dataptr; in _tx_rcvv()
212 if (databuf.len == -1) databuf.len = 0; in _tx_rcvv()
289 databuf.len, in _tx_rcvv()
310 databuf.maxlen = in _tx_rcvv()
313 databuf.len = 0; in _tx_rcvv()
314 databuf.buf = in _tx_rcvv()
326 &databuf, &flg); in _tx_rcvv()
333 if (databuf.len == -1) databuf.len = 0; in _tx_rcvv()
347 databuf.len; in _tx_rcvv()
[all …]
H A Dt_rcvdis.c51 struct strbuf databuf; in _tx_rcvdis() local
107 databuf.len = tiptr->ti_lookbufs.tl_lookdlen; in _tx_rcvdis()
108 databuf.buf = tiptr->ti_lookbufs.tl_lookdbuf; in _tx_rcvdis()
163 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvdis()
170 if (databuf.len == -1) databuf.len = 0; in _tx_rcvdis()
220 (size_t)databuf.len); in _tx_rcvdis()
221 discon->udata.len = databuf.len; in _tx_rcvdis()
234 free(databuf.buf); in _tx_rcvdis()
236 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvdis()
252 free(databuf.buf); in _tx_rcvdis()
[all …]
H A D_conn_util.c158 struct strbuf databuf; in _t_rcv_conn_con() local
206 if (databuf.len == -1) databuf.len = 0; in _t_rcv_conn_con()
271 if (databuf.len > (int)call->udata.maxlen) { in _t_rcv_conn_con()
275 (void) memcpy(call->udata.buf, databuf.buf, in _t_rcv_conn_con()
276 (size_t)databuf.len); in _t_rcv_conn_con()
277 call->udata.len = databuf.len; in _t_rcv_conn_con()
286 free(databuf.buf); in _t_rcv_conn_con()
288 tiptr->ti_rcvbuf = databuf.buf; in _t_rcv_conn_con()
301 if (_t_register_lookevent(tiptr, databuf.buf, databuf.len, in _t_rcv_conn_con()
318 free(databuf.buf); in _t_rcv_conn_con()
[all …]
H A Dt_listen.c50 struct strbuf databuf; in _tx_listen() local
152 if (databuf.len == -1) databuf.len = 0; in _tx_listen()
223 if (databuf.len > (int)call->udata.maxlen) { in _tx_listen()
227 (void) memcpy(call->udata.buf, databuf.buf, in _tx_listen()
228 (size_t)databuf.len); in _tx_listen()
229 call->udata.len = databuf.len; in _tx_listen()
237 free(databuf.buf); in _tx_listen()
239 tiptr->ti_rcvbuf = databuf.buf; in _tx_listen()
249 databuf.len, ctlbuf.buf, in _tx_listen()
272 free(databuf.buf); in _tx_listen()
[all …]
H A Dt_rcvrel.c55 struct strbuf databuf; in _tx_rcvrel() local
141 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _tx_rcvrel()
158 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvrel()
191 if (_t_register_lookevent(tiptr, databuf.buf, in _tx_rcvrel()
192 databuf.len, ctlbuf.buf, in _tx_rcvrel()
215 free(databuf.buf); in _tx_rcvrel()
217 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvrel()
229 free(databuf.buf); in _tx_rcvrel()
231 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvrel()
H A Dt_rcvreldata.c54 struct strbuf databuf; in _tx_rcvreldata() local
143 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _tx_rcvreldata()
160 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvreldata()
193 if (_t_register_lookevent(tiptr, databuf.buf, in _tx_rcvreldata()
194 databuf.len, ctlbuf.buf, in _tx_rcvreldata()
217 free(databuf.buf); in _tx_rcvreldata()
219 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvreldata()
231 free(databuf.buf); in _tx_rcvreldata()
233 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvreldata()
H A Dt_rcvuderr.c50 struct strbuf ctlbuf, databuf; in _tx_rcvuderr() local
81 databuf.maxlen = 0; in _tx_rcvuderr()
82 databuf.len = 0; in _tx_rcvuderr()
83 databuf.buf = NULL; in _tx_rcvuderr()
112 databuf.maxlen = 0; in _tx_rcvuderr()
113 databuf.len = 0; in _tx_rcvuderr()
114 databuf.buf = NULL; in _tx_rcvuderr()
123 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcvuderr()
H A Dt_rcvvudata.c61 struct strbuf databuf; in _tx_rcvvudata() local
123 databuf.maxlen = nbytes; in _tx_rcvvudata()
124 databuf.len = 0; in _tx_rcvvudata()
125 databuf.buf = dataptr; in _tx_rcvvudata()
134 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcvvudata()
209 _t_scatter(&databuf, tiov, tiovcount); in _tx_rcvvudata()
213 return (databuf.len); in _tx_rcvvudata()
252 _t_scatter(&databuf, tiov, tiovcount); in _tx_rcvvudata()
256 return (databuf.len); in _tx_rcvvudata()
H A Dt_snddis.c51 struct strbuf databuf; in _tx_snddis() local
147 databuf.maxlen = (call? call->udata.len: 0); in _tx_snddis()
148 databuf.len = (call? call->udata.len: 0); in _tx_snddis()
149 databuf.buf = (call? call->udata.buf: NULL); in _tx_snddis()
157 if (putmsg(fd, &ctlbuf, (databuf.len? &databuf: NULL), 0) < 0) { in _tx_snddis()
H A Dt_snd.c56 struct strbuf ctlbuf, databuf; in _tx_snd() local
190 databuf.maxlen = bytes_to_send; in _tx_snd()
191 databuf.len = bytes_to_send; in _tx_snd()
192 databuf.buf = curptr; in _tx_snd()
193 retval = putpmsg(fd, &ctlbuf, &databuf, band, MSG_BAND); in _tx_snd()
H A Dt_sndvudata.c55 struct strbuf databuf; in _tx_sndvudata() local
168 databuf.buf = dataptr; in _tx_sndvudata()
169 databuf.len = nbytes; in _tx_sndvudata()
170 databuf.maxlen = nbytes; in _tx_sndvudata()
177 if (putmsg(fd, &ctlbuf, &databuf, 0) < 0) { in _tx_sndvudata()
H A Dt_sndv.c52 struct strbuf ctlbuf, databuf; in _tx_sndv() local
214 databuf.maxlen = bytes_to_send; in _tx_sndv()
215 databuf.len = bytes_to_send; in _tx_sndv()
216 databuf.buf = curptr; in _tx_sndv()
217 retval = putpmsg(fd, &ctlbuf, &databuf, band, MSG_BAND); in _tx_sndv()
H A Dt_look.c125 strpeek.databuf.maxlen = 0; in _t_look_locked()
126 strpeek.databuf.len = 0; in _t_look_locked()
127 strpeek.databuf.buf = NULL; in _t_look_locked()
H A D_utility.c338 struct strbuf databuf; in _t_is_ok() local
355 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _t_is_ok()
421 free(databuf.buf); in _t_is_ok()
423 tiptr->ti_rcvbuf = databuf.buf; in _t_is_ok()
464 free(databuf.buf); in _t_is_ok()
466 tiptr->ti_rcvbuf = databuf.buf; in _t_is_ok()
1119 arg.databuf.buf = databuf; in _t_adjust_state()
1120 arg.databuf.maxlen = (int)sizeof (databuf); in _t_adjust_state()
1121 arg.databuf.len = 0; in _t_adjust_state()
1146 ((arg.ctlbuf.len == 0) && arg.databuf.len)) { in _t_adjust_state()
[all …]
/illumos-gate/usr/src/common/crypto/padding/
H A Dpkcs7.c75 pkcs7_encode(uint8_t *databuf, size_t datalen, uint8_t *padbuf, in pkcs7_encode() argument
81 if (databuf == NULL) in pkcs7_encode()
88 bcopy(databuf, padbuf, datalen); in pkcs7_encode()
H A Dpadding.h68 int pkcs1_encode(int method, uint8_t *databuf, size_t datalen, uint8_t *padbuf,
72 int pkcs7_encode(uint8_t *databuf, size_t datalen, uint8_t *padbuf,
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dprint.c58 static char databuf[4096]; variable
204 rcnt = read(file, databuf, sizeof (databuf)); in print_file()
213 wcnt = smb_fh_write(pfd, offset, rcnt, databuf); in print_file()
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_ktli.c315 struct strbuf databuf; in tli_send() local
347 bzero(&databuf, sizeof (databuf)); in tli_send()
350 databuf.len = MBLKL(m); in tli_send()
351 databuf.maxlen = MBLKL(m); in tli_send()
352 databuf.buf = (char *)m->b_rptr; in tli_send()
354 if (putmsg(vp->v_fd, &ctlbuf, &databuf, 0) < 0) { in tli_send()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinet6_opt.c197 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_set_val() argument
199 memcpy((uint8_t *)databuf + offset, val, vallen); in inet6_opt_set_val()
296 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_get_val() argument
298 memcpy(val, (uint8_t *)databuf + offset, vallen); in inet6_opt_get_val()
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/
H A Dbootparam_ip_route.c78 struct strbuf ctlbuf, databuf; in mibget() local
186 databuf.maxlen = last_item->length; in mibget()
187 databuf.buf = last_item->valp; in mibget()
188 databuf.len = 0; in mibget()
190 getcode = getmsg(sd, nilp(struct strbuf), &databuf, &flags); in mibget()
197 getcode, databuf.maxlen, databuf.len); in mibget()
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmpeek.c167 peekp->databuf.maxlen = n; in do_peek()
168 peekp->databuf.buf = buf; in do_peek()
177 return (&(peekp->databuf)); in do_peek()
/illumos-gate/usr/src/uts/common/sys/
H A Dstropts.h353 struct strbuf databuf; member
361 struct strbuf32 databuf; member
372 struct strbuf databuf; member
382 struct strbuf32 databuf; member
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Dbindresvport.c109 char databuf[256]; local
114 data->maxlen = sizeof (databuf);
115 data->buf = databuf;

12