| /src/sys/netinet6/ |
| dest6.c | 61 u_int8_t *opt; local 74 opt = (u_int8_t *)dstopts + sizeof(struct ip6_dest); 77 for (optlen = 0; dstoptlen > 0; dstoptlen -= optlen, opt += optlen) { 78 if (*opt != IP6OPT_PAD1 && 79 (dstoptlen < IP6OPT_MINLEN || *(opt + 1) + 2 > dstoptlen)) { 84 switch (*opt) { 89 optlen = *(opt + 1) + 2; 92 erroff = *offp + (opt - (u_int8_t *)dstopts); 93 optlen = ip6_unknown_opt(opt, m, erroff);
|
| /src/tests/net/tcp/ |
| tcp_shutdown.c | 90 int opt = 1; local 91 e = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt));
|
| /src/usr.bin/find/ |
| option.c | 164 char *opt; local 167 opt = *argv; 169 if ((p = option(opt)) == NULL) 170 errx(1, "%s: unknown option", opt); 173 errx(1, "%s: requires additional arguments", opt); 175 new = (p->create)(&argv, p->token == N_OK, opt);
|
| /src/usr.sbin/inetd/ |
| ipsec.c | 129 int opt; local 136 opt = IP_IPSEC_POLICY; 141 opt = IPV6_IPSEC_POLICY; 151 if (commit && setsockopt(fd, level, opt,
|
| /src/usr.bin/make/unit-tests/ |
| sh-flags.mk | 18 opt-ignerr.yes= -i 19 opt-jobs.yes= -j1 20 opt-loud.no= -d0 # side effect: make stdout unbuffered 21 opt-loud.yes= -dl # side effect: make stdout unbuffered 22 opt-no-action.yes= -n 23 opt-silent.yes= -s 24 opt-xtrace.yes= -dx 41 .for opt-ignerr in no yes 42 .for opt-jobs in no yes 43 .for opt-loud in no ye [all...] |
| Makefile | 244 TESTS+= opt 245 TESTS+= opt-backwards 246 TESTS+= opt-chdir 247 TESTS+= opt-debug 248 TESTS+= opt-debug-all 249 TESTS+= opt-debug-archive 250 TESTS+= opt-debug-curdir 251 TESTS+= opt-debug-cond 252 TESTS+= opt-debug-dir 253 TESTS+= opt-debug-error [all...] |
| /src/usr.bin/quota/ |
| quotautil.c | 76 char *opt; local 89 for (opt = strtok(optbuf, ","); opt; opt = strtok(NULL, ",")) { 90 if ((cp = strchr(opt, '=')) != NULL) 92 if (type == USRQUOTA && strcmp(opt, usrname) == 0) 94 if (type == GRPQUOTA && strcmp(opt, grpname) == 0) 97 if (!opt)
|
| /src/lib/libwrap/ |
| fix_options.c | 53 unsigned int opt; local 105 opt = cp[IPOPT_OPTVAL]; 106 if (opt == IPOPT_LSRR || opt == IPOPT_SSRR) { 113 if (opt == IPOPT_EOL) 115 if (opt == IPOPT_NOP) {
|
| /src/usr.sbin/sdpd/ |
| main.c | 69 int opt; local 73 while ((opt = getopt(argc, argv, "c:dG:g:hu:")) != -1) { 74 switch (opt) {
|
| server.c | 150 int opt, fd; local 167 opt = 1; 168 if (setsockopt(fd, SOL_LOCAL, LOCAL_CREDS, &opt, sizeof(opt)) == -1)
|
| /src/usr.sbin/sysinst/ |
| wskbd.c | 93 menu_ent opt[__arraycount(kb_types)]; local 103 memset(opt, 0, sizeof(opt)); 108 memset(&opt, 0, sizeof opt); 109 for (i = 0; i < __arraycount(opt); i++) { 111 opt[0].opt_name = MSG_unchanged; 113 opt[i].opt_name = kb_types[i].kb_name; 117 opt[i].opt_action = set_kb_encoding; 119 kb_menu = new_menu(MSG_Keyboard_type, opt, __arraycount(opt) [all...] |
| /src/lib/libpam/libpam/ |
| pam_std_option.c | 76 options->opt[i].name = std_options[i].name; 81 options->opt[i].name = oo->name; 85 options->opt[i].name = NULL; 87 options->opt[i].bool = 0; 88 options->opt[i].arg = NULL; 97 if (options->opt[i].name == NULL) 99 arglen = strlen(options->opt[i].name); 100 if (strcmp(argv[j], options->opt[i].name) == 0) { 101 options->opt[i].bool = 1; 105 else if (strncmp(argv[j], options->opt[i].name, arglen 169 int i, opt; local [all...] |
| /src/lib/libutil/ |
| getmntopts.c | 64 getmntoptstr(mntoptparse_t mp, const char *opt) 69 if (strcasecmp(opt, m->m_option) == 0) 74 errx(1, errmsg, opt); 83 getmntoptnum(mntoptparse_t mp, const char *opt) 88 const char *val = getmntoptstr(mp, opt); 92 errx(1, "Missing %s argument", opt); 109 (*fun)(1, "Invalid %s argument `%s'", opt, val); 128 char *opt, *p; local 154 for (opt = mp->optbuf; (opt = strtok(opt, ",")) != NULL; opt = NULL) [all...] |
| /src/usr.bin/menuc/ |
| parse.y | 104 opt opt_list ";" 132 opt_list : "," opt 133 | opt_list "," opt 138 opt : NO EXIT { cur_menu->info->mopt |= MC_NOEXITOPT; } label
|
| /src/usr.bin/passwd/ |
| krb5_passwd.c | 82 krb5_get_init_creds_opt *opt; local 142 ret = krb5_get_init_creds_opt_alloc(context, &opt); 148 krb5_get_init_creds_opt_set_tkt_life(opt, 300L); 149 krb5_get_init_creds_opt_set_forwardable(opt, FALSE); 150 krb5_get_init_creds_opt_set_proxiable(opt, FALSE); 154 krb5_get_init_creds_opt_free(context, opt); 167 opt); 169 krb5_get_init_creds_opt_free(context, opt); 238 krb5_arg (char ch, const char *opt) 247 ret = krb5_parse_name(defcontext, opt, &defprinc) 279 krb5_get_init_creds_opt *opt; local [all...] |
| local_passwd.c | 68 char option[LINE_MAX], *key, *opt; local 112 opt = option; 113 key = strsep(&opt, ","); 114 if(pw_gensalt(salt, _PASSWORD_LEN, key, opt) == -1) {
|
| /src/usr.bin/pwait/ |
| pwait.c | 76 int opt, duplicate, status, immediately = 0; local 84 while ((opt = getopt(argc, argv, "ist:v")) != -1) { 85 switch (opt) {
|
| /src/usr.bin/pwhash/ |
| pwhash.c | 103 char option[LINE_MAX], *key, *opt; local 145 opt = option; 146 key = strsep(&opt, ","); 147 error = pw_gensalt(buf, _PASSWORD_LEN, key, opt); 153 opt = option; 154 key = strsep(&opt, ","); 155 error = pw_gensalt(buf, _PASSWORD_LEN, key, opt); 168 int opt; local 179 while ((opt = getopt(argc, argv, "kmpS:s:b:A:")) != -1) { 181 while ((opt = getopt(argc, argv, "kmpS:s:b:")) != -1) [all...] |
| /src/usr.bin/tabs/ |
| tabs.c | 55 const char *opt; member in struct:tabspec 137 if (arg[0] == tabspecs[j].opt[0] && 138 arg[1] == tabspecs[j].opt[1]) {
|
| /src/bin/sh/ |
| cd.c | 93 char opt; local 95 while ((opt = nextopt("Pe")) != '\0') 96 if (opt == 'e') 378 char opt = 'L'; local 381 opt = i; 385 if (opt == 'L')
|
| /src/lib/librefuse/ |
| refuse_opt.c | 143 static int add_opt(char **opts, const char *opt, bool escape) 146 char* buf = realloc(*opts, orig_len + 1 + strlen(opt) * 2 + 1); 158 for (; *opt; opt++) { 159 if (escape && (*opt == ',' || *opt == '\\')) { 162 *buf++ = *opt; 169 int fuse_opt_add_opt(char **opts, const char *opt) 171 DPRINTF(("%s: arguments passed: [opts=%s] [opt=%s]\n", 172 __func__, *opts, opt)); 340 const struct fuse_opt *opt = find_opt(opts, arg, &sep_idx); local 396 char *opt; local [all...] |
| /src/sbin/dump/ |
| dumprmt.c | 112 int size, opt; local 149 opt = IPTOS_THROUGHPUT; 150 (void)setsockopt(rmtape, IPPROTO_IP, IP_TOS, &opt, sizeof (opt)); 152 opt = 1; 153 (void)setsockopt(rmtape, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof (opt));
|
| /src/sbin/iscsictl/ |
| iscsic_driverif.c | 443 char opt; local 452 opt = cl_get_char('d', argc, argv); 453 switch (opt) { 456 opt = 0; 462 opt = 1; 468 opt = 2; 472 gen_error("Invalid detail option '%c'\n", opt);
|
| iscsic_parse.c | 423 * opt target options 431 cl_get_target_opts(iscsid_get_set_target_options_t * opt, int argc, char **argv) 437 memset(opt, 0, sizeof(*opt)); 447 opt->HeaderDigest = ISCSI_DIGEST_CRC32C; 448 opt->is_present.HeaderDigest = 1; 452 opt->DataDigest = ISCSI_DIGEST_CRC32C; 453 opt->is_present.DataDigest = 1; 457 opt->DefaultTime2Wait = get_short_int(sp, argv[i], "Time to wait"); 458 opt->is_present.DefaultTime2Wait = 1 514 iscsid_portal_options_t *opt = &port->options; local [all...] |
| /src/sys/dev/gpib/ |
| cs80bus.c | 340 struct cs80_soptcmd opt; local 342 opt.c_unit = CS80CMD_SUNIT(punit); 343 opt.c_nop = CS80CMD_NOP; 344 opt.c_opt = CS80CMD_SOPT; 345 opt.c_param = options; 346 if (cs80send(sc, slave, punit, CS80CMD_SCMD, &opt, sizeof(opt))) {
|