/illumos-gate/usr/src/cmd/fs.d/tmpfs/ |
H A D | mount.c | 86 char optbuf[MAX_MNTOPT_STR]; in main() local 102 optbuf[0] = '\0'; in main() 119 (void) strncpy(optbuf, optarg, MAX_MNTOPT_STR); in main() 120 optbuf[MAX_MNTOPT_STR - 1] = '\0'; in main() 121 optsize = strlen(optbuf); in main() 125 optsize, optbuf); in main() 162 optbuf, strlen(optbuf)); in main() 167 if ((saveoptbuf = strdup(optbuf)) == NULL) { in main() 174 optbuf, MAX_MNTOPT_STR)) { in main() 198 cmp_requested_to_actual_options(saveoptbuf, optbuf, in main()
|
/illumos-gate/usr/src/cmd/fs.d/bootfs/ |
H A D | mount.c | 44 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 87 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 88 sizeof (optbuf)) { in main() 94 optsize = strlen(optbuf); in main() 121 if ((savedoptbuf = strdup(optbuf)) == NULL) { in main() 128 0, optbuf, MAX_MNTOPT_STR)) { in main() 134 cmp_requested_to_actual_options(savedoptbuf, optbuf, in main()
|
/illumos-gate/usr/src/cmd/fs.d/lofs/mount/ |
H A D | mount.c | 54 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 90 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 91 sizeof (optbuf)) { in main() 97 optsize = strlen(optbuf); in main() 124 if ((savedoptbuf = strdup(optbuf)) == NULL) { in main() 130 optbuf, MAX_MNTOPT_STR)) { in main() 136 cmp_requested_to_actual_options(savedoptbuf, optbuf, in main()
|
/illumos-gate/usr/src/cmd/fs.d/ctfs/ |
H A D | mount.c | 47 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 102 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 103 sizeof (optbuf)) { in main() 110 optsize = strlen(optbuf); in main() 137 if ((savedoptbuf = strdup(optbuf)) == NULL) { in main() 144 optbuf, MAX_MNTOPT_STR)) { in main() 151 cmp_requested_to_actual_options(savedoptbuf, optbuf, in main()
|
/illumos-gate/usr/src/cmd/fs.d/objfs/ |
H A D | mount.c | 47 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 102 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 103 sizeof (optbuf)) { in main() 110 optsize = strlen(optbuf); in main() 137 if ((savedoptbuf = strdup(optbuf)) == NULL) { in main() 144 optbuf, MAX_MNTOPT_STR)) { in main() 151 cmp_requested_to_actual_options(savedoptbuf, optbuf, in main()
|
/illumos-gate/usr/src/cmd/fs.d/sharefs/ |
H A D | mount.c | 47 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 102 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 103 sizeof (optbuf)) { in main() 110 optsize = strlen(optbuf); in main() 137 if ((savedoptbuf = strdup(optbuf)) == NULL) { in main() 144 optbuf, MAX_MNTOPT_STR)) { in main() 151 cmp_requested_to_actual_options(savedoptbuf, optbuf, in main()
|
/illumos-gate/usr/src/cmd/fs.d/udfs/mount/ |
H A D | mount.c | 47 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 89 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 90 sizeof (optbuf)) { in main() 96 optsize = strlen(optbuf); in main() 124 m.mnt_mntopts = optbuf; in main() 203 if ((savedoptbuf = strdup(optbuf)) == NULL) { in do_mount() 209 fstype, NULL, 0, optbuf, MAX_MNTOPT_STR) == -1) { in do_mount() 214 cmp_requested_to_actual_options(savedoptbuf, optbuf, in do_mount()
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/mount/ |
H A D | mount.c | 45 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 143 if (append_opt(optbuf, sizeof (optbuf), in main() 210 if (append_opt(optbuf, sizeof (optbuf), tzstr) == 0) in main() 213 optsize = strlen(optbuf); in main() 218 if ((savedoptbuf = strdup(optbuf)) == NULL) { in main() 232 NULL, 0, optbuf, MAX_MNTOPT_STR)) { in main() 248 cmp_requested_to_actual_options(savedoptbuf, optbuf, in main()
|
/illumos-gate/usr/src/cmd/fs.d/fd/ |
H A D | mount.c | 46 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 103 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 104 sizeof (optbuf)) { in main() 110 optsize = strlen(optbuf); in main() 200 if ((savedoptbuf = strdup(optbuf)) == NULL) { in do_mount() 206 fstype, NULL, 0, optbuf, MAX_MNTOPT_STR)) { in do_mount() 211 cmp_requested_to_actual_options(savedoptbuf, optbuf, in do_mount()
|
/illumos-gate/usr/src/cmd/fs.d/mntfs/ |
H A D | mount.c | 51 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 100 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 101 sizeof (optbuf)) { in main() 107 optsize = strlen(optbuf); in main() 191 if ((savedoptbuf = strdup(optbuf)) == NULL) { in do_mount() 199 optbuf, MAX_MNTOPT_STR)) { in do_mount() 205 cmp_requested_to_actual_options(savedoptbuf, optbuf, in do_mount()
|
/illumos-gate/usr/src/cmd/fs.d/proc/ |
H A D | mount.c | 51 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable 103 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >= in main() 104 sizeof (optbuf)) { in main() 110 optsize = strlen(optbuf); in main() 196 if ((savedoptbuf = strdup(optbuf)) == NULL) { in do_mount() 207 optbuf, MAX_MNTOPT_STR)) { in do_mount() 212 cmp_requested_to_actual_options(savedoptbuf, optbuf, in do_mount()
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | fix_options.c | 44 unsigned char optbuf[BUFFER_SIZE / 3], *cp; local 46 int optsize = sizeof(optbuf), ipproto; 58 if (getsockopt(fd, ipproto, IP_OPTIONS, (char *) optbuf, &optsize) == 0 86 for (cp = optbuf + ADDR_LEN; cp < optbuf + optsize; cp += optlen) { 106 for (cp = optbuf; optsize > 0; cp++, optsize--, lp += 3)
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/mount/ |
H A D | mount.c | 164 char optbuf[MAX_MNTOPT_STR] = "rw"; variable 229 mnt.mnt_mntopts = optbuf; in main() 302 if (p = strstr(optbuf, "rw")) { in main() 467 (void) strlcat(optbuf, ",", sizeof (optbuf)); in setsubopt() 468 if (strlcat(optbuf, subopt, sizeof (optbuf)) >= in setsubopt() 469 sizeof (optbuf)) { in setsubopt()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | tlx.c | 264 } optbuf; in tlx_setsockopt() local 266 if (optlen > sizeof (optbuf.data)) { in tlx_setsockopt() 271 optbuf.sockopt.level = level; in tlx_setsockopt() 272 optbuf.sockopt.name = optname; in tlx_setsockopt() 273 optbuf.sockopt.len = optlen; in tlx_setsockopt() 274 (void) memcpy(optbuf.data, optval, optlen); in tlx_setsockopt() 277 request.opt.buf = (char *)&optbuf; in tlx_setsockopt() 281 reply.opt.buf = (char *)&optbuf; in tlx_setsockopt()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftp.c | 86 static char optbuf[MAX_OPTVAL_LEN]; variable 448 (void) snprintf(optbuf, sizeof (optbuf), "%d", blksize); in blksize_str() 449 return (optbuf); in blksize_str() 461 (void) snprintf(optbuf, sizeof (optbuf), "%d", srexmtval); in timeout_str() 462 return (optbuf); in timeout_str() 474 (void) snprintf(optbuf, sizeof (optbuf), OFF_T_FMT, tsize); in tsize_str() 475 return (optbuf); in tsize_str()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | usersmtp.c | 2006 char optbuf[MAXLINE]; local 2027 (void) sm_snprintf(optbuf, sizeof(optbuf), " SIZE=%ld", 2029 bufp = &optbuf[strlen(optbuf)]; 2033 optbuf[0] = '\0'; 2034 bufp = optbuf; 2047 SPACELEFT(optbuf, bufp) > strlen(bodytype) + 7) 2049 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp), 2084 SPACELEFT(optbuf, bufp) > strlen(e->e_envid) + 7) 2086 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp), 2093 SPACELEFT(optbuf, bufp) > 9) [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | tn_ipopt.c | 641 tsol_prepend_option(uchar_t *optbuf, ipha_t *ipha, int buflen) in tsol_prepend_option() argument 649 if (optbuf[IPOPT_OPTVAL] == IPOPT_EOL || in tsol_prepend_option() 650 optbuf[IPOPT_OPTVAL] == IPOPT_NOP || in tsol_prepend_option() 651 optbuf[IPOPT_OLEN] == 0) in tsol_prepend_option() 654 ASSERT(optbuf[IPOPT_OLEN] >= 2 && in tsol_prepend_option() 655 optbuf[IPOPT_OLEN] <= IP_MAX_OPT_LENGTH); in tsol_prepend_option() 703 olen = (optbuf[IPOPT_OLEN] + 3) & ~3; in tsol_prepend_option() 719 olen = optbuf[IPOPT_OLEN]; in tsol_prepend_option() 720 bcopy(optbuf, toptr, olen); in tsol_prepend_option() 1264 tsol_prepend_option_v6(uchar_t *optbuf, ip6_t *ip6h, int buflen) in tsol_prepend_option_v6() argument [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.tftpd.c | 175 static char optbuf[MAX_OPTVAL_LEN]; variable 585 (void) snprintf(optbuf, sizeof (optbuf), "%d", blocksize); in blksize_handler() 586 return (optbuf); in blksize_handler() 615 (void) snprintf(optbuf, sizeof (optbuf), "%d", rexmtval); in timeout_handler() 616 return (optbuf); in timeout_handler() 652 (void) snprintf(optbuf, sizeof (optbuf), OFF_T_FMT, tsize); in tsize_handler() 653 return (optbuf); in tsize_handler()
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 229 char optbuf[BUFSIZ]; in print_da_defs() local 237 if (_kva2str(da_defs->devopts, optbuf, sizeof (optbuf), KV_ASSIGN, in print_da_defs() 239 if (p = rindex(optbuf, ':')) in print_da_defs() 241 (void) printf("\t%s\n", optbuf); in print_da_defs() 252 char optbuf[BUFSIZ]; in print_dev_attrs() local 261 if (_kva2str(da->da_devopts, optbuf, sizeof (optbuf), in print_dev_attrs() 263 if (p = rindex(optbuf, ':')) in print_dev_attrs() 265 (void) printf("%s", optbuf); in print_dev_attrs()
|
/illumos-gate/usr/src/head/rpcsvc/ |
H A D | svc_dg_priv.h | 52 struct netbuf optbuf; /* netbuf for options */ member
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | optcom.c | 1908 uchar_t *optbuf; in optcom_pkt_set() local 1919 optbuf = kmem_alloc(inlen, KM_NOSLEEP); in optcom_pkt_set() 1920 if (optbuf == NULL) in optcom_pkt_set() 1923 optbuf = NULL; in optcom_pkt_set() 1931 bcopy(invalp, optbuf, inlen); in optcom_pkt_set() 1933 *optbufp = optbuf; in optcom_pkt_set() 1940 void *optbuf, optdb_obj_t *dbobjp, int (*opt_set_fn)(conn_t *, in process_auxiliary_options() argument 1986 &outlen, (uchar_t *)CMSG_CONTENT(cmsg), optbuf, cr); in process_auxiliary_options()
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | socksdp.c | 660 void *optbuf = &buffer; in sosdp_getsockopt() local 759 optbuf = kmem_alloc(maxlen, KM_SLEEP); in sosdp_getsockopt() 764 level, option_name, optbuf, &optlen); in sosdp_getsockopt() 777 option = optbuf; in sosdp_getsockopt() 786 if (optbuf != &buffer) { in sosdp_getsockopt() 787 kmem_free(optbuf, maxlen); in sosdp_getsockopt()
|
H A D | socksctp.c | 1239 void *optbuf = &buffer; in sosctp_getsockopt() local 1268 optbuf = kmem_alloc(maxlen, KM_SLEEP); in sosctp_getsockopt() 1277 option_name, optbuf, &optlen); in sosctp_getsockopt() 1288 bcopy(optbuf, optval, len); in sosctp_getsockopt() 1291 if (optbuf != &buffer) { in sosctp_getsockopt() 1292 kmem_free(optbuf, maxlen); in sosctp_getsockopt()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | ldterm.c | 4803 struct stroptions optbuf; in chgstropts() local 4806 optbuf.so_flags = 0; in chgstropts() 4817 optbuf.so_flags = SO_READOPT|SO_MREADOFF; in chgstropts() 4818 optbuf.so_readopt = RMSGN; in chgstropts() 4831 optbuf.so_flags = SO_READOPT|SO_MREADON; in chgstropts() 4832 optbuf.so_readopt = RNORM; in chgstropts() 4840 optbuf.so_flags |= SO_TOSTOP; in chgstropts() 4842 optbuf.so_flags |= SO_TONSTOP; in chgstropts() 4844 if (optbuf.so_flags != 0) { in chgstropts() 4849 *(struct stroptions *)bp->b_wptr = optbuf; in chgstropts()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svc_dg.c | 414 su->optbuf = tu_data->opt; in svc_dg_recv() 507 extract_cred(&su->optbuf, &tu_data->opt); in svc_dg_reply()
|