/illumos-gate/usr/src/cmd/tsol/hextoalabel/ |
H A D | hextoalabel.c | 51 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/libtsol/common/ |
H A D | btohex.c | 85 * 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/lib/libresolv2/common/isc/ |
H A D | hex.c | 25 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/tsol/atohexlabel/ |
H A D | atohexlabel.c | 83 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/common/tsol/ |
H A D | ltos.c | 80 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/arm/at91/libat91/ |
H A D | printf.c | 27 const char *hex = "0123456789abcdef"; local 60 *s++ = hex[u & 0xfu];
|
/illumos-gate/usr/src/lib/libmp/common/ |
H A D | util.c | 153 * 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/uts/common/avs/ns/unistat/ |
H A D | spcs_s_k.h | 183 * @param hex If nonzero "0x" is prepended to generated string and 189 spcs_s_inttostring(int val, char *buf, int buflen, int hex);
|
/illumos-gate/usr/src/boot/lib/libz/test/ |
H A D | infcover.c | 239 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/uts/common/io/ |
H A D | dedump.c | 68 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/sys/boot/common/ |
H A D | util.c | 121 const char *hex = "0123456789abcdef"; local 167 *s++ = hex[u & 0xfu];
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | graphics.c | 460 * 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
|
H A D | term.h | 157 int hex(int v);
|
/illumos-gate/usr/src/boot/sys/boot/i386/btx/btxldr/ |
H A D | btxldr.S | 267 * Output message [ESI] followed by EAX in hex. 276 call hex32 # To hex 287 call putstr # Display hex 343 * Convert EAX, AX, or AL to hex, saving the result to [EDI]. 357 sbbb $0x69,%al # to hex
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ldap.c | 89 static X hex; /* input hex octet */ variable 782 hex = 0; 785 hex = osibuff[gi_osibuf[ctxnum]++]; 786 (void) sprintf((char *)c, "%02x", (hex&0x00FF)); 873 otyp[ctxnum] = INT(hex); /* single octet type only */ 879 olen[ctxnum] = INT(hex); /* tlv length */ 902 rlen = (rlen << 8) | INT(hex); 1238 oidstr[j++] = hex; 1284 hexstr[k++] = hex; [all...] |
/illumos-gate/usr/src/test/util-tests/tests/libnvpair_json/ |
H A D | print_json.c | 572 char hex[3]; local 728 hex[0] = hex[1] = hex[2] = '\0'; 744 hex[nhex] = c; 747 * The hex escape pair is complete, parse 752 if ((x = strtol(hex, NULL, 16)) == 0 ||
|
/illumos-gate/usr/src/lib/libshare/autofs/ |
H A D | libshare_autofs.c | 362 int hex = 0; local 366 hex = 1; 371 if (hex) {
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_event.c | 397 au_class_t hex = 0; local 408 hex |= p_class->ac_class; 411 return (hex);
|
/illumos-gate/usr/src/cmd/iconv/ |
H A D | scanner.c | 123 #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/libnsl/key/ |
H A D | xcrypt.c | 55 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/cmd/fm/modules/common/disk-monitor/ |
H A D | dm_platform.c | 81 boolean_t hex = B_FALSE; local 85 hex = B_TRUE; 92 if ((hex && !isxdigit(*str)) || 93 (!hex && !isdigit(*str))) {
|
/illumos-gate/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_services.c | 1719 krb5_data pwd, hex; local 1723 errcode = tohex(pwd, &hex); 1725 if (hex.length != 0) { 1726 memset(hex.data, 0, hex.length); 1727 free(hex.data); 1729 com_err(me, errcode, gettext("Failed to convert the password to hex")); 1735 1 + 5 + hex.length + 2); 1739 memset(hex.data, 0, hex [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_pr.c | 723 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/lib/libshare/smbfs/ |
H A D | libshare_smbfs.c | 122 int hex = 0; local 126 hex = 1; 132 if (hex) {
|
/illumos-gate/usr/src/lib/libshell/common/tests/ |
H A D | arith.sh | 340 typeset -i hex=( 172 30 18 1) 344 do (( ip = (ip<<8) | hex[i])) 349 (( ipx != hex[3-i] )) && err_exit "hex digit $((3-i)) not correct"
|