/titanic_41/usr/src/cmd/tsol/hextoalabel/ |
H A D | hextoalabel.c | 51 label_error(const char *hex, const int err) in label_error() argument 57 gettext("hextoalabel: bad string %s\n"), hex); in label_error() 66 "\"%s\" at position %d\n"), hex, err); in label_error() 82 char hex[PIPE_BUF]; /* internal label */ in main() local 115 (void) strlcpy(hex, argv[optind], sizeof (hex)); in main() 119 if ((c = read(STDIN_FILENO, hex, sizeof (hex))) <= 0) { in main() 129 hex[c-1] = '\0'; in main() 138 if (str_to_label(hex, &label, USER_CLEAR, L_NO_CORRECTION, in main() 140 label_error(hex, err); in main() 150 if (str_to_label(hex, &label, MAC_LABEL, L_NO_CORRECTION, in main() [all …]
|
/titanic_41/usr/src/lib/libtsol/common/ |
H A D | btohex.c | 93 h_free(char *hex) in h_free() argument 96 if (hex == NULL) in h_free() 99 free(hex); in h_free() 117 bsltoh_r(const m_label_t *label, char *hex) in bsltoh_r() argument 126 (void) strncpy(hex, (const char *)h, _HEX_SIZE); in bsltoh_r() 128 return (hex); in bsltoh_r() 167 bcleartoh_r(const m_label_t *clearance, char *hex) in bcleartoh_r() argument 176 (void) strncpy(hex, (const char *)h, _HEX_SIZE); in bcleartoh_r() 178 return (hex); in bcleartoh_r()
|
/titanic_41/usr/src/common/tsol/ |
H A D | ltos.c | 80 char *hex; in __hex() local 96 if ((hex = malloc(hex_len)) == NULL) { in __hex() 102 hex[i++] = '0'; in __hex() 103 hex[i++] = 'x'; in __hex() 108 HEX(hex, i, hl, 6); in __hex() 111 hex[i++] = '-'; in __hex() 112 HEX(hex, i, len, 9); in __hex() 113 hex[i++] = '-'; in __hex() 116 HEX(hex, i, hl, hex_len-1); in __hex() 117 hex[i] = '\0'; in __hex() [all …]
|
/titanic_41/usr/src/cmd/tsol/atohexlabel/ |
H A D | atohexlabel.c | 83 char *hex = NULL; /* internal label to print */ in main() local 142 if (label_to_str(label, &hex, M_INTERNAL, DEF_NAMES) != 0) { in main() 146 (void) printf("%s\n", hex); in main() 148 free(hex); in main() 154 if (label_to_str(label, &hex, M_INTERNAL, DEF_NAMES) != 0) { in main() 158 (void) printf("%s\n", hex); in main() 160 free(hex); in main()
|
/titanic_41/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) in isc_gethexstring() 65 x = (x<<4) | (s - hex); in isc_gethexstring() 95 fputc(hex[(buf[0]>>4)&0xf], fp); in isc_puthexstring() 96 fputc(hex[buf[0]&0xf], fp); in isc_puthexstring() 111 *t++ = hex[(buf[0]>>4)&0xf]; in isc_tohex() 112 *t++ = hex[buf[0]&0xf]; in isc_tohex()
|
/titanic_41/usr/src/lib/libmp/common/ |
H A D | util.c | 219 char *hex; in mp_mtox() local 229 hex = malloc((size_t) ((size * BASEBITS + 3)) / 4 + (size ? 1 : 2)); in mp_mtox() 230 if (hex == NULL) { in mp_mtox() 234 p = hex; in mp_mtox() 243 for (p--, s = hex; s < p; s++, p--) { in mp_mtox() 248 return (hex); in mp_mtox()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | dedump.c | 68 char hex[DEDUMP_HEXLEN + 1], asc[DEDUMP_ASCLEN + 1]; in dedump_raw() local 73 hex[DEDUMP_HEXLEN] = '\0'; in dedump_raw() 84 (void) memset(hex + hexi, ' ', DEDUMP_HEXLEN - hexi); in dedump_raw() 85 (void) printf("%s %s %s\n", hdrp, hex, asc); in dedump_raw() 101 hexi += snprintf(hex + hexi, 3, "%02X", c); in dedump_raw() 103 hex[hexi++] = ' '; in dedump_raw()
|
/titanic_41/usr/src/grub/grub-0.97/stage2/ |
H A D | graphics.c | 467 int r = ((hex(buf[0]) << 4) | hex(buf[1])) >> 2; in read_image() 468 int g = ((hex(buf[2]) << 4) | hex(buf[3])) >> 2; in read_image() 469 int b = ((hex(buf[4]) << 4) | hex(buf[5])) >> 2; in read_image() 567 int hex(int v) in hex() function
|
H A D | term.h | 157 int hex(int v);
|
/titanic_41/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; in getnext() 785 hex = osibuff[gi_osibuf[ctxnum]++]; in getnext() 786 (void) sprintf((char *)c, "%02x", (hex&0x00FF)); in getnext() 873 otyp[ctxnum] = INT(hex); /* single octet type only */ in decpdu() 879 olen[ctxnum] = INT(hex); /* tlv length */ in decpdu() 902 rlen = (rlen << 8) | INT(hex); in decpdu() 1238 oidstr[j++] = hex; in decpdu() 1284 hexstr[k++] = hex; in decpdu() 1286 if (!isprint(hex)) { in decpdu() [all …]
|
/titanic_41/usr/src/test/util-tests/tests/libnvpair_json/ |
H A D | print_json.c | 572 char hex[3]; in parse() local 728 hex[0] = hex[1] = hex[2] = '\0'; in parse() 744 hex[nhex] = c; in parse() 752 if ((x = strtol(hex, NULL, 16)) == 0 || in parse()
|
/titanic_41/usr/src/cmd/acpi/acpidump/ |
H A D | Readme | 33 /* Print 16 hex chars */ 42 /* Print 16 hex chars */
|
/titanic_41/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); 1735 1 + 5 + hex.length + 2); 1739 memset(hex.data, 0, hex.length); 1740 free(hex.data); 1744 1 + 5 + hex.length + 1] = '\0'; 1745 sprintf((char *)encrypted_passwd.value, "%s#{HEX}%s\n", service_object, hex.data); [all …]
|
/titanic_41/usr/src/lib/libnsl/key/ |
H A D | xcrypt.c | 55 static char hex[]; /* forward */ variable 194 hexnum[i*2] = hex[val >> 4]; 195 hexnum[i*2+1] = hex[val & 0xf]; 201 static char hex[16] = { variable
|
/titanic_41/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | dm_platform.c | 81 boolean_t hex = B_FALSE; in isnumber() local 85 hex = B_TRUE; in isnumber() 92 if ((hex && !isxdigit(*str)) || in isnumber() 93 (!hex && !isdigit(*str))) { in isnumber()
|
/titanic_41/usr/src/lib/libbsm/common/ |
H A D | audit_event.c | 397 au_class_t hex = 0; in flagstohex() local 408 hex |= p_class->ac_class; in flagstohex() 411 return (hex); in flagstohex()
|
H A D | adt_token.c | 62 static char hex[HEX_SIZE]; in dprt_label() local 69 (void) strlcpy(hex, direct, sizeof (hex)); in dprt_label() 71 return (hex); in dprt_label()
|
/titanic_41/usr/src/lib/libshare/autofs/ |
H A D | libshare_autofs.c | 362 int hex = 0; in is_a_number() local 366 hex = 1; in is_a_number() 371 if (hex) { in is_a_number()
|
/titanic_41/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)
|
/titanic_41/usr/src/cmd/msgfmt/ |
H A D | xgettext.c | 1134 char ch, oct, hex; in get_next_ch() local 1238 hex = p->str[*m]; in get_next_ch() 1240 if (isdigit(hex)) { in get_next_ch() 1241 value = value * 16 + (hex - '0'); in get_next_ch() 1242 } else if (isxdigit(hex)) { in get_next_ch() 1243 hex = tolower(hex); in get_next_ch() 1244 value = value * 16 + (hex - 'a' + 10); in get_next_ch()
|
/titanic_41/usr/src/uts/common/avs/ns/unistat/ |
H A D | spcs_s_k.h | 189 spcs_s_inttostring(int val, char *buf, int buflen, int hex);
|
/titanic_41/usr/src/cmd/localedef/ |
H A D | scanner.c | 225 #define hex(x) \ macro 269 v = ((hex(c1) << 4) | hex(c2)); in scan_hex_byte()
|
/titanic_41/usr/src/lib/libshare/smbfs/ |
H A D | libshare_smbfs.c | 122 int hex = 0; in is_a_number() local 126 hex = 1; in is_a_number() 132 if (hex) { in is_a_number()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | syncloop.c | 551 char c, *hex = "0123456789ABCDEF"; in printhex() local 556 (void) putchar(hex[(c >> 4) & 0xF]); in printhex() 557 (void) putchar(hex[c & 0xF]); in printhex()
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | key.c | 241 char hex[4]; in key_fingerprint_hex() local 242 snprintf(hex, sizeof(hex), "%02x:", dgst_raw[i]); in key_fingerprint_hex() 243 strlcat(retval, hex, dgst_raw_len * 3); in key_fingerprint_hex()
|