Searched refs:buf (Results 276 - 300 of 1692) sorted by relevance

<<11121314151617181920>>

/osnet-11/usr/src/lib/libnsl/nsl/
H A Dt_optmgmt.c88 * Acquire buf for use in sending/receiving of the message.
115 if (req->opt.buf == NULL ||
122 opt_start = (struct t_opthdr *)req->opt.buf;
128 * "opt.buf" at start of buffer and in combination with
131 * applies to output buffer "ret->opt.buf" is an "interesting
220 optreq = (struct T_optmgmt_req *)ctlbuf.buf;
233 req->opt.buf, &optreq->OPT_offset) < 0) {
244 if (_t_do_ioctl(fd, ctlbuf.buf, size, TI_OPTMGMT, &retlen) < 0)
254 optack = (struct T_optmgmt_ack *)ctlbuf.buf;
261 (void) memcpy(ret->opt.buf,
[all...]
H A Dt_rcvudata.c148 pptr = (union T_primitives *)ctlbuf.buf;
172 (void) memcpy(unitdata->addr.buf,
173 ctlbuf.buf + pptr->unitdata_ind.SRC_offset,
186 (void) memcpy(unitdata->opt.buf, ctlbuf.buf +
202 free(ctlbuf.buf);
204 tiptr->ti_ctlbuf = ctlbuf.buf;
210 if (_t_register_lookevent(tiptr, 0, 0, ctlbuf.buf,
244 free(ctlbuf.buf);
246 tiptr->ti_ctlbuf = ctlbuf.buf;
[all...]
/osnet-11/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DAggregation.java348 StringBuilder buf = new StringBuilder();
349 buf.append(Aggregation.class.getName());
350 buf.append("[name = ");
351 buf.append(name);
352 buf.append(", id = ");
353 buf.append(id);
354 buf.append(", records = ");
364 buf.append('[');
370 buf.append(", ");
372 buf
[all...]
H A DAggregationRecord.java263 StringBuilder buf = new StringBuilder();
264 buf.append(AggregationRecord.class.getName());
265 buf.append("[tuple = ");
266 buf.append(tuple);
267 buf.append(", value = ");
268 buf.append(value);
269 buf.append(']');
270 return buf.toString();
/osnet-11/usr/src/lib/efcode/upa/
H A Dupa.c46 static char buf[8]; local
54 sprintf(buf, "%x,%x", hi, lo);
55 push_a_string(env, buf);
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dfwrite.c31 ** buf -- location of data to be written
41 sm_io_write(fp, timeout, buf, size)
44 const void *buf;
58 iov.iov_base = (void *) buf;
H A Dt-string.c26 char buf[4096]; local
38 sm_snprintf(buf, 4096, "+%*x+", 2000, 0xCAFE);
39 SM_TEST(strcmp(s, buf) == 0);
H A Dsetvbuf.c34 ** If 'buf' is == NULL then space will be allocated at 'size'.
39 ** buf -- buffer to use
41 ** size -- size of 'buf'
49 sm_io_setvbuf(fp, timeout, buf, mode, size)
52 char *buf;
66 ** particular implementation. Note, buf and size are ignored
110 buf = NULL; /* force local allocation */
115 if (buf == NULL)
117 if ((buf = sm_malloc(size)) == NULL)
128 buf
[all...]
/osnet-11/usr/src/lib/libast/common/regex/
H A Dregrexec.c38 register unsigned char* buf = (unsigned char*)s; local
62 buf = beg = (unsigned char*)s;
63 end = buf + len;
75 while ((index += skip[buf[index]]) < mid);
79 m = mask[n = exactlen - 1][buf[index]];
84 } while (m &= mask[n][buf[--index]]);
90 l = r = buf + len;
96 r = (l = buf + index) + exactlen;
107 if ((r - (buf + index)) < rightlen)
126 if ((index = (r - buf)
[all...]
/osnet-11/usr/src/lib/libast/common/string/
H A Dfmtperm.c37 char* buf; local
39 s = buf = fmtbuf(32);
90 return buf;
/osnet-11/usr/src/lib/libbsm/common/
H A Daudit_crontab.c172 char *buf = NULL, err_buf[128]; local
216 if (buf != NULL)
217 free(buf);
221 if (buf != NULL)
222 free(buf);
226 if (buf != NULL) {
227 if (strlen(buf) != 0) {
228 *bufptr = buf;
236 if (buf != NULL) {
237 if (strlen(buf) !
[all...]
/osnet-11/usr/src/lib/libumem/common/
H A Dmisc.c175 char buf[UMEM_MAX_ERROR_SIZE] = ""; local
180 (void) vsnprintf(buf, UMEM_MAX_ERROR_SIZE-1, format, va);
185 (void) write(UMEM_ERRFD, buf, strlen(buf));
188 umem_log_enter(buf);
195 char buf[UMEM_MAX_ERROR_SIZE] = ""; local
200 (void) vsnprintf(buf, UMEM_MAX_ERROR_SIZE-1, format, va);
203 (void) write(UMEM_ERRFD, buf, strlen(buf));
210 char buf[UMEM_MAX_ERROR_SIZ local
[all...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelEmulate.c86 free(bufp->buf);
87 bufp->buf = NULL;
96 if (bufp->buf == NULL) {
97 bufp->buf = malloc(buflen);
98 if (bufp->buf == NULL) {
191 uint8_t *old = bufp->buf;
193 bufp->buf = realloc(bufp->buf, siz);
194 if (bufp->buf == NULL) {
196 bufp->buf
[all...]
/osnet-11/usr/src/lib/pysolaris/zones/common/
H A Dzones.c58 char buf[ZONENAME_MAX]; local
65 if ((ret = getzonenamebyid(zid, buf, ZONENAME_MAX)) == -1) {
69 return (Py_BuildValue("s", buf));
/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/
H A DOpaque.java183 StringBuffer buf = new StringBuffer();
185 buf.append(OPAQUE_HEADER);
196 buf.append(ServiceLocationAttribute.ESCAPE);
199 buf.append(ZERO);
202 buf.append(str);
205 return buf.toString();
/osnet-11/usr/src/lib/libnisdb/
H A Dldap_util.h66 char *buf; member in struct:__anon1978
98 int vp2buf(const char *msg, char **buf, int buflen, const char *fmt,
102 void bc2buf(const char *msg, void *buf, int len, __nis_buffer_t *b);
103 void sbc2buf(const char *msg, void *buf, int len, __nis_buffer_t *b);
104 void c2buf(const char *msg, void *buf, int len);
105 void sc2buf(const char *msg, void *buf, int len);
/osnet-11/usr/src/lib/libast/common/stdio/
H A Dvfwscanf.c65 wideread(Sfio_t* f, Void_t* buf, size_t size, Sfdisc_t* dp) argument
74 return wcstombs(buf, wuf, size);
82 r = wcstombs(buf, wuf, size);
94 char buf[1024]; local
102 if (t = sfnew(NiL, buf, sizeof(buf), OPEN_MAX+1, SF_READ))
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkquery.c121 u_char *buf, /*!< buffer to put query */
151 if ((buf == NULL) || (buflen < HFIXEDSZ))
153 memset(buf, 0, HFIXEDSZ);
154 hp = (HEADER *) buf;
160 cp = buf + HFIXEDSZ;
161 ep = buf + buflen;
163 *dpp++ = buf;
231 return (cp - buf);
240 u_char *buf, /*%< buffer to put query */
253 hp = (HEADER *) buf;
114 res_nmkquery(res_state statp, int op, const char *dname, int class, int type, const u_char *data, int datalen, const u_char *newrr_in, u_char *buf, int buflen) argument
238 res_nopt(res_state statp, int n0, u_char *buf, int buflen, int anslen) argument
292 res_nopt_rdata(res_state statp, int n0, u_char *buf, int buflen, u_char *rdata, u_short code, u_short len, u_char *data) argument
[all...]
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_mac.c79 smb_mac_calc(smb_sign_ctx_t *sign_ctx, const unsigned char *buf, argument
119 rv = C_DigestUpdate(hSession, (CK_BYTE_PTR)buf, SMB_SIG_OFFS);
129 rv = C_DigestUpdate(hSession, (CK_BYTE_PTR)buf + offset_end_of_sig,
155 const unsigned char *buf, size_t buf_len)
160 if (smb_mac_calc(sign_ctx, buf, buf_len, mac_sign) != SMBAUTH_SUCCESS)
180 smb_mac_sign(smb_sign_ctx_t *sign_ctx, unsigned char *buf, size_t buf_len) argument
185 if (smb_mac_calc(sign_ctx, buf, buf_len, mac_sign) != SMBAUTH_SUCCESS)
189 (void) memcpy(buf + SMB_SIG_OFFS, mac_sign, SMB_SIG_SIZE);
154 smb_mac_chk(smb_sign_ctx_t *sign_ctx, const unsigned char *buf, size_t buf_len) argument
/osnet-11/usr/src/lib/libldap4/include/
H A Dclient_door.h14 char * buf,int bufsize, char **rbuf, int * rsize);
/osnet-11/usr/src/lib/libparted/common/lib/
H A Dsafe-read.c56 safe_rw (int fd, void const *buf, size_t count) argument
66 ssize_t result = rw (fd, buf, count);
/osnet-11/usr/src/lib/libgss/
H A Dg_exp_sec_context.c84 char *buf; local
117 buf = interprocess_token->value;
119 buf[3] = (unsigned char) (length & 0xFF);
121 buf[2] = (unsigned char) (length & 0xFF);
123 buf[1] = (unsigned char) (length & 0xFF);
125 buf[0] = (unsigned char) (length & 0xFF);
126 (void) memcpy(buf+4, ctx->mech_type->elements,
128 (void) memcpy(buf+4+ctx->mech_type->length, token.value, token.length);
/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_subr.c111 char buf[MAXNAMELEN]; local
127 if (count > sizeof (buf))
130 (void) snprintf(buf, count, "%s", begin);
134 if (strcmp(buf, dbp->tdm_name) == 0)
232 * buf_append -- Append str to buf (if it's non-NULL). Place prepend
233 * in buf in front of str and append behind it (if they're non-NULL).
238 topo_fmristr_build(ssize_t *sz, char *buf, size_t buflen, char *str, argument
249 if (buf != NULL && left != 0)
250 buf += *sz;
253 *sz += snprintf(buf, lef
308 char buf[MAXNAMELEN]; local
343 topo_sensor_type_name(uint32_t type, char *buf, size_t len) argument
358 topo_sensor_units_name(uint8_t type, char *buf, size_t len) argument
373 topo_led_type_name(uint8_t type, char *buf, size_t len) argument
388 topo_led_state_name(uint8_t type, char *buf, size_t len) argument
403 topo_sensor_state_name(uint32_t sensor_type, uint8_t state, char *buf, size_t len) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dtestload.c39 char *buf; local
66 buf = grub_malloc (size);
67 if (! buf)
72 if (grub_file_read (file, buf, size) != (grub_ssize_t) size)
88 if (grub_memcmp (sector, buf + pos, GRUB_DISK_SECTOR_SIZE) != 0)
111 if (grub_memcmp (sector, buf + pos, GRUB_DISK_SECTOR_SIZE) != 0)
119 grub_printf ("%02x ", buf[pos + i]);
137 grub_free (buf);
/osnet-11/usr/src/cmd/hal/utils/
H A Dcdutils.c164 uchar_t buf[256]; local
170 if ((ret = mode_sense(fd, byte2, 1, 254, buf)) == 0) {
174 header_len = 8 + GET16(&buf[6]);
175 page_len = buf[header_len + 1] + 2;
178 (void) memcpy(buffer, &buf[header_len], copy_cnt);
189 get_configuration(int fd, uint16_t feature, int bufsize, uchar_t *buf) argument
204 scmd.uscsi_bufaddr = (char *)buf;
368 uint8_t buf[32]; local
369 int bufsize = sizeof (buf);
371 bzero(buf, bufsiz
414 uint8_t buf[32]; local
481 read_toc(int fd, int format, int trackno, int buflen, uchar_t *buf) argument
[all...]

Completed in 644 milliseconds

<<11121314151617181920>>