/third_party/musl/src/network/ |
D | getsockopt.c | 6 int getsockopt(int fd, int level, int optname, void *restrict optval, socklen_t *restrict optlen) in getsockopt() argument 11 int r = __socketcall(getsockopt, fd, level, optname, optval, optlen, 0); in getsockopt() 15 switch (optname) { in getsockopt() 20 if (optname==SO_RCVTIMEO) optname=SO_RCVTIMEO_OLD; in getsockopt() 21 if (optname==SO_SNDTIMEO) optname=SO_SNDTIMEO_OLD; in getsockopt() 22 r = __socketcall(getsockopt, fd, level, optname, in getsockopt() 33 if (optname==SO_TIMESTAMP) optname=SO_TIMESTAMP_OLD; in getsockopt() 34 if (optname==SO_TIMESTAMPNS) optname=SO_TIMESTAMPNS_OLD; in getsockopt() 36 optname, optval, optlen, 0); in getsockopt()
|
D | setsockopt.c | 9 int setsockopt(int fd, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() argument 15 int r = __socketcall(setsockopt, fd, level, optname, optval, optlen, 0); in setsockopt() 19 switch (optname) { in setsockopt() 29 if (optname==SO_RCVTIMEO) optname=SO_RCVTIMEO_OLD; in setsockopt() 30 if (optname==SO_SNDTIMEO) optname=SO_SNDTIMEO_OLD; in setsockopt() 32 r = __socketcall(setsockopt, fd, level, optname, in setsockopt() 38 if (optname==SO_TIMESTAMP) optname=SO_TIMESTAMP_OLD; in setsockopt() 39 if (optname==SO_TIMESTAMPNS) optname=SO_TIMESTAMPNS_OLD; in setsockopt() 41 optname, optval, optlen, 0); in setsockopt()
|
/third_party/lwip/src/api/ |
D | sockets.c | 306 static int lwip_getsockopt_impl(int s, int level, int optname, void *optval, socklen_t *optlen); 307 static int lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_t optlen… 2837 lwip_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) in lwip_getsockopt() argument 2859 err = lwip_getsockopt_impl(s, level, optname, optval, optlen); in lwip_getsockopt() 2876 LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optname = optname; in lwip_getsockopt() 2924 data->err = lwip_getsockopt_impl(data->s, data->level, data->optname, in lwip_getsockopt_callback() 2937 lwip_sockopt_to_ipopt(int optname) in lwip_sockopt_to_ipopt() argument 2943 switch (optname) { in lwip_sockopt_to_ipopt() 2960 lwip_getsockopt_impl(int s, int level, int optname, void *optval, socklen_t *optlen) in lwip_getsockopt_impl() argument 2969 if (LWIP_HOOK_SOCKETS_GETSOCKOPT(s, sock, level, optname, optval, optlen, &err)) { in lwip_getsockopt_impl() [all …]
|
/third_party/node/deps/uv/src/win/ |
D | udp.c | 594 int optname; in uv__udp_set_membership4() local 622 optname = IP_ADD_MEMBERSHIP; in uv__udp_set_membership4() 625 optname = IP_DROP_MEMBERSHIP; in uv__udp_set_membership4() 633 optname, in uv__udp_set_membership4() 647 int optname; in uv__udp_set_membership6() local 677 optname = IPV6_ADD_MEMBERSHIP; in uv__udp_set_membership6() 680 optname = IPV6_DROP_MEMBERSHIP; in uv__udp_set_membership6() 688 optname, in uv__udp_set_membership6() 704 int optname; in uv__udp_set_source_membership4() local 732 optname = IP_ADD_SOURCE_MEMBERSHIP; in uv__udp_set_source_membership4() [all …]
|
D | core.c | 699 int uv__socket_sockopt(uv_handle_t* handle, int optname, int* value) { in uv__socket_sockopt() argument 717 r = getsockopt(socket, SOL_SOCKET, optname, (char*) value, &len); in uv__socket_sockopt() 719 r = setsockopt(socket, SOL_SOCKET, optname, (const char*) value, len); in uv__socket_sockopt()
|
/third_party/libuv/src/win/ |
D | udp.c | 594 int optname; in uv__udp_set_membership4() local 622 optname = IP_ADD_MEMBERSHIP; in uv__udp_set_membership4() 625 optname = IP_DROP_MEMBERSHIP; in uv__udp_set_membership4() 633 optname, in uv__udp_set_membership4() 647 int optname; in uv__udp_set_membership6() local 677 optname = IPV6_ADD_MEMBERSHIP; in uv__udp_set_membership6() 680 optname = IPV6_DROP_MEMBERSHIP; in uv__udp_set_membership6() 688 optname, in uv__udp_set_membership6() 704 int optname; in uv__udp_set_source_membership4() local 732 optname = IP_ADD_SOURCE_MEMBERSHIP; in uv__udp_set_source_membership4() [all …]
|
D | core.c | 701 int uv__socket_sockopt(uv_handle_t* handle, int optname, int* value) { in uv__socket_sockopt() argument 719 r = getsockopt(socket, SOL_SOCKET, optname, (char*) value, &len); in uv__socket_sockopt() 721 r = setsockopt(socket, SOL_SOCKET, optname, (const char*) value, len); in uv__socket_sockopt()
|
/third_party/ltp/utils/sctp/testlib/ |
D | sctputil.h | 270 static inline int test_getsockopt(int sk, int optname, void *optval, in test_getsockopt() argument 273 int error = getsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_getsockopt() 276 tst_brkm(TBROK, tst_exit, "getsockopt(%d): %s", optname, in test_getsockopt() 281 static inline int test_setsockopt(int sk, int optname, const void *optval, in test_setsockopt() argument 284 int error = setsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_setsockopt() 287 tst_brkm(TBROK, tst_exit, "setsockopt(%d): %s", optname, in test_setsockopt()
|
/third_party/ltp/include/ |
D | tst_safe_net.h | 23 #define SAFE_GETSOCKOPT(fd, level, optname, optval, optlen) \ argument 24 safe_getsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen) 26 #define SAFE_SETSOCKOPT(fd, level, optname, optval, optlen) \ argument 27 safe_setsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen)
|
D | safe_net_fn.h | 35 int optname, void *optval, socklen_t *optlen); 38 int optname, const void *optval, socklen_t optlen);
|
/third_party/node/deps/uv/src/unix/ |
D | udp.c | 847 int optname; in uv__udp_set_membership4() local 864 optname = IP_ADD_MEMBERSHIP; in uv__udp_set_membership4() 867 optname = IP_DROP_MEMBERSHIP; in uv__udp_set_membership4() 875 optname, in uv__udp_set_membership4() 893 int optname; in uv__udp_set_membership6() local 911 optname = IPV6_ADD_MEMBERSHIP; in uv__udp_set_membership6() 914 optname = IPV6_DROP_MEMBERSHIP; in uv__udp_set_membership6() 922 optname, in uv__udp_set_membership6() 948 int optname; in uv__udp_set_source_membership4() local 969 optname = IP_ADD_SOURCE_MEMBERSHIP; in uv__udp_set_source_membership4() [all …]
|
/third_party/python/Lib/ |
D | configparser.py | 1017 optname = None 1049 optname and 1050 cursect[optname] is not None): 1051 cursect[optname].append('') # newlines added at join 1059 if (cursect is not None and optname and 1061 cursect[optname].append(value) 1083 optname = None 1091 optname, vi, optval = mo.group('option', 'vi', 'value') 1092 if not optname: 1094 optname = self.optionxform(optname.rstrip()) [all …]
|
/third_party/libuv/src/unix/ |
D | udp.c | 847 int optname; in uv__udp_set_membership4() local 864 optname = IP_ADD_MEMBERSHIP; in uv__udp_set_membership4() 867 optname = IP_DROP_MEMBERSHIP; in uv__udp_set_membership4() 875 optname, in uv__udp_set_membership4() 893 int optname; in uv__udp_set_membership6() local 911 optname = IPV6_ADD_MEMBERSHIP; in uv__udp_set_membership6() 914 optname = IPV6_DROP_MEMBERSHIP; in uv__udp_set_membership6() 922 optname, in uv__udp_set_membership6() 948 int optname; in uv__udp_set_source_membership4() local 969 optname = IP_ADD_SOURCE_MEMBERSHIP; in uv__udp_set_source_membership4() [all …]
|
/third_party/ltp/lib/ |
D | safe_net.c | 170 int optname, void *optval, socklen_t *optlen) in safe_getsockopt() argument 172 int rval = getsockopt(sockfd, level, optname, optval, optlen); in safe_getsockopt() 177 sockfd, level, optname, optval, optlen); in safe_getsockopt() 181 sockfd, level, optname, optval, optlen, rval); in safe_getsockopt() 188 int optname, const void *optval, socklen_t optlen) in safe_setsockopt() argument 192 rval = setsockopt(sockfd, level, optname, optval, optlen); in safe_setsockopt() 197 sockfd, level, optname, optval, optlen); in safe_setsockopt() 201 sockfd, level, optname, optval, optlen, rval); in safe_setsockopt()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | syscalls.rs | 765 fn getsockopt<T: Copy>(fd: BorrowedFd<'_>, level: u32, optname: u32) -> io::Result<T> { in getsockopt() 781 c_uint(optname), in getsockopt() 802 c_uint(optname), in getsockopt() 820 optname: u32, in setsockopt() 837 c_uint(optname), in setsockopt() 850 c_uint(optname), in setsockopt() 938 let optname = match id { in set_socket_timeout() localVariable 942 match setsockopt(fd, c::SOL_SOCKET, optname, time) { in set_socket_timeout() 958 let optname = match id { in set_socket_timeout_old() localVariable 962 setsockopt(fd, c::SOL_SOCKET, optname, time) in set_socket_timeout_old() [all …]
|
/third_party/node/deps/openssl/openssl/Configurations/platform/ |
D | VMS.pm | 33 sub optname { return $_[1] } subroutine 34 sub opt { return $_[0]->optname($_[1]) . $_[0]->optext() }
|
/third_party/openssl/Configurations/platform/ |
D | VMS.pm | 33 sub optname { return $_[1] } subroutine 34 sub opt { return $_[0]->optname($_[1]) . $_[0]->optext() }
|
/third_party/python/Tools/scripts/ |
D | untabify.py | 20 for optname, optvalue in opts: 21 if optname == '-t':
|
/third_party/rust/crates/rustix/ci/ |
D | translate-errno.patch | 17 if (optname == SO_TYPE) { 20 + if (level == SOL_SOCKET && optname == SO_ERROR) {
|
D | getsockopt-timeouts.patch | 60 optname = SO_SNDTIMEO; 70 optname = SO_SNDTIMEO;
|
/third_party/lwip/src/include/lwip/ |
D | sockets.h | 581 int lwip_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen); 582 int lwip_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen); 643 #define setsockopt(s,level,optname,opval,optlen) lwip_setsockopt(s,level,optname,opval,optlen) argument 645 #define getsockopt(s,level,optname,opval,optlen) lwip_getsockopt(s,level,optname,opval,optlen) argument
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | syscalls.rs | 408 fn getsockopt<T: Copy>(fd: BorrowedFd<'_>, level: i32, optname: i32) -> io::Result<T> { in getsockopt() 422 optname, in getsockopt() 443 optname: i32, in setsockopt() 458 optname, in setsockopt() 546 let optname = match id { in set_socket_timeout() localVariable 602 setsockopt(fd, c::SOL_SOCKET, optname, timeout) in set_socket_timeout() 610 let optname = match id { in get_socket_timeout() localVariable 617 let timeout: c::timeval = getsockopt(fd, c::SOL_SOCKET, optname)?; in get_socket_timeout() 630 let timeout: u32 = getsockopt(fd, c::SOL_SOCKET, optname)?; in get_socket_timeout()
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt01.c | 29 int optname; member 79 TEST(setsockopt(fd, tc->level, tc->optname, tc->optval, tc->optlen)); in run()
|
/third_party/python/Lib/test/ |
D | mock_socket.py | 68 def setsockopt(self, level, optname, value): argument 71 def getsockopt(self, level, optname, buflen=None): argument
|
/third_party/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 74 int optname; member 144 tdat[testno].optname, in main()
|