/external/bluetooth/bluez/cups/ |
H A D | spp.c | 45 int i, sk, err, len; local 47 if ((sk = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)) < 0) { 59 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 61 close(sk); 72 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 74 close(sk); 105 err = write(sk, buf, len); 108 close(sk); 115 close(sk);
|
H A D | hcrp.c | 82 static int hcrp_credit_grant(int sk, uint16_t tid, uint32_t credit) argument 96 len = write(sk, buf, HCRP_PDU_HDR_SIZE + HCRP_CREDIT_GRANT_CP_SIZE); 100 len = read(sk, buf, sizeof(buf)); 115 static int hcrp_credit_request(int sk, uint16_t tid, uint32_t *credit) argument 126 len = write(sk, buf, HCRP_PDU_HDR_SIZE); 130 len = read(sk, buf, sizeof(buf)); 148 static int hcrp_get_lpt_status(int sk, uint16_t tid, uint8_t *lpt_status) argument 159 len = write(sk, buf, HCRP_PDU_HDR_SIZE); 163 len = read(sk, buf, sizeof(buf));
|
/external/icu4c/test/cintltst/ |
H A D | ccolltst.c | 55 static char* dumpSk(uint8_t *sourceKey, char *sk) { argument 59 *sk = 0; 62 sprintf(sk+2*i, "%02X", sourceKey[i]); 64 return sk; 123 char sk[10000]; local 124 log_verbose("SortKey1: %s\n", dumpSk(sourceKey, sk)); 125 log_verbose("SortKey2: %s\n", dumpSk(targetKey, sk));
|
/external/bluetooth/bluez/audio/ |
H A D | ipc.c | 50 int sk; local 56 sk = socket(PF_LOCAL, SOCK_STREAM, 0); 57 if (sk < 0) { 65 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 69 close(sk); 74 return sk; 77 int bt_audio_service_close(int sk) argument 79 return close(sk); 82 int bt_audio_service_get_data_fd(int sk) argument 96 ret = recvmsg(sk, [all...] |
H A D | main.c | 72 int sk; local 129 sk = g_io_channel_unix_get_fd(chan); 130 fcntl(sk, F_SETFL, 0);
|
H A D | ctl_bluetooth.c | 320 int sk; local 329 sk = bt_audio_service_open(); 330 if (sk < 0) 333 data->sock = sk;
|
/external/kernel-headers/original/linux/ |
H A D | udp.h | 55 static inline struct udp_sock *udp_sk(const struct sock *sk) argument 57 return (struct udp_sock *)sk;
|
/external/bluetooth/bluez/input/ |
H A D | server.c | 94 int sk = g_io_channel_unix_get_fd(chan); local 95 if (write(sk, &unplug, sizeof(unplug)) < 0)
|
/external/bluetooth/bluez/plugins/ |
H A D | echo.c | 69 int sk, nsk; local 71 sk = g_io_channel_unix_get_fd(chan); 76 nsk = accept(sk, (struct sockaddr *) &addr, &optlen); 95 int sk; local 97 sk = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); 98 if (sk < 0) 106 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 107 close(sk); 111 if (listen(sk, 10) < 0) { 112 close(sk); [all...] |
/external/bluetooth/bluez/test/ |
H A D | attest.c | 104 int sk; local 106 sk = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); 107 if (sk < 0) { 117 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 120 close(sk); 129 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 132 close(sk); 136 return sk;
|
H A D | scotest.c | 73 int sk; local 76 sk = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO); 77 if (sk < 0) { 88 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 100 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 110 if (getsockopt(sk, SOL_SCO, SCO_CONNINFO, &conn, &optlen) < 0) { 120 return sk; 123 close(sk); 127 static void do_listen(void (*handler)(int sk)) argument 132 int sk, ns local 211 dump_mode(int sk) argument 220 recv_mode(int sk) argument 255 int i, sk; local 294 int sk; local 311 int i, sk; local 348 int opt, sk, mode = RECV; local [all...] |
/external/e2fsprogs/misc/ |
H A D | findsuper.c | 100 #define WHY(fmt, arg...) { printf("\r%Ld: " fmt, sk, ##arg) ; continue; } 116 loff_t sk=0, skl=0; local 163 sk = skl = strtoll(argv[optind], &s, 0) << 10; 171 if (sk < 0) { 172 fprintf(stderr, _("startkb should be positive, not %Lu\n"), sk); 183 printf(_("starting at %Lu, with %u byte increments\n"), sk, skiprate); 188 for (; lseek64(fd, sk, SEEK_SET) != -1 && 189 read(fd, &ext2, 512) == 512; sk += skiprate) { 194 if (sk && !(sk [all...] |
/external/bluetooth/bluez/network/ |
H A D | common.c | 170 int bnep_connadd(int sk, uint16_t role, char *dev) argument 177 req.sock = sk; 193 int sk, err; local 195 sk = socket(AF_INET, SOCK_DGRAM, 0); 203 err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); 205 close(sk); 218 int sk, err; local 220 sk = socket(AF_INET, SOCK_DGRAM, 0); 228 err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); 230 close(sk); 244 int sk, err; local [all...] |
/external/bluetooth/bluez/src/ |
H A D | sdpd-server.c | 169 int sk, len, size; local 174 sk = g_io_channel_unix_get_fd(chan); 177 sdp_svcdb_collect_all(sk); 181 len = recv(sk, &hdr, sizeof(sdp_pdu_hdr_t), MSG_PEEK); 183 sdp_svcdb_collect_all(sk); 192 len = recv(sk, buf, size, 0); 194 sdp_svcdb_collect_all(sk); 199 handle_request(sk, buf, len);
|
/external/bluetooth/bluez/tools/ |
H A D | l2ping.c | 80 int i, sk, lost; local 95 sk = socket(PF_BLUETOOTH, SOCK_RAW, BTPROTO_L2CAP); 96 if (sk < 0) { 106 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 116 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 125 if (getsockname(sk, (struct sockaddr *) &addr, &optlen) < 0) { 156 if (send(sk, send_buf, L2CAP_CMD_HDR_SIZE + size, 0) <= 0) { 167 pf[0].fd = sk; 180 if ((err = recv(sk, recv_buf, L2CAP_CMD_HDR_SIZE + size, 0)) < 0) { 248 close(sk); [all...] |
H A D | ciptool.c | 138 int sk; local 145 if ((sk = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP)) < 0) { 154 if (bind(sk, (struct sockaddr *)&addr, sizeof(addr)) < 0) { 156 close(sk); 163 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, &size) < 0) { 165 close(sk); 173 if (setsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, sizeof(opts)) < 0) { 175 close(sk); 184 if (connect(sk, (struct sockaddr *)&addr, sizeof(addr)) < 0) { 186 close(sk); 342 int dev_id, sk; local [all...] |
/external/libnl-headers/ |
H A D | netlink-local.h | 178 static inline int wait_for_ack(struct nl_sock *sk) argument 180 if (sk->s_flags & NL_NO_AUTO_ACK) 183 return nl_wait_for_ack(sk);
|
/external/openssl/crypto/engine/ |
H A D | tb_asnmth.c | 206 static void look_str_cb(int nid, STACK_OF(ENGINE) *sk, ENGINE *def, void *arg) argument 212 for (i = 0; i < sk_ENGINE_num(sk); i++) 214 ENGINE *e = sk_ENGINE_value(sk, i);
|
/external/openssl/crypto/stack/ |
H A D | stack.c | 80 int (*sk_set_cmp_func(_STACK *sk, int (*c)(const void *, const void *))) argument 83 int (*old)(const void *,const void *)=sk->comp; 85 if (sk->comp != c) 86 sk->sorted=0; 87 sk->comp=c; 92 _STACK *sk_dup(_STACK *sk) argument 97 if ((ret=sk_new(sk->comp)) == NULL) goto err; 99 (unsigned int)sizeof(char *)*sk->num_alloc); 103 ret->num=sk->num; 104 memcpy(ret->data,sk [all...] |
/external/openssl/ssl/ |
H A D | ssl_cert.c | 509 int ssl_verify_cert_chain(SSL *s,STACK_OF(X509) *sk) argument 515 if ((sk == NULL) || (sk_X509_num(sk) == 0)) 518 x=sk_X509_value(sk,0); 519 if(!X509_STORE_CTX_init(&ctx,s->ctx->cert_store,x,sk)) 576 STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk) 583 for (i=0; i<sk_X509_NAME_num(sk); i++) 585 name=X509_NAME_dup(sk_X509_NAME_value(sk,i)); 629 static int add_client_CA(STACK_OF(X509_NAME) **sk,X509 *x) 634 if ((*sk [all...] |
/external/bluetooth/bluez/compat/ |
H A D | bnep.c | 183 static int bnep_connadd(int sk, uint16_t role, char *dev) argument 189 req.sock = sk; 217 int bnep_accept_connection(int sk, uint16_t role, char *dev) argument 224 r = recv(sk, pkt, BNEP_MTU, 0); 245 send(sk, pkt, sizeof(pkt), 0); 259 if (send(sk, rsp, sizeof(*rsp), 0) < 0) 262 return bnep_connadd(sk, role, dev); 266 * sk - Connect L2CAP socket 271 int bnep_create_connection(int sk, uint16_t role, uint16_t svc, char *dev) argument 293 setsockopt(sk, SOL_SOCKE [all...] |
H A D | dun.c | 60 int sk, i; local 62 sk = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_RFCOMM); 63 if (sk < 0 ) { 71 close(sk); 78 if (ioctl(sk, RFCOMMGETDEVLIST, (void *) dl) < 0) { 88 close(sk); 186 static int dun_create_tty(int sk, char *tty, int size) argument 199 if (getpeername(sk, (struct sockaddr *) &sa, &alen) < 0) 204 if (getsockname(sk, (struct sockaddr *) &sa, &alen) < 0) 209 id = ioctl(sk, RFCOMMCREATEDE 307 dun_open_connection(int sk, char *pppd, char **args, int wait) argument [all...] |
H A D | dund.c | 104 int sk, lm; local 127 sk = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); 128 if (sk < 0) { 138 if (bind(sk, (struct sockaddr *) &sa, sizeof(sa))) { 154 if (lm && setsockopt(sk, SOL_RFCOMM, RFCOMM_LM, &lm, sizeof(lm)) < 0) { 159 listen(sk, 10); 167 nsk = accept(sk, (struct sockaddr *) &sa, &alen); 181 close(sk); 187 close(sk); 222 int sk, er local [all...] |
H A D | fakehid.c | 148 int sk; local 150 sk = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); 151 if (sk < 0) { 161 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 164 close(sk); 173 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 176 close(sk); 180 return sk; 292 int i, fd, sk, len; local 294 sk 393 int i, fd, sk, len; local 605 int i, fd, sk, len; local [all...] |
/external/bluetooth/bluez/serial/ |
H A D | port.c | 306 int sk, fd; local 329 sk = g_io_channel_unix_get_fd(chan); 330 port->id = ioctl(sk, RFCOMMCREATEDEV, &req);
|