Searched defs:hex (Results 1 - 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/
H A Dprintf.c27 const char *hex = "0123456789abcdef"; local
60 *s++ = hex[u & 0xfu];
/illumos-gate/usr/src/lib/libtsol/common/
H A Dbtohex.c85 * Entry hex = Hexadecimal label string.
93 h_free(char *hex) argument
96 if (hex == NULL)
99 free(hex);
107 * hex = Buffer to place converted label.
117 bsltoh_r(const m_label_t *label, char *hex) argument
126 (void) strncpy(hex, (const char *)h, _HEX_SIZE);
128 return (hex);
138 * Address of statically allocated hex label string.
157 * hex
167 bcleartoh_r(const m_label_t *clearance, char *hex) argument
[all...]
/illumos-gate/usr/src/cmd/tsol/atohexlabel/
H A Datohexlabel.c83 char *hex = NULL; /* internal label to print */ local
142 if (label_to_str(label, &hex, M_INTERNAL, DEF_NAMES) != 0) {
146 (void) printf("%s\n", hex);
148 free(hex);
154 if (label_to_str(label, &hex, M_INTERNAL, DEF_NAMES) != 0) {
158 (void) printf("%s\n", hex);
160 free(hex);
/illumos-gate/usr/src/cmd/tsol/hextoalabel/
H A Dhextoalabel.c51 label_error(const char *hex, const int err) argument
57 gettext("hextoalabel: bad string %s\n"), hex);
66 "\"%s\" at position %d\n"), hex, err);
82 char hex[PIPE_BUF]; /* internal label */ local
115 (void) strlcpy(hex, argv[optind], sizeof (hex));
119 if ((c = read(STDIN_FILENO, hex, sizeof (hex))) <= 0) {
129 hex[c-1] = '\0';
138 if (str_to_label(hex,
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dhex.c25 static const char hex[17] = "0123456789abcdef"; variable
63 if ((s = strchr(hex, tolower(c))) == NULL)
65 x = (x<<4) | (s - hex);
95 fputc(hex[(buf[0]>>4)&0xf], fp);
96 fputc(hex[buf[0]&0xf], fp);
111 *t++ = hex[(buf[0]>>4)&0xf];
112 *t++ = hex[buf[0]&0xf];
/illumos-gate/usr/src/cmd/vi/port/
H A Dovdoprnt.s130 hex; 'x
167 hex: label
/illumos-gate/usr/src/lib/libpp/common/
H A Dppfsm.c358 /* saw 0, possible oct|hex|dec|dbl constant */
380 /* saw 0 [xX], hex constant */
389 /* hex constant qualifier */
394 /* hex [eE][-+] botch */
401 /* hex dbl fraction */
408 /* optional hex dbl exponent sign */
414 /* mandatory hex dbl exponent first digit */
419 /* hex dbl exponent digits */
425 /* hex dbl constant qualifier */
562 static char hex[] variable
[all...]
/illumos-gate/usr/src/lib/libmp/common/
H A Dutil.c153 * Convert hex digit to binary value
171 * Convert hex key to MINT key
208 * Convert MINT key to hex key
219 char *hex; local
229 hex = malloc((size_t) ((size * BASEBITS + 3)) / 4 + (size ? 1 : 2));
230 if (hex == NULL) {
234 p = hex;
243 for (p--, s = hex; s < p; s++, p--) {
248 return (hex);
/illumos-gate/usr/src/common/tsol/
H A Dltos.c80 char *hex; local
96 if ((hex = malloc(hex_len)) == NULL) {
102 hex[i++] = '0';
103 hex[i++] = 'x';
108 HEX(hex, i, hl, 6);
111 hex[i++] = '-';
112 HEX(hex, i, len, 9);
113 hex[i++] = '-';
116 HEX(hex, i, hl, hex_len-1);
117 hex[
[all...]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dutil.c121 const char *hex = "0123456789abcdef"; local
167 *s++ = hex[u & 0xfu];
/illumos-gate/usr/src/lib/libshare/smbfs/
H A Dlibshare_smbfs.c122 int hex = 0; local
126 hex = 1;
132 if (hex) {
/illumos-gate/usr/src/lib/libnsl/key/
H A Dxcrypt.c55 static char hex[]; /* forward */ variable
76 * The secret key is passed and returned in hex notation.
77 * Its length must be a multiple of 16 hex digits (64 bits).
110 * The secret key is passed and returned in hex notation.
111 * Once again, the length is a multiple of 16 hex digits
181 * Binary to hex conversion
194 hexnum[i*2] = hex[val >> 4];
195 hexnum[i*2+1] = hex[val & 0xf];
201 static char hex[16] = { variable
225 * The secret key is passed in hex notatio
[all...]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_event.c397 au_class_t hex = 0; local
408 hex |= p_class->ac_class;
411 return (hex);
H A Dadt_token.c62 static char hex[HEX_SIZE]; local
67 return ("hex label failed");
69 (void) strlcpy(hex, direct, sizeof (hex));
71 return (hex);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncloop.c551 char c, *hex = "0123456789ABCDEF"; local
556 (void) putchar(hex[(c >> 4) & 0xF]);
557 (void) putchar(hex[c & 0xF]);
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_pr.c723 static const char hex[] = "0123456789abcdef"; local
742 hex[(u_int8_t)(*p & 0xf0) >> 4],
743 hex[*p & 0x0f]) != 3)
748 hex[(u_int8_t)(*p & 0xf0) >> 4],
749 hex[*p & 0x0f]) != 2)
/illumos-gate/usr/src/uts/common/avs/ns/unistat/
H A Dspcs_s_k.c640 *spcs_s_inttostring(int val, char *buf, int buflen, int hex) argument
648 if (hex)
/illumos-gate/usr/src/uts/common/io/
H A Ddedump.c68 char hex[DEDUMP_HEXLEN + 1], asc[DEDUMP_ASCLEN + 1]; local
73 hex[DEDUMP_HEXLEN] = '\0';
80 * but first NUL-terminate asc[] and pad out hex[]
84 (void) memset(hex + hexi, ' ', DEDUMP_HEXLEN - hexi);
85 (void) printf("%s %s %s\n", hdrp, hex, asc);
101 hexi += snprintf(hex + hexi, 3, "%02X", c);
103 hex[hexi++] = ' ';
/illumos-gate/usr/src/boot/lib/libz/test/
H A Dinfcover.c239 decodes liberally, in that hex digits can be adjacent, in which case two in
240 a row writes a byte. Or they can delimited by any non-hex character, where
241 the delimiters are ignored except when a single hex digit is followed by a
245 local unsigned char *h2b(const char *hex, unsigned *len) argument
250 in = malloc((strlen(hex) + 1) >> 1);
256 if (*hex >= '0' && *hex <= '9')
257 val = (val << 4) + *hex - '0';
258 else if (*hex >= 'A' && *hex <
284 inf(char *hex, char *what, unsigned step, int win, unsigned len, int err) argument
507 try(char *hex, char *id, int err) argument
[all...]
/illumos-gate/usr/src/cmd/iconv/
H A Dscanner.c123 #define hex(x) \ macro
159 yyerror(_("malformed hex digit"));
164 yyerror(_("malformed hex digit"));
167 v = ((hex(c1) << 4) | hex(c2));
/illumos-gate/usr/src/lib/sasl_plugins/cram/
H A Dcram.c82 /* convert a string of 8bit chars to it's representation in hex
87 static char hex[]="0123456789abcdef"; local
95 out[lup*2] = hex[in[lup] >> 4];
96 out[lup*2+1] = hex[in[lup] & 15];
579 /* convert that to hex form */
/illumos-gate/usr/src/lib/libshare/autofs/
H A Dlibshare_autofs.c362 int hex = 0; local
366 hex = 1;
371 if (hex) {
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Ddm_platform.c81 boolean_t hex = B_FALSE; local
85 hex = B_TRUE;
92 if ((hex && !isxdigit(*str)) ||
93 (!hex && !isdigit(*str))) {
/illumos-gate/usr/src/cmd/localedef/
H A Dscanner.c225 #define hex(x) \ macro
261 yyerror(_("malformed hex digit"));
266 yyerror(_("malformed hex digit"));
269 v = ((hex(c1) << 4) | hex(c2));
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dgraphics.c460 * The RGB hex digits should be six characters in length.
467 int r = ((hex(buf[0]) << 4) | hex(buf[1])) >> 2;
468 int g = ((hex(buf[2]) << 4) | hex(buf[3])) >> 2;
469 int b = ((hex(buf[4]) << 4) | hex(buf[5])) >> 2;
566 /* Convert a character which is a hex digit to the appropriate integer */
567 int hex(int v) function

Completed in 91 milliseconds

12