/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_entry.c | 59 struct archive_entry *e, *e2; in DEFINE_TEST() local 71 assert((e = archive_entry_new()) != NULL); in DEFINE_TEST() 115 archive_entry_set_atime(e, 13579, 24680); in DEFINE_TEST() 116 assertEqualInt(archive_entry_atime(e), 13579); in DEFINE_TEST() 117 assertEqualInt(archive_entry_atime_nsec(e), 24680); in DEFINE_TEST() 118 archive_entry_set_atime(e, 13580, 1000000001L); in DEFINE_TEST() 119 assertEqualInt(archive_entry_atime(e), 13581); in DEFINE_TEST() 120 assertEqualInt(archive_entry_atime_nsec(e), 1); in DEFINE_TEST() 121 archive_entry_set_atime(e, 13580, -7); in DEFINE_TEST() 122 assertEqualInt(archive_entry_atime(e), 13579); in DEFINE_TEST() [all …]
|
H A D | test_write_format_tar_ustar.c | 53 char *buff, *e; in DEFINE_TEST() 207 e = buff; in DEFINE_TEST() 210 myAssertEqualMem(e + 0, "file", 5); /* Filename */ in DEFINE_TEST() 211 myAssertEqualMem(e + 100, "000664 ", 8); /* mode */ in DEFINE_TEST() 212 myAssertEqualMem(e + 108, "000120 ", 8); /* uid */ in DEFINE_TEST() 213 myAssertEqualMem(e + 116, "000132 ", 8); /* gid */ in DEFINE_TEST() 214 myAssertEqualMem(e + 124, "00000000012 ", 12); /* size */ in DEFINE_TEST() 215 myAssertEqualMem(e + 136, "00000000001 ", 12); /* mtime */ in DEFINE_TEST() 216 myAssertEqualMem(e + 148, "010034\0 ", 8); /* checksum */ in DEFINE_TEST() 217 myAssertEqualMem(e in DEFINE_TEST() 54 char *buff, *e; DEFINE_TEST() local [all...] |
H A D | test_write_format_cpio_newc.c | 53 char *buff, *e, *file; in DEFINE_TEST() 117 e = buff; in DEFINE_TEST() 120 file = e; in DEFINE_TEST() 121 assert(is_hex(e, 110)); /* Entire header is hex digits. */ in DEFINE_TEST() 122 assertEqualMem(e + 0, "070701", 6); /* Magic */ in DEFINE_TEST() 123 assert(memcmp(e + 6, "00000000", 8) != 0); /* ino != 0 */ in DEFINE_TEST() 124 assertEqualMem(e + 14, "000081b4", 8); /* Mode */ in DEFINE_TEST() 125 assertEqualMem(e + 22, "00000050", 8); /* uid */ in DEFINE_TEST() 126 assertEqualMem(e + 30, "0000005a", 8); /* gid */ in DEFINE_TEST() 127 assertEqualMem(e in DEFINE_TEST() 55 char *buff, *e, *file; DEFINE_TEST() local [all...] |
H A D | test_write_format_cpio_odc.c | 47 char *buff, *e, *file; in DEFINE_TEST() 143 e = buff; in DEFINE_TEST() 146 file = e; /* Remember where this starts... */ in DEFINE_TEST() 147 assert(is_octal(e, 76)); /* Entire header is octal digits. */ in DEFINE_TEST() 148 assertEqualMem(e + 0, "070707", 6); /* Magic */ in DEFINE_TEST() 149 assertEqualMem(e + 6, "000014", 6); /* dev */ in DEFINE_TEST() 150 assert(memcmp(e + 12, "000000", 6) != 0); /* ino must be != 0 */ in DEFINE_TEST() 151 assertEqualMem(e + 18, "100664", 6); /* Mode */ in DEFINE_TEST() 152 assertEqualMem(e + 24, "000120", 6); /* uid */ in DEFINE_TEST() 153 assertEqualMem(e in DEFINE_TEST() 49 char *buff, *e, *file; DEFINE_TEST() local [all...] |
H A D | test_write_format_tar_v7tar.c | 54 char *buff, *e; in DEFINE_TEST() 180 e = buff; in DEFINE_TEST() 183 myAssertEqualMem(e + 0, "file", 5); /* Filename */ in DEFINE_TEST() 184 myAssertEqualMem(e + 100, "000664 ", 8); /* mode */ in DEFINE_TEST() 185 myAssertEqualMem(e + 108, "000120 ", 8); /* uid */ in DEFINE_TEST() 186 myAssertEqualMem(e + 116, "000132 ", 8); /* gid */ in DEFINE_TEST() 187 myAssertEqualMem(e + 124, "00000000012 ", 12); /* size */ in DEFINE_TEST() 188 myAssertEqualMem(e + 136, "00000000001 ", 12); /* mtime */ in DEFINE_TEST() 189 myAssertEqualMem(e + 148, "005335\0 ", 8); /* checksum */ in DEFINE_TEST() 190 myAssertEqualMem(e in DEFINE_TEST() 55 char *buff, *e; DEFINE_TEST() local [all...] |
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/ |
H A D | TestStateMachine.java | 75 } catch (IllegalStateException e) { in beforeOpen() 76 System.out.println(e); in beforeOpen() 77 } catch (Exception e) { in beforeOpen() 78 e.printStackTrace(); in beforeOpen() 86 } catch (IllegalStateException e) { in beforeOpen() 87 System.out.println(e); in beforeOpen() 88 } catch (Exception e) { in beforeOpen() 89 e.printStackTrace(); in beforeOpen() 97 } catch (IllegalStateException e) { in beforeOpen() 98 System.out.println(e); in beforeOpen() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | envelope.c | 30 clrsessenvelope(e) 31 ENVELOPE *e; 34 macdefine(&e->e_macro, A_PERM, macid("{auth_type}"), ""); 35 macdefine(&e->e_macro, A_PERM, macid("{auth_authen}"), ""); 36 macdefine(&e->e_macro, A_PERM, macid("{auth_author}"), ""); 37 macdefine(&e->e_macro, A_PERM, macid("{auth_ssf}"), ""); 40 macdefine(&e->e_macro, A_PERM, macid("{cert_issuer}"), ""); 41 macdefine(&e->e_macro, A_PERM, macid("{cert_subject}"), ""); 42 macdefine(&e->e_macro, A_PERM, macid("{cipher_bits}"), ""); 43 macdefine(&e->e_macro, A_PERM, macid("{cipher}"), ""); [all …]
|
/freebsd/contrib/ntp/sntp/libopts/ |
H A D | ag-char-map.h | 119 #define SPN_NEWLINE_BACK(s,e) spn_ag_char_map_back(s, e, 0) argument 120 #define BRK_NEWLINE_BACK(s,e) brk_ag_char_map_back(s, e, 0) argument 124 #define SPN_NUL_BYTE_BACK(s,e) spn_ag_char_map_back(s, e, 1) argument 125 #define BRK_NUL_BYTE_BACK(s,e) brk_ag_char_map_back(s, e, 1) argument 129 #define SPN_DIR_SEP_BACK(s,e) spn_ag_char_map_back(s, e, 2) argument 130 #define BRK_DIR_SEP_BACK(s,e) brk_ag_char_map_back(s, e, 2) argument 134 #define SPN_PERCENT_BACK(s,e) spn_ag_char_map_back(s, e, 3) argument 135 #define BRK_PERCENT_BACK(s,e) brk_ag_char_map_back(s, e, 3) argument 139 #define SPN_COMMA_BACK(s,e) spn_ag_char_map_back(s, e, 4) argument 140 #define BRK_COMMA_BACK(s,e) brk_ag_char_map_back(s, e, 4) argument [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | bssid_ignore.c | 24 struct wpa_bssid_ignore *e; in wpa_bssid_ignore_get() local 38 e = wpa_s->bssid_ignore; in wpa_bssid_ignore_get() 39 while (e) { in wpa_bssid_ignore_get() 40 if (ether_addr_equal(e->bssid, bssid)) in wpa_bssid_ignore_get() 41 return e; in wpa_bssid_ignore_get() 42 e = e->next; in wpa_bssid_ignore_get() 67 struct wpa_bssid_ignore *e; in wpa_bssid_ignore_add() local 73 e = wpa_bssid_ignore_get(wpa_s, bssid); in wpa_bssid_ignore_add() 75 if (e) { in wpa_bssid_ignore_add() 76 e->start = now; in wpa_bssid_ignore_add() [all …]
|
H A D | blacklist.c | 24 struct wpa_blacklist *e; in wpa_blacklist_get() local 29 e = wpa_s->blacklist; in wpa_blacklist_get() 30 while (e) { in wpa_blacklist_get() 31 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) in wpa_blacklist_get() 32 return e; in wpa_blacklist_get() 33 e = e->next; in wpa_blacklist_get() 58 struct wpa_blacklist *e; in wpa_blacklist_add() local 63 e = wpa_blacklist_get(wpa_s, bssid); in wpa_blacklist_add() 64 if (e) { in wpa_blacklist_add() 65 e->count++; in wpa_blacklist_add() [all …]
|
/freebsd/contrib/libarchive/cpio/test/ |
H A D | test_option_c.c | 52 char *p, *e; in DEFINE_TEST() local 93 e = p; in DEFINE_TEST() 101 assert(is_octal(e, 76)); /* Entire header is octal digits. */ in DEFINE_TEST() 102 assertEqualMem(e + 0, "070707", 6); /* Magic */ in DEFINE_TEST() 103 assert(is_octal(e + 6, 6)); /* dev */ in DEFINE_TEST() 104 dev = (int)from_octal(e + 6, 6); in DEFINE_TEST() 105 assert(is_octal(e + 12, 6)); /* ino */ in DEFINE_TEST() 106 ino = (int)from_octal(e + 12, 6); in DEFINE_TEST() 109 assertEqualMem(e + 18, "100666", 6); /* Mode */ in DEFINE_TEST() 111 assertEqualMem(e + 18, "100644", 6); /* Mode */ in DEFINE_TEST() [all …]
|
H A D | test_format_newc.c | 69 char *p, *e; in DEFINE_TEST() local 167 e = p; in DEFINE_TEST() 175 assert(is_hex(e, 110)); /* Entire header is octal digits. */ in DEFINE_TEST() 176 assertEqualMem(e + 0, "070701", 6); /* Magic */ in DEFINE_TEST() 177 ino = from_hex(e + 6, 8); /* ino */ in DEFINE_TEST() 180 assertEqualInt(0x8180, from_hex(e + 14, 8) & 0xffc0); /* Mode */ in DEFINE_TEST() 182 assertEqualInt(0x81a4, from_hex(e + 14, 8)); /* Mode */ in DEFINE_TEST() 185 uid = from_hex(e + 22, 8); in DEFINE_TEST() 187 assertEqualInt(from_hex(e + 22, 8), uid); /* uid */ in DEFINE_TEST() 189 gid = from_hex(e + 30, 8); /* gid */ in DEFINE_TEST() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/tracemem/ |
H A D | tst.dynsize.d.out | 2 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 13 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 24 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 35 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 46 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 57 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 68 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 79 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 90 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 101 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [all …]
|
/freebsd/contrib/wpa/src/wps/ |
H A D | wps_upnp_event.c | 62 static void event_clean(struct wps_event_ *e) in event_clean() argument 64 if (e->s->current_event == e) in event_clean() 65 e->s->current_event = NULL; in event_clean() 66 http_client_free(e->http_event); in event_clean() 67 e->http_event = NULL; in event_clean() 74 static void event_delete(struct wps_event_ *e) in event_delete() argument 76 wpa_printf(MSG_DEBUG, "WPS UPnP: Delete event %p", e); in event_delete() 77 event_clean(e); in event_delete() 78 wpabuf_free(e->data); in event_delete() 79 os_free(e); in event_delete() [all …]
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_l2t.c | 73 struct l2t_entry *end, *e, **p; in t4_alloc_l2e() local 82 for (e = d->rover, end = &d->l2tab[d->l2t_size]; e != end; ++e) in t4_alloc_l2e() 83 if (atomic_load_acq_int(&e->refcnt) == 0) in t4_alloc_l2e() 86 for (e = d->l2tab; atomic_load_acq_int(&e->refcnt); ++e) in t4_alloc_l2e() 89 d->rover = e + 1; in t4_alloc_l2e() 96 if (e->state < L2T_STATE_SWITCHING) { in t4_alloc_l2e() 97 for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) { in t4_alloc_l2e() 98 if (*p == e) { in t4_alloc_l2e() 99 *p = e->next; in t4_alloc_l2e() 100 e->next = NULL; in t4_alloc_l2e() [all …]
|
H A D | t4_smt.c | 73 struct smt_entry *end, *e; in t4_find_or_alloc_sme() local 77 for (e = &s->smtab[0], end = &s->smtab[s->smt_size]; e != end; ++e) { in t4_find_or_alloc_sme() 78 if (atomic_load_acq_int(&e->refcnt) == 0) { in t4_find_or_alloc_sme() 80 first_free = e; in t4_find_or_alloc_sme() 82 if (e->state == SMT_STATE_SWITCHING) { in t4_find_or_alloc_sme() 87 if (memcmp(e->smac, smac, ETHER_ADDR_LEN) == 0) in t4_find_or_alloc_sme() 93 e = first_free; in t4_find_or_alloc_sme() 99 e->state = SMT_STATE_UNUSED; in t4_find_or_alloc_sme() 101 atomic_add_int(&e->refcnt, 1); in t4_find_or_alloc_sme() 102 return e; in t4_find_or_alloc_sme() [all …]
|
/freebsd/crypto/openssl/crypto/engine/ |
H A D | eng_lib.c | 50 void engine_set_all_null(ENGINE *e) in engine_set_all_null() argument 52 e->id = NULL; in engine_set_all_null() 53 e->name = NULL; in engine_set_all_null() 54 e->rsa_meth = NULL; in engine_set_all_null() 55 e->dsa_meth = NULL; in engine_set_all_null() 56 e->dh_meth = NULL; in engine_set_all_null() 57 e->rand_meth = NULL; in engine_set_all_null() 58 e->ciphers = NULL; in engine_set_all_null() 59 e->digests = NULL; in engine_set_all_null() 60 e->destroy = NULL; in engine_set_all_null() [all …]
|
H A D | tb_asnmth.c | 28 void ENGINE_unregister_pkey_asn1_meths(ENGINE *e) in ENGINE_unregister_pkey_asn1_meths() argument 30 engine_table_unregister(&pkey_asn1_meth_table, e); in ENGINE_unregister_pkey_asn1_meths() 38 int ENGINE_register_pkey_asn1_meths(ENGINE *e) in ENGINE_register_pkey_asn1_meths() argument 40 if (e->pkey_asn1_meths) { in ENGINE_register_pkey_asn1_meths() 42 int num_nids = e->pkey_asn1_meths(e, NULL, &nids, 0); in ENGINE_register_pkey_asn1_meths() 46 e, nids, num_nids, 0); in ENGINE_register_pkey_asn1_meths() 53 ENGINE *e; in ENGINE_register_all_pkey_asn1_meths() local 55 for (e = ENGINE_get_first(); e; e = ENGINE_get_next(e)) in ENGINE_register_all_pkey_asn1_meths() 56 ENGINE_register_pkey_asn1_meths(e); in ENGINE_register_all_pkey_asn1_meths() 59 int ENGINE_set_default_pkey_asn1_meths(ENGINE *e) in ENGINE_set_default_pkey_asn1_meths() argument [all …]
|
/freebsd/sys/dev/cxgbe/tom/ |
H A D | t4_tom_l2t.c | 64 l2t_hold(struct l2t_data *d, struct l2t_entry *e) in l2t_hold() argument 67 if (atomic_fetchadd_int(&e->refcnt, 1) == 0) /* 0 -> 1 transition */ in l2t_hold() 103 l2_cmp(const struct sockaddr *sa, struct l2t_entry *e) in l2_cmp() argument 113 return (e->addr[0] != sin->sin_addr.s_addr); in l2_cmp() 117 return (memcmp(&e->addr[0], &sin6->sin6_addr, sizeof(e->addr))); in l2_cmp() 122 l2_store(const struct sockaddr *sa, struct l2t_entry *e) in l2_store() argument 132 e->addr[0] = sin->sin_addr.s_addr; in l2_store() 133 e->ipv6 = 0; in l2_store() 137 memcpy(&e->addr[0], &sin6->sin6_addr, sizeof(e->addr)); in l2_store() 138 e->ipv6 = 1; in l2_store() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/ |
H A D | sha1.c | 132 isc_uint32_t *d, isc_uint32_t *e, CHAR64LONG16 *); 134 isc_uint32_t *d, isc_uint32_t *e, CHAR64LONG16 *); 136 isc_uint32_t *d, isc_uint32_t *e, CHAR64LONG16 *); 138 isc_uint32_t *d, isc_uint32_t *e, CHAR64LONG16 *); 148 isc_uint32_t *e, CHAR64LONG16 *block) in do_R01() argument 150 nR0(a,b,c,d,e, 0); nR0(e,a,b,c,d, 1); nR0(d,e,a,b,c, 2); in do_R01() 151 nR0(c,d,e,a,b, 3); nR0(b,c,d,e,a, 4); nR0(a,b,c,d,e, 5); in do_R01() 152 nR0(e,a,b,c,d, 6); nR0(d,e,a,b,c, 7); nR0(c,d,e,a,b, 8); in do_R01() 153 nR0(b,c,d,e,a, 9); nR0(a,b,c,d,e,10); nR0(e,a,b,c,d,11); in do_R01() 154 nR0(d,e,a,b,c,12); nR0(c,d,e,a,b,13); nR0(b,c,d,e,a,14); in do_R01() [all …]
|
/freebsd/sys/opencrypto/ |
H A D | rmd160.c | 80 #define R(a, b, c, d, e, Fj, Kj, sj, rj) \ argument 82 a = ROL(sj, a + Fj(b,c,d) + X(rj) + Kj) + e; \ 161 uint32_t a, b, c, d, e, aa, bb, cc, dd, ee, t, x[16]; in RMD160Transform() local 176 e = state[4]; in RMD160Transform() 179 R(a, b, c, d, e, F0, K0, 11, 0); in RMD160Transform() 180 R(e, a, b, c, d, F0, K0, 14, 1); in RMD160Transform() 181 R(d, e, a, b, c, F0, K0, 15, 2); in RMD160Transform() 182 R(c, d, e, a, b, F0, K0, 12, 3); in RMD160Transform() 183 R(b, c, d, e, a, F0, K0, 5, 4); in RMD160Transform() 184 R(a, b, c, d, e, F0, K0, 8, 5); in RMD160Transform() [all …]
|
/freebsd/crypto/heimdal/kcm/ |
H A D | events.c | 91 kcm_event **e; in kcm_enqueue_event_internal() local 96 for (e = &events_head; *e != NULL; e = &(*e)->next) in kcm_enqueue_event_internal() 99 *e = (kcm_event *)malloc(sizeof(kcm_event)); in kcm_enqueue_event_internal() 100 if (*e == NULL) { in kcm_enqueue_event_internal() 104 (*e)->valid = 1; in kcm_enqueue_event_internal() 105 (*e)->fire_time = event->fire_time; in kcm_enqueue_event_internal() 106 (*e)->fire_count = 0; in kcm_enqueue_event_internal() 107 (*e)->expire_time = event->expire_time; in kcm_enqueue_event_internal() 108 (*e)->backoff_time = event->backoff_time; in kcm_enqueue_event_internal() 110 (*e)->action = event->action; in kcm_enqueue_event_internal() [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | engine.h | 323 OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_get_next(ENGINE *e); 324 OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_get_prev(ENGINE *e); 328 OSSL_DEPRECATEDIN_3_0 int ENGINE_add(ENGINE *e); 332 OSSL_DEPRECATEDIN_3_0 int ENGINE_remove(ENGINE *e); 378 OSSL_DEPRECATEDIN_3_0 int ENGINE_register_RSA(ENGINE *e); 379 OSSL_DEPRECATEDIN_3_0 void ENGINE_unregister_RSA(ENGINE *e); 381 OSSL_DEPRECATEDIN_3_0 int ENGINE_register_DSA(ENGINE *e); 382 OSSL_DEPRECATEDIN_3_0 void ENGINE_unregister_DSA(ENGINE *e); 384 OSSL_DEPRECATEDIN_3_0 int ENGINE_register_EC(ENGINE *e); 385 OSSL_DEPRECATEDIN_3_0 void ENGINE_unregister_EC(ENGINE *e); [all …]
|
/freebsd/usr.sbin/cron/cron/ |
H A D | cron.c | 191 entry *e; local 194 for (e = u->crontab; e != NULL; e = e->next) { 195 if (e->flags & WHEN_REBOOT) { 196 job_add(e, u); 198 if (e->flags & INTERVAL) { 199 e->lastexit = TargetTime; 220 entry *e; local 244 for (e = u->crontab; e != NULL; e = e->next) { 245 e->flags &= ~NOT_UNTIL; 246 if ( e->lastrun >= TargetTime ) [all …]
|
/freebsd/usr.sbin/cron/lib/ |
H A D | entry.c | 75 free_entry(entry *e) in free_entry() argument 78 if (e->class != NULL) in free_entry() 79 free(e->class); in free_entry() 81 if (e->cmd != NULL) in free_entry() 82 free(e->cmd); in free_entry() 83 if (e->envp != NULL) in free_entry() 84 env_free(e->envp); in free_entry() 85 free(e); in free_entry() 110 entry *e; in load_entry() local 130 e = (entry *) calloc(sizeof(entry), sizeof(char)); in load_entry() [all …]
|