/bionic/libc/bionic/ |
accept.cpp | 19 int accept(int sockfd, sockaddr* addr, socklen_t* addrlen) { 20 return accept4(sockfd, addr, addrlen, 0);
|
connect.cpp | 21 int connect(int sockfd, const sockaddr* addr, socklen_t addrlen) { 22 return __netdClientDispatch.connect(sockfd, addr, addrlen);
|
accept4.cpp | 21 int accept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { 22 return __netdClientDispatch.accept4(sockfd, addr, addrlen, flags);
|
/external/curl/lib/ |
nonblock.c | 47 int curlx_nonblock(curl_socket_t sockfd, /* operate on this */ 58 flags = sfcntl(sockfd, F_GETFL, 0); 60 return sfcntl(sockfd, F_SETFL, flags | O_NONBLOCK); 62 return sfcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK)); 68 return ioctl(sockfd, FIONBIO, &flags); 74 return ioctlsocket(sockfd, FIONBIO, &flags); 80 return IoctlSocket(sockfd, FIONBIO, (char *)&flags); 86 return setsockopt(sockfd, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
|
nonblock.h | 27 int curlx_nonblock(curl_socket_t sockfd, /* operate on this */
|
sendf.h | 27 CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *, 60 CURLcode Curl_read_plain(curl_socket_t sockfd, 71 CURLcode Curl_read(struct connectdata *conn, curl_socket_t sockfd, 76 curl_socket_t sockfd, 82 curl_socket_t sockfd,
|
/test/vts/drivers/libdrivercomm/ |
VtsDriverCommUtil.h | 34 explicit VtsDriverCommUtil(int sockfd) : sockfd_(sockfd) {} 44 void SetSockfd(int sockfd) { 45 sockfd_ = sockfd; 64 // sockfd
|
/external/ltp/testcases/kernel/syscalls/sendto/ |
sendto02.c | 43 static int sockfd; variable 48 sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); 49 if (sockfd == -1) { 64 if (sockfd > 0) 65 SAFE_CLOSE(sockfd); 70 TEST(sendto(sockfd, NULL, 1, 0, (struct sockaddr *) &sa, sizeof(sa)));
|
/external/ltp/testcases/kernel/sched/clisrv/ |
pthcli.c | 62 void str_cli(fp, sockfd) 64 register int sockfd; 74 if (writen(sockfd, sendline, n) != n) 81 n = readline(sockfd, recvline, MAXLINE); 101 int sockfd; local 122 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 129 sockfd); 131 if (connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 143 str_cli(input, sockfd); /* call the routines that do the work */ 147 str_cli(stdin, sockfd); /* call the routines that do the work * [all...] |
pthserv.c | 51 int sockfd; variable 56 int str_echo(sockfd) 57 int sockfd; 62 printf("sockfd = %d\n", sockfd); 65 dprt2(("%s: str_echo(): reading from sockfd %d\n", __FILE__, 66 sockfd)); 67 n = readline(sockfd, line, MAXLINE); 77 dprt2(("%s: str_echo(): writing to sockfd = %d\n", __FILE__, 78 sockfd)); [all...] |
/external/compiler-rt/test/msan/Linux/ |
sendmsg.cc | 29 int sockfd; variable 37 sockfd = socket(AF_INET, SOCK_DGRAM, 0); 44 bind(sockfd, (struct sockaddr *)&serveraddr, sizeof(serveraddr)); 46 getsockname(sockfd, (struct sockaddr *)&serveraddr, &addrlen); 65 ret = connect(sockfd, (struct sockaddr *)&serveraddr, addrlen); 67 ret = send(sockfd, buf, kBufSize, 0); 72 sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, addrlen); 76 ret = sendmsg(sockfd, &msg, 0);
|
/system/core/libcutils/include/cutils/ |
qtaguid.h | 33 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 38 extern int qtaguid_untagSocket(int sockfd);
|
/test/vts/agents/hal/ |
SocketServerForDriver.cpp | 50 int sockfd; local 51 sockfd = socket(AF_INET, SOCK_STREAM, 0); 52 if (sockfd < 0) { 69 if (connect(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) { 75 VtsDriverCommUtil util(sockfd); 102 int sockfd; local 103 sockfd = socket(PF_UNIX, SOCK_STREAM, 0); 104 if (sockfd < 0) { 114 if (::bind(sockfd, (struct sockaddr*) &serv_addr, sizeof(serv_addr)) < 0) { 122 if (listen(sockfd, 5) < 0) [all...] |
TcpServerForRunner.cpp | 54 int sockfd; local 59 sockfd = socket(AF_INET, SOCK_STREAM, 0); 60 if (sockfd < 0) { 70 if (::bind(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) == -1) { 77 if (getsockname(sockfd, (struct sockaddr*) &serv_addr, &sa_len) == -1) { 95 if (listen(sockfd, 5) == -1) { 102 int newsockfd = ::accept(sockfd, (struct sockaddr*)&cli_addr, &clilen); 112 close(sockfd);
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
recvfrom.cc | 27 int sockfd; variable 38 int succeeded = getsockname(sockfd, (struct sockaddr *)&serveraddr, &addrlen); 41 succeeded = sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, 58 sockfd = socket(AF_INET, SOCK_DGRAM, 0); 59 CHECK_ERROR(sockfd < 0, "opening socket"); 66 int bound = bind(sockfd, (struct sockaddr *)&serveraddr, sizeof(serveraddr)); 73 recvfrom(sockfd, buf, kBufSize, 0, NULL, NULL); // BOOM
|
/external/curl/docs/examples/ |
sendrecv.c | 32 static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms) 45 FD_SET(sockfd, &errfd); /* always check for error */ 48 FD_SET(sockfd, &infd); 51 FD_SET(sockfd, &outfd); 55 res = select(sockfd + 1, &infd, &outfd, &errfd, &tv); 65 curl_socket_t sockfd; /* socket */ local 101 sockfd = (curl_socket_t)sockextr; 104 if(!wait_on_socket(sockfd, 0, 60000L)) { 124 wait_on_socket(sockfd, 1, 60000L);
|
/external/ltp/include/old/ |
old_safe_net.h | 40 #define SAFE_CONNECT(cleanup_fn, sockfd, addr, addrlen) \ 41 safe_connect(__FILE__, __LINE__, (cleanup_fn), sockfd, addr, addrlen) 43 #define SAFE_GETSOCKNAME(cleanup_fn, sockfd, addr, addrlen) \ 44 safe_getsockname(__FILE__, __LINE__, (cleanup_fn), sockfd, addr, \
|
/external/ltp/include/ |
tst_safe_net.h | 35 #define SAFE_SEND(strict, sockfd, buf, len, flags) \ 36 safe_send(__FILE__, __LINE__, strict, sockfd, buf, len, flags) 49 #define SAFE_CONNECT(sockfd, addr, addrlen) \ 50 safe_connect(__FILE__, __LINE__, NULL, sockfd, addr, addrlen) 52 #define SAFE_GETSOCKNAME(sockfd, addr, addrlen) \ 53 safe_getsockname(__FILE__, __LINE__, NULL, sockfd, addr, \
|
safe_net_fn.h | 34 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level, 38 int sockfd, const void *buf, size_t len, int flags); 41 int sockfd, const void *buf, size_t len, int flags, 52 int sockfd, const struct sockaddr *addr, socklen_t addrlen); 55 void (cleanup_fn)(void), int sockfd, struct sockaddr *addr,
|
/frameworks/av/media/libstagefright/ |
HTTPBase.cpp | 118 void HTTPBase::RegisterSocketUserTag(int sockfd, uid_t uid, uint32_t kTag) { 119 int res = qtaguid_tagSocket(sockfd, kTag, uid); 121 ALOGE("Failed tagging socket %d for uid %d (My UID=%d)", sockfd, uid, geteuid()); 126 void HTTPBase::UnRegisterSocketUserTag(int sockfd) { 127 int res = qtaguid_untagSocket(sockfd); 129 ALOGE("Failed untagging socket %d (My UID=%d)", sockfd, geteuid()); 134 void HTTPBase::RegisterSocketUserMark(int sockfd, uid_t uid) { 135 setNetworkForUser(uid, sockfd); 139 void HTTPBase::UnRegisterSocketUserMark(int sockfd) { 140 RegisterSocketUserMark(sockfd, geteuid()) [all...] |
/external/skia/experimental/Networking/ |
SkSockets.cpp | 30 int sockfd = socket(AF_INET, SOCK_STREAM, 0); local 31 if (sockfd < 0) { 37 if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(int)) < 0) { 42 this->setNonBlocking(sockfd); 44 //SkDebugf("Opened fd:%d\n", sockfd); 46 return sockfd; 49 void SkSocket::closeSocket(int sockfd) { 53 close(sockfd); 54 //SkDebugf("Closed fd:%d\n", sockfd); 56 if (FD_ISSET(sockfd, &fMasterSet)) [all...] |
SkSockets.h | 109 void closeSocket(int sockfd); 116 virtual void onFailedConnection(int sockfd); 121 void setNonBlocking(int sockfd); 128 void addToMasterSet(int sockfd); 192 virtual void onFailedConnection(int sockfd);
|
/cts/tests/tests/net/native/qtaguid/src/ |
NativeQtaguidTest.cpp | 58 int sockfd = socket(family, SOCK_STREAM, 0); local 65 EXPECT_EQ(0, qtaguid_tagSocket(sockfd, tag, uid)); 68 close(sockfd); 73 int sockfd = socket(AF_INET, SOCK_STREAM, 0); local 78 EXPECT_EQ(0, qtaguid_tagSocket(sockfd, tag, uid)); 81 close(sockfd); 86 int sockfd = socket(AF_INET6, SOCK_STREAM, 0); local 91 EXPECT_EQ(0, qtaguid_tagSocket(sockfd, tag, uid)); 94 close(sockfd);
|
/system/core/debuggerd/tombstoned/ |
tombstoned_client.cpp | 35 unique_fd sockfd( 39 if (sockfd == -1) { 49 if (TEMP_FAILURE_RETRY(write(sockfd, &packet, sizeof(packet))) != sizeof(packet)) { 56 ssize_t rc = recv_fd(sockfd, &packet, sizeof(packet), &tmp_output_fd); 78 *tombstoned_socket = std::move(sockfd);
|
/external/skia/experimental/DrawingBoard/ |
SkNetPipeController.cpp | 21 int SkNetPipeController::writeToSocket(SkSocket* sockfd, SkSocket::DataType type) { 22 if (NULL != sockfd && fTotalWritten > 4) 23 return sockfd->writePacket(fBlock, fBytesWritten, type);
|