/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | btohex.c | 91 h_free(char *hex) in h_free() argument 94 if (hex == NULL) in h_free() 97 free(hex); in h_free() 115 bsltoh_r(const m_label_t *label, char *hex) in bsltoh_r() argument 124 (void) strncpy(hex, (const char *)h, _HEX_SIZE); in bsltoh_r() 126 return (hex); in bsltoh_r() 165 bcleartoh_r(const m_label_t *clearance, char *hex) in bcleartoh_r() argument 174 (void) strncpy(hex, (const char *)h, _HEX_SIZE); in bcleartoh_r() 176 return (hex); in bcleartoh_r()
|
/illumos-gate/usr/src/common/tsol/ |
H A D | ltos.c | 80 char *hex; in __hex() local 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() 117 hex[i] = '\0'; in __hex() 121 while (hex[i-1] == '0' && hex[i-2] == '0') { in __hex() 124 hex[i] = '\0'; in __hex() [all …]
|
/illumos-gate/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()
|
/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) 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()
|
/illumos-gate/usr/src/lib/libmp/common/ |
H A D | util.c | 213 char *hex; in mp_mtox() local 223 hex = malloc((size_t)((size * BASEBITS + 3)) / 4 + (size ? 1 : 2)); in mp_mtox() 224 if (hex == NULL) { in mp_mtox() 228 p = hex; in mp_mtox() 237 for (p--, s = hex; s < p; s++, p--) { in mp_mtox() 242 return (hex); in mp_mtox()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | dedump.c | 66 char hex[DEDUMP_HEXLEN + 1], asc[DEDUMP_ASCLEN + 1]; in dedump_raw() local 71 hex[DEDUMP_HEXLEN] = '\0'; in dedump_raw() 82 (void) memset(hex + hexi, ' ', DEDUMP_HEXLEN - hexi); in dedump_raw() 83 (void) printf("%s %s %s\n", hdrp, hex, asc); in dedump_raw() 99 hexi += snprintf(hex + hexi, 3, "%02X", c); in dedump_raw() 101 hex[hexi++] = ' '; in dedump_raw()
|
/illumos-gate/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
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ldap.c | 87 static X hex; /* input hex octet */ variable 780 hex = 0; in getnext() 783 hex = osibuff[gi_osibuf[ctxnum]++]; in getnext() 877 olen[ctxnum] = INT(hex); /* tlv length */ in decpdu() 900 rlen = (rlen << 8) | INT(hex); in decpdu() 1236 oidstr[j++] = hex; in decpdu() 1282 hexstr[k++] = hex; in decpdu() 1284 if (!isprint(hex)) { in decpdu() 1285 hex = '_'; in decpdu() 1288 scrlin[j++] = hex; in decpdu() [all …]
|
/illumos-gate/usr/src/boot/forth/ |
H A D | pcibios.4th | 40 hex ?number decimal 41 0= if ." Bad pci-id given (must be legal hex value)" cr abort then 42 dup pcibios-device-count ." Found " . ." instances of " hex . decimal cr
|
/illumos-gate/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()
|
/illumos-gate/usr/src/boot/common/ |
H A D | util.c | 121 const char *hex = "0123456789abcdef"; in printf() local 172 *s++ = hex[u & 0xfu]; in printf()
|
/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); 1735 1 + 5 + hex.length + 2); 1739 memset(hex.data, 0, hex.length); 1740 free(hex.data); 1744 1 + 5 + hex.length + 1] = '\0'; 1747 memset(hex.data, 0, hex.length); [all …]
|
/illumos-gate/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
|
/illumos-gate/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()
|
/illumos-gate/usr/src/common/ficl/test/ |
H A D | ficltest.fr | 91 { hex 0d10 -> decimal 10 } 92 { hex 100
|
/illumos-gate/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()
|
/illumos-gate/usr/src/boot/i386/btx/btxldr/ |
H A D | btxldr.S | 270 call hex32 # To hex 281 call putstr # Display hex
|
/illumos-gate/usr/src/cmd/iconv/ |
H A D | scanner.c | 123 #define hex(x) \ macro 167 v = ((hex(c1) << 4) | hex(c2)); in scan_hex_byte()
|
/illumos-gate/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()
|
/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/cmd/msgfmt/ |
H A D | xgettext.c | 1131 char ch, oct, hex; in get_next_ch() local 1235 hex = p->str[*m]; in get_next_ch() 1237 if (isdigit(hex)) { in get_next_ch() 1238 value = value * 16 + (hex - '0'); in get_next_ch() 1239 } else if (isxdigit(hex)) { in get_next_ch() 1240 hex = tolower(hex); in get_next_ch() 1241 value = value * 16 + (hex - 'a' + 10); in get_next_ch()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/lib/libshare/smbfs/ |
H A D | libshare_smbfs.c | 125 int hex = 0; in is_a_number() local 129 hex = 1; in is_a_number() 135 if (hex) { in is_a_number()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | syncloop.c | 549 char c, *hex = "0123456789ABCDEF"; in printhex() local 554 (void) putchar(hex[(c >> 4) & 0xF]); in printhex() 555 (void) putchar(hex[c & 0xF]); in printhex()
|