/freebsd/contrib/less/ |
H A D | opttbl.c | 95 static struct optname a_optname = { "search-skip-screen", NULL }; 96 static struct optname b_optname = { "buffers", NULL }; 97 static struct optname B__optname = { "auto-buffers", NULL }; 98 static struct optname c_optname = { "clear-screen", NULL }; 99 static struct optname d_optname = { "dumb", NULL }; 100 static struct optname D__optname = { "color", NULL }; 101 static struct optname e_optname = { "quit-at-eof", NULL }; 102 static struct optname f_optname = { "force", NULL }; 103 static struct optname F__optname = { "quit-if-one-screen", NULL }; 105 static struct optname g_optnam 788 char *optname = *p_optname; findopt_name() local [all...] |
H A D | option.c | 67 constant char *optname; in scan_option() 105 optname = NULL; in scan_option() 123 optname = ++s; in scan_option() 131 if (optname != NULL) in scan_option() 133 optname = s; in scan_option() 182 if (optname == NULL) in scan_option() 189 printopt = optname; in scan_option() 190 lc = ASCII_IS_LOWER(optname[0]); in scan_option() 191 o = findopt_name(&optname, NULL, &ambig); in scan_option() 192 s = optname; in scan_option() 68 char *optname; scan_option() local [all...] |
H A D | option.h | 49 struct optname 52 struct optname *onext; /* List of synonymous option names */ 60 struct optname *onames; /* Long (GNU-style) option name */ 48 struct optname global() struct 51 onextoptname global() argument
|
/freebsd/usr.sbin/config/ |
H A D | mkoptions.cc | 326 insert_option(const char *fname, char *optname, char *val) in insert_option() argument 330 check_duplicate(fname, optname); in insert_option() 334 po->o_name = optname; in insert_option() 341 update_option(const char *optname, char *val, int flags) in update_option() argument 346 if (eq(po->o_name, optname)) { in update_option() 365 char *optname, *val; in read_option_file() local 386 optname = ns(wd); in read_option_file() 389 free(optname); in read_option_file() 395 " words per line at %s\n", fname, optname); in read_option_file() 398 char *s = ns(optname); in read_option_file() [all …]
|
/freebsd/contrib/flex/src/ |
H A D | scanopt.c | 502 const char *optname = ""; in scanopt_err() local 512 optname = optchar; in scanopt_err() 515 optname = s->argv[s->index]; in scanopt_err() 525 optname); in scanopt_err() 530 optname); in scanopt_err() 534 optname); in scanopt_err() 538 optname); in scanopt_err() 555 static int matchlongopt (char *str, char **optname, int *optlen, char **arg, int *arglen) in matchlongopt() argument 559 *optname = *arg = NULL; in matchlongopt() 568 *optname = p; in matchlongopt() [all …]
|
/freebsd/tools/regression/priv/ |
H A D | priv_netinet_ipsec.c | 196 int error, level, optname; in priv_netinet_ipsec_policy_bypass_af() local 201 optname = IP_IPSEC_POLICY; in priv_netinet_ipsec_policy_bypass_af() 206 optname = IPV6_IPSEC_POLICY; in priv_netinet_ipsec_policy_bypass_af() 213 error = setsockopt(sd, level, optname, in priv_netinet_ipsec_policy_bypass_af() 249 int error, level, optname; in priv_netinet_ipsec_policy_entrust_af() local 254 optname = IP_IPSEC_POLICY; in priv_netinet_ipsec_policy_entrust_af() 259 optname = IPV6_IPSEC_POLICY; in priv_netinet_ipsec_policy_entrust_af() 266 error = setsockopt(sd, level, optname, in priv_netinet_ipsec_policy_entrust_af()
|
/freebsd/sbin/setkey/ |
H A D | test-policy.c | 96 int so, proto, optname; in test() local 103 optname = IP_IPSEC_POLICY; in test() 107 optname = IPV6_IPSEC_POLICY; in test() 114 if (setsockopt(so, proto, optname, policy, PFKEY_EXTLEN(policy)) < 0) in test() 119 if (getsockopt(so, proto, optname, getbuf, &len) < 0) in test()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | socket_wrapper.h | 46 int swrap_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); 47 int swrap_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen); 92 #define getsockopt(s,level,optname,optval,optlen) swrap_getsockopt(s,level,optname,optval,optlen) argument 97 #define setsockopt(s,level,optname,optval,optlen) swrap_setsockopt(s,level,optname,optval,optlen) argument
|
/freebsd/sys/netinet6/ |
H A D | ip6_output.c | 1618 int level, op, optname; in ip6_ctloutput() local 1637 optname = sopt->sopt_name; in ip6_ctloutput() 1685 switch (optname) { in ip6_ctloutput() 1753 if (optname == IPV6_BINDANY && td != NULL) { in ip6_ctloutput() 1768 switch (optname) { in ip6_ctloutput() 1975 error = ip6_pcbopt(optname, in ip6_ctloutput() 1997 switch (optname) { in ip6_ctloutput() 2067 error = ip6_pcbopt(optname, optbuf, optlen, in ip6_ctloutput() 2136 switch (optname) { in ip6_ctloutput() 2175 switch (optname) { in ip6_ctloutput() [all …]
|
/freebsd/lib/libc/net/ |
H A D | sourcefilter.c | 281 int level, optname; in setsourcefilter() local 298 optname = IP_MSFILTER; in setsourcefilter() 309 optname = IPV6_MSFILTER; in setsourcefilter() 324 return (_setsockopt(s, level, optname, &msfr, sizeof(msfr))); in setsourcefilter() 339 int err, level, nsrcs, optname; in getsourcefilter() local 361 optname = IP_MSFILTER; in getsourcefilter() 372 optname = IPV6_MSFILTER; in getsourcefilter() 394 err = _getsockopt(s, level, optname, &msfr, &optlen); in getsourcefilter()
|
/freebsd/crypto/heimdal/appl/ftp/common/ |
H A D | sockbuf.c | 49 int optname = read ? SO_RCVBUF : SO_SNDBUF; in set_buffer_size() local 56 if(getsockopt(fd, SOL_SOCKET, optname, (void *)&curr, &optlen) == 0) { in set_buffer_size() 65 setsockopt(fd, SOL_SOCKET, optname, (void *)&size, sizeof(size)) < 0) in set_buffer_size()
|
/freebsd/usr.sbin/mtest/ |
H A D | mtest.c | 389 int af, error, f, flags, i, level, n, optname; in process_cmd() local 445 optname = (*cmd == 'j') ? in process_cmd() 456 optname = (*cmd == 'j') ? in process_cmd() 466 } else if (setsockopt(s, level, optname, optval, in process_cmd() 485 optname = (*cmd == 'j') ? in process_cmd() 496 optname = (*cmd == 'j') ? in process_cmd() 508 } else if (setsockopt(s6, level, optname, optval, in process_cmd() 638 optname = (*cmd == 't') ? in process_cmd() 646 optname = (*cmd == 't') ? in process_cmd() 653 if (setsockopt(s, level, optname, optval, in process_cmd() [all …]
|
/freebsd/tools/regression/netinet/msocket/ |
H A D | msocket.c | 80 test_u_char(int optname, const char *optstring, u_char defaultv, in test_u_char() argument 94 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen); in test_u_char() 109 ret = setsockopt(sock, IPPROTO_IP, optname, &uc, sizeof(uc)); in test_u_char() 119 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen); in test_u_char() 136 test_in_addr(int optname, const char *optstring, struct in_addr defaultv, in test_in_addr() argument 150 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen); in test_in_addr() 166 ret = setsockopt(sock, IPPROTO_IP, optname, &ia, sizeof(ia)); in test_in_addr() 176 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen); in test_in_addr()
|
/freebsd/lib/libipsec/ |
H A D | test-policy.c | 156 int proto = 0, optname = 0; local 163 optname = IP_IPSEC_POLICY; 167 optname = IPV6_IPSEC_POLICY; 179 if (setsockopt(so, proto, optname, policy, len) < 0) { 187 if (getsockopt(so, proto, optname, getbuf, &len) < 0) {
|
/freebsd/tools/regression/usr.bin/env/ |
H A D | regress-sb.rb | 330 def RGTestOptions.parse(optname, optval) argument 333 if not @@rgtest_opts.has_key?(optname) 335 optname 353 case optname 402 optname 408 optname, optval
|
/freebsd/contrib/ntp/sntp/ag-tpl/0-old/ |
H A D | perlopt.tpl | 23 (define optname-from "A-Z_^") 24 (define optname-to "a-z--") 38 (define optname (string-tr! (get "name") optname-from optname-to)) 84 (define def_add (string-append "'" optname (if (exist? "value")
|
/freebsd/contrib/ntp/libntp/lib/isc/win32/ |
H A D | net.c | 223 int optname; in try_ipv6pktinfo() local 247 optname = IPV6_RECVPKTINFO; in try_ipv6pktinfo() 249 optname = IPV6_PKTINFO; in try_ipv6pktinfo() 252 if (setsockopt(s, IPPROTO_IPV6, optname, (const char *) &on, in try_ipv6pktinfo()
|
/freebsd/sbin/ipf/libipf/ |
H A D | optvalue.c | 13 getoptbyname(char *optname) in getoptbyname() argument 18 if (!strcasecmp(optname, io->on_name)) in getoptbyname()
|
H A D | v6optvalue.c | 13 u_32_t getv6optbyname(char *optname) in getv6optbyname() argument 19 if (!strcasecmp(optname, io->on_name)) in getv6optbyname()
|
/freebsd/usr.sbin/tcpsso/ |
H A D | tcpsso.c | 289 int i, level, optname, optval_int; in create_parameters() local 324 optname = so_names[i].value; in create_parameters() 335 optname = (int)arg; in create_parameters() 353 switch (optname) { in create_parameters() 370 params->sop_optname = optname; in create_parameters() 371 switch (optname) { in create_parameters()
|
/freebsd/crypto/openssl/Configurations/platform/ |
H A D | VMS.pm | 33 sub optname { return $_[1] } subroutine 34 sub opt { return $_[0]->optname($_[1]) . $_[0]->optext() }
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | net.c | 326 int optname; in try_ipv6pktinfo() local 350 optname = IPV6_RECVPKTINFO; in try_ipv6pktinfo() 352 optname = IPV6_PKTINFO; in try_ipv6pktinfo() 355 if (setsockopt(s, IPPROTO_IPV6, optname, &on, sizeof(on)) < 0) { in try_ipv6pktinfo()
|
/freebsd/sbin/ipfw/ |
H A D | ipfw2.h | 374 int do_cmd(int optname, void *optval, uintptr_t optlen); 375 int do_set3(int optname, struct _ip_fw3_opheader *op3, size_t optlen); 376 int do_get3(int optname, struct _ip_fw3_opheader *op3, size_t *optlen); 414 void ipfw_zero(int ac, char *av[], int optname);
|
/freebsd/lib/libsysdecode/ |
H A D | flags.c | 765 sysdecode_sockopt_name(int level, int optname) in sysdecode_sockopt_name() argument 769 return (lookup_value(sockopt, optname)); in sysdecode_sockopt_name() 772 return (lookup_value(sockoptip, optname)); in sysdecode_sockopt_name() 774 return (lookup_value(sockoptipv6, optname)); in sysdecode_sockopt_name() 776 return (lookup_value(sockoptsctp, optname)); in sysdecode_sockopt_name() 778 return (lookup_value(sockopttcp, optname)); in sysdecode_sockopt_name() 780 return (lookup_value(sockoptudp, optname)); in sysdecode_sockopt_name() 782 return (lookup_value(sockoptudplite, optname)); in sysdecode_sockopt_name()
|
/freebsd/contrib/ofed/librdmacm/ |
H A D | rsocket.h | 85 int rsetsockopt(int socket, int level, int optname, 87 int rgetsockopt(int socket, int level, int optname,
|