/system/core/include/cutils/ |
qtaguid.h | 31 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 36 extern int qtaguid_untagSocket(int sockfd);
|
/external/iptables/extensions/ |
libxt_set.h | 18 int res, sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); local 22 if (sockfd < 0) 27 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req_version, &size); 34 return sockfd; 42 int res, sockfd; local 44 sockfd = get_version(&req.version); 47 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); 48 close(sockfd); 71 int res, sockfd; local 73 sockfd = get_version(&req.version) [all...] |
/system/core/libcutils/ |
qtaguid.c | 99 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { 106 snprintf(lineBuf, sizeof(lineBuf), "t %d %llu %d", sockfd, kTag, uid); 108 ALOGV("Tagging socket %d with tag %llx{%u,0} for uid %d", sockfd, kTag, tag, uid); 113 sockfd, kTag, tag, uid, res); 119 int qtaguid_untagSocket(int sockfd) { 123 ALOGV("Untagging socket %d", sockfd); 125 snprintf(lineBuf, sizeof(lineBuf), "u %d", sockfd); 128 ALOGI("Untagging socket %d failed errno=%d", sockfd, res);
|
/frameworks/av/media/libstagefright/ |
HTTPBase.cpp | 152 void HTTPBase::RegisterSocketUserTag(int sockfd, uid_t uid, uint32_t kTag) { 153 int res = qtaguid_tagSocket(sockfd, kTag, uid); 155 ALOGE("Failed tagging socket %d for uid %d (My UID=%d)", sockfd, uid, geteuid()); 160 void HTTPBase::UnRegisterSocketUserTag(int sockfd) { 161 int res = qtaguid_untagSocket(sockfd); 163 ALOGE("Failed untagging socket %d (My UID=%d)", sockfd, geteuid());
|
/external/ppp/pppd/plugins/radius/ |
sendserver.c | 194 int sockfd; local 235 sockfd = socket (AF_INET, SOCK_DGRAM, 0); 236 if (sockfd < 0) 249 if (bind (sockfd, (struct sockaddr *) sin, length) < 0 || 250 getsockname (sockfd, (struct sockaddr *) sin, &length) < 0) 252 close (sockfd); 296 sendto (sockfd, (char *) auth, (unsigned int) total_length, (int) 0, 302 FD_SET (sockfd, &readfds); 303 if (select (sockfd + 1, &readfds, NULL, NULL, &authtime) < 0) 309 close (sockfd); [all...] |
/frameworks/av/media/libstagefright/include/ |
HTTPBase.h | 59 static void RegisterSocketUserTag(int sockfd, uid_t uid, uint32_t kTag); 60 static void UnRegisterSocketUserTag(int sockfd);
|
/external/mdnsresponder/mDNSPosix/ |
mDNSUNP.c | 95 int sockfd = -1; local 104 sockfd = socket(AF_INET6, SOCK_DGRAM, 0); 105 if (sockfd < 0) { 174 if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) { 207 if (sockfd != -1) { 208 assert(close(sockfd) == 0); 218 int sockfd, sockf6, len, lastlen, flags, myflags; local 235 sockfd = -1; 240 sockfd = socket(AF_INET, SOCK_DGRAM, 0); 241 if (sockfd < 0) [all...] |
/external/android-clat/ |
netlink_msg.c | 117 int sockfd = nl_socket_get_fd(nl_sk); local 118 return connect(sockfd, (struct sockaddr *) &addr, sizeof(addr));
|
/external/mdnsresponder/mDNSShared/ |
dnssd_clientstub.c | 119 #define DNSServiceRefValid(X) (dnssd_SocketValid((X)->sockfd) && (((X)->sockfd ^ (X)->validator) == ValidatorBits)) 131 dnssd_sock_t sockfd; // Connected socket between client and daemon member in struct:_DNSServiceRef_t 385 // then sockfd could legitimately contain a failing value (e.g. dnssd_InvalidSocket) 386 if ((x->sockfd ^ x->validator) != ValidatorBits) 387 syslog(LOG_WARNING, "dnssd_clientstub attempt to dispose invalid DNSServiceRef %p %08X %08X", x, x->sockfd, x->validator); 392 x->sockfd = dnssd_InvalidSocket; 438 (*ref), (*ref)->sockfd, (*ref)->validator); 459 sdr->sockfd = dnssd_InvalidSocket; 460 sdr->validator = sdr->sockfd ^ ValidatorBits [all...] |
/external/dnsmasq/src/ |
tftp.c | 147 if ((transfer->sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) 166 if (bind(transfer->sockfd, (struct sockaddr *)&addr, sizeof(addr)) == -1 || 168 setsockopt(transfer->sockfd, SOL_IP, IP_MTU_DISCOVER, &mtuflag, sizeof(mtuflag)) == -1 || 170 !fix_fd(transfer->sockfd)) 275 while (sendto(transfer->sockfd, packet, len, 0, 385 if (FD_ISSET(transfer->sockfd, rset)) 390 if ((len = recv(transfer->sockfd, daemon->packet, daemon->packet_buff_sz, 0)) >= (ssize_t)sizeof(struct ack)) 453 while(sendto(transfer->sockfd, daemon->packet, len, 0, 471 close(transfer->sockfd);
|
dnsmasq.c | 1049 FD_SET(transfer->sockfd, set); 1050 bump_maxfd(transfer->sockfd, maxfdp); [all...] |
dnsmasq.h | 585 int sockfd; member in struct:tftp_transfer
|
/external/openssh/ |
sshconnect.c | 243 timeout_connect(int sockfd, const struct sockaddr *serv_addr, 254 result = connect(sockfd, serv_addr, addrlen); 258 set_nonblock(sockfd); 259 rc = connect(sockfd, serv_addr, addrlen); 261 unset_nonblock(sockfd); 270 fdset = (fd_set *)xcalloc(howmany(sockfd + 1, NFDBITS), 272 FD_SET(sockfd, fdset); 276 rc = select(sockfd + 1, NULL, fdset, NULL, &tv); 294 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval, 304 unset_nonblock(sockfd); [all...] |
/external/iptables/libiptc/ |
libiptc.c | 135 int sockfd; variable 1316 int sockfd; local [all...] |
/external/valgrind/main/coregrind/ |
m_libcfile.c | 711 Int my_connect ( Int sockfd, struct vki_sockaddr_in* serv_addr, Int addrlen ); 893 Int my_connect ( Int sockfd, struct vki_sockaddr_in* serv_addr, Int addrlen ) 899 args[0] = sockfd; 908 res = VG_(do_syscall3)(__NR_connect, sockfd, (UWord)serv_addr, addrlen); 914 sockfd, (UWord)serv_addr, addrlen); [all...] |
/external/iptables/iptables/ |
xtables.c | 744 int max_rev, sockfd; local 746 sockfd = socket(afinfo->family, SOCK_RAW, IPPROTO_RAW); 747 if (sockfd < 0) { 762 if (fcntl(sockfd, F_SETFD, FD_CLOEXEC) == -1) { 773 max_rev = getsockopt(sockfd, afinfo->ipproto, opt, &rev, &s); 777 close(sockfd); 780 close(sockfd); 789 close(sockfd); [all...] |
/external/clang/tools/libclang/ |
CIndexCodeCompletion.cpp | 798 int sockfd = socket(AF_INET, SOCK_DGRAM, 0); local 799 if (sockfd < 0) 802 sendto(sockfd, res.data(), res.size(), 0, 804 close(sockfd); [all...] |
/external/valgrind/main/coregrind/m_syswrap/ |
syswrap-amd64-linux.c | 695 int, sockfd, struct sockaddr *, serv_addr, int, addrlen); 792 int, sockfd, struct sockaddr *, my_addr, int, addrlen); [all...] |
syswrap-arm-linux.c | 422 /* int bind(int sockfd, struct sockaddr *my_addr, 482 /* int connect(int sockfd, 583 /* int bind(int sockfd, struct sockaddr *my_addr, 703 int, sockfd, struct sockaddr *, serv_addr, int, addrlen); 964 int, sockfd, struct sockaddr *, my_addr, int, addrlen); [all...] |
syswrap-mips32-linux.c | 443 /* int bind(int sockfd, struct sockaddr *my_addr, 490 /* int connect(int sockfd, 579 /* int bind(int sockfd, struct sockaddr *my_addr, int addrlen); */ 684 int, sockfd, struct sockaddr *, serv_addr, int, addrlen); 906 PRE_REG_READ3 (long, "bind", int, sockfd, struct sockaddr *, my_addr, [all...] |
syswrap-darwin.c | [all...] |
/external/blktrace/ |
blktrace.c | 698 static int my_accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen) 703 fd = accept(sockfd, addr, addrlen); [all...] |