Searched defs:optval (Results 1 - 25 of 59) sorted by relevance

123

/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dgetsockopt.c34 getsockopt(int s, int level, int optname, char *optval, int *optlen) argument
37 if ((a = _getsockopt(s, level, optname, optval, optlen)) == -1)
H A Dsetsockopt.c47 setsockopt(int s, int level, int optname, char *optval, int optlen) argument
66 ling.l_linger = (int)*optval;
77 if (!optval) {
108 if ((a = _setsockopt(s, level, optname, optval, optlen)) == -1)
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbindresvport.c60 int optval, len; local
73 len = sizeof (optval);
74 if (getsockopt(sd, SOL_SOCKET, SO_TYPE, &optval, &len) < 0) {
81 if (optval == SOCK_STREAM) {
84 } else if (optval == SOCK_DGRAM) {
92 optval = 1;
93 if (setsockopt(sd, level, optname, &optval, sizeof (optval)) < 0) {
106 optval = 0;
107 (void) setsockopt(sd, level, optname, &optval, sizeo
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dinfo.c102 * @optval points to the userspace buffer that the information snapshot
111 rdsv3_info_ioctl(struct rsock *sock, int optname, char *optval, argument
127 if (optval == NULL) {
128 RDSV3_DPRINTF2("rdsv3_info_ioctl", "optval is NULL");
131 if (ddi_copyin(optval, &arg, sizeof (struct rds_info_arg), 0) != 0) {
133 "ddi_copyin for address: 0x%p failed", optval);
H A Drdma.c269 rdsv3_get_mr(struct rdsv3_sock *rs, const void *optval, int optlen) argument
277 bcopy((struct rds_get_mr_args *)optval, &args,
280 if (ddi_copyin(optval, &args, optlen, 0))
288 rdsv3_get_mr_for_dest(struct rdsv3_sock *rs, const void *optval, argument
298 bcopy((struct rds_get_mr_for_dest_args *)optval, &args,
301 if (ddi_copyin(optval, &args, optlen, 0))
321 rdsv3_free_mr(struct rdsv3_sock *rs, const void *optval, int optlen) argument
330 bcopy((struct rds_free_mr_args *)optval, &args,
333 if (ddi_copyin((struct rds_free_mr_args *)optval, &args,
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_trace.c118 char optval[100]; local
139 (void) strncpy(optval, base, p - base);
140 optval[p - base] = '\0';
142 optval[0] = '\0';
144 set_option(optname, optval);
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_getsockname.c118 int sock, int level, int optname, void *optval, int *optlen)
126 return (_so_getsockopt(sock, level, optname, optval, optlen));
149 adp++; /* optval argument */
151 adp->arg_object = optval;
117 pr_getsockopt(struct ps_prochandle *Pr, int sock, int level, int optname, void *optval, int *optlen) argument
/illumos-gate/usr/src/cmd/rcap/rcapadm/
H A Drcapadm.c184 char *subopts, *optval; local
219 &optval)) {
221 if (optval == NULL ||
223 xatoi(optval)) <= 0)
227 if (optval == NULL ||
229 xatoi(optval)) <= 0)
233 if (optval == NULL ||
235 xatoi(optval)) < 0)
239 if (optval == NULL ||
241 xatoi(optval)) <
[all...]
/illumos-gate/usr/src/cmd/idmap/nltest/
H A Dnltest.c47 int optreq; /* does this have a required optval */
85 cmd_dclist(char *optval) argument
103 cmd_dcname(char *optval) argument
121 cmd_dsgetdc(char *optval) argument
251 char *optval = NULL; local
261 optval = NULL;
273 optval = p;
284 optval = p;
292 * Handle each optname (and maybe its optval)
294 * (including a flag for "optval require
[all...]
/illumos-gate/usr/src/lib/libsocket/socket/
H A Dweaks.c170 _getsockopt(int sock, int level, int optname, char *optval, int *optlen) argument
189 bcopy(optval, &id, sizeof (id));
193 optval)->sinfo_assoc_id, &id, sizeof (id));
199 sopt.sopt_val = optval;
208 return (_so_getsockopt(sock, level, optname, optval, optlen,
214 _setsockopt(int sock, int level, int optname, char *optval, int optlen) argument
216 return (_so_setsockopt(sock, level, optname, optval, optlen,
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dti_opts.c456 __rpc_tli_set_options(int fd, int optlevel, int optname, int optval) argument
482 ling->l_linger = (int)optval;
502 *ip = optval;
/illumos-gate/usr/src/common/cmdparse/
H A Dcmdparse.h63 int optval; member in struct:_cmdOptions
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftpsubs.c351 char *cp, *optname, *optval; local
367 if ((optval = next_field(optname, endopts)) == NULL) {
376 if ((opts = next_field(optval, endopts)) == NULL) {
380 (void) fprintf(stream, "=%s", optval);
H A Dtftp.c586 char *cp, *oackend, *optname, *optval; local
596 if ((optval = next_field(optname, oackend)) == NULL)
598 if ((cp = next_field(optval, oackend)) == NULL)
606 errcode = options[i].opt_handler(optval);
/illumos-gate/usr/src/cmd/mpathadm/
H A Dcmdparse.h66 int optval; member in struct:_cmdOptions
/illumos-gate/usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/event-transport/
H A Dex_dscp.c183 int rv, optval = 1; local
202 &optval, sizeof (optval))) {
410 int flags, optval = 1; local
434 if (setsockopt(Acc.c_sd, SOL_SOCKET, SO_REUSEADDR, &optval,
435 sizeof (optval))) {
/illumos-gate/usr/src/cmd/iscsiadm/
H A Dcmdparse.h67 int optval; member in struct:_cmdOptions
/illumos-gate/usr/src/cmd/isns/isnsadm/
H A Dcmdparse.h63 int optval; member in struct:_cmdOptions
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsock_notsupp.c87 int option_name, void *optval, socklen_t *optlenp, struct cred *cr)
95 int option_name, const void *optval, socklen_t optlen, struct cred *cr)
86 sock_getsockopt_notsupp(sock_lower_handle_t handle, int level, int option_name, void *optval, socklen_t *optlenp, struct cred *cr) argument
94 sock_setsockopt_notsupp(sock_lower_handle_t handle, int level, int option_name, const void *optval, socklen_t optlen, struct cred *cr) argument
H A Dsockcommon.c288 void *optval, socklen_t *optlenp, int flags, cred_t *cr)
290 return (SOP_GETSOCKOPT(so, level, option_name, optval,
299 const void *optval, t_uscalar_t optlen, cred_t *cr)
302 /* Caller allocates aligned optval, or passes null */
303 ASSERT(((uintptr_t)optval & (sizeof (t_scalar_t) - 1)) == 0);
304 /* If optval is null optlen is 0, and vice-versa */
305 ASSERT(optval != NULL || optlen == 0);
306 ASSERT(optlen != 0 || optval == NULL);
308 if (optval == NULL && optlen == 0)
309 optval
287 socket_getsockopt(struct sonode *so, int level, int option_name, void *optval, socklen_t *optlenp, int flags, cred_t *cr) argument
298 socket_setsockopt(struct sonode *so, int level, int option_name, const void *optval, t_uscalar_t optlen, cred_t *cr) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dtlx.c257 tlx_setsockopt(int fd, int level, int optname, const void *optval, argument
274 (void) memcpy(optbuf.data, optval, optlen);
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starcat/
H A Dcvcd.c493 int optval; local
494 int optlen = sizeof (optval);
510 optval = 1;
511 err = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &optval, optlen);
517 err = ioctl(fd, FIONBIO, &optval);
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsocksdp.c652 void *optval, socklen_t *optlenp, int flags, struct cred *cr)
781 bcopy(option, optval, len);
799 const void *optval, t_uscalar_t optlen, struct cred *cr)
821 option_name, optval, optlen);
853 ASSERT(optval);
862 ASSERT(optval);
867 #define intvalue (*(int32_t *)optval)
877 struct linger *l = (struct linger *)optval;
651 sosdp_getsockopt(struct sonode *so, int level, int option_name, void *optval, socklen_t *optlenp, int flags, struct cred *cr) argument
798 sosdp_setsockopt(struct sonode *so, int level, int option_name, const void *optval, t_uscalar_t optlen, struct cred *cr) argument
/illumos-gate/usr/src/uts/common/io/ksocket/
H A Dksocket.c605 ksocket_getsockopt(ksocket_t ks, int level, int optname, void *optval, argument
623 return (socket_getsockopt(so, level, optname, optval,
628 ksocket_setsockopt(ksocket_t ks, int level, int optname, const void *optval, argument
641 if (optval == NULL)
644 return (socket_setsockopt(so, level, optname, optval,
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dksocket.c511 ksocket_setsockopt(ksocket_t ks, int level, int optname, const void *optval, argument
520 if (optval == NULL)
523 if (setsockopt(KSTOSO(ks), level, optname, optval, optlen) != 0)

Completed in 99 milliseconds

123