Home
last modified time | relevance | path

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

123

/third_party/musl/src/network/
Dgetsockopt.c6 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()
Dsetsockopt.c9 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/
Dsockets.c306 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/
Dudp.c594 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 …]
Dcore.c699 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/
Dudp.c594 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 …]
Dcore.c701 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/
Dsctputil.h270 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/
Dtst_safe_net.h23 #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)
Dsafe_net_fn.h35 int optname, void *optval, socklen_t *optlen);
38 int optname, const void *optval, socklen_t optlen);
/third_party/node/deps/uv/src/unix/
Dudp.c847 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/
Dconfigparser.py1017 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/
Dudp.c847 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/
Dsafe_net.c170 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/
Dsyscalls.rs765 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/
DVMS.pm33 sub optname { return $_[1] } subroutine
34 sub opt { return $_[0]->optname($_[1]) . $_[0]->optext() }
/third_party/openssl/Configurations/platform/
DVMS.pm33 sub optname { return $_[1] } subroutine
34 sub opt { return $_[0]->optname($_[1]) . $_[0]->optext() }
/third_party/python/Tools/scripts/
Duntabify.py20 for optname, optvalue in opts:
21 if optname == '-t':
/third_party/rust/crates/rustix/ci/
Dtranslate-errno.patch17 if (optname == SO_TYPE) {
20 + if (level == SOL_SOCKET && optname == SO_ERROR) {
Dgetsockopt-timeouts.patch60 optname = SO_SNDTIMEO;
70 optname = SO_SNDTIMEO;
/third_party/lwip/src/include/lwip/
Dsockets.h581 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/
Dsyscalls.rs408 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/
Dsetsockopt01.c29 int optname; member
79 TEST(setsockopt(fd, tc->level, tc->optname, tc->optval, tc->optlen)); in run()
/third_party/python/Lib/test/
Dmock_socket.py68 def setsockopt(self, level, optname, value): argument
71 def getsockopt(self, level, optname, buflen=None): argument
/third_party/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c74 int optname; member
144 tdat[testno].optname, in main()

123