/src/usr.bin/quota/ |
quotautil.c | 79 char optbuf[256]; local in function:hasquota 88 strlcpy(optbuf, fs->fs_mntops, sizeof(optbuf)); 89 for (opt = strtok(optbuf, ","); opt; opt = strtok(NULL, ",")) {
|
/src/lib/libwrap/ |
fix_options.c | 46 unsigned char optbuf[BUFFER_SIZE / 3], *cp; local in function:fix_options 49 socklen_t optsize = sizeof(optbuf); 76 if (getsockopt(fd, ipproto, IP_OPTIONS, optbuf, &optsize) == 0 104 for (cp = optbuf + ADDR_LEN; cp < optbuf + optsize; cp += optlen) { 117 } else if (&cp[IPOPT_OLEN] < optbuf + optsize) { 119 if (optlen < 2 || cp + optlen >= optbuf + optsize) { 135 for (cp = optbuf; optsize > 0; cp++, optsize--, lp += 3)
|
/src/lib/libutil/ |
getmntopts.c | 59 char *optbuf; member in struct:mntoptparse 117 free(mp->optbuf); 140 if ((mp->optbuf = strdup(options)) == NULL) { 146 free(mp->optbuf); 154 for (opt = mp->optbuf; (opt = strtok(opt, ",")) != NULL; opt = NULL) { 187 free(mp->optbuf);
|
/src/sbin/fsck/ |
fsck.c | 284 char *volatile optbuf; local in function:checkfs 296 optbuf = optb; 304 if (optbuf) 305 mangle(optbuf, &argc, &argv, &maxargc); 320 if (optbuf) 321 free(optbuf); 374 if (optbuf) 375 free(optbuf);
|
/src/libexec/rshd/ |
rshd.c | 312 u_char optbuf[BUFSIZ/3]; local in function:doit 313 socklen_t optsize = sizeof(optbuf); 322 if (!getsockopt(0, ipproto, IP_OPTIONS, (char *)optbuf, &optsize) && 325 u_char c = optbuf[i]; 337 i += (c == IPOPT_NOP) ? 1 : optbuf[i + 1];
|
/src/sbin/mount/ |
mount.c | 340 char *opt, *optbuf; local in function:hasopt 347 optbuf = estrdup(mntopts); 349 for (opt = optbuf; (opt = strtok(opt, ",")) != NULL; opt = NULL) { 356 free(optbuf); 379 char *optbuf, execname[MAXPATHLEN + 1], execbase[MAXPATHLEN], local in function:mountfs 390 optbuf = NULL; 392 catopt(&optbuf, mntopts); 395 catopt(&optbuf, options); 401 catopt(&optbuf, "rw"); 403 if (getargs == 0 && strcmp(name, "/") == 0 && !hasopt(optbuf, "union") [all...] |
/src/libexec/rlogind/ |
rlogind.c | 351 u_char optbuf[BUFSIZ/3], *cp; local in function:doit 353 socklen_t optsize = sizeof(optbuf); 361 if (getsockopt(0, ipproto, IP_OPTIONS, (char *)optbuf, 365 for (cp = optbuf; optsize > 0; cp++, optsize--, lp += 3)
|
/src/sys/netinet6/ |
ip6_output.c | 1105 u_int8_t *optbuf; local in function:ip6_insert_jumboopt 1121 optbuf = mtod(mopt, u_int8_t *); 1122 optbuf[1] = 0; /* = ((JUMBOOPTLEN) >> 3) - 1 */ 1164 optbuf = mtod(n, u_int8_t *) + oldoptlen; 1168 optbuf = mtod(mopt, u_int8_t *) + mopt->m_len; 1171 optbuf[0] = IP6OPT_PADN; 1172 optbuf[1] = 0; 1183 optbuf[2] = IP6OPT_JUMBO; 1184 optbuf[3] = 4; 1186 memcpy(&optbuf[4], &v, sizeof(u_int32_t)) 1652 void *optbuf; local in function:ip6_ctloutput [all...] |