Searched defs:databuf (Results 1 - 20 of 20) sorted by relevance

/osnet-11/usr/src/lib/libnsl/nsl/
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_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_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_sndvudata.c54 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_rcv.c51 struct strbuf ctlbuf, databuf; local
166 databuf.maxlen = nbytes;
167 databuf.len = 0;
168 databuf.buf = buf;
179 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
193 if (databuf.len == -1) databuf.len = 0;
246 return (databuf.len);
266 if (_t_register_lookevent(tiptr, databuf.buf,
267 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_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.c52 struct strbuf ctlbuf, databuf; local
186 databuf.maxlen = bytes_to_send;
187 databuf.len = bytes_to_send;
188 databuf.buf = curptr;
189 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 D_utility.c335 struct strbuf databuf; local
350 * Acquire databuf for use in sending/receiving data part
352 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) {
370 while ((retval = getmsg(fd, &ctlbuf, &databuf, &flags)) < 0) {
418 free(databuf.buf);
420 tiptr->ti_rcvbuf = databuf.buf;
461 free(databuf.buf);
463 tiptr->ti_rcvbuf = databuf.buf;
1112 char databuf[sizeof (int)]; /* size unimportant - anything > 0 */ local
1124 arg.databuf
[all...]
/osnet-11/usr/src/lib/librpcsvc/common/
H A Dbindresvport.c106 char databuf[256]; local
111 data->maxlen = sizeof (databuf);
112 data->buf = databuf;
/osnet-11/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...]
/osnet-11/usr/src/lib/libsocket/inet/
H A Dinet6_opt.c194 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) argument
196 (void) memcpy((uint8_t *)databuf + offset, val, vallen);
288 * Section 10.7 RFC 3542. databuf should be a pointer as returned by
293 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) argument
295 (void) memcpy(val, (uint8_t *)databuf + offset, vallen);
/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_print.c199 char databuf[SMBFS_DATABUFSIZ]; local
215 rcnt = read(file, databuf, sizeof (databuf));
224 wcnt = smbfs_fh_write(pfd, databuf, rcnt, offset);
/osnet-11/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaSession.c379 CK_BYTE *databuf)
407 slot_session->hSession, databuf, state->op_state_len,
415 slot_session->hSession, databuf, state->op_state_len,
375 meta_set_opstate(slot_session_t *slot_session, meta_object_t *meta_enc_key, meta_object_t *meta_auth_key, struct opstate_data *state, CK_BYTE *databuf) argument
/osnet-11/usr/src/lib/libdlpi/common/
H A Dlibdlpi.c1311 * void *databuf: data buffer
1318 const void *databuf, size_t datalen, int flags)
1330 data.buf = (void *)databuf;
1334 (databuf == NULL ? NULL : &data), flags);
1349 * void *databuf: data buffer
1352 * actual data received is larger than 'databuf'
1362 void *databuf, size_t *datalenp, size_t *totdatalenp)
1377 * dlreplyp and databuf can be NULL at the same time, to force a check
1382 if ((databuf == NULL && datalenp != NULL) ||
1383 (databuf !
1317 i_dlpi_strputmsg(dlpi_impl_t *dip, const dlpi_msg_t *dlreqp, const void *databuf, size_t datalen, int flags) argument
1360 i_dlpi_strgetmsg(dlpi_impl_t *dip, int msec, dlpi_msg_t *dlreplyp, t_uscalar_t dlreqprim, t_uscalar_t dlreplyprim, size_t dlreplyminsz, void *databuf, size_t *datalenp, size_t *totdatalenp) argument
[all...]

Completed in 48 milliseconds