Home
last modified time | relevance | path

Searched refs:optname (Results 1 – 8 of 8) sorted by relevance

/system/netd/libnetdutils/
DSocketOption.cpp29 Status enableSockopt(Fd sock, int level, int optname) { in enableSockopt() argument
32 return sys.setsockopt(sock, level, optname, &on, sizeof(on)); in enableSockopt()
DSyscalls.cpp68 Status getsockopt(Fd sock, int level, int optname, void* optval, in getsockopt() argument
70 auto rv = ::getsockopt(sock.get(), level, optname, optval, optlen); in getsockopt()
77 Status setsockopt(Fd sock, int level, int optname, const void* optval, in setsockopt() argument
79 auto rv = ::setsockopt(sock.get(), level, optname, optval, optlen); in setsockopt()
/system/netd/libnetdutils/include/netdutils/
DSyscalls.h52 virtual Status getsockopt(Fd sock, int level, int optname, void *optval,
55 virtual Status setsockopt(Fd sock, int level, int optname, const void* optval,
125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt() argument
126 return getsockopt(sock, level, optname, optval, optlen); in getsockopt()
130 Status setsockopt(Fd sock, int level, int optname, const SockoptT& opt) const { in setsockopt() argument
131 return setsockopt(sock, level, optname, &opt, sizeof(opt)); in setsockopt()
DSocketOption.h36 Status enableSockopt(Fd sock, int level, int optname);
DMockSyscalls.h40 MOCK_CONST_METHOD5(getsockopt, Status(Fd sock, int level, int optname, void* optval,
42 MOCK_CONST_METHOD5(setsockopt, Status(Fd sock, int level, int optname, const void* optval,
/system/core/init/
Dutil.cpp519 auto optname = parts[0]; in ParseMkdir() local
521 if (optname == "encryption") { in ParseMkdir()
523 return Error() << "Duplicated option: '" << optname << "'"; in ParseMkdir()
537 } else if (optname == "key") { in ParseMkdir()
539 return Error() << "Duplicated option: '" << optname << "'"; in ParseMkdir()
/system/core/adb/
Dsysdeps.h195 extern int adb_setsockopt(borrowed_fd fd, int level, int optname, const void* optval,
622 static inline int adb_setsockopt(borrowed_fd fd, int level, int optname, const void* optval, in adb_setsockopt() argument
624 return setsockopt(fd.get(), level, optname, optval, optlen); in adb_setsockopt()
Dsysdeps_win32.cpp1095 int adb_setsockopt(borrowed_fd fd, int level, int optname, const void* optval, socklen_t optlen) { in adb_setsockopt() argument
1109 setsockopt(fh->fh_socket, level, optname, reinterpret_cast<const char*>(optval), optlen); in adb_setsockopt()
1113 optname, android::base::SystemErrorCodeToString(err).c_str()); in adb_setsockopt()