Home
last modified time | relevance | path

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

12345678910>>...22

/external/libnl/lib/
Dsocket.c92 struct nl_sock *sk; in __alloc_socket() local
94 sk = calloc(1, sizeof(*sk)); in __alloc_socket()
95 if (!sk) in __alloc_socket()
98 sk->s_fd = -1; in __alloc_socket()
99 sk->s_cb = cb; in __alloc_socket()
100 sk->s_local.nl_family = AF_NETLINK; in __alloc_socket()
101 sk->s_peer.nl_family = AF_NETLINK; in __alloc_socket()
102 sk->s_seq_expect = sk->s_seq_next = time(0); in __alloc_socket()
103 sk->s_local.nl_pid = generate_local_port(); in __alloc_socket()
104 if (sk->s_local.nl_pid == UINT_MAX) { in __alloc_socket()
[all …]
Dnl.c106 int nl_connect(struct nl_sock *sk, int protocol) in nl_connect() argument
111 sk->s_fd = socket(AF_NETLINK, SOCK_RAW, protocol); in nl_connect()
112 if (sk->s_fd < 0) { in nl_connect()
117 if (!(sk->s_flags & NL_SOCK_BUFSIZE_SET)) { in nl_connect()
118 err = nl_socket_set_buffer_size(sk, 0, 0); in nl_connect()
123 err = bind(sk->s_fd, (struct sockaddr*) &sk->s_local, in nl_connect()
124 sizeof(sk->s_local)); in nl_connect()
130 addrlen = sizeof(sk->s_local); in nl_connect()
131 err = getsockname(sk->s_fd, (struct sockaddr *) &sk->s_local, in nl_connect()
138 if (addrlen != sizeof(sk->s_local)) { in nl_connect()
[all …]
/external/e2fsprogs/misc/
Dfindsuper.c101 #define WHY(fmt, arg...) { printf("\r%Ld: " fmt, sk, ##arg) ; continue; }
117 loff_t sk=0, skl=0; in main() local
165 sk = skl = strtoll(argv[optind], &s, 0) << 10; in main()
173 if (sk < 0) { in main()
174 fprintf(stderr, _("startkb should be positive, not %llu\n"),sk); in main()
185 printf(_("starting at %llu, with %u byte increments\n"), sk, skiprate); in main()
190 for (; lseek64(fd, sk, SEEK_SET) != -1 && in main()
191 read(fd, &ext2, 512) == 512; sk += skiprate) { in main()
196 if (sk && !(sk & (interval - 1))) { in main()
205 printf("\r%11Lu: %8LukB/s @ %s", sk, in main()
[all …]
/external/openssl/crypto/x509/
Dx509_v3.c84 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, ASN1_OBJECT *obj, in X509v3_get_ext_by_OBJ() argument
90 if (sk == NULL) return(-1); in X509v3_get_ext_by_OBJ()
94 n=sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ()
97 ex=sk_X509_EXTENSION_value(sk,lastpos); in X509v3_get_ext_by_OBJ()
104 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument
110 if (sk == NULL) return(-1); in X509v3_get_ext_by_critical()
114 n=sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical()
117 ex=sk_X509_EXTENSION_value(sk,lastpos); in X509v3_get_ext_by_critical()
148 STACK_OF(X509_EXTENSION) *sk=NULL; in STACK_OF()
158 if ((sk=sk_X509_EXTENSION_new_null()) == NULL) in STACK_OF()
[all …]
Dx509name.c113 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_get_index_by_OBJ()
118 sk=name->entries; in X509_NAME_get_index_by_OBJ()
119 n=sk_X509_NAME_ENTRY_num(sk); in X509_NAME_get_index_by_OBJ()
122 ne=sk_X509_NAME_ENTRY_value(sk,lastpos); in X509_NAME_get_index_by_OBJ()
142 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_delete_entry()
147 sk=name->entries; in X509_NAME_delete_entry()
148 ret=sk_X509_NAME_ENTRY_delete(sk,loc); in X509_NAME_delete_entry()
149 n=sk_X509_NAME_ENTRY_num(sk); in X509_NAME_delete_entry()
155 set_prev=(sk_X509_NAME_ENTRY_value(sk,loc-1))->set; in X509_NAME_delete_entry()
158 set_next=sk_X509_NAME_ENTRY_value(sk,loc)->set; in X509_NAME_delete_entry()
[all …]
Dx509_lu.c235 STACK_OF(X509_LOOKUP) *sk; in X509_STORE_free()
241 sk=vfy->get_cert_methods; in X509_STORE_free()
242 for (i=0; i<sk_X509_LOOKUP_num(sk); i++) in X509_STORE_free()
244 lu=sk_X509_LOOKUP_value(sk,i); in X509_STORE_free()
248 sk_X509_LOOKUP_free(sk); in X509_STORE_free()
260 STACK_OF(X509_LOOKUP) *sk; in X509_STORE_add_lookup()
263 sk=v->get_cert_methods; in X509_STORE_add_lookup()
264 for (i=0; i<sk_X509_LOOKUP_num(sk); i++) in X509_STORE_add_lookup()
266 lu=sk_X509_LOOKUP_value(sk,i); in X509_STORE_add_lookup()
491 STACK_OF(X509) *sk; in STACK_OF()
[all …]
/external/chromium_org/third_party/openssl/openssl/crypto/x509/
Dx509_v3.c84 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, ASN1_OBJECT *obj, in X509v3_get_ext_by_OBJ() argument
90 if (sk == NULL) return(-1); in X509v3_get_ext_by_OBJ()
94 n=sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ()
97 ex=sk_X509_EXTENSION_value(sk,lastpos); in X509v3_get_ext_by_OBJ()
104 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument
110 if (sk == NULL) return(-1); in X509v3_get_ext_by_critical()
114 n=sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical()
117 ex=sk_X509_EXTENSION_value(sk,lastpos); in X509v3_get_ext_by_critical()
148 STACK_OF(X509_EXTENSION) *sk=NULL; in STACK_OF()
158 if ((sk=sk_X509_EXTENSION_new_null()) == NULL) in STACK_OF()
[all …]
Dx509name.c113 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_get_index_by_OBJ()
118 sk=name->entries; in X509_NAME_get_index_by_OBJ()
119 n=sk_X509_NAME_ENTRY_num(sk); in X509_NAME_get_index_by_OBJ()
122 ne=sk_X509_NAME_ENTRY_value(sk,lastpos); in X509_NAME_get_index_by_OBJ()
142 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_delete_entry()
147 sk=name->entries; in X509_NAME_delete_entry()
148 ret=sk_X509_NAME_ENTRY_delete(sk,loc); in X509_NAME_delete_entry()
149 n=sk_X509_NAME_ENTRY_num(sk); in X509_NAME_delete_entry()
155 set_prev=(sk_X509_NAME_ENTRY_value(sk,loc-1))->set; in X509_NAME_delete_entry()
158 set_next=sk_X509_NAME_ENTRY_value(sk,loc)->set; in X509_NAME_delete_entry()
[all …]
Dx509_lu.c235 STACK_OF(X509_LOOKUP) *sk; in X509_STORE_free()
241 sk=vfy->get_cert_methods; in X509_STORE_free()
242 for (i=0; i<sk_X509_LOOKUP_num(sk); i++) in X509_STORE_free()
244 lu=sk_X509_LOOKUP_value(sk,i); in X509_STORE_free()
248 sk_X509_LOOKUP_free(sk); in X509_STORE_free()
260 STACK_OF(X509_LOOKUP) *sk; in X509_STORE_add_lookup()
263 sk=v->get_cert_methods; in X509_STORE_add_lookup()
264 for (i=0; i<sk_X509_LOOKUP_num(sk); i++) in X509_STORE_add_lookup()
266 lu=sk_X509_LOOKUP_value(sk,i); in X509_STORE_add_lookup()
491 STACK_OF(X509) *sk; in STACK_OF()
[all …]
/external/openssl/include/openssl/
Dstack.h76 #define M_sk_num(sk) ((sk) ? (sk)->num:-1) argument
77 #define M_sk_value(sk,n) ((sk) ? (sk)->data[n] : NULL) argument
88 int sk_insert(_STACK *sk, void *data, int where);
98 int (*sk_set_cmp_func(_STACK *sk, int (*c)(const void *, const void *)))
/external/chromium_org/third_party/openssl/openssl/crypto/stack/
Dstack.h76 #define M_sk_num(sk) ((sk) ? (sk)->num:-1) argument
77 #define M_sk_value(sk,n) ((sk) ? (sk)->data[n] : NULL) argument
88 int sk_insert(_STACK *sk, void *data, int where);
98 int (*sk_set_cmp_func(_STACK *sk, int (*c)(const void *, const void *)))
Dstack.c80 int (*sk_set_cmp_func(_STACK *sk, int (*c)(const void *, const void *))) in sk_set_cmp_func() argument
83 int (*old)(const void *,const void *)=sk->comp; in sk_set_cmp_func()
85 if (sk->comp != c) in sk_set_cmp_func()
86 sk->sorted=0; in sk_set_cmp_func()
87 sk->comp=c; in sk_set_cmp_func()
92 _STACK *sk_dup(_STACK *sk) in sk_dup() argument
97 if ((ret=sk_new(sk->comp)) == NULL) goto err; in sk_dup()
99 (unsigned int)sizeof(char *)*sk->num_alloc); in sk_dup()
103 ret->num=sk->num; in sk_dup()
104 memcpy(ret->data,sk->data,sizeof(char *)*sk->num); in sk_dup()
[all …]
/external/openssl/crypto/stack/
Dstack.h76 #define M_sk_num(sk) ((sk) ? (sk)->num:-1) argument
77 #define M_sk_value(sk,n) ((sk) ? (sk)->data[n] : NULL) argument
88 int sk_insert(_STACK *sk, void *data, int where);
98 int (*sk_set_cmp_func(_STACK *sk, int (*c)(const void *, const void *)))
Dstack.c80 int (*sk_set_cmp_func(_STACK *sk, int (*c)(const void *, const void *))) in sk_set_cmp_func() argument
83 int (*old)(const void *,const void *)=sk->comp; in sk_set_cmp_func()
85 if (sk->comp != c) in sk_set_cmp_func()
86 sk->sorted=0; in sk_set_cmp_func()
87 sk->comp=c; in sk_set_cmp_func()
92 _STACK *sk_dup(_STACK *sk) in sk_dup() argument
97 if ((ret=sk_new(sk->comp)) == NULL) goto err; in sk_dup()
99 (unsigned int)sizeof(char *)*sk->num_alloc); in sk_dup()
103 ret->num=sk->num; in sk_dup()
104 memcpy(ret->data,sk->data,sizeof(char *)*sk->num); in sk_dup()
[all …]
/external/chromium_org/third_party/openssl/openssl/include/openssl/
Dstack.h76 #define M_sk_num(sk) ((sk) ? (sk)->num:-1) argument
77 #define M_sk_value(sk,n) ((sk) ? (sk)->data[n] : NULL) argument
88 int sk_insert(_STACK *sk, void *data, int where);
98 int (*sk_set_cmp_func(_STACK *sk, int (*c)(const void *, const void *)))
/external/libnl/lib/route/
Dcls.c70 static int cls_request_update(struct nl_cache *cache, struct nl_sock *sk) in cls_request_update() argument
78 return nl_send_simple(sk, RTM_GETTFILTER, NLM_F_DUMP, &tchdr, in cls_request_update()
160 int rtnl_cls_add(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_add() argument
168 err = nl_send_auto_complete(sk, msg); in rtnl_cls_add()
173 return nl_wait_for_ack(sk); in rtnl_cls_add()
207 int rtnl_cls_change(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_change() argument
215 err = nl_send_auto_complete(sk, msg); in rtnl_cls_change()
220 return nl_wait_for_ack(sk); in rtnl_cls_change()
255 int rtnl_cls_delete(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_delete() argument
263 err = nl_send_auto_complete(sk, msg); in rtnl_cls_delete()
[all …]
Dqdisc.c131 static int qdisc_request_update(struct nl_cache *c, struct nl_sock *sk) in qdisc_request_update() argument
138 return nl_send_simple(sk, RTM_GETQDISC, NLM_F_DUMP, &tchdr, in qdisc_request_update()
222 int rtnl_qdisc_add(struct nl_sock *sk, struct rtnl_qdisc *qdisc, in rtnl_qdisc_add() argument
231 err = nl_send_auto_complete(sk, msg); in rtnl_qdisc_add()
236 return wait_for_ack(sk); in rtnl_qdisc_add()
278 int rtnl_qdisc_change(struct nl_sock *sk, struct rtnl_qdisc *qdisc, in rtnl_qdisc_change() argument
287 err = nl_send_auto_complete(sk, msg); in rtnl_qdisc_change()
292 return wait_for_ack(sk); in rtnl_qdisc_change()
352 int rtnl_qdisc_delete(struct nl_sock *sk, struct rtnl_qdisc *qdisc) in rtnl_qdisc_delete() argument
360 err = nl_send_auto_complete(sk, msg); in rtnl_qdisc_delete()
[all …]
Dclass.c62 static int class_request_update(struct nl_cache *cache, struct nl_sock *sk) in class_request_update() argument
69 return nl_send_simple(sk, RTM_GETTCLASS, NLM_F_DUMP, &tchdr, in class_request_update()
144 int rtnl_class_add(struct nl_sock *sk, struct rtnl_class *class, int flags) in rtnl_class_add() argument
152 err = nl_send_auto_complete(sk, msg); in rtnl_class_add()
157 return wait_for_ack(sk); in rtnl_class_add()
198 int rtnl_class_delete(struct nl_sock *sk, struct rtnl_class *class) in rtnl_class_delete() argument
206 err = nl_send_auto_complete(sk, msg); in rtnl_class_delete()
211 return wait_for_ack(sk); in rtnl_class_delete()
232 int rtnl_class_alloc_cache(struct nl_sock *sk, int ifindex, in rtnl_class_alloc_cache() argument
244 if (sk && (err = nl_cache_refill(sk, cache)) < 0) { in rtnl_class_alloc_cache()
Droute.c75 int rtnl_route_alloc_cache(struct nl_sock *sk, int family, int flags, in rtnl_route_alloc_cache() argument
87 if (sk && (err = nl_cache_refill(sk, cache)) < 0) { in rtnl_route_alloc_cache()
128 int rtnl_route_add(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_add() argument
136 err = nl_send_auto_complete(sk, msg); in rtnl_route_add()
141 return wait_for_ack(sk); in rtnl_route_add()
150 int rtnl_route_delete(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_delete() argument
158 err = nl_send_auto_complete(sk, msg); in rtnl_route_delete()
163 return wait_for_ack(sk); in rtnl_route_delete()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKSSecretKeyEntryTest.java49 SecretKey sk = null; in testSecretKeyEntry() local
51 new KeyStore.SecretKeyEntry(sk); in testSecretKeyEntry()
62 SecretKey sk = new tmpSecretKey(); in testGetSecretKey() local
63 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testGetSecretKey()
64 assertEquals("Incorrect SecretKey", sk, ske.getSecretKey()); in testGetSecretKey()
72 SecretKey sk = new tmpSecretKey(); in testToString() local
73 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testToString()
/external/fio/
Dserver.c97 static int fio_sendv_data(int sk, struct iovec *iov, int count) in fio_sendv_data() argument
103 ret = writev(sk, iov, count); in fio_sendv_data()
136 int fio_send_data(int sk, const void *p, unsigned int len) in fio_send_data() argument
142 return fio_sendv_data(sk, &iov, 1); in fio_send_data()
145 int fio_recv_data(int sk, void *p, unsigned int len) in fio_recv_data() argument
148 int ret = recv(sk, p, len, MSG_WAITALL); in fio_recv_data()
209 struct fio_net_cmd *fio_net_recv_cmd(int sk) in fio_net_recv_cmd() argument
218 ret = fio_recv_data(sk, &cmd, sizeof(cmd)); in fio_net_recv_cmd()
262 ret = fio_recv_data(sk, pdu, cmd.pdu_len); in fio_net_recv_cmd()
404 static int fio_net_send_simple_stack_cmd(int sk, uint16_t opcode, uint64_t tag) in fio_net_send_simple_stack_cmd() argument
[all …]
/external/chromium_org/third_party/icu/source/test/cintltst/
Dccolltst.c55 static char* dumpSk(uint8_t *sourceKey, char *sk) { in dumpSk() argument
59 *sk = 0; in dumpSk()
62 sprintf(sk+2*i, "%02X", sourceKey[i]); in dumpSk()
64 return sk; in dumpSk()
123 char sk[10000]; in reportCResult() local
124 log_verbose("SortKey1: %s\n", dumpSk(sourceKey, sk)); in reportCResult()
125 log_verbose("SortKey2: %s\n", dumpSk(targetKey, sk)); in reportCResult()
/external/icu/icu4c/source/test/cintltst/
Dccolltst.c57 static char* dumpSk(uint8_t *sourceKey, char *sk) { in dumpSk() argument
61 *sk = 0; in dumpSk()
64 sprintf(sk+2*i, "%02X", sourceKey[i]); in dumpSk()
66 return sk; in dumpSk()
125 char sk[10000]; in reportCResult() local
126 log_verbose("SortKey1: %s\n", dumpSk(sourceKey, sk)); in reportCResult()
127 log_verbose("SortKey2: %s\n", dumpSk(targetKey, sk)); in reportCResult()
/external/chromium_org/third_party/openssl/openssl/crypto/conf/
Dconf_api.c248 STACK_OF(CONF_VALUE) *sk; in value_free_stack_doall()
253 sk=(STACK_OF(CONF_VALUE) *)a->value; in value_free_stack_doall()
254 for (i=sk_CONF_VALUE_num(sk)-1; i>=0; i--) in value_free_stack_doall()
256 vv=sk_CONF_VALUE_value(sk,i); in value_free_stack_doall()
261 if (sk != NULL) sk_CONF_VALUE_free(sk); in value_free_stack_doall()
269 STACK_OF(CONF_VALUE) *sk=NULL; in _CONF_new_section()
273 if ((sk=sk_CONF_VALUE_new_null()) == NULL) in _CONF_new_section()
283 v->value=(char *)sk; in _CONF_new_section()
291 if (sk != NULL) sk_CONF_VALUE_free(sk); in _CONF_new_section()
/external/openssl/crypto/conf/
Dconf_api.c251 STACK_OF(CONF_VALUE) *sk; in value_free_stack_doall()
256 sk=(STACK_OF(CONF_VALUE) *)a->value; in value_free_stack_doall()
257 for (i=sk_CONF_VALUE_num(sk)-1; i>=0; i--) in value_free_stack_doall()
259 vv=sk_CONF_VALUE_value(sk,i); in value_free_stack_doall()
264 if (sk != NULL) sk_CONF_VALUE_free(sk); in value_free_stack_doall()
272 STACK_OF(CONF_VALUE) *sk=NULL; in _CONF_new_section()
276 if ((sk=sk_CONF_VALUE_new_null()) == NULL) in _CONF_new_section()
286 v->value=(char *)sk; in _CONF_new_section()
294 if (sk != NULL) sk_CONF_VALUE_free(sk); in _CONF_new_section()

12345678910>>...22