Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 45) sorted by relevance

12

/bionic/libc/bionic/
Dsystem_property_set.cpp59 socket_.reset(::socket(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0)); in PropertyServiceConnection()
70 const char* socket = property_service_socket; in PropertyServiceConnection() local
73 socket = property_service_for_system_socket; in PropertyServiceConnection()
76 const size_t namelen = strlen(socket); in PropertyServiceConnection()
79 strlcpy(addr.sun_path, socket, sizeof(addr.sun_path)); in PropertyServiceConnection()
103 int socket() { in socket() function in PropertyServiceConnection
163 if (writev(connection_->socket(), iov_, iov_index_) == -1) { in Send()
198 int s = connection.socket(); in send_prop_msg()
Dsend.cpp31 ssize_t send(int socket, const void* buf, size_t len, int flags) { in send() argument
32 return sendto(socket, buf, len, flags, nullptr, 0); in send()
Drecv.cpp31 ssize_t recv(int socket, void *buf, size_t len, int flags) { in recv() argument
32 return recvfrom(socket, buf, len, flags, nullptr, nullptr); in recv()
DNetdClientDispatch.cpp78 int socket(int domain, int type, int protocol) { in socket() function
79 return FDTRACK_CREATE(__netdClientDispatch.socket(domain, type, protocol)); in socket()
Dnet_if.cpp48 ScopedFd s(socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, 0)); in if_indextoname()
57 ScopedFd s(socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, 0)); in if_nametoindex()
Dfortify.cpp219 ssize_t __recvfrom_chk(int socket, void* buf, size_t len, size_t buf_size, in __recvfrom_chk() argument
222 return recvfrom(socket, buf, len, flags, src_addr, addrlen); in __recvfrom_chk()
225 ssize_t __sendto_chk(int socket, const void* buf, size_t len, size_t buflen, in __sendto_chk() argument
229 return sendto(socket, buf, len, flags, dest_addr, addrlen); in __sendto_chk()
DNetdClient.cpp60 netdClientInitFunction(handle, "netdClientInitSocket", &__netdClientDispatch.socket); in netdClientInitImpl()
Dbionic_netlink.cpp59 fd_.reset(socket(PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE)); in SendRequest()
Dandroid_profiling_dynamic.cpp127 ScopedFd sock_fd{ socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0 /*protocol*/) }; in HandleTracedPerfSignal()
Difaddrs.cpp281 ScopedFd s(socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in get_interface_flags_via_ioctl()
/bionic/libc/include/bits/fortify/
Dsocket.h70 ssize_t recv(int socket, void* _Nullable const buf __pass_object_size0, size_t len, int flags) in recv() argument
74 return recvfrom(socket, buf, len, flags, NULL, 0); in recv()
78 ssize_t send(int socket, const void* _Nonnull const buf __pass_object_size0, size_t len, int flags) in send() argument
82 return sendto(socket, buf, len, flags, NULL, 0); in send()
/bionic/libc/async_safe/
DREADME.md5 Note that the liblog implementation connects a single socket to logd and uses a RWLock to manage
8 a socket for each message does not scale well under load. It was also determined to be too
9 costly to connect a socket for each thread as some processes, such as system_server, have over 100
/bionic/tests/
Dfdtrack_test.cpp234 FDTRACK_TEST(socket, socket(AF_UNIX, SOCK_STREAM, 0));
300 int listener = socket(AF_INET, SOCK_STREAM, 0); in CreateListener()
315 int connector = socket(AF_INET, SOCK_STREAM, 0); in CreateListener()
Dsys_socket_test.cpp39 int fd = socket(PF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC | SOCK_NONBLOCK, 0); in ConnectFn()
66 int fd = socket(PF_UNIX, SOCK_SEQPACKET, 0); in RunTest()
Difaddrs_test.cpp124 int fd = socket(AF_INET, SOCK_DGRAM, 0); in CheckAddressIsInSet()
Dclang_fortify_tests.cpp450 FORTIFY_TEST(socket) { in FORTIFY_TEST() argument
/bionic/libc/private/
DNetdClientDispatch.h30 int (*socket)(int, int, int); member
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_089.S155 CALL(socket)
185 GOT_RELOC(socket)
Dliblinker_reloc_bench_010.S167 CALL(socket)
Dliblinker_reloc_bench_065.S146 CALL(socket)
Dliblinker_reloc_bench_027.S307 CALL(socket)
Dliblinker_reloc_bench_008.S361 CALL(socket)
Dliblinker_reloc_bench_144.S199 CALL(socket)
/bionic/tests/headers/posix/
Dsys_socket_h.c152 FUNCTION(socket, int (*f)(int, int, int)); in sys_socket_h()
/bionic/libc/include/sys/
Dsocket.h300 __socketcall int socket(int __af, int __type, int __protocol);

12