/external/rust/crates/quiche/deps/boringssl/src/crypto/stack/ |
D | stack.c | 99 size_t sk_num(const _STACK *sk) { in sk_num() argument 100 if (sk == NULL) { in sk_num() 103 return sk->num; in sk_num() 106 void sk_zero(_STACK *sk) { in sk_zero() argument 107 if (sk == NULL || sk->num == 0) { in sk_zero() 110 OPENSSL_memset(sk->data, 0, sizeof(void*) * sk->num); in sk_zero() 111 sk->num = 0; in sk_zero() 112 sk->sorted = 0; in sk_zero() 115 void *sk_value(const _STACK *sk, size_t i) { in sk_value() argument 116 if (!sk || i >= sk->num) { in sk_value() [all …]
|
D | stack_test.cc | 51 void operator()(STACK_OF(TEST_INT) *sk) const { sk_TEST_INT_free(sk); } in operator ()() 60 static void ExpectStackEquals(const STACK_OF(TEST_INT) *sk, in ExpectStackEquals() argument 62 EXPECT_EQ(vec.size(), sk_TEST_INT_num(sk)); in ExpectStackEquals() 65 const TEST_INT *obj = sk_TEST_INT_value(sk, i); in ExpectStackEquals() 77 EXPECT_FALSE(sk_TEST_INT_value(sk, vec.size())); in ExpectStackEquals() 78 EXPECT_FALSE(sk_TEST_INT_value(sk, vec.size() + 1)); in ExpectStackEquals() 82 bssl::UniquePtr<STACK_OF(TEST_INT)> sk(sk_TEST_INT_new_null()); in TEST() local 83 ASSERT_TRUE(sk); in TEST() 86 ExpectStackEquals(sk.get(), {}); in TEST() 89 EXPECT_FALSE(sk_TEST_INT_pop(sk.get())); in TEST() [all …]
|
/external/boringssl/src/crypto/stack/ |
D | stack.c | 96 size_t sk_num(const _STACK *sk) { in sk_num() argument 97 if (sk == NULL) { in sk_num() 100 return sk->num; in sk_num() 103 void sk_zero(_STACK *sk) { in sk_zero() argument 104 if (sk == NULL || sk->num == 0) { in sk_zero() 107 OPENSSL_memset(sk->data, 0, sizeof(void*) * sk->num); in sk_zero() 108 sk->num = 0; in sk_zero() 109 sk->sorted = 0; in sk_zero() 112 void *sk_value(const _STACK *sk, size_t i) { in sk_value() argument 113 if (!sk || i >= sk->num) { in sk_value() [all …]
|
D | stack_test.cc | 51 void operator()(STACK_OF(TEST_INT) *sk) const { sk_TEST_INT_free(sk); } in operator ()() 60 static void ExpectStackEquals(const STACK_OF(TEST_INT) *sk, in ExpectStackEquals() argument 62 EXPECT_EQ(vec.size(), sk_TEST_INT_num(sk)); in ExpectStackEquals() 65 const TEST_INT *obj = sk_TEST_INT_value(sk, i); in ExpectStackEquals() 77 EXPECT_FALSE(sk_TEST_INT_value(sk, vec.size())); in ExpectStackEquals() 78 EXPECT_FALSE(sk_TEST_INT_value(sk, vec.size() + 1)); in ExpectStackEquals() 82 bssl::UniquePtr<STACK_OF(TEST_INT)> sk(sk_TEST_INT_new_null()); in TEST() local 83 ASSERT_TRUE(sk); in TEST() 86 ExpectStackEquals(sk.get(), {}); in TEST() 89 EXPECT_FALSE(sk_TEST_INT_pop(sk.get())); in TEST() [all …]
|
/external/libnl/lib/ |
D | socket.c | 183 struct nl_sock *sk; in __alloc_socket() local 185 sk = calloc(1, sizeof(*sk)); in __alloc_socket() 186 if (!sk) in __alloc_socket() 189 sk->s_fd = -1; in __alloc_socket() 190 sk->s_cb = nl_cb_get(cb); in __alloc_socket() 191 sk->s_local.nl_family = AF_NETLINK; in __alloc_socket() 192 sk->s_peer.nl_family = AF_NETLINK; in __alloc_socket() 193 sk->s_seq_expect = sk->s_seq_next = time(NULL); in __alloc_socket() 196 sk->s_flags = NL_OWN_PORT; in __alloc_socket() 198 return sk; in __alloc_socket() [all …]
|
D | nl.c | 104 int nl_connect(struct nl_sock *sk, int protocol) in nl_connect() argument 116 if (sk->s_fd != -1) in nl_connect() 119 sk->s_fd = socket(AF_NETLINK, SOCK_RAW | flags, protocol); in nl_connect() 120 if (sk->s_fd < 0) { in nl_connect() 122 NL_DBG(4, "nl_connect(%p): socket() failed with %d (%s)\n", sk, errsv, in nl_connect() 128 err = nl_socket_set_buffer_size(sk, 0, 0); in nl_connect() 132 if (_nl_socket_is_local_port_unspecified (sk)) { in nl_connect() 141 _nl_socket_set_local_port_no_release (sk, 0); in nl_connect() 145 port = _nl_socket_set_local_port_no_release(sk, 1); in nl_connect() 149 err = bind(sk->s_fd, (struct sockaddr*) &sk->s_local, in nl_connect() [all …]
|
/external/boringssl/src/include/openssl/ |
D | stack.h | 141 OPENSSL_EXPORT size_t sk_num(const _STACK *sk); 145 OPENSSL_EXPORT void sk_zero(_STACK *sk); 149 OPENSSL_EXPORT void *sk_value(const _STACK *sk, size_t i); 153 OPENSSL_EXPORT void *sk_set(_STACK *sk, size_t i, void *p); 157 OPENSSL_EXPORT void sk_free(_STACK *sk); 163 OPENSSL_EXPORT void sk_pop_free_ex(_STACK *sk, 171 OPENSSL_EXPORT size_t sk_insert(_STACK *sk, void *p, size_t where); 176 OPENSSL_EXPORT void *sk_delete(_STACK *sk, size_t where); 181 OPENSSL_EXPORT void *sk_delete_ptr(_STACK *sk, const void *p); 194 OPENSSL_EXPORT int sk_find(const _STACK *sk, size_t *out_index, const void *p, [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/ |
D | stack.h | 141 OPENSSL_EXPORT size_t sk_num(const _STACK *sk); 145 OPENSSL_EXPORT void sk_zero(_STACK *sk); 149 OPENSSL_EXPORT void *sk_value(const _STACK *sk, size_t i); 153 OPENSSL_EXPORT void *sk_set(_STACK *sk, size_t i, void *p); 157 OPENSSL_EXPORT void sk_free(_STACK *sk); 163 OPENSSL_EXPORT void sk_pop_free_ex(_STACK *sk, 171 OPENSSL_EXPORT size_t sk_insert(_STACK *sk, void *p, size_t where); 176 OPENSSL_EXPORT void *sk_delete(_STACK *sk, size_t where); 181 OPENSSL_EXPORT void *sk_delete_ptr(_STACK *sk, const void *p); 194 OPENSSL_EXPORT int sk_find(const _STACK *sk, size_t *out_index, const void *p, [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | test_sk_lookup_kern.c | 63 struct bpf_sock *sk; in bpf_sk_lookup_test0() local 75 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test0() 76 if (sk) in bpf_sk_lookup_test0() 77 bpf_sk_release(sk); in bpf_sk_lookup_test0() 78 return sk ? TC_ACT_OK : TC_ACT_UNSPEC; in bpf_sk_lookup_test0() 85 struct bpf_sock *sk; in bpf_sk_lookup_test1() local 87 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test1() 88 if (sk) in bpf_sk_lookup_test1() 89 bpf_sk_release(sk); in bpf_sk_lookup_test1() 97 struct bpf_sock *sk; in bpf_sk_lookup_uaf() local [all …]
|
D | test_sock_fields_kern.c | 147 struct bpf_sock *sk, *sk_ret; in egress_read_sock_fields() local 152 sk = skb->sk; in egress_read_sock_fields() 153 if (!sk || sk->state == 10) in egress_read_sock_fields() 156 sk = bpf_sk_fullsock(sk); in egress_read_sock_fields() 157 if (!sk || sk->family != AF_INET6 || sk->protocol != IPPROTO_TCP || in egress_read_sock_fields() 158 !is_loopback6(sk->src_ip6)) in egress_read_sock_fields() 161 tp = bpf_tcp_sock(sk); in egress_read_sock_fields() 170 if (sk->src_port == bpf_ntohs(srv_sa6->sin6_port)) in egress_read_sock_fields() 172 else if (sk->src_port == bpf_ntohs(cli_sa6->sin6_port)) in egress_read_sock_fields() 182 skcpy(sk_ret, sk); in egress_read_sock_fields() [all …]
|
D | test_tcp_estats.c | 82 struct sock sk; member 83 #define inet_daddr sk.__sk_common.skc_daddr 84 #define inet_dport sk.__sk_common.skc_dport 93 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk() argument 95 return (struct inet_sock *)sk; in inet_sk() 212 struct sock *sk) in tcp_estats_conn_id_init() argument 214 conn_id->localport = _(inet_sk(sk)->inet_sport); in tcp_estats_conn_id_init() 215 conn_id->remport = _(inet_sk(sk)->inet_dport); in tcp_estats_conn_id_init() 217 if (_(sk->sk_family) == AF_INET6) in tcp_estats_conn_id_init() 219 sk->sk_v6_rcv_saddr.s6_addr32, in tcp_estats_conn_id_init() [all …]
|
D | test_tcp_check_syncookie_kern.c | 26 static __always_inline __s64 gen_syncookie(void *data_end, struct bpf_sock *sk, in gen_syncookie() argument 40 return bpf_tcp_gen_syncookie(sk, iph, ip_size, tcph, thlen); in gen_syncookie() 49 struct bpf_sock *sk; in check_syncookie() local 82 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv4), in check_syncookie() 84 if (!sk) in check_syncookie() 87 if (sk->state != BPF_TCP_LISTEN) in check_syncookie() 90 seq_mss = gen_syncookie(data_end, sk, ipv4h, sizeof(*ipv4h), in check_syncookie() 93 ret = bpf_tcp_check_syncookie(sk, ipv4h, sizeof(*ipv4h), in check_syncookie() 114 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv6), in check_syncookie() 116 if (!sk) in check_syncookie() [all …]
|
D | connect6_prog.c | 34 struct bpf_sock *sk; in connect_v6_prog() local 50 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog() 53 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog() 56 if (!sk) in connect_v6_prog() 59 if (sk->src_ip6[0] != tuple.ipv6.daddr[0] || in connect_v6_prog() 60 sk->src_ip6[1] != tuple.ipv6.daddr[1] || in connect_v6_prog() 61 sk->src_ip6[2] != tuple.ipv6.daddr[2] || in connect_v6_prog() 62 sk->src_ip6[3] != tuple.ipv6.daddr[3] || in connect_v6_prog() 63 sk->src_port != DST_REWRITE_PORT6) { in connect_v6_prog() 64 bpf_sk_release(sk); in connect_v6_prog() [all …]
|
D | connect4_prog.c | 26 struct bpf_sock *sk; in connect_v4_prog() local 38 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog() 41 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog() 44 if (!sk) in connect_v4_prog() 47 if (sk->src_ip4 != tuple.ipv4.daddr || in connect_v4_prog() 48 sk->src_port != DST_REWRITE_PORT4) { in connect_v4_prog() 49 bpf_sk_release(sk); in connect_v4_prog() 53 bpf_sk_release(sk); in connect_v4_prog()
|
/external/ltp/utils/sctp/testlib/ |
D | sctputil.h | 135 int sk = socket(domain, type, protocol); in test_socket() local 136 if (-1 == sk) in test_socket() 138 return sk; in test_socket() 141 static inline int test_bind(int sk, struct sockaddr *addr, socklen_t addrlen) in test_bind() argument 143 int error = bind(sk, addr, addrlen); in test_bind() 149 static inline int test_bindx_add(int sk, struct sockaddr *addr, int count) in test_bindx_add() argument 151 int error = sctp_bindx(sk, addr, count, SCTP_BINDX_ADD_ADDR); in test_bindx_add() 157 static inline int test_listen(int sk, int backlog) in test_listen() argument 159 int error = listen(sk, backlog); in test_listen() 165 static inline int test_connect(int sk, struct sockaddr *addr, socklen_t addrlen) in test_connect() argument [all …]
|
/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_socket_bind_listen.c | 85 int sk,pf_class; in main() local 102 sk = socket(-1, SOCK_STREAM, IPPROTO_SCTP); in main() 103 if (sk != -1 || errno != EAFNOSUPPORT) in main() 110 sk = socket(pf_class, -1, IPPROTO_SCTP); in main() 111 if (sk != -1 || errno != EINVAL) in main() 118 sk = socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 119 if (sk < 0) in main() 126 error = bind(sk, (struct sockaddr *)-1, sizeof(struct sockaddr_in)); in main() 138 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)-2); in main() 165 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main() [all …]
|
/external/e2fsprogs/misc/ |
D | findsuper.c | 102 #define WHY(fmt, arg...) { printf("\r%Ld: " fmt, sk, ##arg) ; continue; } 118 loff_t sk=0, skl=0; in main() local 166 sk = skl = strtoll(argv[optind], &s, 0) << 10; in main() 174 if (sk < 0) { in main() 175 fprintf(stderr, _("startkb should be positive, not %llu\n"),sk); in main() 186 printf(_("starting at %llu, with %u byte increments\n"), sk, skiprate); in main() 191 for (; lseek64(fd, sk, SEEK_SET) != -1 && in main() 192 read(fd, &ext2, 512) == 512; sk += skiprate) { in main() 197 if (sk && !(sk & (interval - 1))) { in main() 206 printf("\r%11Lu: %8LukB/s @ %s", sk, in main() [all …]
|
/external/libnl/tests/ |
D | test-create-bridge.c | 10 static int create_bridge(struct nl_sock *sk, struct nl_cache *link_cache, const char *name) { in create_bridge() argument 21 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in create_bridge() 33 struct nl_sock *sk; in main() local 37 sk = nl_socket_alloc(); in main() 38 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main() 43 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main() 48 if ((err = create_bridge(sk, link_cache, TEST_BRIDGE_NAME)) < 0) { in main() 53 nl_cache_refill(sk, link_cache); in main() 62 if ((err = rtnl_link_enslave(sk, link, ltap)) < 0) { in main() 73 nl_cache_refill(sk, link_cache); in main() [all …]
|
/external/boringssl/src/crypto/x509/ |
D | x509_v3.c | 83 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, in X509v3_get_ext_by_OBJ() argument 89 if (sk == NULL) in X509v3_get_ext_by_OBJ() 94 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ() 96 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_OBJ() 103 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument 109 if (sk == NULL) in X509v3_get_ext_by_critical() 114 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical() 116 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_critical() 146 STACK_OF(X509_EXTENSION) *sk = NULL; in STACK_OF() 154 if ((sk = sk_X509_EXTENSION_new_null()) == NULL) in STACK_OF() [all …]
|
D | x509name.c | 121 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_get_index_by_OBJ() 127 sk = name->entries; in X509_NAME_get_index_by_OBJ() 128 n = sk_X509_NAME_ENTRY_num(sk); in X509_NAME_get_index_by_OBJ() 130 ne = sk_X509_NAME_ENTRY_value(sk, lastpos); in X509_NAME_get_index_by_OBJ() 150 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_delete_entry() 155 sk = name->entries; in X509_NAME_delete_entry() 156 ret = sk_X509_NAME_ENTRY_delete(sk, loc); in X509_NAME_delete_entry() 157 n = sk_X509_NAME_ENTRY_num(sk); in X509_NAME_delete_entry() 164 set_prev = (sk_X509_NAME_ENTRY_value(sk, loc - 1))->set; in X509_NAME_delete_entry() 167 set_next = sk_X509_NAME_ENTRY_value(sk, loc)->set; in X509_NAME_delete_entry() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/x509/ |
D | x509_v3.c | 83 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, in X509v3_get_ext_by_OBJ() argument 89 if (sk == NULL) in X509v3_get_ext_by_OBJ() 94 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ() 96 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_OBJ() 103 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument 109 if (sk == NULL) in X509v3_get_ext_by_critical() 114 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical() 116 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_critical() 146 STACK_OF(X509_EXTENSION) *sk = NULL; in STACK_OF() 154 if ((sk = sk_X509_EXTENSION_new_null()) == NULL) in STACK_OF() [all …]
|
D | x509name.c | 120 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_get_index_by_OBJ() 126 sk = name->entries; in X509_NAME_get_index_by_OBJ() 127 n = sk_X509_NAME_ENTRY_num(sk); in X509_NAME_get_index_by_OBJ() 129 ne = sk_X509_NAME_ENTRY_value(sk, lastpos); in X509_NAME_get_index_by_OBJ() 149 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_delete_entry() 154 sk = name->entries; in X509_NAME_delete_entry() 155 ret = sk_X509_NAME_ENTRY_delete(sk, loc); in X509_NAME_delete_entry() 156 n = sk_X509_NAME_ENTRY_num(sk); in X509_NAME_delete_entry() 163 set_prev = (sk_X509_NAME_ENTRY_value(sk, loc - 1))->set; in X509_NAME_delete_entry() 166 set_next = sk_X509_NAME_ENTRY_value(sk, loc)->set; in X509_NAME_delete_entry() [all …]
|
/external/boringssl/src/crypto/ |
D | ex_data.c | 171 if (ad->sk == NULL) { in CRYPTO_set_ex_data() 172 ad->sk = sk_void_new_null(); in CRYPTO_set_ex_data() 173 if (ad->sk == NULL) { in CRYPTO_set_ex_data() 179 n = sk_void_num(ad->sk); in CRYPTO_set_ex_data() 183 if (!sk_void_push(ad->sk, NULL)) { in CRYPTO_set_ex_data() 189 sk_void_set(ad->sk, index, val); in CRYPTO_set_ex_data() 194 if (ad->sk == NULL || idx < 0 || (size_t)idx >= sk_void_num(ad->sk)) { in CRYPTO_get_ex_data() 197 return sk_void_value(ad->sk, idx); in CRYPTO_get_ex_data() 229 ad->sk = NULL; in CRYPTO_new_ex_data() 234 if (ad->sk == NULL) { in CRYPTO_free_ex_data() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/ |
D | ex_data.c | 171 if (ad->sk == NULL) { in CRYPTO_set_ex_data() 172 ad->sk = sk_void_new_null(); in CRYPTO_set_ex_data() 173 if (ad->sk == NULL) { in CRYPTO_set_ex_data() 179 n = sk_void_num(ad->sk); in CRYPTO_set_ex_data() 183 if (!sk_void_push(ad->sk, NULL)) { in CRYPTO_set_ex_data() 189 sk_void_set(ad->sk, index, val); in CRYPTO_set_ex_data() 194 if (ad->sk == NULL || idx < 0 || (size_t)idx >= sk_void_num(ad->sk)) { in CRYPTO_get_ex_data() 197 return sk_void_value(ad->sk, idx); in CRYPTO_get_ex_data() 229 ad->sk = NULL; in CRYPTO_new_ex_data() 234 if (ad->sk == NULL) { in CRYPTO_free_ex_data() [all …]
|
/external/skia/site/docs/user/modules/ |
D | skottie.md | 24 …<skottie-inline-sk src="https://skottie.skia.org/_/j/e6741dda67629da1f80c254dad3df865" width=200 h… 27 …<skottie-inline-sk src="https://skottie.skia.org/_/j/ffea72cf6be48fa061671c124ed7789c" width=200 h… 30 …<skottie-inline-sk src="https://skottie.skia.org/_/j/00e850cdbed7304985eaefe98a4e8a9c" width=200 h… 33 …<skottie-inline-sk src="https://skottie.skia.org/_/j/e1aca009d5ebec9bd122b87b018bb673" width=200 h… 36 …<skottie-inline-sk src="https://skottie.skia.org/_/j/821fd79dd7437b97ba891e7a00970a06" width=200 h… 39 …<skottie-inline-sk src="https://skottie.skia.org/_/j/ad63f250084685c96edd9b52ae2f436b" width=200 h… 42 …<skottie-inline-sk src="https://skottie.skia.org/_/j/40f78ddc751c16348a08e1d61d3e78b1" width=200 h… 45 …<skottie-inline-sk src="https://skottie.skia.org/_/j/fc42db7c75741437b5cb0e90b3febc65" width=200 h… 48 …<skottie-inline-sk src="https://skottie.skia.org/_/j/c16eee287f2cea44102b6670c66e60ab" width=200 h…
|