Searched refs:buffer (Results 1 - 25 of 816) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/gssapi/
H A Dgss_release_buffer.c36 gss_release_buffer(OM_uint32 *minor_status, gss_buffer_t buffer) argument
42 /* if buffer is NULL, return */
44 if (buffer == GSS_C_NO_BUFFER)
47 if ((buffer->length) && (buffer->value)) {
48 FREE(buffer->value, buffer->length);
49 buffer->length = 0;
50 buffer->value = NULL;
/illumos-gate/usr/src/lib/libadm/common/
H A Dputprmpt.c42 char buffer[1024] = ""; /* NB: code should prevent overflow... */ local
47 (void) strlcpy(buffer, defstr ? defstr : "No default prompt.",
48 sizeof (buffer));
53 (void) snprintf(buffer, sizeof (buffer), "%s%s",
56 (void) snprintf(buffer, sizeof (buffer), "%.*s%s",
59 (void) strlcpy(buffer, prompt, sizeof (buffer));
61 (void) strlcpy(buffer, "", sizeo
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Drel_buffer.c41 buffer)
43 gss_buffer_t buffer;
48 /* if buffer is NULL, return */
50 if (buffer == GSS_C_NO_BUFFER)
53 if (buffer->value) {
54 free(buffer->value);
55 buffer->length = 0;
56 buffer->value = NULL;
H A Dutil_buffer.c33 make sure that buffer is consistent (release'able) when this
36 int g_make_string_buffer(str, buffer)
38 gss_buffer_t buffer;
40 buffer->length = strlen(str);
42 if ((buffer->value = (void *) xmalloc(buffer->length + 1)) == NULL) {
43 buffer->length = 0;
47 strcpy(buffer->value, str);
/illumos-gate/usr/src/lib/libgss/
H A Dg_rel_buffer.c40 gss_release_buffer(minor_status, buffer)
43 gss_buffer_t buffer;
48 /* if buffer is NULL, return */
50 if (buffer == GSS_C_NO_BUFFER)
53 if ((buffer->length) && (buffer->value)) {
54 free(buffer->value);
55 buffer->length = 0;
56 buffer->value = NULL;
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dvw_print.c54 char *buffer; local
57 buffer = (char *)malloc(size);
58 if (buffer == NULL)
63 n = vsnprintf(buffer, size, fmt, ap);
67 buffer = (char *)realloc(buffer, size);
68 if (buffer == NULL)
72 rv = waddnstr(w, buffer, -1);
73 free(buffer);
H A Dvwprintw.c59 char *buffer; local
62 buffer = (char *)malloc(size);
63 if (buffer == NULL)
68 n = vsnprintf(buffer, size, fmt, ap);
72 buffer = (char *)realloc(buffer, size);
73 if (buffer == NULL)
77 rv = waddnstr(w, buffer, -1);
78 free(buffer);
H A Dlongname.c53 static char buffer[128]; local
55 (void) strncpy(buffer, strrchr(cur_term->_names, '|') + 1,
56 sizeof (buffer) - 1);
58 return (buffer);
H A Dvw_scanw.c60 char buffer[LINE_MAX]; local
62 if (wgetnstr(w, buffer, (int)sizeof (buffer)) != OK)
64 code = _vsscanf(buffer, fmt, ap);
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dvwprintw.c67 char *buffer; local
70 buffer = (char *) malloc(size);
71 if (buffer == NULL)
75 n = vsnprintf(buffer, size, fmt, ap);
79 buffer = (char *) realloc(buffer, size);
80 if (buffer == NULL)
84 rv = waddstr(win, buffer);
85 free(buffer);
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dlongname.c50 static char buffer[128]; local
57 buffer, strrchr(cur_term->_names, '|') + 1, sizeof buffer - 1
60 return __m_return_pointer("longname", buffer);
H A Dtgetent.c52 (tgetent)(buffer, name)
53 char *buffer, *name;
58 __m_trace("tgetent(%p, %p = \"%s\")", buffer, name, name);
H A Dvw_scanw.c60 char buffer[LINE_MAX]; local
65 if ((code = wgetnstr(w, buffer, (int) sizeof buffer)) == OK)
67 (void) m_vsscanf(buffer, fmt, ap);
69 (void) m_vsscanf(buffer, fmt, (va_list) ap);
/illumos-gate/usr/src/lib/libmail/common/
H A Dcopystream.c54 char buffer[BUFSIZ]; local
57 while ((nread = fread(buffer, sizeof (char), sizeof (buffer),
59 if (fwrite(buffer, sizeof (char), nread, outfp) != nread)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dctime_r.c94 ctime_r(const time_t *t, char *buffer, int buflen) argument
101 if (asctime_r(&res, buffer, buflen) == NULL)
104 return (buffer);
112 __posix_ctime_r(const time_t *t, char *buffer) argument
119 if (__posix_asctime_r(&res, buffer) == NULL)
122 return (buffer);
/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));
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/etc/
H A Dnfslog.conf31 # [ buffer=<bufferfile_path> ] [ logformat=basic|extended ]
35 log=nfslog fhtable=fhtable buffer=nfslog_workbuffer
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_overflow.c5 struct buffer { struct
12 struct buffer b1;
25 sm_overflow.c:15 main() error: buffer overflow 'b1.a.b' 8 <= 10
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_cookie.c95 DAPL_COOKIE_BUFFER *buffer,
100 DAPL_COOKIE_BUFFER *buffer,
117 * buffer pointer to DAPL_COOKIE_BUFFER
131 IN DAPL_COOKIE_BUFFER *buffer,
151 buffer->pool = dapl_os_alloc(size * sizeof (DAPL_COOKIE));
152 if (NULL != buffer->pool) {
153 buffer->pool_size = size;
154 buffer->head = 0;
155 buffer->tail = 0;
158 buffer
130 dapls_cb_create( IN DAPL_COOKIE_BUFFER *buffer, IN void *queue, IN DAPL_COOKIE_QUEUE_TYPE type, IN DAT_COUNT size) argument
253 dapls_cb_free( IN DAPL_COOKIE_BUFFER *buffer) argument
281 dapls_cb_get( IN DAPL_COOKIE_BUFFER *buffer, OUT DAPL_COOKIE **cookie_ptr) argument
323 dapls_cb_put( IN DAPL_COOKIE_BUFFER *buffer, IN DAPL_COOKIE *cookie) argument
351 dapls_rmr_cookie_alloc( IN DAPL_COOKIE_BUFFER *buffer, IN DAPL_RMR *rmr, IN DAT_RMR_COOKIE user_cookie, OUT DAPL_COOKIE **cookie_ptr) argument
397 dapls_dto_cookie_alloc( IN DAPL_COOKIE_BUFFER *buffer, IN DAPL_DTO_TYPE type, IN DAT_DTO_COOKIE user_cookie, OUT DAPL_COOKIE **cookie_ptr) argument
420 dapls_cookie_dealloc( IN DAPL_COOKIE_BUFFER *buffer, IN DAPL_COOKIE *cookie) argument
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dptext.c41 char buffer[2048]; local
45 (void) vsprintf(buffer, fmt, ap);
49 (void) puttext(fp, buffer, 0, 70);
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_inpath.c33 static char buffer[OBP_MAXPATHLEN]; variable
46 if (prom_ihandle_to_path(istdin, buffer,
48 return (stdinpath = buffer);
H A Dprom_outpath.c33 static char buffer[OBP_MAXPATHLEN]; variable
46 if (prom_ihandle_to_path(istdout, buffer,
48 return (stdoutpath = buffer);
H A Dprom_devname.c33 prom_devname_from_pathname(register char *pathname, register char *buffer) argument
46 *buffer++ = *p++;
50 *buffer = (char)0;
56 * Get base device name of stdin/stdout device into callers buffer.
61 prom_stdin_devname(char *buffer) argument
63 return (prom_devname_from_pathname(prom_stdinpath(), buffer));
67 prom_stdout_devname(char *buffer) argument
69 return (prom_devname_from_pathname(prom_stdoutpath(), buffer));
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_saa_utils.c78 static void ibmf_saa_classportinfo_parse_buffer(uchar_t *buffer, void *record);
79 static void ibmf_saa_notice_parse_buffer(uchar_t *buffer, void *record);
80 static void ibmf_saa_informinfo_parse_buffer(uchar_t *buffer, void *record);
81 static void ibmf_saa_node_record_parse_buffer(uchar_t *buffer, void *record);
82 static void ibmf_saa_portinfo_record_parse_buffer(uchar_t *buffer,
84 static void ibmf_saa_SLtoVLmapping_record_parse_buffer(uchar_t *buffer,
86 static void ibmf_saa_switchinfo_record_parse_buffer(uchar_t *buffer,
88 static void ibmf_saa_linearft_record_parse_buffer(uchar_t *buffer,
90 static void ibmf_saa_randomft_record_parse_buffer(uchar_t *buffer,
92 static void ibmf_saa_multicastft_record_parse_buffer(uchar_t *buffer,
157 ibmf_saa_classportinfo_parse_buffer(uchar_t *buffer, void *record) argument
166 ibmf_saa_notice_parse_buffer(uchar_t *buffer, void *record) argument
175 ibmf_saa_informinfo_parse_buffer(uchar_t *buffer, void *record) argument
184 ibmf_saa_node_record_parse_buffer(uchar_t *buffer, void *record) argument
205 ibmf_saa_portinfo_record_parse_buffer(uchar_t *buffer, void *record) argument
223 ibmf_saa_SLtoVLmapping_record_parse_buffer(uchar_t *buffer, void *record) argument
243 ibmf_saa_switchinfo_record_parse_buffer(uchar_t *buffer, void *record) argument
262 ibmf_saa_linearft_record_parse_buffer(uchar_t *buffer, void *record) argument
281 ibmf_saa_randomft_record_parse_buffer(uchar_t *buffer, void *record) argument
300 ibmf_saa_multicastft_record_parse_buffer(uchar_t *buffer, void *record) argument
320 ibmf_saa_sminfo_record_parse_buffer(uchar_t *buffer, void *record) argument
339 ibmf_saa_informinfo_record_parse_buffer(uchar_t *buffer, void *record) argument
359 ibmf_saa_link_record_parse_buffer(uchar_t *buffer, void *record) argument
369 ibmf_saa_guidinfo_record_parse_buffer(uchar_t *buffer, void *record) argument
388 ibmf_saa_service_record_parse_buffer(uchar_t *buffer, void *record) argument
399 ibmf_saa_partition_record_parse_buffer(uchar_t *buffer, void *record) argument
418 ibmf_saa_path_record_parse_buffer(uchar_t *buffer, void *record) argument
428 ibmf_saa_vlarb_record_parse_buffer(uchar_t *buffer, void *record) argument
448 ibmf_saa_mcmember_record_parse_buffer(uchar_t *buffer, void *record) argument
460 ibmf_saa_trace_record_parse_buffer(uchar_t *buffer, void *record) argument
479 ibmf_saa_multipath_record_parse_buffer(uchar_t *buffer, void *record) argument
504 ibmf_saa_service_assn_record_parse_buffer(uchar_t *buffer, void *record) argument
516 ibmf_saa_gid_trap_parse_buffer(uchar_t *buffer, sm_trap_64_t *sm_trap_64) argument
524 ibmf_saa_capmask_chg_trap_parse_buffer(uchar_t *buffer, sm_trap_144_t *sm_trap_144) argument
533 ibmf_saa_sysimg_guid_chg_trap_parse_buffer(uchar_t *buffer, sm_trap_145_t *sm_trap_145) argument
563 ibmf_saa_classportinfo_to_buf(void *record, uchar_t *buffer) argument
573 ibmf_saa_notice_to_buf(void *record, uchar_t *buffer) argument
582 ibmf_saa_informinfo_to_buf(void *record, uchar_t *buffer) argument
591 ibmf_saa_node_record_to_buf(void *record, uchar_t *buffer) argument
615 ibmf_saa_portinfo_record_to_buf(void *record, uchar_t *buffer) argument
635 ibmf_saa_SLtoVLmapping_record_to_buf(void *record, uchar_t *buffer) argument
654 ibmf_saa_switchinfo_record_to_buf(void *record, uchar_t *buffer) argument
673 ibmf_saa_linearft_record_to_buf(void *record, uchar_t *buffer) argument
692 ibmf_saa_randomft_record_to_buf(void *record, uchar_t *buffer) argument
711 ibmf_saa_multicastft_record_to_buf(void *record, uchar_t *buffer) argument
731 ibmf_saa_sminfo_record_to_buf(void *record, uchar_t *buffer) argument
749 ibmf_saa_informinfo_record_to_buf(void *record, uchar_t *buffer) argument
768 ibmf_saa_link_record_to_buf(void *record, uchar_t *buffer) argument
778 ibmf_saa_guidinfo_record_to_buf(void *record, uchar_t *buffer) argument
797 ibmf_saa_service_record_to_buf(void *record, uchar_t *buffer) argument
807 ibmf_saa_partition_record_to_buf(void *record, uchar_t *buffer) argument
826 ibmf_saa_path_record_to_buf(void *record, uchar_t *buffer) argument
836 ibmf_saa_vlarb_record_to_buf(void *record, uchar_t *buffer) argument
856 ibmf_saa_mcmember_record_to_buf(void *record, uchar_t *buffer) argument
867 ibmf_saa_multipath_record_to_buf(void *record, uchar_t *buffer) argument
885 ibmf_saa_service_assn_record_to_buf(void *record, uchar_t *buffer) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dlddstub.c35 originlddstub(char *buffer, const char *orgfile) argument
39 if (dlinfo(RTLD_SELF, RTLD_DI_ORIGIN, (void *)buffer) == -1)
41 if (strlcat(buffer, orgfile, PATH_MAX) >= PATH_MAX)
43 if ((len = resolvepath(buffer, buffer, (PATH_MAX - 1))) == -1)
45 buffer[len] = '\0';
46 if (access(buffer, X_OK) == -1)

Completed in 53 milliseconds

1234567891011>>