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; local
96 databuf = strdup(tmpbuf);
98 if (databuf == NULL)
111 (void) memset(databuf, 0, strlen(databuf));
112 free(databuf);
116 if (strcmp(databuf, tmpbuf) != 0) {
119 (void) memset(databuf, 0, strlen(databuf));
120 free(databuf);
[all...]
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_rcvdis.c51 struct strbuf databuf; local
107 databuf.len = tiptr->ti_lookbufs.tl_lookdlen;
108 databuf.buf = tiptr->ti_lookbufs.tl_lookdbuf;
109 /* Note databuf.maxlen not used in this case */
144 * Acquire databuf for use in sending/receiving data part
146 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) {
163 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
170 if (databuf.len == -1) databuf.len = 0;
215 if (databuf
[all...]
H A Dt_rcvv.c53 struct strbuf ctlbuf, databuf; local
185 databuf.maxlen = (int)nbytes;
186 databuf.len = 0;
187 databuf.buf = dataptr;
198 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
212 if (databuf.len == -1) databuf.len = 0;
264 _t_scatter(&databuf, tiov, tiovcount);
268 return (databuf.len);
288 if (_t_register_lookevent(tiptr, databuf
[all...]
H A Dt_rcv.c55 struct strbuf ctlbuf, databuf; local
170 databuf.maxlen = nbytes;
171 databuf.len = 0;
172 databuf.buf = buf;
183 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
197 if (databuf.len == -1) databuf.len = 0;
250 return (databuf.len);
270 if (_t_register_lookevent(tiptr, databuf.buf,
271 databuf
[all...]
H A D_conn_util.c158 struct strbuf databuf; local
182 * Acquire databuf for use in sending/receiving data part
184 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0)
194 if ((retval = getmsg(fd, ctlbufp, &databuf, &flg)) < 0) {
206 if (databuf.len == -1) databuf.len = 0;
271 if (databuf.len > (int)call->udata.maxlen) {
275 (void) memcpy(call->udata.buf, databuf.buf,
276 (size_t)databuf.len);
277 call->udata.len = databuf
[all...]
H A Dt_listen.c50 struct strbuf databuf; local
119 * Acquire databuf for use in sending/receiving data part
121 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) {
140 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
152 if (databuf.len == -1) databuf.len = 0;
223 if (databuf.len > (int)call->udata.maxlen) {
227 (void) memcpy(call->udata.buf, databuf.buf,
228 (size_t)databuf.len);
229 call->udata.len = databuf
[all...]
H A Dt_rcvrel.c55 struct strbuf databuf; local
139 * Acquire databuf for use in sending/receiving data part
141 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) {
158 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
191 if (_t_register_lookevent(tiptr, databuf.buf,
192 databuf.len, ctlbuf.buf,
215 free(databuf.buf);
217 tiptr->ti_rcvbuf = databuf.buf;
229 free(databuf.buf);
231 tiptr->ti_rcvbuf = databuf
[all...]
H A Dt_rcvreldata.c54 struct strbuf databuf; local
141 * Acquire databuf for use in sending/receiving data part
143 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) {
160 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
193 if (_t_register_lookevent(tiptr, databuf.buf,
194 databuf.len, ctlbuf.buf,
217 free(databuf.buf);
219 tiptr->ti_rcvbuf = databuf.buf;
231 free(databuf.buf);
233 tiptr->ti_rcvbuf = databuf
[all...]
H A Dt_rcvuderr.c50 struct strbuf ctlbuf, databuf; local
81 databuf.maxlen = 0;
82 databuf.len = 0;
83 databuf.buf = NULL;
112 databuf.maxlen = 0;
113 databuf.len = 0;
114 databuf.buf = NULL;
123 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
H A Dt_snddis.c51 struct strbuf databuf; local
147 databuf.maxlen = (call? call->udata.len: 0);
148 databuf.len = (call? call->udata.len: 0);
149 databuf.buf = (call? call->udata.buf: NULL);
157 if (putmsg(fd, &ctlbuf, (databuf.len? &databuf: NULL), 0) < 0) {
H A Dt_rcvvudata.c61 struct strbuf databuf; local
123 databuf.maxlen = nbytes;
124 databuf.len = 0;
125 databuf.buf = dataptr;
134 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
209 _t_scatter(&databuf, tiov, tiovcount);
213 return (databuf.len);
252 _t_scatter(&databuf, tiov, tiovcount);
256 return (databuf.len);
H A Dt_snd.c56 struct strbuf ctlbuf, databuf; local
190 databuf.maxlen = bytes_to_send;
191 databuf.len = bytes_to_send;
192 databuf.buf = curptr;
193 retval = putpmsg(fd, &ctlbuf, &databuf, band, MSG_BAND);
H A Dt_sndv.c52 struct strbuf ctlbuf, databuf; local
214 databuf.maxlen = bytes_to_send;
215 databuf.len = bytes_to_send;
216 databuf.buf = curptr;
217 retval = putpmsg(fd, &ctlbuf, &databuf, band, MSG_BAND);
H A Dt_sndvudata.c55 struct strbuf databuf; local
168 databuf.buf = dataptr;
169 databuf.len = nbytes;
170 databuf.maxlen = nbytes;
177 if (putmsg(fd, &ctlbuf, &databuf, 0) < 0) {
H A Dt_look.c125 strpeek.databuf.maxlen = 0;
126 strpeek.databuf.len = 0;
127 strpeek.databuf.buf = NULL;
/illumos-gate/usr/src/common/crypto/padding/
H A Dpkcs7.c51 * If databuf is non NULL, padbuf must be large enough
52 * to contain both databuf and the padding. databuf and
54 * databuf:
65 * If databuf is NULL, padbuf only needs to be large
75 pkcs7_encode(uint8_t *databuf, size_t datalen, uint8_t *padbuf, argument
81 if (databuf == NULL)
88 bcopy(databuf, padbuf, datalen);
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,
H A Dpkcs1.c64 pkcs1_encode(int method, uint8_t *databuf, size_t datalen, uint8_t *padbuf, argument
101 bcopy(databuf, padbuf + padlen, datalen);
/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));
213 wcnt = smb_fh_write(pfd, offset, rcnt, databuf);
/illumos-gate/usr/src/lib/libresolv2/include/
H A Dres_update.h60 struct databuf *r_dp; /*%< databuf to process */
61 struct databuf *r_deldp; /*%< databuf's deleted/overwritten */
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dstropts.h132 struct strbuf databuf; member in struct:strpeek
141 struct strbuf databuf; member in struct:strfdinsert
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmpeek.c171 peekp->databuf.maxlen = n;
172 peekp->databuf.buf = buf;
181 return(&(peekp->databuf));
/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) argument
199 memcpy((uint8_t *)databuf + offset, val, vallen);
291 * Section 10.7 RFC 3542. databuf should be a pointer as returned by
296 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) argument
298 memcpy(val, (uint8_t *)databuf + offset, vallen);
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Dbindresvport.c109 char databuf[256]; local
114 data->maxlen = sizeof (databuf);
115 data->buf = databuf;
/illumos-gate/usr/src/uts/common/sys/
H A Dstropts.h355 struct strbuf databuf; member in struct:strpeek
363 struct strbuf32 databuf; member in struct:strpeek32
374 struct strbuf databuf; member in struct:strfdinsert
384 struct strbuf32 databuf; member in struct:strfdinsert32

Completed in 99 milliseconds

12