Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 897) sorted by relevance

12345678910>>...36

/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_saa_utils.c192 buffer += IBMF_SAA_DEFAULT_RID_SIZE; in ibmf_saa_node_record_parse_buffer()
198 buffer += SM_NODEINFO_SIZE; in ibmf_saa_node_record_parse_buffer()
215 buffer += IBMF_SAA_DEFAULT_RID_SIZE; in ibmf_saa_portinfo_record_parse_buffer()
253 buffer += IBMF_SAA_DEFAULT_RID_SIZE; in ibmf_saa_switchinfo_record_parse_buffer()
330 buffer += IBMF_SAA_DEFAULT_RID_SIZE; in ibmf_saa_sminfo_record_parse_buffer()
578 buffer, IB_MAD_NOTICE_SIZE); in ibmf_saa_notice_to_buf()
600 buffer += IBMF_SAA_DEFAULT_RID_SIZE; in ibmf_saa_node_record_to_buf()
606 buffer += SM_NODEINFO_SIZE; in ibmf_saa_node_record_to_buf()
625 buffer += IBMF_SAA_DEFAULT_RID_SIZE; in ibmf_saa_portinfo_record_to_buf()
664 buffer += IBMF_SAA_DEFAULT_RID_SIZE; in ibmf_saa_switchinfo_record_to_buf()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirpmarshall.c202 strcat(*buffer, pwUid); strcat(*buffer, fieldsep); in irp_marshall_pw()
203 strcat(*buffer, pwGid); strcat(*buffer, fieldsep); in irp_marshall_pw()
204 strcat(*buffer, pwClass); strcat(*buffer, fieldsep); in irp_marshall_pw()
205 strcat(*buffer, pwChange); strcat(*buffer, fieldsep); in irp_marshall_pw()
242 p = buffer; in irp_unmarshall_pw()
453 strcat(*buffer, grGid); strcat(*buffer, fieldsep); in irp_marshall_gr()
951 p = *buffer + strlen(*buffer); in irp_marshall_ho()
1664 else if (buffend > buffer && *buffer == delim) in splitarray()
2005 buffer, sizeof buffer); in main()
2009 buffer, sizeof buffer); in main()
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Dputprmpt.c47 (void) strlcpy(buffer, defstr ? defstr : "No default prompt.", in putprmpt()
48 sizeof (buffer)); in putprmpt()
53 (void) snprintf(buffer, sizeof (buffer), "%s%s", in putprmpt()
56 (void) snprintf(buffer, sizeof (buffer), "%.*s%s", in putprmpt()
59 (void) strlcpy(buffer, prompt, sizeof (buffer)); in putprmpt()
61 (void) strlcpy(buffer, "", sizeof (buffer)); in putprmpt()
63 (void) strlcat(buffer, "\\ [", sizeof (buffer)); in putprmpt()
65 (void) strlcat(buffer, choices[i], sizeof (buffer)); in putprmpt()
66 (void) strlcat(buffer, ",", sizeof (buffer)); in putprmpt()
68 (void) strlcat(buffer, ckquit ? "?,q] " : "?] ", sizeof (buffer)); in putprmpt()
[all …]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_cookie.c95 DAPL_COOKIE_BUFFER *buffer,
100 DAPL_COOKIE_BUFFER *buffer,
152 if (NULL != buffer->pool) { in dapls_cb_create()
153 buffer->pool_size = size; in dapls_cb_create()
154 buffer->head = 0; in dapls_cb_create()
155 buffer->tail = 0; in dapls_cb_create()
256 if (NULL != buffer->pool) { in dapls_cb_free()
257 dapl_os_free(buffer->pool, buffer->pool_size * in dapls_cb_free()
290 new_head = (buffer->head + 1) % buffer->pool_size; in dapls_cb_get()
296 buffer->head = new_head; in dapls_cb_get()
[all …]
/illumos-gate/usr/src/lib/krb5/ss/
H A Dlist_rqs.c48 char buffer[BUFSIZ]; local
97 buffer[0] = '\0';
100 buffer[sizeof(buffer) - 1] = '\0';
103 strncat(buffer, *name, sizeof(buffer) - 1 - strlen(buffer));
106 strncat(buffer, ", ", sizeof(buffer) - 1 - strlen(buffer));
110 strncat(buffer, NL, sizeof(buffer) - 1 - strlen(buffer));
111 fputs(buffer, output);
113 buffer[0] = '\0';
123 strncat(buffer, entry->info_string, sizeof(buffer) -1 - strlen(buffer));
124 strncat(buffer, NL, sizeof(buffer) - 1 - strlen(buffer));
[all …]
H A Dhelp.c30 char buffer[MAXPATHLEN]; local
48 snprintf(buffer, sizeof (buffer), (char *)dgettext(TEXT_DOMAIN,
51 ss_perror(sci_idx, 0, buffer);
64 (void) strncpy(buffer, info->info_dirs[idx], sizeof(buffer) - 1);
65 buffer[sizeof(buffer) - 1] = '\0';
66 (void) strncat(buffer, "/", sizeof(buffer) - 1 - strlen(buffer));
67 (void) strncat(buffer, argv[1], sizeof(buffer) - 1 - strlen(buffer));
68 (void) strncat(buffer, ".info", sizeof(buffer) - 1 - strlen(buffer));
69 if ((fd = open(&buffer[0], O_RDONLY)) >= 0) goto got_it;
71 if ((fd = open(&buffer[0], O_RDONLY)) < 0) {
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dfastlz_api.c139 buffer[0] = id & 255; in write_chunk_header()
143 buffer[4] = size & 255; in write_chunk_header()
151 buffer[12] = extra & 255; in write_chunk_header()
157 buffer, 16); in write_chunk_header()
168 unsigned char *buffer; in write_compression_hdr() local
187 buffer[0] = fsize & 255; in write_compression_hdr()
191 buffer[4] = 0; in write_compression_hdr()
192 buffer[5] = 0; in write_compression_hdr()
193 buffer[6] = 0; in write_compression_hdr()
194 buffer[7] = 0; in write_compression_hdr()
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A DmDNSDebug.c46 char buffer[512]; in verbosedebugf_() local
49 buffer[mDNS_vsnprintf(buffer, sizeof(buffer), format, args)] = 0; in verbosedebugf_()
51 mDNSPlatformWriteDebugMsg(buffer); in verbosedebugf_()
59 char buffer[512]; in LogMsgWithLevelv() local
60 mDNS_vsnprintf(buffer, (mDNSu32)sizeof(buffer), format, args); in LogMsgWithLevelv()
66 char buffer[512]; in LogMsgWithLevelv() local
67 char *dst = buffer; in LogMsgWithLevelv()
68 const char *const lim = &buffer[512]; in LogMsgWithLevelv()
105 char buffer[1024]; in LogMsg_() local
106 buffer[mDNS_vsnprintf(buffer, (mDNSu32)sizeof(buffer), format, args)] = '\0'; in LogMsg_()
[all …]
H A Ddnssd_ipc.c37 static char buffer[1024]; in win32_strerror() local
39 memset(buffer, 0, sizeof(buffer)); in win32_strerror()
45 buffer, in win32_strerror()
46 sizeof(buffer), in win32_strerror()
52 buffer[--n] = '\0'; in win32_strerror()
54 return buffer; in win32_strerror()
119 *buffer = 0; in get_string()
124 char *lim = buffer + buflen; // Calculate limit in get_string()
125 while (*ptr < end && buffer < lim) in get_string()
127 char c = *buffer++ = *(*ptr)++; in get_string()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/emlxs/
H A Demlxs.c94 char buffer[256]; in emlxs_msgbuf() local
111 mdb_snprintf(buffer, sizeof (buffer), "%s_device", DRIVER_NAME); in emlxs_msgbuf()
124 mdb_snprintf(buffer, sizeof (buffer), "%s_instance", DRIVER_NAME); in emlxs_msgbuf()
127 buffer); in emlxs_msgbuf()
140 buffer); in emlxs_msgbuf()
262 msg.buffer, entry.buffer); in emlxs_msgbuf()
348 char buffer[256]; in emlxs_dump() local
386 mdb_snprintf(buffer, sizeof (buffer), "%s_device", DRIVER_NAME); in emlxs_dump()
399 mdb_snprintf(buffer, sizeof (buffer), "%s_instance", DRIVER_NAME); in emlxs_dump()
402 buffer); in emlxs_dump()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetgrnam.c53 nss_XbyY_buf_t **buffer = arg; in free_grbuf() local
55 NSS_XbyY_FREE(buffer); in free_grbuf()
61 nss_XbyY_buf_t **buffer = in get_grbuf() local
66 if (buffer == NULL) in get_grbuf()
72 if (*buffer) { in get_grbuf()
74 return (*buffer); in get_grbuf()
75 NSS_XbyY_FREE(buffer); /* existing is too small */ in get_grbuf()
90 ret = getgrgid_r(gid, b->result, b->buffer, b->buflen); in getgrgid()
109 ret = getgrnam_r(nam, b->result, b->buffer, b->buflen); in getgrnam()
125 getgrent_r(b->result, b->buffer, b->buflen)); in getgrent()
[all …]
H A Dgetpwnam_r.c76 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in getpwnam_r()
92 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in getpwuid_r()
106 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in _uncached_getpwuid_r()
140 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in _uncached_getpwnam_r()
181 getpwent_r(struct passwd *result, char *buffer, int buflen) in getpwent_r() argument
189 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in getpwent_r()
208 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd); in fgetpwent_r()
256 if (instr != buffer) { in str2passwd()
258 (void) memmove(buffer, instr, lenstr); in str2passwd()
259 buffer[lenstr] = '\0'; in str2passwd()
[all …]
H A Dgetgrnam_r.c82 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in getgrnam_r()
98 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in getgrgid_r()
111 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in _uncached_getgrgid_r()
144 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in _uncached_getgrnam_r()
192 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in getgrent_r()
211 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in fgetgrent_r()
331 if (instr != buffer) { in str2group()
333 (void) memmove(buffer, instr, lenstr); in str2group()
334 buffer[lenstr] = '\0'; in str2group()
341 next = buffer; in str2group()
[all …]
/illumos-gate/usr/src/lib/nsswitch/mdns/common/
H A Dmdns_common.c136 free(data->buffer); in _nss_mdns_queryrecord()
167 char *buffer; in _nss_mdns_querynamereply() local
198 buffer = qdata->buffer = in _nss_mdns_querynamereply()
205 buffer = qdata->buffer = in _nss_mdns_querynamereply()
211 buffer = qdata->buffer = argp->buf.buffer; in _nss_mdns_querynamereply()
216 buffer = qdata->buffer + strlen(qdata->buffer); in _nss_mdns_querynamereply()
306 char *buffer; in _nss_mdns_queryaddrreply() local
331 buffer = qdata->buffer = calloc(1, remlen); in _nss_mdns_queryaddrreply()
335 buffer = qdata->buffer = argp->buf.buffer; in _nss_mdns_queryaddrreply()
339 buffer = qdata->buffer + strlen(qdata->buffer); in _nss_mdns_queryaddrreply()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetprinter.c69 char *buffer = NULL; in _nss_ldap_printers2str() local
82 be->buffer = calloc(1, buflen); in _nss_ldap_printers2str()
83 if (be->buffer == NULL) in _nss_ldap_printers2str()
86 buffer = be->buffer; in _nss_ldap_printers2str()
88 buffer = argp->buf.buffer; in _nss_ldap_printers2str()
137 *buffer = '\0'; in _nss_ldap_printers2str()
200 *buffer = 0; in _nss_ldap_printers2str()
206 *buffer = 0; in _nss_ldap_printers2str()
231 *buffer++ = ','; in _nss_ldap_printers2str()
233 (void) append_attr(buffer, in _nss_ldap_printers2str()
[all …]
H A Dgetprojent.c73 char *buffer, *comment, *attr_str; in _nss_ldap_proj2str() local
84 if ((be->buffer = calloc(1, buflen)) == NULL) { in _nss_ldap_proj2str()
88 buffer = be->buffer; in _nss_ldap_proj2str()
90 buffer = argp->buf.buffer; in _nss_ldap_proj2str()
93 (void) memset(buffer, 0, buflen); in _nss_ldap_proj2str()
123 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str()
127 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str()
133 len = snprintf(buffer, buflen, ":"); in _nss_ldap_proj2str()
145 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str()
149 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_datagram.c324 char *buffer; in smb_netbios_datagram_send() local
360 BE_OUT16(&buffer[2], datagram_id); in smb_netbios_datagram_send()
366 BE_OUT16(&buffer[12], 0); in smb_netbios_datagram_send()
368 bcopy(ha_source, &buffer[14], srclen); in smb_netbios_datagram_send()
371 count = &buffer[14 + srclen + destlen + length] - buffer; in smb_netbios_datagram_send()
391 free(buffer); in smb_netbios_datagram_send()
404 char *buffer; in smb_netbios_datagram_send_to_net() local
440 BE_OUT16(&buffer[2], datagram_id); in smb_netbios_datagram_send_to_net()
446 BE_OUT16(&buffer[12], 0); in smb_netbios_datagram_send_to_net()
451 count = &buffer[14 + srclen + destlen + length] - buffer; in smb_netbios_datagram_send_to_net()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetprotoent_r.c55 char *buffer, int buflen) in getprotobyname_r() argument
64 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2protoent); in getprotobyname_r()
131 char *buffer, int buflen) in str2protoent() argument
139 if ((instr >= buffer && (buffer + buflen) > instr) || in str2protoent()
140 (buffer >= instr && (instr + lenstr) > buffer)) { in str2protoent()
159 (void) memcpy(buffer, namestart, namelen); in str2protoent()
160 buffer[namelen] = '\0'; in str2protoent()
161 proto->p_name = buffer; in str2protoent()
198 ptr = (char **)ROUND_UP(buffer + namelen + 1, in str2protoent()
200 if ((char *)ptr >= buffer + buflen) { in str2protoent()
[all …]
H A Dgetnetent_r.c59 char *buffer, int buflen) in getnetbyname_r() argument
68 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2netent); in getnetbyname_r()
80 char *buffer, int buflen) in getnetbyaddr_r() argument
143 if ((instr >= buffer && (buffer + buflen) > instr) || in str2netent()
144 (buffer >= instr && (instr + lenstr) > buffer)) { in str2netent()
163 (void) memcpy(buffer, namestart, namelen); in str2netent()
164 buffer[namelen] = '\0'; in str2netent()
165 net->n_name = buffer; in str2netent()
204 ptr = (char **)ROUND_UP(buffer + namelen + 1, in str2netent()
206 if ((char *)ptr >= buffer + buflen) { in str2netent()
[all …]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgetrpcent_r.c65 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2rpcent); in getrpcbyname_r()
81 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2rpcent); in getrpcbynumber_r()
111 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2rpcent); in getrpcent_r()
127 if ((instr >= buffer && (buffer + buflen) > instr) || in str2rpcent()
128 (buffer >= instr && (instr + lenstr) > buffer)) in str2rpcent()
145 (void) memcpy(buffer, namestart, namelen); in str2rpcent()
146 buffer[namelen] = '\0'; in str2rpcent()
147 rpc->r_name = buffer; in str2rpcent()
180 ptr = (char **)ROUND_UP(buffer + namelen + 1, in str2rpcent()
182 if ((char *)ptr >= buffer + buflen) { in str2rpcent()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dtokenize.c87 buffer[0] = val; in show_special()
88 buffer[1] = 0; in show_special()
91 return buffer; in show_special()
98 char *buffer; in show_ident() local
104 return buffer; in show_ident()
138 ptr = buffer; in show_string()
146 return buffer; in show_string()
160 return buffer; in show_char()
182 return buffer; in quote_char()
540 char *p = buffer, *buffer_end = buffer + sizeof (buffer); in get_one_number()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dvwprintw.c67 char *buffer; in vwprintw() local
70 buffer = (char *) malloc(size); in vwprintw()
71 if (buffer == NULL) in vwprintw()
75 n = vsnprintf(buffer, size, fmt, ap); in vwprintw()
79 buffer = (char *) realloc(buffer, size); in vwprintw()
80 if (buffer == NULL) in vwprintw()
84 rv = waddstr(win, buffer); in vwprintw()
85 free(buffer); in vwprintw()
/illumos-gate/usr/src/common/ficl/
H A Dmain.c90 char *buffer; in main() local
104 asprintf(&buffer, "%d", cols); in main()
105 setenv("screen-#cols", buffer, 1); in main()
106 free(buffer); in main()
107 asprintf(&buffer, "%d", rows); in main()
108 setenv("screen-#rows", buffer, 1); in main()
109 free(buffer); in main()
124 asprintf(&buffer, ".( loading %s ) cr include %s\n cr", in main()
126 returnValue = ficlVmEvaluate(vm, buffer); in main()
127 free(buffer); in main()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dvw_print.c54 char *buffer; in vw_printw() local
57 buffer = (char *)malloc(size); in vw_printw()
58 if (buffer == NULL) in vw_printw()
63 n = vsnprintf(buffer, size, fmt, ap); in vw_printw()
67 buffer = (char *)realloc(buffer, size); in vw_printw()
68 if (buffer == NULL) in vw_printw()
72 rv = waddnstr(w, buffer, -1); in vw_printw()
73 free(buffer); in vw_printw()
/illumos-gate/usr/src/uts/common/tnf/
H A Dtnf_probe.c78 tnf_probe_prototype_t *buffer; in tnf_probe_tag() local
91 ALLOC2(ops, sizeof (*buffer), buffer, saved_mode); in tnf_probe_tag()
93 ALLOC2(ops, sizeof (*buffer), buffer, saved_mode); in tnf_probe_tag()
95 probe_p->index = (uintptr_t)buffer; in tnf_probe_tag()
99 *fwp = tnf_ref32(ops, (tnf_record_p) buffer, in tnf_probe_tag()
166 ASSIGN(buffer, tag, metatag_index); in tnf_probe_tag()
167 ASSIGN(buffer, name, probe_name); in tnf_probe_tag()
170 ASSIGN(buffer, slot_types, probe_p->slot_types); in tnf_probe_tag()
173 ASSIGN(buffer, type_size, probe_p->tnf_event_size); in tnf_probe_tag()
177 ASSIGN(buffer, slot_names, slot_args); in tnf_probe_tag()
[all …]

12345678910>>...36