Home
last modified time | relevance | path

Searched refs:databuf (Results 1 – 25 of 50) 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.c169 databuf.len = 0; in _tx_rcv()
170 databuf.buf = buf; in _tx_rcv()
195 if (databuf.len == -1) databuf.len = 0; in _tx_rcv()
269 databuf.len, in _tx_rcv()
290 databuf.maxlen = in _tx_rcv()
293 databuf.len = 0; in _tx_rcv()
294 databuf.buf = in _tx_rcv()
306 &databuf, &flg); in _tx_rcv()
313 if (databuf.len == -1) databuf.len = 0; in _tx_rcv()
327 databuf.len; in _tx_rcv()
[all …]
H A Dt_rcvv.c184 databuf.len = 0; in _tx_rcvv()
185 databuf.buf = dataptr; in _tx_rcvv()
210 if (databuf.len == -1) databuf.len = 0; in _tx_rcvv()
287 databuf.len, in _tx_rcvv()
308 databuf.maxlen = in _tx_rcvv()
311 databuf.len = 0; in _tx_rcvv()
312 databuf.buf = in _tx_rcvv()
324 &databuf, &flg); in _tx_rcvv()
331 if (databuf.len == -1) databuf.len = 0; in _tx_rcvv()
345 databuf.len; in _tx_rcvv()
[all …]
H A Dt_rcvdis.c49 struct strbuf databuf; in _tx_rcvdis() local
105 databuf.len = tiptr->ti_lookbufs.tl_lookdlen; in _tx_rcvdis()
106 databuf.buf = tiptr->ti_lookbufs.tl_lookdbuf; in _tx_rcvdis()
161 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvdis()
168 if (databuf.len == -1) databuf.len = 0; in _tx_rcvdis()
218 (size_t)databuf.len); in _tx_rcvdis()
219 discon->udata.len = databuf.len; in _tx_rcvdis()
232 free(databuf.buf); in _tx_rcvdis()
234 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvdis()
250 free(databuf.buf); in _tx_rcvdis()
[all …]
H A D_conn_util.c156 struct strbuf databuf; in _t_rcv_conn_con() local
204 if (databuf.len == -1) databuf.len = 0; in _t_rcv_conn_con()
269 if (databuf.len > (int)call->udata.maxlen) { in _t_rcv_conn_con()
273 (void) memcpy(call->udata.buf, databuf.buf, in _t_rcv_conn_con()
274 (size_t)databuf.len); in _t_rcv_conn_con()
275 call->udata.len = databuf.len; in _t_rcv_conn_con()
284 free(databuf.buf); in _t_rcv_conn_con()
286 tiptr->ti_rcvbuf = databuf.buf; in _t_rcv_conn_con()
299 if (_t_register_lookevent(tiptr, databuf.buf, databuf.len, in _t_rcv_conn_con()
316 free(databuf.buf); in _t_rcv_conn_con()
[all …]
H A Dt_listen.c48 struct strbuf databuf; in _tx_listen() local
150 if (databuf.len == -1) databuf.len = 0; in _tx_listen()
221 if (databuf.len > (int)call->udata.maxlen) { in _tx_listen()
225 (void) memcpy(call->udata.buf, databuf.buf, in _tx_listen()
226 (size_t)databuf.len); in _tx_listen()
227 call->udata.len = databuf.len; in _tx_listen()
235 free(databuf.buf); in _tx_listen()
237 tiptr->ti_rcvbuf = databuf.buf; in _tx_listen()
247 databuf.len, ctlbuf.buf, in _tx_listen()
270 free(databuf.buf); in _tx_listen()
[all …]
H A Dt_rcvreldata.c52 struct strbuf databuf; in _tx_rcvreldata() local
141 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _tx_rcvreldata()
158 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvreldata()
191 if (_t_register_lookevent(tiptr, databuf.buf, in _tx_rcvreldata()
192 databuf.len, ctlbuf.buf, in _tx_rcvreldata()
215 free(databuf.buf); in _tx_rcvreldata()
217 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvreldata()
229 free(databuf.buf); in _tx_rcvreldata()
231 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvreldata()
H A Dt_rcvrel.c53 struct strbuf databuf; in _tx_rcvrel() local
139 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _tx_rcvrel()
156 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvrel()
189 if (_t_register_lookevent(tiptr, databuf.buf, in _tx_rcvrel()
190 databuf.len, ctlbuf.buf, in _tx_rcvrel()
213 free(databuf.buf); in _tx_rcvrel()
215 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvrel()
227 free(databuf.buf); in _tx_rcvrel()
229 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvrel()
H A Dt_rcvuderr.c48 struct strbuf ctlbuf, databuf; in _tx_rcvuderr() local
79 databuf.maxlen = 0; in _tx_rcvuderr()
80 databuf.len = 0; in _tx_rcvuderr()
81 databuf.buf = NULL; in _tx_rcvuderr()
110 databuf.maxlen = 0; in _tx_rcvuderr()
111 databuf.len = 0; in _tx_rcvuderr()
112 databuf.buf = NULL; in _tx_rcvuderr()
121 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcvuderr()
H A Dt_rcvvudata.c59 struct strbuf databuf; in _tx_rcvvudata() local
121 databuf.maxlen = nbytes; in _tx_rcvvudata()
122 databuf.len = 0; in _tx_rcvvudata()
123 databuf.buf = dataptr; in _tx_rcvvudata()
132 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcvvudata()
207 _t_scatter(&databuf, tiov, tiovcount); in _tx_rcvvudata()
211 return (databuf.len); in _tx_rcvvudata()
250 _t_scatter(&databuf, tiov, tiovcount); in _tx_rcvvudata()
254 return (databuf.len); in _tx_rcvvudata()
H A Dt_snddis.c49 struct strbuf databuf; in _tx_snddis() local
145 databuf.maxlen = (call? call->udata.len: 0); in _tx_snddis()
146 databuf.len = (call? call->udata.len: 0); in _tx_snddis()
147 databuf.buf = (call? call->udata.buf: NULL); in _tx_snddis()
155 if (putmsg(fd, &ctlbuf, (databuf.len? &databuf: NULL), 0) < 0) { in _tx_snddis()
H A Dt_snd.c54 struct strbuf ctlbuf, databuf; in _tx_snd() local
188 databuf.maxlen = bytes_to_send; in _tx_snd()
189 databuf.len = bytes_to_send; in _tx_snd()
190 databuf.buf = curptr; in _tx_snd()
191 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.c195 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_set_val() argument
197 memcpy((uint8_t *)databuf + offset, val, vallen); in inet6_opt_set_val()
294 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_get_val() argument
296 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.c76 struct strbuf ctlbuf, databuf; in mibget() local
184 databuf.maxlen = last_item->length; in mibget()
185 databuf.buf = last_item->valp; in mibget()
186 databuf.len = 0; in mibget()
188 getcode = getmsg(sd, nilp(struct strbuf), &databuf, &flags); in mibget()
195 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