/illumos-gate/usr/src/lib/iconv_modules/ko/common/ |
H A D | nbyte_to_UTF2.c | 275 unsigned short make_johap_code(int n, char* temp) in make_johap_code() argument 282 if (temp[4] == '\0') in make_johap_code() 284 save = temp[3]; in make_johap_code() 285 temp[3] = '\0'; in make_johap_code() 289 save = temp[4]; in make_johap_code() 290 temp[4] = '\0'; in make_johap_code() 294 code = (temp[1] >= 'A' && temp[1] <= '^') ? in make_johap_code() 295 (unsigned short)X32_19[temp[1] - '@'] in make_johap_code() 297 code = (code << 5) | (unsigned short)((temp[2] >= 'b' && in make_johap_code() 298 temp[2] <= '|') ? X32_21[temp[2] - '`'] in make_johap_code() [all …]
|
H A D | nbyte_to_euc.c | 293 unsigned short make_johap_code(int n, char* temp) in make_johap_code() argument 300 if (temp[4] == '\0') in make_johap_code() 302 save = temp[3]; in make_johap_code() 303 temp[3] = '\0'; in make_johap_code() 307 save = temp[4]; in make_johap_code() 308 temp[4] = '\0'; in make_johap_code() 312 code = (temp[1] >= 'A' && temp[1] <= '^') ? in make_johap_code() 313 (unsigned short)X32_19[temp[1] - '@'] in make_johap_code() 315 code = (code << 5) | (unsigned short)((temp[2] >= 'b' && in make_johap_code() 316 temp[2] <= '|') ? X32_21[temp[2] - '`'] in make_johap_code() [all …]
|
H A D | nbyte_euc.h | 83 char temp[5];\ 85 temp[1] = cd->hbuf[1];\ 86 temp[2] = cd->hbuf[2];\ 87 temp[3] = cd->hbuf[3];\ 88 temp[4] = cd->hbuf[4];\ 90 make_johap_code((K), temp))) != FAILED)\ 98 cd->hbuf[1] = temp[1];\ 99 cd->hbuf[2] = temp[2];\ 100 cd->hbuf[3] = temp[3];\ 101 cd->hbuf[4] = temp[4];\
|
H A D | nbyte_utf.h | 81 char temp[5];\ 83 temp[1] = cd->hbuf[1];\ 84 temp[2] = cd->hbuf[2];\ 85 temp[3] = cd->hbuf[3];\ 86 temp[4] = cd->hbuf[4];\ 88 make_johap_code((K), temp))) == HANGUL)\ 96 cd->hbuf[1] = temp[1];\ 97 cd->hbuf[2] = temp[2];\ 98 cd->hbuf[3] = temp[3];\ 99 cd->hbuf[4] = temp[4];\
|
/illumos-gate/usr/src/lib/libfdisk/common/ |
H A D | libfdisk.c | 155 ext_part_t *temp; in libfdisk_init() local 160 if ((temp = calloc(1, sizeof (ext_part_t))) == NULL) { in libfdisk_init() 165 (void) strncpy(temp->device_name, devstr, in libfdisk_init() 166 sizeof (temp->device_name)); in libfdisk_init() 169 if (stat(temp->device_name, &sbuf) != 0) { in libfdisk_init() 172 (void) snprintf(temp->device_name, sizeof (temp->device_name), in libfdisk_init() 175 if (stat(temp->device_name, &sbuf) != 0) { in libfdisk_init() 182 if (strrchr(temp->device_name, 'p') == NULL) { in libfdisk_init() 183 (void) strcat(temp->device_name, "p0"); in libfdisk_init() 186 if (stat(temp->device_name, &sbuf) != 0) { in libfdisk_init() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/ |
H A D | test_msgbuf.c | 42 uint8_t temp[32]; in msg_put_a0() local 47 smb_msgbuf_init(&mb, temp, sizeof (temp), mbflags); in msg_put_a0() 55 if (memcmp(temp, wire, 6)) { in msg_put_a0() 57 hexdump((uchar_t *)temp, 6); in msg_put_a0() 74 uint8_t temp[32]; in msg_put_a1() local 79 smb_msgbuf_init(&mb, temp, sizeof (temp), mbflags); in msg_put_a1() 87 if (memcmp(temp, wire, 6)) { in msg_put_a1() 89 hexdump((uchar_t *)temp, 6); in msg_put_a1() 103 uint8_t temp[32]; in msg_put_apad() local 108 smb_msgbuf_init(&mb, temp, sizeof (temp), mbflags); in msg_put_apad() [all …]
|
/illumos-gate/usr/src/common/lzma/ |
H A D | LzHash.h | 18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 19 hash2Value = temp & (kHash2Size - 1); \ 20 hashValue = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; } 23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 24 hash2Value = temp & (kHash2Size - 1); \ 25 hash3Value = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); \ 26 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; } 29 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 30 hash2Value = temp & (kHash2Size - 1); \ 31 hash3Value = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); \ [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | pkginfo.c | 194 char temp[256]; in rdconfig() local 203 *temp = '\0'; in rdconfig() 205 while (value = fpkgparam(fp, temp)) { in rdconfig() 206 if (strcmp(temp, "ARCH") == 0 || in rdconfig() 207 strcmp(temp, "CATEGORY") == 0) { in rdconfig() 219 if (strcmp(temp, "NAME") == 0) in rdconfig() 221 else if (strcmp(temp, "VERSION") == 0) in rdconfig() 223 else if (strcmp(temp, "ARCH") == 0) in rdconfig() 225 else if (strcmp(temp, "VENDOR") == 0) in rdconfig() 227 else if (strcmp(temp, "BASEDIR") == 0) in rdconfig() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | libdevinfo_sun4u.c | 202 Prop *temp; /* newly allocated property */ in dump_di_node() local 273 if ((temp = (Prop *) malloc(sizeof (Prop))) == NULL) { in dump_di_node() 302 temp->name.val_ptr = (void *)di_name; in dump_di_node() 303 temp->name.opp.oprom_array = temp->name.val_ptr; in dump_di_node() 304 temp->name.opp.holds_array = 1; in dump_di_node() 306 temp->value.val_ptr = (void *)di_data; in dump_di_node() 309 temp->value.opp.oprom_node[i] = in dump_di_node() 312 temp->value.opp.holds_array = 0; in dump_di_node() 314 temp->value.opp.oprom_array = temp->value.val_ptr; in dump_di_node() 316 temp->value.opp.holds_array = 0; in dump_di_node() [all …]
|
H A D | pdevinfo_funcs.c | 119 StaticProp *temp; in dump_node() local 128 if ((temp = malloc(sizeof (StaticProp))) == NULL) { in dump_node() 148 temp->name.opp.oprom_size = opp->oprom_size; in dump_node() 149 (void) strcpy(temp->name.opp.oprom_array, in dump_node() 152 (void) strcpy(temp->value.opp.oprom_array, in dump_node() 153 temp->name.opp.oprom_array); in dump_node() 154 getpropval(&temp->value.opp); in dump_node() 155 temp->size = temp->value.opp.oprom_size; in dump_node() 168 new->name.opp.oprom_size = temp->name.opp.oprom_size; in dump_node() 176 temp->name.opp.oprom_array); in dump_node() [all …]
|
/illumos-gate/usr/src/uts/common/io/rtw/ |
H A D | smc93cx6.c | 103 uint32_t temp; local 111 temp = sd->sd_MS ^ sd->sd_CS; 112 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); 121 temp ^= sd->sd_DO; 122 SEEPROM_OUTB(sd, temp); 124 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); 127 temp ^= sd->sd_DO; 132 temp ^= sd->sd_DO; 133 SEEPROM_OUTB(sd, temp); 135 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); [all …]
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | jnl.c | 74 GENERIC a, b, temp, z, w; in jnl() local 118 temp = cosl(x)+sinl(x); in jnl() 121 temp = -cosl(x)+sinl(x); in jnl() 124 temp = -cosl(x)-sinl(x); in jnl() 127 temp = cosl(x)-sinl(x); in jnl() 130 b = invsqrtpi*temp/sqrtl(x); in jnl() 135 temp = b; in jnl() 138 a = temp; in jnl() 220 temp = b; in jnl() 222 a = temp; in jnl() [all …]
|
/illumos-gate/usr/src/lib/libm/common/LD/ |
H A D | jnl.c | 74 GENERIC a, b, temp = 0, z, w; in jnl() local 118 temp = cosl(x)+sinl(x); in jnl() 121 temp = -cosl(x)+sinl(x); in jnl() 124 temp = -cosl(x)-sinl(x); in jnl() 127 temp = cosl(x)-sinl(x); in jnl() 130 b = invsqrtpi*temp/sqrtl(x); in jnl() 135 temp = b; in jnl() 138 a = temp; in jnl() 220 temp = b; in jnl() 222 a = temp; in jnl() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | mkpkgmap.c | 135 char temp[PATH_LGTH]; in mkpkgmap() local 186 (void) fscanf(fp, "%4096s", temp); in mkpkgmap() 188 if (strcmp(temp, "include") == 0) in mkpkgmap() 190 else if (strcmp(temp, "rsearch") == 0) in mkpkgmap() 192 else if (strcmp(temp, "search") == 0) in mkpkgmap() 194 else if (strcmp(temp, "default") == 0) { in mkpkgmap() 197 } else if (strchr(temp, '=')) { in mkpkgmap() 198 translate(temp, mybuff); in mkpkgmap() 205 logerr(gettext(MSG_BANG), temp); in mkpkgmap() 367 char temp[PATH_MAX], *basename; in findfile() local [all …]
|
/illumos-gate/usr/src/uts/intel/io/amdzen/ |
H A D | smntemp.c | 252 smntemp_temp_read(void *arg, sensor_ioctl_scalar_t *temp) in smntemp_temp_read() argument 263 temp->sis_unit = smntemp_temp_unit(stt); in smntemp_temp_read() 264 temp->sis_value = stt->stt_temp; in smntemp_temp_read() 266 temp->sis_gran = THM_CURTEMP_TEMP_DEC_GRAN; in smntemp_temp_read() 312 smntemp_create_tdie(smntemp_t *smn, smntemp_df_t *df, smntemp_temp_t *temp, in smntemp_create_tdie() argument 319 temp->stt_kind = SMNTEMP_K_TDIE; in smntemp_create_tdie() 320 temp->stt_df = df; in smntemp_create_tdie() 321 temp->stt_reg = THM_DIE(ccdno, smn->smn_fam); in smntemp_create_tdie() 322 mutex_init(&temp->stt_mutex, NULL, MUTEX_DRIVER, NULL); in smntemp_create_tdie() 323 temp->stt_flags = SMNTEMP_F_MUTEX; in smntemp_create_tdie() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | kfree.c | 50 register krb5_address **temp; in krb5_free_addresses() local 52 for (temp = val; *temp; temp++) { in krb5_free_addresses() 53 if ((*temp)->contents) in krb5_free_addresses() 54 krb5_xfree((*temp)->contents); in krb5_free_addresses() 55 krb5_xfree(*temp); in krb5_free_addresses() 119 register krb5_authdata **temp; in krb5_free_authdata() local 121 for (temp = val; *temp; temp++) { in krb5_free_authdata() 122 if ((*temp)->contents) in krb5_free_authdata() 123 krb5_xfree_wrap((*temp)->contents, (*temp)->length); in krb5_free_authdata() 124 krb5_xfree_wrap(*temp, sizeof(krb5_authdata)); in krb5_free_authdata() [all …]
|
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | niu.c | 122 unm_niu_gb_mac_config_0_t temp; in unm_niu_gbe_phy_read() local 123 *(unm_crbword_t *)&temp = 0; in unm_niu_gbe_phy_read() 124 temp.tx_reset_pb = 1; in unm_niu_gbe_phy_read() 125 temp.rx_reset_pb = 1; in unm_niu_gbe_phy_read() 126 temp.tx_reset_mac = 1; in unm_niu_gbe_phy_read() 127 temp.rx_reset_mac = 1; in unm_niu_gbe_phy_read() 129 UNM_NIU_GB_MAC_CONFIG_0(0), &temp, 4); in unm_niu_gbe_phy_read() 213 unm_crbword_t temp = 0; in unm_niu_macaddr_set() local 219 (void) memcpy(&temp, addr, 2); in unm_niu_macaddr_set() 220 temp <<= 16; in unm_niu_macaddr_set() [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | jn.c | 75 GENERIC a, b, temp = 0; in jn() local 128 temp = cos(x)+sin(x); in jn() 131 temp = -cos(x)+sin(x); in jn() 134 temp = -cos(x)-sin(x); in jn() 137 temp = cos(x)-sin(x); in jn() 140 b = invsqrtpi*temp/sqrt(x); in jn() 145 temp = b; in jn() 148 a = temp; in jn() 229 temp = b; in jn() 231 a = temp; in jn() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | utility.c | 80 DL_NODE *temp = dlist_get_last(list); in dlist_add_as_last() local 81 temp->next = node; in dlist_add_as_last() 82 node->prev = temp; in dlist_add_as_last() 109 DL_NODE *temp = list; in dlist_get_first() local 113 while (temp->prev != NULL) in dlist_get_first() 114 temp = temp->prev; in dlist_get_first() 116 return (temp); in dlist_get_first() 126 DL_NODE *temp = list; in dlist_get_last() local 130 while (temp->next != NULL) in dlist_get_last() 131 temp = temp->next; in dlist_get_last() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/awk/ |
H A D | runtests.sh | 106 $AWK -f $PROG > $WORKDIR/test.temp.out 2>&1 || \ 107 echo EXIT CODE: $? >> $WORKDIR/test.temp.out 108 if diff $WORKDIR/test.temp.out <(proctemplate ${PROG/.awk/.ok}); then 124 rm -f $WORKDIR/test.temp* 144 $AWK -f $PROG < $INPUT > $WORKDIR/test.temp.out 2>&1 || \ 145 echo EXIT CODE: $? >> $WORKDIR/test.temp.out 147 $AWK -f $PROG > $WORKDIR/test.temp.out 2>&1 || \ 148 echo EXIT CODE: $? >> $WORKDIR/test.temp.out 150 if diff $WORKDIR/test.temp.out ${PROG/.awk/.ok}; then 162 $script > $WORKDIR/test.temp.out 2>&1 [all …]
|
/illumos-gate/usr/src/cmd/utmp_update/ |
H A D | utmp_update.c | 230 int temp, i; in load_utmpx_struct() local 253 (void) sscanf(pid, "%d", &temp); in load_utmpx_struct() 254 entryx->ut_pid = temp; in load_utmpx_struct() 256 (void) sscanf(type, "%d", &temp); in load_utmpx_struct() 257 entryx->ut_type = temp; in load_utmpx_struct() 259 (void) sscanf(term, "%d", &temp); in load_utmpx_struct() 260 entryx->ut_exit.e_termination = temp; in load_utmpx_struct() 262 (void) sscanf(exitstatus, "%d", &temp); in load_utmpx_struct() 263 entryx->ut_exit.e_exit = temp; in load_utmpx_struct() 272 (void) sscanf(xtime, "%d", &temp); in load_utmpx_struct() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/des/ |
H A D | string2key.c | 57 register unsigned temp; in mit_des_string_to_key_int() local 121 temp = (unsigned int) *str++; in mit_des_string_to_key_int() 124 fprintf(stdout,"%02x ",temp & 0xff); in mit_des_string_to_key_int() 129 *p_char++ ^= (int) temp & 01; in mit_des_string_to_key_int() 131 *--p_char ^= (int) temp & 01; in mit_des_string_to_key_int() 132 temp = temp >> 1; in mit_des_string_to_key_int() 145 temp = 0; in mit_des_string_to_key_int() 147 temp |= *p_char++ << (1+j); in mit_des_string_to_key_int() 148 *k_p++ = (unsigned char) temp; in mit_des_string_to_key_int()
|
/illumos-gate/usr/src/common/crypto/aes/ |
H A D | aes_impl.c | 880 uint32_t temp; in rijndael_key_setup_enc_raw() local 889 temp = rk[3]; in rijndael_key_setup_enc_raw() 891 (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ in rijndael_key_setup_enc_raw() 892 (Te4[(temp >> 8) & 0xff] & 0x00ff0000) ^ in rijndael_key_setup_enc_raw() 893 (Te4[temp & 0xff] & 0x0000ff00) ^ in rijndael_key_setup_enc_raw() 894 (Te4[temp >> 24] & 0x000000ff) ^ in rijndael_key_setup_enc_raw() 912 temp = rk[5]; in rijndael_key_setup_enc_raw() 914 (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ in rijndael_key_setup_enc_raw() 915 (Te4[(temp >> 8) & 0xff] & 0x00ff0000) ^ in rijndael_key_setup_enc_raw() 916 (Te4[temp & 0xff] & 0x0000ff00) ^ in rijndael_key_setup_enc_raw() [all …]
|
/illumos-gate/usr/src/cmd/eqn/ |
H A D | size.c | 49 char temp[20]; in globsize() local 51 getstr(temp, 20); in globsize() 52 if (temp[0] == '+') in globsize() 53 gsize += atoi(temp+1); in globsize() 54 else if (temp[0] == '-') in globsize() 55 gsize -= atoi(temp+1); in globsize() 57 gsize = atoi(temp); in globsize()
|
/illumos-gate/usr/src/ucblib/libcurses/ |
H A D | deleteln.c | 33 char *temp; in wdeleteln() local 40 temp = win->_y[win->_cury]; in wdeleteln() 49 win->_y[y] = temp; in wdeleteln() 51 temp = win->_y[y]; in wdeleteln() 52 for (end = &temp[win->_maxx]; temp < end; ) in wdeleteln() 53 *temp++ = ' '; in wdeleteln()
|