Searched defs:optbuf (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/head/rpcsvc/
H A Dsvc_dg_priv.h51 /* Note: optbuf must be the first field, used by ti_opts.c code */
52 struct netbuf optbuf; /* netbuf for options */ member in struct:svc_dg_data
/illumos-gate/usr/src/cmd/fs.d/bootfs/
H A Dmount.c44 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
87 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
88 sizeof (optbuf)) {
94 optsize = strlen(optbuf);
121 if ((savedoptbuf = strdup(optbuf)) == NULL) {
128 0, optbuf, MAX_MNTOPT_STR)) {
134 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/lib/libwrap/
H A Dfix_options.c46 unsigned char optbuf[BUFFER_SIZE / 3], *cp; local
48 int optsize = sizeof(optbuf), ipproto;
60 if (getsockopt(fd, ipproto, IP_OPTIONS, (char *) optbuf, &optsize) == 0
88 for (cp = optbuf + ADDR_LEN; cp < optbuf + optsize; cp += optlen) {
108 for (cp = optbuf; optsize > 0; cp++, optsize--, lp += 3)
/illumos-gate/usr/src/cmd/fs.d/lofs/mount/
H A Dmount.c54 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
90 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
91 sizeof (optbuf)) {
97 optsize = strlen(optbuf);
124 if ((savedoptbuf = strdup(optbuf)) == NULL) {
130 optbuf, MAX_MNTOPT_STR)) {
136 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/fs.d/ctfs/
H A Dmount.c49 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
104 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
105 sizeof (optbuf)) {
112 optsize = strlen(optbuf);
139 if ((savedoptbuf = strdup(optbuf)) == NULL) {
146 optbuf, MAX_MNTOPT_STR)) {
153 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/fs.d/fd/
H A Dmount.c49 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
106 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
107 sizeof (optbuf)) {
113 optsize = strlen(optbuf);
203 if ((savedoptbuf = strdup(optbuf)) == NULL) {
209 fstype, NULL, 0, optbuf, MAX_MNTOPT_STR)) {
214 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/fs.d/mntfs/
H A Dmount.c54 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
103 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
104 sizeof (optbuf)) {
110 optsize = strlen(optbuf);
194 if ((savedoptbuf = strdup(optbuf)) == NULL) {
202 optbuf, MAX_MNTOPT_STR)) {
208 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/fs.d/objfs/
H A Dmount.c49 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
104 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
105 sizeof (optbuf)) {
112 optsize = strlen(optbuf);
139 if ((savedoptbuf = strdup(optbuf)) == NULL) {
146 optbuf, MAX_MNTOPT_STR)) {
153 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/fs.d/proc/
H A Dmount.c54 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
106 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
107 sizeof (optbuf)) {
113 optsize = strlen(optbuf);
199 if ((savedoptbuf = strdup(optbuf)) == NULL) {
210 optbuf, MAX_MNTOPT_STR)) {
215 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/fs.d/sharefs/
H A Dmount.c49 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
104 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
105 sizeof (optbuf)) {
112 optsize = strlen(optbuf);
139 if ((savedoptbuf = strdup(optbuf)) == NULL) {
146 optbuf, MAX_MNTOPT_STR)) {
153 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/fs.d/tmpfs/
H A Dmount.c87 char optbuf[MAX_MNTOPT_STR]; local
103 optbuf[0] = '\0';
120 (void) strncpy(optbuf, optarg, MAX_MNTOPT_STR);
121 optbuf[MAX_MNTOPT_STR - 1] = '\0';
122 optsize = strlen(optbuf);
125 (void) fprintf(stderr, "optsize:%d optbuf:%s\n",
126 optsize, optbuf);
163 optbuf, strlen(optbuf));
168 if ((saveoptbuf = strdup(optbuf))
[all...]
/illumos-gate/usr/src/cmd/fs.d/udfs/mount/
H A Dmount.c49 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
91 if (strlcpy(optbuf, optarg, sizeof (optbuf)) >=
92 sizeof (optbuf)) {
98 optsize = strlen(optbuf);
126 m.mnt_mntopts = optbuf;
205 if ((savedoptbuf = strdup(optbuf)) == NULL) {
211 fstype, NULL, 0, optbuf, MAX_MNTOPT_STR) == -1) {
216 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/fs.d/pcfs/mount/
H A Dmount.c46 static char optbuf[MAX_MNTOPT_STR] = { '\0', }; variable
144 if (append_opt(optbuf, sizeof (optbuf),
211 if (append_opt(optbuf, sizeof (optbuf), tzstr) == 0)
214 optsize = strlen(optbuf);
219 if ((savedoptbuf = strdup(optbuf)) == NULL) {
233 NULL, 0, optbuf, MAX_MNTOPT_STR)) {
249 cmp_requested_to_actual_options(savedoptbuf, optbuf,
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftp.c87 static char optbuf[MAX_OPTVAL_LEN]; variable
447 (void) snprintf(optbuf, sizeof (optbuf), "%d", blksize);
448 return (optbuf);
460 (void) snprintf(optbuf, sizeof (optbuf), "%d", srexmtval);
461 return (optbuf);
473 (void) snprintf(optbuf, sizeof (optbuf), OFF_T_FMT, tsize);
474 return (optbuf);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dtlx.c264 } optbuf; local
266 if (optlen > sizeof (optbuf.data)) {
271 optbuf.sockopt.level = level;
272 optbuf.sockopt.name = optname;
273 optbuf.sockopt.len = optlen;
274 (void) memcpy(optbuf.data, optval, optlen);
277 request.opt.buf = (char *)&optbuf;
281 reply.opt.buf = (char *)&optbuf;
/illumos-gate/usr/src/cmd/fs.d/smbclnt/mount/
H A Dmount.c164 char optbuf[MAX_MNTOPT_STR] = "rw"; variable
220 mnt.mnt_mntopts = optbuf;
293 if (p = strstr(optbuf, "rw")) {
458 (void) strlcat(optbuf, ",", sizeof (optbuf));
459 if (strlcat(optbuf, subopt, sizeof (optbuf)) >=
460 sizeof (optbuf)) {
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsocksdp.c659 void *optbuf = &buffer; local
758 optbuf = kmem_alloc(maxlen, KM_SLEEP);
763 level, option_name, optbuf, &optlen);
776 option = optbuf;
785 if (optbuf != &buffer) {
786 kmem_free(optbuf, maxlen);
H A Dsocksctp.c1230 void *optbuf = &buffer; local
1259 optbuf = kmem_alloc(maxlen, KM_SLEEP);
1268 option_name, optbuf, &optlen);
1279 bcopy(optbuf, optval, len);
1282 if (optbuf != &buffer) {
1283 kmem_free(optbuf, maxlen);
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dtn_ipopt.c629 * Insert the option in 'optbuf' into the IP header pointed to by 'ipha', and
641 tsol_prepend_option(uchar_t *optbuf, ipha_t *ipha, int buflen) argument
649 if (optbuf[IPOPT_OPTVAL] == IPOPT_EOL ||
650 optbuf[IPOPT_OPTVAL] == IPOPT_NOP ||
651 optbuf[IPOPT_OLEN] == 0)
654 ASSERT(optbuf[IPOPT_OLEN] >= 2 &&
655 optbuf[IPOPT_OLEN] <= IP_MAX_OPT_LENGTH);
703 olen = (optbuf[IPOPT_OLEN] + 3) & ~3;
719 olen = optbuf[IPOPT_OLEN];
720 bcopy(optbuf, topt
1264 tsol_prepend_option_v6(uchar_t *optbuf, ip6_t *ip6h, int buflen) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/
H A Doptcom.c1908 uchar_t *optbuf; local
1919 optbuf = kmem_alloc(inlen, KM_NOSLEEP);
1920 if (optbuf == NULL)
1923 optbuf = NULL;
1931 bcopy(invalp, optbuf, inlen);
1933 *optbufp = optbuf;
1940 void *optbuf, optdb_obj_t *dbobjp, int (*opt_set_fn)(conn_t *,
1986 &outlen, (uchar_t *)CMSG_CONTENT(cmsg), optbuf, cr);
1939 process_auxiliary_options(conn_t *connp, void *control, t_uscalar_t controllen, void *optbuf, optdb_obj_t *dbobjp, int (*opt_set_fn)(conn_t *, uint_t, int, int, uint_t, uchar_t *, uint_t *, uchar_t *, void *, cred_t *), cred_t *cr) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c174 static char optbuf[MAX_OPTVAL_LEN]; variable
584 (void) snprintf(optbuf, sizeof (optbuf), "%d", blocksize);
585 return (optbuf);
614 (void) snprintf(optbuf, sizeof (optbuf), "%d", rexmtval);
615 return (optbuf);
651 (void) snprintf(optbuf, sizeof (optbuf), OFF_T_FMT, tsize);
652 return (optbuf);
[all...]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dusersmtp.c2006 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, buf
2271 char optbuf[MAXLINE]; local
[all...]
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate3.c229 char optbuf[BUFSIZ]; local
237 if (_kva2str(da_defs->devopts, optbuf, sizeof (optbuf), KV_ASSIGN,
239 if (p = rindex(optbuf, ':'))
241 (void) printf("\t%s\n", optbuf);
252 char optbuf[BUFSIZ]; local
261 if (_kva2str(da->da_devopts, optbuf, sizeof (optbuf),
263 if (p = rindex(optbuf, ':'))
265 (void) printf("%s", optbuf);
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/mount/
H A Dmount.c236 char optbuf[MAX_MNTOPT_STR]; local
255 mnt.mnt_mntopts = optbuf;
256 (void) strcpy(optbuf, "rw");
/illumos-gate/usr/src/uts/common/io/
H A Dldterm.c4782 struct stroptions optbuf; local
4785 optbuf.so_flags = 0;
4796 optbuf.so_flags = SO_READOPT|SO_MREADOFF;
4797 optbuf.so_readopt = RMSGN;
4810 optbuf.so_flags = SO_READOPT|SO_MREADON;
4811 optbuf.so_readopt = RNORM;
4819 optbuf.so_flags |= SO_TOSTOP;
4821 optbuf.so_flags |= SO_TONSTOP;
4823 if (optbuf.so_flags != 0) {
4828 *(struct stroptions *)bp->b_wptr = optbuf;
[all...]

Completed in 121 milliseconds

12