Home
last modified time | relevance | path

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

123

/titanic_41/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()
/titanic_41/usr/src/lib/libnsl/nsl/
H A Dt_rcv.c55 struct strbuf ctlbuf, databuf; in _tx_rcv() local
170 databuf.maxlen = nbytes; in _tx_rcv()
171 databuf.len = 0; in _tx_rcv()
172 databuf.buf = buf; in _tx_rcv()
183 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcv()
197 if (databuf.len == -1) databuf.len = 0; in _tx_rcv()
250 return (databuf.len); in _tx_rcv()
270 if (_t_register_lookevent(tiptr, databuf.buf, in _tx_rcv()
271 databuf.len, in _tx_rcv()
292 databuf.maxlen = in _tx_rcv()
[all …]
H A Dt_rcvv.c53 struct strbuf ctlbuf, databuf; in _tx_rcvv() local
185 databuf.maxlen = (int)nbytes; in _tx_rcvv()
186 databuf.len = 0; in _tx_rcvv()
187 databuf.buf = dataptr; in _tx_rcvv()
198 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_rcvv()
212 if (databuf.len == -1) databuf.len = 0; in _tx_rcvv()
264 _t_scatter(&databuf, tiov, tiovcount); in _tx_rcvv()
268 return (databuf.len); in _tx_rcvv()
288 if (_t_register_lookevent(tiptr, databuf.buf, in _tx_rcvv()
289 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()
146 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _tx_rcvdis()
163 retval = getmsg(fd, &ctlbuf, &databuf, &flg); in _tx_rcvdis()
170 if (databuf.len == -1) databuf.len = 0; in _tx_rcvdis()
215 if (databuf.len > (int)discon->udata.maxlen) { in _tx_rcvdis()
219 (void) memcpy(discon->udata.buf, databuf.buf, in _tx_rcvdis()
220 (size_t)databuf.len); in _tx_rcvdis()
221 discon->udata.len = databuf.len; in _tx_rcvdis()
[all …]
H A D_conn_util.c158 struct strbuf databuf; in _t_rcv_conn_con() local
184 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) in _t_rcv_conn_con()
194 if ((retval = getmsg(fd, ctlbufp, &databuf, &flg)) < 0) { in _t_rcv_conn_con()
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()
[all …]
H A Dt_listen.c50 struct strbuf databuf; in _tx_listen() local
121 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _tx_listen()
140 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { in _tx_listen()
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()
[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()
373 while ((retval = getmsg(fd, &ctlbuf, &databuf, &flags)) < 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()
1107 char databuf[sizeof (int)]; /* size unimportant - anything > 0 */ in _t_adjust_state() local
1119 arg.databuf.buf = databuf; in _t_adjust_state()
1120 arg.databuf.maxlen = (int)sizeof (databuf); in _t_adjust_state()
[all …]
/titanic_41/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,
/titanic_41/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()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/cmd/ttymon/
H A Dtmpeek.c171 peekp->databuf.maxlen = n;
172 peekp->databuf.buf = buf;
181 return(&(peekp->databuf));
/titanic_41/usr/src/uts/common/sys/
H A Dstropts.h355 struct strbuf databuf; member
363 struct strbuf32 databuf; member
374 struct strbuf databuf; member
384 struct strbuf32 databuf; member
/titanic_41/usr/src/lib/librpcsvc/common/
H A Dbindresvport.c109 char databuf[256]; local
114 data->maxlen = sizeof (databuf);
115 data->buf = databuf;
/titanic_41/usr/src/lib/libast/common/sfio/
H A Dsfpkrd.c80 pbuf.databuf.maxlen = n;
81 pbuf.databuf.buf = buf;
82 pbuf.databuf.len = 0;
91 if(r > 0 && (r = pbuf.databuf.len) <= 0)

123