Searched defs:buffer (Results 201 - 225 of 321) sorted by relevance

1234567891011>>

/osnet-11/usr/src/cmd/hal/utils/
H A Dcdutils.c134 mode_sense(int fd, uchar_t pc, int dbd, int page_len, uchar_t *buffer) argument
142 scmd.uscsi_bufaddr = (char *)buffer;
160 get_mode_page(int fd, int page_no, int pc, int buf_len, uchar_t *buffer, int *plen) argument
178 (void) memcpy(buffer, &buf[header_len], copy_cnt);
/osnet-11/usr/src/lib/libc/port/threads/
H A Drwlock.c385 lwpid_t buffer[MAXLWPS]; local
386 lwpid_t *lwpid = buffer;
428 * on-stack buffer, we need to allocate more but we can't call
433 * alloc_lwpids() to allocate a bigger buffer using the mmap()
488 if (lwpid != buffer)
/osnet-11/usr/src/lib/libsum/common/
H A Dsum-md5.c63 unsigned char buffer[64]; /* input buffer */ member in struct:Md5_s
308 memcpy(&context->buffer[index], input, partLen);
309 md5_transform(context->state, context->buffer);
317 /* buffer remaining input */
318 memcpy(&context->buffer[index], &input[i], inputLen - i);
/osnet-11/usr/src/lib/libuvfs/common/
H A Dname.c470 libuvfs_name_dirent_path(libuvfs_name_dirent_t *de, char *buffer, argument
479 need = libuvfs_name_dirent_path(first, buffer, size);
483 need = strlcat(buffer, "/", size);
486 need = strlcat(buffer, de->de_name, size);
499 uint32_t index, const char *prefix, char *buffer, uint32_t size)
518 need = strlcpy(buffer, prefix, size);
523 need = libuvfs_name_dirent_path(de, buffer, size);
498 libuvfs_name_path(libuvfs_fs_t *fs, const libuvfs_fid_t *fid, uint32_t index, const char *prefix, char *buffer, uint32_t size) argument
/osnet-11/usr/src/lib/nsswitch/ad/common/
H A Dgetpwnam.c61 char *buffer; local
80 buffer = be->buffer = malloc(buflen);
81 if (be->buffer == NULL)
88 buffer = argp->buf.buffer;
92 (void) snprintf(buffer, buflen, "%s:%s:%u:%u:%s:%s:%s",
95 (void) snprintf(buffer, buflen, "%s@%s:%s:%u:%u:%s:%s:%s",
/osnet-11/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c103 char *buffer, *limit; local
111 limit = argp->buf.buffer + buflen;
113 buffer = argp->buf.buffer;
122 host->h_name = buffer;
126 buffer += len;
132 ROUND_UP(buffer, sizeof (char **));
145 ROUND_UP(buffer, sizeof (char **));
199 char *s = ap->buf.buffer;
257 ap->returnlen = s - ap->buf.buffer;
347 _nss_dns_gethost_withttl(void *buffer, size_t bufsize, int ipnode) argument
[all...]
/osnet-11/usr/src/lib/nsswitch/ldap/common/
H A Dgetexecattr.c189 char *buffer; local
194 (void) memset(argp->buf.buffer, 0, argp->buf.buflen);
197 if ((be->buffer = calloc(1, argp->buf.buflen)) == NULL) {
201 buffer = be->buffer;
203 buffer = argp->buf.buffer;
205 if (_nss_ldap_exec2str_entry(entry, buffer, argp->buf.buflen) != 0)
208 be->buflen = strlen(buffer);
220 char buffer[NSS_BUFSI local
[all...]
H A Dldap_common.h84 #define TEST_AND_ADJUST(len, buffer, buflen, label) \
90 /* Adjust pointer and available buffer length */ \
91 buffer += len; \
96 * snprintf to convert [U|G]ID_NOBODY into a string. The target buffer
170 char *buffer; member in struct:ldap_backend
215 char **buffer, int *buflen);
/osnet-11/usr/src/lib/pam_modules/krb5/
H A Dkrb5_authenticate.c227 char buffer[512]; local
229 if (snprintf(buffer, sizeof (buffer),
231 KRB5_ENV_CCNAME, (int)pw_uid) >= sizeof (buffer)) {
237 kmd->env = strdup(buffer);
/osnet-11/usr/src/lib/passwdutil/
H A Dfiles_attr.c75 * this structure defines the buffer used to keep state between
141 private_getpwnam_r(const char *name, struct passwd *result, char *buffer, argument
151 while (!found && fgetpwent_r(fp, result, buffer, buflen) != NULL) {
159 (void) memset(buffer, 0, buflen);
178 private_getspnam_r(const char *name, struct spwd *result, char *buffer, argument
189 while (!found && fgetspent_r(fp, result, buffer, buflen) != NULL) {
197 (void) memset(buffer, 0, buflen);
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_evd_util.c381 * If the ring buffer allocation failed, then the dapls_rbuf_destroy
382 * function will detect that the ring buffer's internal data (ex. base
561 * events need to be put on to the EVD ring buffer.
991 * buffer
1001 DAPL_COOKIE_BUFFER *buffer; local
1006 buffer = &srq_ptr->recv_buffer;
1009 buffer = &ep_ptr->recv_buffer;
1013 buffer = &ep_ptr->req_buffer;
1141 dapls_cookie_dealloc(buffer, cookie);
/osnet-11/usr/src/lib/libsmbns/common/
H A Dsmbns_browser.c597 smb_browser_load_transact_header(unsigned char *buffer, int maxcnt, argument
618 bzero(buffer, maxcnt);
619 smb_msgbuf_init(&mb, buffer, maxcnt, 0);
777 unsigned char *buffer; local
801 buffer = calloc(1, MAX_DATAGRAM_LENGTH * 2);
802 if (buffer == NULL) {
810 offset = smb_browser_load_transact_header(buffer,
815 free(buffer);
829 smb_msgbuf_init(&mb, buffer + offset, MAX_DATAGRAM_LENGTH - offset, 0);
844 buffer, offse
[all...]
/osnet-11/usr/src/lib/libldap5/sources/ldap/ber/
H A Dio.c226 * enlarge the ber buffer.
253 /* transition to malloc'd buffer */
259 /* copy existing data into new malloc'd buffer */
345 so if rwptr is not within the buffer we return an error. */
415 /* we pre-allocate a buffer to save the extra malloc later */
620 * first time through - malloc the buffer, set up ptrs, and
662 * Finally, malloc a buffer for the contents and read it in.
663 * It's this buffer that's passed to all the other ber decoding
982 * This routine also allocates a ber data buffer within the same block, thus
1023 /* copy up to bytes_to_read bytes into the caller's buffer, retur
1089 ber_get_next_buffer( void *buffer, size_t buffer_size, ber_len_t *len, BerElement *ber, ber_uint_t *Bytes_Scanned ) argument
1098 ber_get_next_buffer_ext( void *buffer, size_t buffer_size, ber_len_t *len, BerElement *ber, ber_uint_t *Bytes_Scanned, Sockbuf *sock ) argument
[all...]
/osnet-11/usr/src/lib/libnisdb/
H A Dldap_util.c433 * vsprintf the 'fmt' and 'ap' to a buffer, then concatenate the
449 /* Find out how large the new buffer needs to be */
467 /* Generic print buffer */
496 * Make buffer one byte larger than the lengths indicate. This
498 * non-string copies into the buffer, and still end up with
590 char *buffer; local
607 if ((buffer = am(myself, len + 1)) == 0)
609 (void) memcpy(buffer, addr + s, len);
611 if (inet_pton(AF_INET6, buffer, &addr_ipv6) == 1) {
612 sfree(buffer);
[all...]
/osnet-11/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c106 char *buffer, int buflen, int af_family, int flags, int *h_errnop)
108 return (_switch_getipnodebyname_r(nam, result, buffer, buflen,
114 struct hostent *result, char *buffer, int buflen, int *h_errnop)
118 result, buffer, buflen, h_errnop));
121 result, buffer, buflen, h_errnop));
305 nssin.arg.nss.host6.buf = buf6->buffer;
345 nssin.arg.nss.host.buf = buf4->buffer;
364 /* Extract the appropriate addresses from the returned buffer(s). */
532 nssin.arg.nss.host.buf = buf->buffer;
550 buf->buffer, bu
105 _uncached_getipnodebyname(const char *nam, struct hostent *result, char *buffer, int buflen, int af_family, int flags, int *h_errnop) argument
113 _uncached_getipnodebyaddr(const char *addr, int length, int type, struct hostent *result, char *buffer, int buflen, int *h_errnop) argument
842 char *buffer, *limit; local
1075 char *buffer, *limit; local
[all...]
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dgnome-vfs-method.c612 GnomeVFSMethodHandle *method_handle, gpointer buffer,
625 g_return_val_if_fail(buffer != NULL, GNOME_VFS_ERROR_BAD_PARAMETERS);
636 buffer);
611 libntfs_gnomevfs_read(GnomeVFSMethod *method, GnomeVFSMethodHandle *method_handle, gpointer buffer, GnomeVFSFileSize num_bytes, GnomeVFSFileSize *bytes_read_return, GnomeVFSContext *context __attribute__((unused))) argument
/osnet-11/usr/src/lib/libntsvcs/common/
H A Dnetr_clnt.c643 * The result is stored in a temporary buffer.
668 unsigned char buffer[8]; local
697 rc = smb_auth_DES(buffer, 8, md4hash, NETR_DESKEY_LEN,
705 netr_info->session_key.len, &md4hash[9], NETR_DESKEY_LEN, buffer,
717 * temporary buffer:
742 unsigned char buffer[8]; local
755 if (smb_auth_DES(buffer, 8, session_key, NETR_DESKEY_LEN,
760 NETR_DESKEY_LEN, buffer, 8);
/osnet-11/usr/src/lib/libparted/common/lib/
H A Dquotearg.c190 /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of
204 quotearg_buffer_restyled (char *buffer, size_t buffersize, argument
223 buffer[len] = (c); \
606 buffer[len] = '\0';
612 return quotearg_buffer_restyled (buffer, buffersize, arg, argsize,
618 /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of
628 quotearg_buffer (char *buffer, size_t buffersize, argument
634 size_t r = quotearg_buffer_restyled (buffer, buffersize, arg, argsize,
684 /* Preallocate a slot 0 buffer, so that the caller can always quote
/osnet-11/usr/src/lib/libparted/common/libparted/arch/
H A Dsolaris.c1043 char *buffer = vbuffer; local
1086 memcpy(buffer, diobuf, status);
1095 buffer += status;
1128 solaris_write(PedDevice* dev, const void* buffer, PedSector start, argument
1181 dev->path, buffer, (int)start, (int)count);
1191 memcpy(diobuf, buffer, write_length);
1238 solaris_check(PedDevice* dev, void* buffer, PedSector start, PedSector count) argument
1301 struct stat buffer; local
1316 if (stat(block_path, &buffer) == 0) {
/osnet-11/usr/src/lib/libparted/common/libparted/fs/linux_swap/
H A Dlinux_swap.c64 void* buffer; member in struct:__anon2248
224 fs_info->buffer = ped_malloc (fs_info->buffer_size);
225 if (!fs_info->buffer)
235 free (fs_info->buffer);
251 free (fs_info->buffer);
497 fs_info->buffer,
/osnet-11/usr/src/lib/libcmd/common/
H A Dgrep.c146 char* base; /* sfsetbuf buffer */
149 } buffer; member in struct:State_s
364 if (state->buffer.noshare)
366 if (state->buffer.size)
367 sfsetbuf(input, state->buffer.base, state->buffer.size);
727 state.buffer.size = strton(s, &s, NiL, 1);
728 if (c == 'b' && !(state.buffer.base = newof(0, char, state.buffer.size, 0)))
729 error(ERROR_SYSTEM|3, "out of space [test buffer]");
[all...]
/osnet-11/usr/src/lib/libcpc/i386/
H A Devent_pentium.c590 char buffer[1024]; local
608 (void) snprintf(buffer, sizeof (buffer), "%s=%s,%s=%s",
612 masktostr(buffer, xpes[0].cmask, tokens[D_cmask0]);
613 masktostr(buffer, xpes[1].cmask, tokens[D_cmask1]);
614 masktostr(buffer, xpes[0].umask, tokens[D_umask0]);
615 masktostr(buffer, xpes[1].umask, tokens[D_umask1]);
616 flagstostr(buffer,
618 flagstostr(buffer,
620 flagstostr(buffer,
[all...]
/osnet-11/usr/src/lib/libfru/libfruraw/
H A Dfruraw.c83 make_raw(uint8_t *buffer, size_t size, char *cont_type) argument
93 node->raw = buffer;
108 * 0 - pointer to byte buffer (in)
109 * 1 - size of buffer (in)
/osnet-11/usr/src/lib/efcode/engine/
H A Dinteractive.c162 env->input->buffer = MALLOC(env->input->maxlen);
163 env->input->scanptr = env->input->buffer;
207 env->input->scanptr = strcpy(env->input->buffer, line);
213 env->input->scanptr = fgets(env->input->buffer,
229 PUSH(DS, (fstack_t)env->input->buffer);
235 FREE(env->input->buffer);
336 char *buffer; local
348 buffer = MALLOC(len);
349 if (buffer == 0)
352 if ((n = read(fd, buffer, le
371 char *buffer; local
386 char *buffer; local
[all...]
H A Dproperties.c73 free_property_buffer(fcode_env_t *env, void *buffer) argument
75 free_resource(&env->propbufs, buffer, addr_cmp);
76 FREE(buffer);
143 void *buffer; local
146 if ((buffer = pop_a_string(env, NULL)) != NULL)
147 free_property_buffer(env, buffer);

Completed in 60 milliseconds

1234567891011>>