Searched defs:buf (Results 126 - 150 of 1270) sorted by relevance

1234567891011>>

/osnet-11/usr/src/lib/libgen/common/
H A Dbufsplit.c78 bufsplit(char *buf, size_t dim, char **array) argument
89 if (!buf)
93 if (buf && !dim && !array) {
94 bsplitchar = buf;
99 array[numsplit] = buf;
101 buf = strpbrk(buf, bsplitchar);
102 if (buf)
103 *(buf++) = '\0';
106 if (*buf
[all...]
/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/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/lib/fm/topo/modules/sun4v/sun4vpi/common/
H A Dpi_ldom.c144 pi_free(void *buf, size_t size) argument
150 topo_mod_free(Pi_mod, buf, size);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_get.c31 asn1_get_tag_2(asn1buf *buf, taginfo *t) argument
35 if (buf == NULL || buf->base == NULL ||
36 buf->bound - buf->next + 1 <= 0) {
45 /* asn1_get_id(buf, t) */
53 retval = asn1buf_remove_octet(buf,&o);
65 retval = asn1buf_remove_octet(buf,&o);
74 /* asn1_get_length(buf, t) */
78 retval = asn1buf_remove_octet(buf,
104 asn1_get_sequence(asn1buf *buf, unsigned int *retlen, int *indef) argument
[all...]
H A Dasn1buf.h17 unsigned int asn1buf_free(const asn1buf *buf);
19 * requires *buf is allocated
20 * effects Returns the number of unused, allocated octets in *buf.
22 #define asn1buf_free(buf) \
23 (((buf) == NULL || (buf)->base == NULL) \
25 : (unsigned int)((buf)->bound - (buf)->next + 1))
28 asn1_error_code asn1buf_ensure_space(asn1buf *buf, const unsigned int amount);
30 * requires *buf i
151 asn1buf_insert_octet(asn1buf *buf, const int o) argument
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dsrv_rcache.c48 struct k5buf buf; local
59 krb5int_buf_init_dynamic(&buf);
71 krb5int_buf_add_fmt(&buf, "%s:%s", cachetype, def_env);
73 krb5int_buf_add(&buf, def_env);
76 krb5int_buf_add(&buf, cachetype);
77 krb5int_buf_add(&buf, ":");
80 krb5int_buf_add(&buf, "--");
82 krb5int_buf_add_fmt(&buf, "-%03o", piece->data[i]);
84 krb5int_buf_add_len(&buf, &piece->data[i], 1);
87 krb5int_buf_add_fmt(&buf, "
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dnet_write.c33 * krb5_net_write() writes "len" bytes from "buf" to the file
42 krb5_net_write(krb5_context context, int fd, const char *buf, int len) argument
45 SG_SET(&sg, buf, len);
/osnet-11/usr/src/lib/krb5/ss/
H A Dhelp.c70 char buf[MAXPATHLEN]; local
71 strncpy(buf, "No info found for ", sizeof(buf) - 1);
72 buf[sizeof(buf) - 1] = '\0';
73 strncat(buf, argv[1], sizeof(buf) - 1 - strlen(buf));
74 ss_perror(sci_idx, 0, buf);
H A Dpager.c135 char buf[80]; local
137 while ((n = read(0, buf, 80)) > 0)
138 write(1, buf, (unsigned) n);
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dcat.c42 char buf[GRUB_DISK_SECTOR_SIZE]; local
56 while ((size = grub_file_read (file, buf, sizeof (buf))) > 0
63 unsigned char c = buf[i];
67 else if (dos && c == '\r' && i + 1 < size && buf[i + 1] == '\n')
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/grub/grub2/grub-core/disk/
H A Dhost.c64 char *buf __attribute((unused))) function
73 const char *buf __attribute ((unused))) function
H A Draid5_recover.c32 char *buf, grub_disk_addr_t sector, int size)
42 grub_memset (buf, 0, size);
61 grub_crypto_xor (buf, buf2, buf2, size);
31 grub_raid5_recover(struct grub_raid_array *array, int disknr, char *buf, grub_disk_addr_t sector, int size) argument
/osnet-11/usr/src/grub/grub2/grub-core/fs/zfs/
H A Dzfs_fletcher.c42 fletcher_2(const void *buf, grub_uint64_t size, grub_zfs_endian_t endian, argument
45 const grub_uint64_t *ip = buf;
64 fletcher_4 (const void *buf, grub_uint64_t size, grub_zfs_endian_t endian, argument
67 const grub_uint32_t *ip = buf;
/osnet-11/usr/src/grub/grub2/grub-core/lib/
H A Dcmdline.c62 int grub_create_loader_cmdline (int argc, char *argv[], char *buf, argument
81 *buf++ = '"';
86 *buf++ = '\\';
88 *buf++ = *c;
93 *buf++ = '"';
95 *buf++ = ' ';
100 buf--;
102 *buf = 0;
H A Dcrc.c58 grub_getcrc32c (grub_uint32_t crc, const void *buf, int size) argument
61 const grub_uint8_t *data = buf;
/osnet-11/usr/src/grub/grub2/grub-core/normal/
H A Dautofs.c85 char *buf; local
90 buf = grub_file_getline (file);
91 if (! buf)
94 p = buf;
95 q = buf + grub_strlen (buf) - 1;
H A Dcrypto.c81 char *buf = NULL; local
107 for (;; grub_free (buf))
112 buf = grub_file_getline (file);
114 if (! buf)
117 name = buf;
/osnet-11/usr/src/grub/grub2/grub-core/video/
H A Dcolors.c218 char buf[3]; local
227 buf[0] = s[start]; /* Get the first and only hex digit. */
228 buf[1] = buf[0]; /* Duplicate the hex digit. */
232 buf[0] = s[start];
233 buf[1] = s[start + 1];
236 buf[2] = '\0';
238 return grub_strtoul (buf, 0, 16);
/osnet-11/usr/src/grub/grub2/util/
H A Dgrub-macho2img.c39 char *buf; local
71 buf = malloc (bufsize);
72 if (! buf)
79 fread (buf, 1, bufsize, in);
80 head = (struct grub_macho_header32 *) buf;
85 free (buf);
89 curcmd = (struct grub_macho_segment32 *) (buf + sizeof (*head));
96 fwrite (buf + grub_le_to_cpu32 (curcmd->fileoff), 1,
H A Dgrub-menulst2cfg.c34 char *buf = NULL; local
77 if (getline (&buf, &bufsize, in) < 0)
85 for (ptr = buf; *ptr && grub_isspace (*ptr); ptr++);
117 free (buf);
/osnet-11/usr/src/lib/brand/solaris/support/
H A Dsupport.c70 char buf[1024]; local
75 (void) vsnprintf(buf, sizeof (buf), msg, ap);
78 (void) printf(gettext("%s solaris brand error: %s\n"), bname, buf);
/osnet-11/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test_subr.c49 new_ent->buf = malloc(size);
50 if (new_ent->buf == NULL) {
58 return (new_ent->buf);
65 void *buf)
70 while ((*p) != NULL && (*p)->buf != buf)
75 free(p1->buf);
86 free(p1->buf);
63 mtest_deallocate_buf( mtest_handle_t handle, void *buf) argument
/osnet-11/usr/src/cmd/sendmail/src/
H A Dconvtime.c130 static char buf[256];
159 p = buf;
164 (void) sm_snprintf(p, SPACELEFT(buf, p), "%d+", dy);
167 (void) sm_snprintf(p, SPACELEFT(buf, p), "%02d:%02d:%02d",
169 return buf;
175 (void) sm_snprintf(p, SPACELEFT(buf, p), ", %d week%s", wk,
181 (void) sm_snprintf(p, SPACELEFT(buf, p), ", %d day%s", dy,
187 (void) sm_snprintf(p, SPACELEFT(buf, p), ", %d hour%s", hr,
193 (void) sm_snprintf(p, SPACELEFT(buf, p), ", %d minute%s", mi,
199 (void) sm_snprintf(p, SPACELEFT(buf,
129 static char buf[256]; local
[all...]

Completed in 1652 milliseconds

1234567891011>>