Searched defs:buffer (Results 251 - 275 of 321) sorted by relevance

<<111213

/osnet-11/usr/src/lib/libnisdb/
H A Dnis_parse_ldap_util.c616 * Gets next line in buffer - using '\' at end of line
625 * INPUT: file descriptor, buffer, and buffer size
629 read_line(int fd, char *buffer, int buflen) argument
639 (void) memset(buffer, 0, buflen);
656 (buffer, linelen)) {
658 buffer, 0,
683 buffer[linelen - 1]
687 buffer[linelen] = '\0';
696 buffer[linele
2533 is_string_ok(char *buffer, int buflen) argument
[all...]
/osnet-11/usr/src/lib/libnsl/nis/gen/
H A Dnis_sec_mechs.c1084 char *buffer, size_t buflen)
1088 if (keylen == 0 || !buffer || buflen == 0)
1094 if (!mechfile_name2lib(mechname, buffer, buflen))
1097 return (buffer);
1083 __nis_get_mechanism_library(keylen_t keylen, algtype_t algtype, char *buffer, size_t buflen) argument
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dclnt_vc.c41 * A sequence of calls may be batched-up in a send buffer. The rpc call
126 uint_t ct_bufferSize; /* Total size of the buffer. */
128 char *ct_buffer; /* Pointer to the buffer. */
155 /* Default size of the IO buffer used in non blocking mode */
202 * must pick send and receive buffer sizes, 0 => use the default.
271 ct->ct_buffer = NULL; /* We allocate the buffer when needed. */
1073 /* Cannot resize the buffer if it is used. */
1097 * Returns the size of buffer allocated
1162 * return a larger buffer, left over from the last time we were
1451 /* Compute the # of bytes that remains until the end of the buffer */
1459 char *buffer; local
[all...]
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dcrypto.c201 ntfs_log_perror("Failed to allocate buffer for key file "
547 * This is a utility function for reversing the order of a buffer in place.
581 * Note: decrypting into the input buffer.
662 * @src: source buffer containing 128-bit key
1403 * @b: output data buffer
1410 unsigned char *buffer; local
1426 buffer = malloc(NTFS_EFS_SECTOR_SIZE);
1427 if (!buffer)
1460 NTFS_EFS_SECTOR_SIZE, buffer);
1468 if ((i = ntfs_fek_decrypt_sector(na->crypto->fek, buffer,
[all...]
/osnet-11/usr/src/lib/libpkg/common/
H A Ddstream.c398 /* We need a bigger buffer */
806 * ds_ginit: Determine the device being accessed, set the buffer size,
826 struct s3bconf *buffer; local
869 buffer = (struct s3bconf *)malloc((unsigned)size);
870 if (sys3b(S3BCONF, buffer, size) == -1)
872 table = (struct s3bc *)((char *)buffer + sizeof (int));
987 * make sure one more buffer
/osnet-11/usr/src/lib/libcmd/common/
H A Dod.c93 "[+b\an\a?Allocate a fixed input buffer of size \an\a.]"
94 "[+m\an\a?Set the mapped input buffer size to \an\a.]"
95 "[+n?Turn off the \bSF_SHARE\b input buffer flag.]"
228 } buffer; member in struct:State_s
957 if (state->buffer.noshare)
959 if (state->buffer.size)
960 sfsetbuf(ip, state->buffer.base, state->buffer.size);
1370 state.buffer.size = strton(s, &e, NiL, 1);
1371 if (n == 'b' && !(state.buffer
[all...]
/osnet-11/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.h282 uint32_t data_length; /* size of actual data in the buffer */
285 uchar_t buffer[1]; /* dynamically extended */ member in struct:dhcp_ipc_request
292 uint32_t data_length; /* size of actual data in the buffer */
294 uchar_t buffer[1]; /* dynamically extended */ member in struct:dhcp_ipc_reply
/osnet-11/usr/src/lib/libdhcputil/common/
H A Ddhcp_inittab.c170 char buffer[ITAB_MAX_LINE_LEN]; local
196 while (fgets(buffer, sizeof (buffer), inittab_fp) != NULL) {
201 * make sure the string didn't overflow our buffer
203 if (strchr(buffer, '\n') == NULL) {
212 for (i = 0; buffer[i] != '\0'; i++)
213 if (isspace(buffer[i]) == 0)
216 if (buffer[i] == ITAB_COMMENT_CHAR || buffer[i] == '\0')
222 if (parse_entry(buffer, field
[all...]
/osnet-11/usr/src/lib/libfru/libfrupicl/
H A Dfrupicl.c687 uint8_t *buffer = NULL; local
696 /* get the length of the buffer required. */
712 buffer = malloc(buf_size);
713 if (buffer == NULL) {
716 /* write the tag and data into the buffer */
717 memcpy(buffer, &tag, get_tag_size(get_tag_type(&tag)));
718 memcpy((void *)(buffer+get_tag_size(get_tag_type(&tag))),
721 picl_err = picl_set_propval(add_prop, buffer, buf_size);
722 free(buffer);
857 uint8_t *buffer; local
[all...]
/osnet-11/usr/src/lib/libfru/libfrupicltree/
H A Dfrupicltree.c698 uint8_t *buffer = NULL; local
707 /* get the length of the buffer required. */
724 buffer = malloc(buf_size);
725 if (buffer == NULL) {
728 /* write the tag and data into the buffer */
729 memcpy(buffer, &tag, get_tag_size(get_tag_type(&tag)));
730 memcpy((void *)(buffer+get_tag_size(get_tag_type(&tag))),
733 picl_err = ptree_update_propval(add_prop, buffer, buf_size);
734 free(buffer);
869 uint8_t *buffer; local
[all...]
/osnet-11/usr/src/lib/libfru/libfruraw/
H A Draw_access.c555 raw_memcpy(void *buffer, raw_list_t *rawlist, int offset, int size) argument
561 (void) memcpy(buffer, &rawlist->raw[offset], size);
600 unsigned char *buffer; local
638 buffer = alloca(size);
639 if (buffer == NULL) {
643 /* segment header buffer */
659 (void) memcpy(buffer, &sec_hdr, sizeof (sec_hdr));
662 (void) memcpy(buffer + sizeof (sec_hdr), seg_buf, size -
666 retval = verify_header_crc8(hdrver, buffer, size);
742 unsigned char *buffer; local
778 get_packet(raw_list_t *rawlist, void *buffer, int size, int offset) argument
1068 fru_get_payload(packet_hdl_t packet, void *buffer, size_t nbytes, door_cred_t *cred) argument
[all...]
/osnet-11/usr/src/lib/efcode/include/fcode/
H A Dengine.h159 char *buffer; member in struct:__anon970
199 uchar_t *fcode_buffer; /* pointer to fcode buffer */
200 uchar_t *fcode_ptr; /* pointer into fcode buffer */
216 input_typ *input; /* input buffer pointer */
218 char *picturebufpos; /* pictured string buffer position */
219 char *picturebuf; /* pictured string buffer */
220 int picturebuflen; /* pictured string buffer length */
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_file.c630 krb5_ktf_keytab_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **buffer, size_t *lenremain)
644 bp = *buffer;
713 *buffer = bp;
727 krb5_ktf_keytab_internalize(krb5_context kcontext, krb5_pointer *argp, krb5_octet **buffer, size_t *lenremain)
740 bp = *buffer;
808 *buffer = bp;
628 krb5_ktf_keytab_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **buffer, size_t *lenremain) argument
724 krb5_ktf_keytab_internalize(krb5_context kcontext, krb5_pointer *argp, krb5_octet **buffer, size_t *lenremain) argument
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dpac.c75 PACTYPE *pac; /* PAC header + info buffer array */
87 * Add a buffer to the provided PAC and update header.
103 /* Check there isn't already a buffer of this type */
107 "Duplicate PAC buffer of type %d",
203 PAC_INFO_BUFFER *buffer = NULL; local
215 if (buffer == NULL)
216 buffer = &pac->pac->Buffers[i];
220 "Invalid buffer found looping thru "
228 if (buffer == NULL) {
231 "No PAC buffer foun
435 PAC_INFO_BUFFER *buffer = &pac->pac->Buffers[i]; local
615 PAC_INFO_BUFFER *buffer = NULL; local
932 PAC_INFO_BUFFER *buffer = &pac->pac->Buffers[i]; local
1504 mspac_externalize(krb5_context kcontext, krb5_authdata_context context, void *plugin_context, void *request_context, krb5_octet **buffer, size_t *lenremain) argument
1547 mspac_internalize(krb5_context kcontext, krb5_authdata_context context, void *plugin_context, void *request_context, krb5_octet **buffer, size_t *lenremain) argument
[all...]
/osnet-11/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_principal.c1330 const char *buffer)
1365 /* Write out the buffer to the child, add \n */
1366 if (buffer) {
1367 if (krb5_net_write (context, data_pipe[1], buffer, strlen (buffer)) < 0
1328 kadm5_launch_task(krb5_context context, const char *task_path, char * const task_argv[], const char *buffer) argument
/osnet-11/usr/src/grub/grub2/grub-core/lib/libgcrypt/cipher/
H A Dcipher.c1616 /* Set counter for CTR mode. (CTR,CTRLEN) must denote a buffer of
1633 gcry_cipher_ctl( gcry_cipher_hd_t h, int cmd, void *buffer, size_t buflen)
1640 rc = cipher_setkey( h, buffer, buflen );
1644 cipher_setiv( h, buffer, buflen );
1678 if( h || !buffer || buflen != sizeof(int) )
1680 disable_cipher_algo( *(int*)buffer );
1684 if (buffer && buflen == h->cipher->blocksize)
1685 memcpy (h->ctr, buffer, h->cipher->blocksize);
1686 else if (buffer == NULL || buflen == 0)
1705 If the provided buffer i
1631 gcry_cipher_ctl( gcry_cipher_hd_t h, int cmd, void *buffer, size_t buflen) argument
1739 gcry_cipher_info(gcry_cipher_hd_t h, int cmd, void *buffer, size_t *nbytes) argument
1781 gcry_cipher_algo_info(int algo, int what, void *buffer, size_t *nbytes) argument
[all...]
H A Dmd.c117 /* this structure is put right after the gcry_md_hd_t buffer, so that
435 /* Allocate a memory area to hold the caller visible buffer with it's
439 * internal data but have a variable sized buffer.
442 * !ctx! bctl ! buffer ! private !
650 /* No need to copy the buffer due to the write above. */
886 gcry_md_ctl (gcry_md_hd_t hd, int cmd, void *buffer, size_t buflen) argument
896 rc = gcry_err_code (gcry_md_setkey (hd, buffer, buflen));
899 md_start_debug (hd, buffer);
985 gcry_md_get (gcry_md_hd_t hd, int algo, byte *buffer, int buflen) argument
989 (void)buffer;
1005 gcry_md_hash_buffer(int algo, void *digest, const void *buffer, size_t length) argument
1142 gcry_md_algo_info(int algo, int what, void *buffer, size_t *nbytes) argument
1244 gcry_md_info(gcry_md_hd_t h, int cmd, void *buffer, size_t *nbytes) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/loader/ia64/efi/
H A Dlinux.c259 and the memory map buffer. */
381 grub_load_elf64 (grub_file_t file, void *buffer, const char *filename) argument
383 Elf64_Ehdr *ehdr = (Elf64_Ehdr *) buffer;
418 phdr = (Elf64_Phdr *) ((char *) buffer + ehdr->e_phoff
463 phdr = (Elf64_Phdr *) ((char *) buffer + ehdr->e_phoff
506 char buffer[GRUB_ELF_SEARCH]; local
525 len = grub_file_read (file, buffer, sizeof (buffer));
534 if (grub_load_elf64 (file, buffer, argv[0]))
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dchar_io.c241 /* Add CMDLINE to the history buffer. */
300 /* The working buffer for the command-line. */
302 /* The kill buffer. */
651 case 25: /* C-y yank the kill buffer */
659 /* Save the working buffer. */
747 /* Copy the working buffer to CMDLINE. */
885 grub_vsprintf (char *buffer, const char *format, int *dataptr) argument
890 char *bp = buffer;
896 if (buffer)
908 if (buffer)
943 grub_sprintf(char *buffer, const char *format, ...) argument
[all...]
/osnet-11/usr/src/cmd/sendmail/libmilter/
H A Dengine.c23 size_t a_len; /* length of buffer */
58 #define CT_KEEP 0x0004 /* keep buffer (contains symbols) */
482 char *buffer; local
502 buffer = malloc(len);
503 if (buffer != NULL)
505 (void) memcpy(buffer, buf, MILTER_OPTLEN);
516 (void) memcpy(buffer + offset, (void *) &v,
521 (void) memcpy(buffer + offset,
534 buffer = buf;
536 *newbuf = buffer;
688 char *buffer; local
[all...]
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dntfsundelete.c1283 char buffer[20]; local
1293 strftime(buffer, sizeof(buffer), "%F %R", localtime(&file->date));
1294 ntfs_log_quiet("Date: %s\n", buffer);
1337 strftime(buffer, sizeof(buffer), "%F %R",
1339 ntfs_log_quiet("Date C: %s\n", buffer);
1340 strftime(buffer, sizeof(buffer), "%F %R",
1342 ntfs_log_quiet("Date A: %s\n", buffer);
1412 char buffer[20]; local
1510 write_data(int fd, const char *buffer, unsigned int bufsize) argument
1558 create_pathname(const char *dir, const char *name, const char *stream, char *buffer, int bufsize) argument
1654 char *buffer = NULL; local
1895 char *buffer = NULL; local
2020 char *buffer; local
[all...]
/osnet-11/usr/src/lib/libast/common/port/
H A Dastconf.c298 buffer(char* s) function
1299 call = buffer(call);
1348 * non-settable return values copied to a tmp fmtbuf() buffer
1432 s = buffer(s);
1471 s = buffer(s);
/osnet-11/usr/src/lib/libbsm/common/
H A Dadt_token.c664 char buffer[TEXT_LENGTH + 1]; local
667 if (strftime(buffer, sizeof (buffer), "%x",
670 (void) strncpy(buffer, "invalid date",
676 DPRINTF((" text=%s\n", buffer));
677 WRITE_TEXT(event->ae_event_handle, buffer,
/osnet-11/usr/src/lib/libsum/common/
H A Dsum-sha2.c470 sha2_byte buffer[SHA256_BLOCK_LENGTH]; member in struct:Sha256_s
515 W256 = (sha2_word32*)sha->buffer;
573 W256 = (sha2_word32*)sha->buffer;
659 /* Calculate how much free space is available in the buffer */
663 /* Fill the buffer completely and process it */
664 MEMCPY_BCOPY(&sha->buffer[usedspace], data, freespace);
668 SHA256_Transform(sha, (sha2_word32*)sha->buffer);
670 /* The buffer is not yet full */
671 MEMCPY_BCOPY(&sha->buffer[usedspace], data, len);
687 MEMCPY_BCOPY(sha->buffer, dat
839 sha2_byte buffer[SHA512_BLOCK_LENGTH]; member in struct:Sha512_s
[all...]
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_db.c184 char *buffer; local
203 * buffer is used to write/read in at most MDDB_VERIFY_SIZE block
208 if ((buffer = Zalloc(MDDB_VERIFY_SIZE * DEV_BSIZE)) == NULL)
220 Free(buffer);
225 if (write(fd, buffer, iosize) != iosize) {
226 Free(buffer);
231 Free(buffer);
235 if (read(fd, buffer, iosize) != iosize) {
236 Free(buffer);
243 Free(buffer);
[all...]

Completed in 166 milliseconds

<<111213