Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 25 of 972) sorted by relevance

12345678910>>...39

/third_party/libnl/lib/
Dsocket.c183 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 …]
Dnl.c104 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 …]
/third_party/openssl/test/
Dcipherbytes_test.c29 STACK_OF(SSL_CIPHER) *sk = NULL, *scsv = NULL; in test_empty()
33 if (!TEST_int_eq(SSL_bytes_to_cipher_list(s, bytes, 0, 0, &sk, &scsv), 0) in test_empty()
34 || !TEST_ptr_null(sk) in test_empty()
40 sk_SSL_CIPHER_free(sk); in test_empty()
47 STACK_OF(SSL_CIPHER) *sk, *scsv; in test_unsupported()
53 0, &sk, &scsv)) in test_unsupported()
54 || !TEST_ptr(sk) in test_unsupported()
55 || !TEST_int_eq(sk_SSL_CIPHER_num(sk), 1) in test_unsupported()
58 || !TEST_str_eq(SSL_CIPHER_get_name(sk_SSL_CIPHER_value(sk, 0)), in test_unsupported()
64 sk_SSL_CIPHER_free(sk); in test_unsupported()
[all …]
/third_party/openssl/include/openssl/
Dsafestack.h27 static ossl_unused ossl_inline int sk_##t1##_num(const STACK_OF(t1) *sk) \
29 return OPENSSL_sk_num((const OPENSSL_STACK *)sk); \
31 static ossl_unused ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1) *sk, int idx) \
33 return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); \
47 static ossl_unused ossl_inline int sk_##t1##_reserve(STACK_OF(t1) *sk, int n) \
49 return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); \
51 static ossl_unused ossl_inline void sk_##t1##_free(STACK_OF(t1) *sk) \
53 OPENSSL_sk_free((OPENSSL_STACK *)sk); \
55 static ossl_unused ossl_inline void sk_##t1##_zero(STACK_OF(t1) *sk) \
57 OPENSSL_sk_zero((OPENSSL_STACK *)sk); \
[all …]
/third_party/ltp/utils/sctp/testlib/
Dsctputil.h135 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 …]
/third_party/ltp/utils/sctp/func_tests/
Dtest_1_to_1_socket_bind_listen.c86 int sk,pf_class; in main() local
106 sk = socket(-1, SOCK_STREAM, IPPROTO_SCTP); in main()
107 if (sk != -1 || errno != EAFNOSUPPORT) in main()
114 sk = socket(pf_class, -1, IPPROTO_SCTP); in main()
115 if (sk != -1 || errno != EINVAL) in main()
122 sk = socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
123 if (sk < 0) in main()
130 error = bind(sk, (struct sockaddr *)-1, sizeof(struct sockaddr_in)); in main()
142 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)-2); in main()
169 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main()
[all …]
/third_party/openssl/doc/man3/
DDEFINE_STACK_OF.pod31 int sk_TYPE_num(const STACK_OF(TYPE) *sk);
32 TYPE *sk_TYPE_value(const STACK_OF(TYPE) *sk, int idx);
35 int sk_TYPE_reserve(STACK_OF(TYPE) *sk, int n);
36 void sk_TYPE_free(const STACK_OF(TYPE) *sk);
37 void sk_TYPE_zero(const STACK_OF(TYPE) *sk);
38 TYPE *sk_TYPE_delete(STACK_OF(TYPE) *sk, int i);
39 TYPE *sk_TYPE_delete_ptr(STACK_OF(TYPE) *sk, TYPE *ptr);
40 int sk_TYPE_push(STACK_OF(TYPE) *sk, const TYPE *ptr);
41 int sk_TYPE_unshift(STACK_OF(TYPE) *sk, const TYPE *ptr);
42 TYPE *sk_TYPE_pop(STACK_OF(TYPE) *sk);
[all …]
/third_party/e2fsprogs/misc/
Dfindsuper.c102 #define WHY(fmt, arg...) { printf("\r%Ld: " fmt, sk, ##arg) ; continue; }
118 ext2_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 …]
/third_party/libnl/tests/
Dtest-create-bridge.c10 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 …]
Dtest-loopback-up-down.c6 struct nl_sock *sk; in main() local
11 sk = nl_socket_alloc(); in main()
12 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main()
17 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &cache)) < 0) { in main()
38 if ((err = rtnl_link_change(sk, link, change, 0)) < 0) { in main()
44 if ((err = rtnl_link_change(sk, link, change, 0)) < 0) { in main()
52 nl_socket_free(sk); in main()
Dtest-create-veth.c10 struct nl_sock *sk; in main() local
14 sk = nl_socket_alloc(); in main()
15 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main()
21 rtnl_link_veth_add(sk, "veth2", "veth3", getpid()); in main()
33 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in main()
41 nl_close(sk); in main()
Dtest-create-vlan.c11 struct nl_sock *sk; in main() local
14 sk = nl_socket_alloc(); in main()
15 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main()
20 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main()
36 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in main()
42 nl_close(sk); in main()
Dtest-create-ipvlan.c11 struct nl_sock *sk; in main() local
14 sk = nl_socket_alloc(); in main()
15 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main()
20 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main()
38 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in main()
44 nl_close(sk); in main()
Dtest-create-macsec.c13 struct nl_sock *sk; in main() local
16 sk = nl_socket_alloc(); in main()
17 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main()
22 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main()
42 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in main()
48 nl_close(sk); in main()
Dtest-create-xfrmi.c8 struct nl_sock *sk; in main() local
11 sk = nl_socket_alloc(); in main()
12 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main()
17 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache); in main()
40 err = rtnl_link_add(sk, link, NLM_F_CREATE); in main()
47 nl_close(sk); in main()
/third_party/openssl/crypto/x509/
Dx509_v3.c38 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, in X509v3_get_ext_by_OBJ() argument
44 if (sk == NULL) in X509v3_get_ext_by_OBJ()
49 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ()
51 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_OBJ()
58 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument
64 if (sk == NULL) in X509v3_get_ext_by_critical()
69 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical()
71 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_critical()
101 STACK_OF(X509_EXTENSION) *sk = NULL; in STACK_OF()
109 if ((sk = sk_X509_EXTENSION_new_null()) == NULL) in STACK_OF()
[all …]
Dx509name.c71 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_get_index_by_OBJ()
77 sk = name->entries; in X509_NAME_get_index_by_OBJ()
78 n = sk_X509_NAME_ENTRY_num(sk); in X509_NAME_get_index_by_OBJ()
80 ne = sk_X509_NAME_ENTRY_value(sk, lastpos); in X509_NAME_get_index_by_OBJ()
100 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_delete_entry()
106 sk = name->entries; in X509_NAME_delete_entry()
107 ret = sk_X509_NAME_ENTRY_delete(sk, loc); in X509_NAME_delete_entry()
108 n = sk_X509_NAME_ENTRY_num(sk); in X509_NAME_delete_entry()
115 set_prev = (sk_X509_NAME_ENTRY_value(sk, loc - 1))->set; in X509_NAME_delete_entry()
118 set_next = sk_X509_NAME_ENTRY_value(sk, loc)->set; in X509_NAME_delete_entry()
[all …]
/third_party/ltp/testcases/kernel/pty/
Dpty04.c95 static int ptmx, pts, sk, mtu, no_check; variable
253 sk = SAFE_SOCKET(PF_PACKET, SOCK_RAW, 0); in open_netdev()
256 if (ioctl(sk, SIOCSIFMTU, &ifreq)) in open_netdev()
258 SAFE_IOCTL(sk, SIOCGIFMTU, &ifreq); in open_netdev()
262 SAFE_IOCTL(sk, SIOCGIFFLAGS, &ifreq); in open_netdev()
264 SAFE_IOCTL(sk, SIOCSIFFLAGS, &ifreq); in open_netdev()
265 SAFE_IOCTL(sk, SIOCGIFFLAGS, &ifreq); in open_netdev()
270 SAFE_IOCTL(sk, SIOCGIFINDEX, &ifreq); in open_netdev()
275 SAFE_BIND(sk, (struct sockaddr *)&lla, sizeof(struct sockaddr_ll)); in open_netdev()
277 tst_res(TINFO, "Bound netdev %d to socket %d", ifreq.ifr_ifindex, sk); in open_netdev()
[all …]
/third_party/skia/site/docs/user/modules/
Dskottie.md24 …<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…
/third_party/flutter/skia/site/user/modules/
Dskottie.md21 …<skottie-inline-sk src="https://skottie.skia.org/_/j/e6741dda67629da1f80c254dad3df865" width=200 h…
24 …<skottie-inline-sk src="https://skottie.skia.org/_/j/ffea72cf6be48fa061671c124ed7789c" width=200 h…
27 …<skottie-inline-sk src="https://skottie.skia.org/_/j/00e850cdbed7304985eaefe98a4e8a9c" width=200 h…
30 …<skottie-inline-sk src="https://skottie.skia.org/_/j/e1aca009d5ebec9bd122b87b018bb673" width=200 h…
33 …<skottie-inline-sk src="https://skottie.skia.org/_/j/821fd79dd7437b97ba891e7a00970a06" width=200 h…
36 …<skottie-inline-sk src="https://skottie.skia.org/_/j/ad63f250084685c96edd9b52ae2f436b" width=200 h…
39 …<skottie-inline-sk src="https://skottie.skia.org/_/j/40f78ddc751c16348a08e1d61d3e78b1" width=200 h…
42 …<skottie-inline-sk src="https://skottie.skia.org/_/j/fc42db7c75741437b5cb0e90b3febc65" width=200 h…
/third_party/mbedtls/library/
Ddes.c474 mbedtls_des_setkey( ctx->sk, key ); in mbedtls_des_setkey_enc()
486 mbedtls_des_setkey( ctx->sk, key ); in mbedtls_des_setkey_dec()
490 SWAP( ctx->sk[i ], ctx->sk[30 - i] ); in mbedtls_des_setkey_dec()
491 SWAP( ctx->sk[i + 1], ctx->sk[31 - i] ); in mbedtls_des_setkey_dec()
528 uint32_t sk[96]; in mbedtls_des3_set2key_enc() local
530 des3_set2key( ctx->sk, sk, key ); in mbedtls_des3_set2key_enc()
531 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set2key_enc()
542 uint32_t sk[96]; in mbedtls_des3_set2key_dec() local
544 des3_set2key( sk, ctx->sk, key ); in mbedtls_des3_set2key_dec()
545 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set2key_dec()
[all …]
/third_party/openssl/crypto/stack/
Dstack.c34 OPENSSL_sk_compfunc OPENSSL_sk_set_cmp_func(OPENSSL_STACK *sk, OPENSSL_sk_compfunc c) in OPENSSL_sk_set_cmp_func() argument
36 OPENSSL_sk_compfunc old = sk->comp; in OPENSSL_sk_set_cmp_func()
38 if (sk->comp != c) in OPENSSL_sk_set_cmp_func()
39 sk->sorted = 0; in OPENSSL_sk_set_cmp_func()
40 sk->comp = c; in OPENSSL_sk_set_cmp_func()
45 OPENSSL_STACK *OPENSSL_sk_dup(const OPENSSL_STACK *sk) in OPENSSL_sk_dup() argument
55 *ret = *sk; in OPENSSL_sk_dup()
57 if (sk->num == 0) { in OPENSSL_sk_dup()
64 if ((ret->data = OPENSSL_malloc(sizeof(*ret->data) * sk->num_alloc)) == NULL) in OPENSSL_sk_dup()
66 memcpy(ret->data, sk->data, sizeof(void *) * sk->num); in OPENSSL_sk_dup()
[all …]
/third_party/typescript/tests/baselines/reference/
DspreadMethods.js14 let sk = { ...k }; variable
16 sk.p;
17 sk.m(); // error
18 sk.g; // error
53 let sk = { ...k };
55 sk.p;
56 sk.m(); // error
57 sk.g; // error
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt02.c26 static int sk; variable
36 if (sk > 0) in cleanup()
37 SAFE_CLOSE(sk); in cleanup()
53 sk = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in create_skbuf()
54 TEST(setsockopt(sk, SOL_PACKET, PACKET_VERSION, &ver, sizeof(ver))); in create_skbuf()
60 return setsockopt(sk, SOL_PACKET, PACKET_RX_RING, &req, sizeof(req)); in create_skbuf()
90 SAFE_CLOSE(sk); in run()
/third_party/libnl/lib/route/
Droute.c81 int rtnl_route_alloc_cache(struct nl_sock *sk, int family, int flags, in rtnl_route_alloc_cache() argument
93 if (sk && (err = nl_cache_refill(sk, cache)) < 0) { in rtnl_route_alloc_cache()
134 int rtnl_route_add(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_add() argument
142 err = nl_send_auto_complete(sk, msg); in rtnl_route_add()
147 return wait_for_ack(sk); in rtnl_route_add()
156 int rtnl_route_delete(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_delete() argument
164 err = nl_send_auto_complete(sk, msg); in rtnl_route_delete()
169 return wait_for_ack(sk); in rtnl_route_delete()

12345678910>>...39