| /src/crypto/openssl/crypto/stack/ |
| H A D | stack.c | 178 static int sk_reserve(OPENSSL_STACK *st, int n, int exact) in sk_reserve() argument 184 if (n > max_nodes - st->num) { in sk_reserve() 190 num_alloc = st->num + n; in sk_reserve() 195 if (st->data == NULL) { in sk_reserve() 200 if ((st->data = OPENSSL_zalloc(sizeof(void *) * num_alloc)) == NULL) in sk_reserve() 202 st->num_alloc = num_alloc; in sk_reserve() 207 if (num_alloc <= st->num_alloc) in sk_reserve() 209 num_alloc = compute_growth(num_alloc, st->num_alloc); in sk_reserve() 214 } else if (num_alloc == st->num_alloc) { in sk_reserve() 218 tmpdata = OPENSSL_realloc((void *)st->data, sizeof(void *) * num_alloc); in sk_reserve() [all …]
|
| /src/contrib/libarchive/libarchive/ |
| H A D | archive_entry_copy_stat.c | 36 archive_entry_copy_stat(struct archive_entry *entry, const struct stat *st) in archive_entry_copy_stat() argument 39 archive_entry_set_atime(entry, st->st_atime, st->st_atimespec.tv_nsec); in archive_entry_copy_stat() 40 archive_entry_set_ctime(entry, st->st_ctime, st->st_ctimespec.tv_nsec); in archive_entry_copy_stat() 41 archive_entry_set_mtime(entry, st->st_mtime, st->st_mtimespec.tv_nsec); in archive_entry_copy_stat() 43 archive_entry_set_atime(entry, st->st_atime, st->st_atim.tv_nsec); in archive_entry_copy_stat() 44 archive_entry_set_ctime(entry, st->st_ctime, st->st_ctim.tv_nsec); in archive_entry_copy_stat() 45 archive_entry_set_mtime(entry, st->st_mtime, st->st_mtim.tv_nsec); in archive_entry_copy_stat() 47 archive_entry_set_atime(entry, st->st_atime, st->st_atime_nsec); in archive_entry_copy_stat() 48 archive_entry_set_ctime(entry, st->st_ctime, st->st_ctime_nsec); in archive_entry_copy_stat() 49 archive_entry_set_mtime(entry, st->st_mtime, st->st_mtime_nsec); in archive_entry_copy_stat() [all …]
|
| H A D | archive_entry_stat.c | 42 struct stat *st; in archive_entry_stat() local 44 entry->stat = calloc(1, sizeof(*st)); in archive_entry_stat() 61 st = entry->stat; in archive_entry_stat() 66 st->st_atime = archive_entry_atime(entry); in archive_entry_stat() 68 st->st_birthtime = archive_entry_birthtime(entry); in archive_entry_stat() 70 st->st_ctime = archive_entry_ctime(entry); in archive_entry_stat() 71 st->st_mtime = archive_entry_mtime(entry); in archive_entry_stat() 72 st->st_dev = archive_entry_dev(entry); in archive_entry_stat() 73 st->st_gid = (gid_t)archive_entry_gid(entry); in archive_entry_stat() 74 st->st_uid = (uid_t)archive_entry_uid(entry); in archive_entry_stat() [all …]
|
| /src/contrib/bsddialog/lib/ |
| H A D | textbox.c | 48 static void updateborders(struct dialog *d, struct scrolltext *st) in updateborders() argument 60 if (st->xpad > 0) { in updateborders() 69 if (st->xpad + d->w - 2 - st->margin < st->wpad) { in updateborders() 78 if (st->hpad > d->h - 4) { in updateborders() 81 "%3d%%", 100 * (st->ypad + d->h - 4) / st->hpad); in updateborders() 86 static int textbox_size_position(struct dialog *d, struct scrolltext *st) in textbox_size_position() argument 93 d->text, NULL, &d->bs, st->hpad, st->wpad + st->margin) != 0) in textbox_size_position() 95 minw = (st->wpad > 0) ? 2 /*multicolumn char*/ + st->margin : 0 ; in textbox_size_position() 96 if (widget_checksize(d->h, d->w, &d->bs, MIN(st->hpad, 1), minw) != 0) in textbox_size_position() 104 static int textbox_draw(struct dialog *d, bool redraw, struct scrolltext *st) in textbox_draw() argument [all …]
|
| /src/contrib/elftoolchain/libelftc/ |
| H A D | elftc_string_table.c | 52 #define ELFTC_STRING_TABLE_LENGTH(st) ((st)->st_len >> 1) argument 53 #define ELFTC_STRING_TABLE_CLEAR_COMPACTION_FLAG(st) do { \ argument 54 (st)->st_len &= ~ELFTC_STRING_TABLE_COMPACTION_FLAG; \ 56 #define ELFTC_STRING_TABLE_SET_COMPACTION_FLAG(st) do { \ argument 57 (st)->st_len |= ELFTC_STRING_TABLE_COMPACTION_FLAG; \ 59 #define ELFTC_STRING_TABLE_UPDATE_LENGTH(st, len) do { \ argument 60 (st)->st_len = \ 61 ((st)->st_len & \ 76 elftc_string_table_find_hash_entry(Elftc_String_Table *st, const char *string, in elftc_string_table_find_hash_entry() argument 83 hashindex = libelftc_hash_string(string) % st->st_nbuckets; in elftc_string_table_find_hash_entry() [all …]
|
| /src/crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ |
| H A D | ldap_pwd_policy.c | 56 krb5_error_code st; in add_policy_mods() local 59 st = krb5_add_int_mem_ldap_mod(mods, "krbmaxpwdlife", op, in add_policy_mods() 61 if (st) in add_policy_mods() 62 return st; in add_policy_mods() 64 st = krb5_add_int_mem_ldap_mod(mods, "krbminpwdlife", op, in add_policy_mods() 66 if (st) in add_policy_mods() 67 return st; in add_policy_mods() 69 st = krb5_add_int_mem_ldap_mod(mods, "krbpwdmindiffchars", op, in add_policy_mods() 71 if (st) in add_policy_mods() 72 return st; in add_policy_mods() [all …]
|
| H A D | ldap_principal2.c | 113 krb5_error_code st, tempst; in search_at() local 123 st = EINVAL; in search_at() 124 k5_setmsg(context, st, in search_at() 139 return st; in search_at() 154 krb5_error_code st; in search_princ() local 161 st = krb5_ldap_unparse_name(context, princ, &user); in search_princ() 162 if (st) in search_princ() 167 st = ENOMEM; in search_princ() 173 st = ENOMEM; in search_princ() 178 st = search_at(context, ldap_context, ldap_server_handle, dn, in search_princ() [all …]
|
| H A D | ldap_tkt_policy.c | 55 krb5_error_code st=0; in krb5_ldap_create_policy() local 65 st = EINVAL; in krb5_ldap_create_policy() 66 k5_setmsg(context, st, _("Ticket Policy Name missing")); in krb5_ldap_create_policy() 73 if ((st = krb5_ldap_name_to_policydn (context, policy->policy, &policy_dn)) != 0) in krb5_ldap_create_policy() 78 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0) in krb5_ldap_create_policy() 84 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0) in krb5_ldap_create_policy() 88 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxticketlife", LDAP_MOD_ADD, in krb5_ldap_create_policy() 94 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxrenewableage", LDAP_MOD_ADD, in krb5_ldap_create_policy() 100 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbticketflags", LDAP_MOD_ADD, in krb5_ldap_create_policy() 106 if ((st=ldap_add_ext_s(ld, policy_dn, mods, NULL, NULL)) != LDAP_SUCCESS) { in krb5_ldap_create_policy() [all …]
|
| H A D | ldap_realm.c | 122 krb5_error_code st = 0, tempst = 0; in krb5_ldap_list_realm() local 133 if ((st = krb5_ldap_read_krbcontainer_dn(context, in krb5_ldap_list_realm() 153 ldap_get_option(ld, LDAP_OPT_ERROR_NUMBER, &st); in krb5_ldap_list_realm() 154 st = set_ldap_error (context, st, OP_SEARCH); in krb5_ldap_list_realm() 177 if (st != 0) { in krb5_ldap_list_realm() 191 return st; in krb5_ldap_list_realm() 208 krb5_error_code st = 0, tempst=0; in krb5_ldap_delete_realm() local 222 st = EINVAL; in krb5_ldap_delete_realm() 223 k5_setmsg(context, st, _("Realm information not available")); in krb5_ldap_delete_realm() 227 if ((st=krb5_ldap_read_realm_params(context, lrealm, &rparam, &mask)) != 0) in krb5_ldap_delete_realm() [all …]
|
| H A D | ldap_principal.c | 210 krb5_error_code st=0, tempst=0; in krb5_ldap_iterate() local 228 st = EINVAL; in krb5_ldap_iterate() 229 k5_setmsg(context, st, _("Default realm not set")); in krb5_ldap_iterate() 244 if ((st = krb5_get_subtree_info(ldap_context, &subtree, &ntree)) != 0) in krb5_ldap_iterate() 253 st = iterate_entry(context, ldap_context, ld, ent, func, func_arg); in krb5_ldap_iterate() 254 if (st) in krb5_ldap_iterate() 272 return st; in krb5_ldap_iterate() 288 krb5_error_code st=0; in krb5_ldap_delete_principal() local 300 if ((st=krb5_ldap_get_principal(context, searchfor, 0, &entry))) in krb5_ldap_delete_principal() 303 if (((st=krb5_get_princ_type(context, entry, &(ptype))) != 0) || in krb5_ldap_delete_principal() [all …]
|
| /src/stand/libsa/ |
| H A D | nvstore.c | 55 nvstore_t *st; in nvstore_get_store() local 57 st = NULL; in nvstore_get_store() 59 STAILQ_FOREACH(st, &stores, nvs_next) { in nvstore_get_store() 60 if (strcmp(name, st->nvs_name) == 0) in nvstore_get_store() 64 return (st); in nvstore_get_store() 70 nvstore_t *st; in nvstore_init() local 72 st = nvstore_get_store(name); in nvstore_init() 73 if (st != NULL) in nvstore_init() 76 if ((st = malloc(sizeof (*st))) == NULL) in nvstore_init() 79 if ((st->nvs_name = strdup(name)) == NULL) { in nvstore_init() [all …]
|
| /src/sys/i386/linux/ |
| H A D | linux_copyout.c | 56 struct futex_st0 *st; in futex_xchgl_slow0() local 58 st = arg; in futex_xchgl_slow0() 59 *st->oldval = atomic_swap_int((int *)kva, st->oparg); in futex_xchgl_slow0() 65 struct futex_st0 st; in futex_xchgl() local 67 st.oparg = oparg; in futex_xchgl() 68 st.oldval = oldval; in futex_xchgl() 70 futex_xchgl_slow0, &st) != 0) in futex_xchgl() 78 struct futex_st0 *st; in futex_addl_slow0() local 80 st = arg; in futex_addl_slow0() 81 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg); in futex_addl_slow0() [all …]
|
| /src/sys/contrib/device-tree/Bindings/iio/ |
| H A D | st-sensors.txt | 16 - st,drdy-int-pin: the pin on the package that will be used to signal 30 - st,lis3lv02d (deprecated, use st,lis3lv02dl-accel) 31 - st,lis302dl-spi (deprecated, use st,lis3lv02dl-accel) 32 - st,lis3lv02dl-accel 33 - st,lsm303dlh-accel 34 - st,lsm303dlhc-accel 35 - st,lis3dh-accel 36 - st,lsm330d-accel 37 - st,lsm330dl-accel 38 - st,lsm330dlc-accel [all …]
|
| /src/crypto/openssl/crypto/ |
| H A D | self_test_core.c | 75 static void self_test_setparams(OSSL_SELF_TEST *st) in self_test_setparams() argument 79 if (st->cb != NULL) { in self_test_setparams() 80 st->params[n++] = OSSL_PARAM_construct_utf8_string(OSSL_PROV_PARAM_SELF_TEST_PHASE, in self_test_setparams() 81 (char *)st->phase, 0); in self_test_setparams() 82 st->params[n++] = OSSL_PARAM_construct_utf8_string(OSSL_PROV_PARAM_SELF_TEST_TYPE, in self_test_setparams() 83 (char *)st->type, 0); in self_test_setparams() 84 st->params[n++] = OSSL_PARAM_construct_utf8_string(OSSL_PROV_PARAM_SELF_TEST_DESC, in self_test_setparams() 85 (char *)st->desc, 0); in self_test_setparams() 87 st->params[n++] = OSSL_PARAM_construct_end(); in self_test_setparams() 106 void OSSL_SELF_TEST_free(OSSL_SELF_TEST *st) in OSSL_SELF_TEST_free() argument [all …]
|
| /src/sys/kern/ |
| H A D | subr_stack.c | 54 struct stack *st; in stack_create() local 56 st = malloc(sizeof(*st), M_STACK, flags | M_ZERO); in stack_create() 57 return (st); in stack_create() 61 stack_destroy(struct stack *st) in stack_destroy() argument 64 free(st, M_STACK); in stack_destroy() 68 stack_put(struct stack *st, vm_offset_t pc) in stack_put() argument 71 if (st->depth < STACK_MAX) { in stack_put() 72 st->pcs[st->depth++] = pc; in stack_put() 86 stack_zero(struct stack *st) in stack_zero() argument 89 bzero(st, sizeof *st); in stack_zero() [all …]
|
| /src/sys/contrib/device-tree/Bindings/iio/accel/ |
| H A D | lis302.txt | 8 - compatible: should be set to "st,lis3lv02d-spi" 15 - compatible: should be set to "st,lis3lv02d" 23 - st,click-single-{x,y,z}: if present, tells the device to issue an 26 - st,click-double-{x,y,z}: if present, tells the device to issue an 29 - st,click-thresh-{x,y,z}: set the x/y/z axis threshold 30 - st,click-click-time-limit: click time limit, from 0 to 127.5msec 32 - st,click-latency: click latency, from 0 to 255 msec with 34 - st,click-window: click window, from 0 to 255 msec with 36 - st,irq{1,2}-disable: disable IRQ 1/2 37 - st,irq{1,2}-ff-wu-1: raise IRQ 1/2 on FF_WU_1 condition [all …]
|
| /src/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/ |
| H A D | poly1305_donna32.h | 29 poly1305_init(poly1305_state_internal_t *st, const unsigned char key[32]) in poly1305_init() argument 32 st->r[0] = (LOAD32_LE(&key[0])) & 0x3ffffff; in poly1305_init() 33 st->r[1] = (LOAD32_LE(&key[3]) >> 2) & 0x3ffff03; in poly1305_init() 34 st->r[2] = (LOAD32_LE(&key[6]) >> 4) & 0x3ffc0ff; in poly1305_init() 35 st->r[3] = (LOAD32_LE(&key[9]) >> 6) & 0x3f03fff; in poly1305_init() 36 st->r[4] = (LOAD32_LE(&key[12]) >> 8) & 0x00fffff; in poly1305_init() 39 st->h[0] = 0; in poly1305_init() 40 st->h[1] = 0; in poly1305_init() 41 st->h[2] = 0; in poly1305_init() 42 st->h[3] = 0; in poly1305_init() [all …]
|
| H A D | poly1305_donna64.h | 35 poly1305_init(poly1305_state_internal_t *st, const unsigned char key[32]) in poly1305_init() argument 44 st->r[0] = (t0) &0xffc0fffffff; in poly1305_init() 45 st->r[1] = ((t0 >> 44) | (t1 << 20)) & 0xfffffc0ffff; in poly1305_init() 46 st->r[2] = ((t1 >> 24)) & 0x00ffffffc0f; in poly1305_init() 49 st->h[0] = 0; in poly1305_init() 50 st->h[1] = 0; in poly1305_init() 51 st->h[2] = 0; in poly1305_init() 54 st->pad[0] = LOAD64_LE(&key[16]); in poly1305_init() 55 st->pad[1] = LOAD64_LE(&key[24]); in poly1305_init() 57 st->leftover = 0; in poly1305_init() [all …]
|
| /src/contrib/libarchive/libarchive/test/ |
| H A D | test_write_disk_perms.c | 53 struct stat st; in searchgid() local 67 assert(fstat(fd, &st) == 0); in searchgid() 68 _default_gid = st.st_gid; in searchgid() 132 struct stat st; in DEFINE_TEST() 167 assertEqualInt(0, stat("file_overwrite_0144", &st)); in DEFINE_TEST() 168 failure("file_overwrite_0144: st.st_mode=%o", st.st_mode); in DEFINE_TEST() 169 assert((st.st_mode & 07777) != 0144); in DEFINE_TEST() 190 assertEqualInt(0, stat("dir_overwrite_0744", &st)); in DEFINE_TEST() 191 failure("dir_overwrite_0744: st.st_mode=%o", st.st_mode); in DEFINE_TEST() 192 assertEqualInt(st.st_mode & 0777, 0744); in DEFINE_TEST() [all …]
|
| /src/contrib/libarchive/tar/ |
| H A D | bsdtar_platform.h | 73 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctimespec.tv_nsec argument 74 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtimespec.tv_nsec argument 76 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctim.tv_nsec argument 77 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtim.tv_nsec argument 79 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctime_n argument 80 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtime_n argument 82 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_uctime * 1000 argument 83 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_umtime * 1000 argument 85 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctime_usec * 1000 argument 86 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtime_usec * 1000 argument [all …]
|
| /src/crypto/openssh/regress/misc/fuzz-harness/ |
| H A D | kex_fuzz.cc | 27 static int prepare_key(struct shared_state *st, int keytype, int bits); 123 store_key(struct shared_state *st, struct sshkey *pubkey, in store_key() argument 126 if (st == NULL || pubkey->type < 0 || pubkey->type > INT_MAX || in store_key() 128 ((size_t)pubkey->type < st->nkeys && in store_key() 129 st->pubkeys[pubkey->type] != NULL)) in store_key() 131 if ((size_t)pubkey->type >= st->nkeys) { in store_key() 132 st->pubkeys = (struct sshkey **)xrecallocarray(st->pubkeys, in store_key() 133 st->nkeys, pubkey->type + 1, sizeof(*st->pubkeys)); in store_key() 134 st->privkeys = (struct sshkey **)xrecallocarray(st->privkeys, in store_key() 135 st->nkeys, privkey->type + 1, sizeof(*st->privkeys)); in store_key() [all …]
|
| /src/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_wait.c | 63 int st; in ATF_TC_BODY() local 64 ATF_REQUIRE(wait6(P_ALL, 0, &st, 0, &wru, &si) == -1 in ATF_TC_BODY() 79 int st; in ATF_TC_BODY() local 89 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY() 90 ATF_REQUIRE(WIFEXITED(st) && WEXITSTATUS(st) == 0x5a); in ATF_TC_BODY() 114 int st; in ATF_TC_BODY() local 125 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY() 126 ATF_REQUIRE(WIFSIGNALED(st) && WTERMSIG(st) == SIGTERM); in ATF_TC_BODY() 150 int st; in ATF_TC_BODY() local 170 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY() [all …]
|
| /src/sys/contrib/device-tree/src/arm/ti/omap/ |
| H A D | omap3-gta04a3.dts | 16 compatible = "st,lis331dlh", "st,lis3lv02d"; 23 st,click-single-x; 24 st,click-single-y; 25 st,click-single-z; 26 st,click-thresh-x = <8>; 27 st,click-thresh-y = <8>; 28 st,click-thresh-z = <10>; 29 st,click-click-time-limit = <9>; 30 st,click-latency = <50>; 31 st,irq1-click; [all …]
|
| /src/crypto/openssl/crypto/poly1305/ |
| H A D | poly1305_ieee754.c | 114 poly1305_internal *st = (poly1305_internal *)ctx; in poly1305_init() local 119 st->h[0].d = TWO(52)*TWO0; in poly1305_init() 120 st->h[1].d = TWO(52)*TWO32; in poly1305_init() 121 st->h[2].d = TWO(52)*TWO64; in poly1305_init() 122 st->h[3].d = TWO(52)*TWO96; in poly1305_init() 124 st->h[0].u = EXP(52 + 0); in poly1305_init() 125 st->h[1].u = EXP(52 + 32); in poly1305_init() 126 st->h[2].u = EXP(52 + 64); in poly1305_init() 127 st->h[3].u = EXP(52 + 96); in poly1305_init() 167 st->r[0] = r0.d - TWO(52) * TWO0; in poly1305_init() [all …]
|
| /src/crypto/krb5/src/plugins/preauth/spake/ |
| H A D | spake_client.c | 92 reqstate *st = (reqstate *)modreq; in spake_request_fini() local 94 k5_free_pa_spake(context, st->msg); in spake_request_fini() 95 krb5_free_keyblock(context, st->initial_key); in spake_request_fini() 96 krb5_free_data(context, st->support); in spake_request_fini() 97 krb5_free_data_contents(context, &st->thash); in spake_request_fini() 98 zapfree(st->spakeresult.data, st->spakeresult.length); in spake_request_fini() 99 free(st); in spake_request_fini() 112 reqstate *st = (reqstate *)modreq; in spake_prep_questions() local 116 if (st == NULL) in spake_prep_questions() 125 k5_free_pa_spake(context, st->msg); in spake_prep_questions() [all …]
|