Searched refs:optstr (Results 1 - 22 of 22) sorted by relevance

/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/
H A Dnouveau_nvkm_core_option.c33 nvkm_stropt(const char *optstr, const char *opt, int *arglen) argument
35 while (optstr && *optstr != '\0') {
36 int len = strcspn(optstr, ",=");
37 switch (optstr[len]) {
39 if (!strncasecmpz(optstr, opt, len)) {
40 optstr += len + 1;
41 *arglen = strcspn(optstr, ",=");
42 return *arglen ? optstr : NULL;
44 optstr
59 nvkm_boolopt(const char *optstr, const char *opt, bool value) argument
82 nvkm_longopt(const char *optstr, const char *opt, long value) argument
100 nvkm_dbgopt(const char *optstr, const char *sub) argument
[all...]
/netbsd-current/sys/kern/
H A Dsubr_optstr.c36 #include <sys/optstr.h>
49 optstr_get_pointer(const char *optstr, const char *key, const char **result) argument
54 while (*optstr == ' ' || *optstr == '\t')
55 optstr++;
58 while (!found && *optstr != '\0') {
63 while (*optstr == *keyp) {
64 optstr++;
68 if (*optstr == '=' && *keyp == '\0')
72 while (*optstr !
90 optstr_get(const char *optstr, const char *key, char *buf, size_t bufsize) argument
108 optstr_get_string(const char *optstr, const char *key, const char **result) argument
121 optstr_get_number(const char *optstr, const char *key, unsigned long *result) argument
139 optstr_get_number_hex(const char *optstr, const char *key, unsigned long *result) argument
158 optstr_get_number_binary(const char *optstr, const char *key, unsigned long *result) argument
179 optstr_get_macaddr(const char *optstr, const char *key, uint8_t result[ETHER_ADDR_LEN]) argument
[all...]
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/core/
H A Doption.h8 const char *nvkm_stropt(const char *optstr, const char *opt, int *len);
9 bool nvkm_boolopt(const char *optstr, const char *opt, bool value);
10 long nvkm_longopt(const char *optstr, const char *opt, long value);
11 int nvkm_dbgopt(const char *optstr, const char *sub);
/netbsd-current/external/bsd/am-utils/dist/conf/trap/
H A Dtrap_svr4.h4 extern int mount_svr4(char *fsname, char *dir, int flags, MTYPE_TYPE type, caddr_t data, const char *optstr);
/netbsd-current/external/bsd/atf/dist/atf-c++/detail/
H A Dapplication.cpp158 std::string optstr; local
160 optstr += '+'; // Turn on POSIX behavior.
162 optstr += ':';
169 optstr += opt.m_character;
171 optstr += ':';
178 while ((ch = ::getopt(m_argc, m_argv, optstr.c_str())) != -1) {
/netbsd-current/usr.sbin/bootp/bootptest/
H A Dprint-bootp.c284 const char *optstr;
300 optstr = rfc1048_opts[tag];
301 printf(" %s:", optstr + 1);
304 optstr = "?";
314 switch (optstr[0]) {
283 const char *optstr; local
/netbsd-current/external/bsd/am-utils/dist/conf/mount/
H A Dmount_svr4.c74 mount_svr4(char *fsname, char *dir, int flags, MTYPE_TYPE type, caddr_t data, const char *optstr) argument
83 xstrlcpy(mountopts, optstr, MAX_MNTOPT_STR);
H A Dmount_linux.c298 parse_opts(char *type, const char *optstr, int *flags, char **xopts, int *noauto) argument
305 if (optstr == NULL)
308 xoptstr = xstrdup(optstr); /* because strtok is destructive below */
311 l = strlen(optstr) + 2;
/netbsd-current/external/bsd/atf/dist/tools/
H A Dapplication.cpp154 std::string optstr = ":"; local
161 optstr += opt.m_character;
163 optstr += ':';
170 while ((ch = ::getopt(m_argc, m_argv, optstr.c_str())) != -1) {
/netbsd-current/bin/sh/
H A Doptions.c511 getopts(char *optstr, char *optvar, char **optfirst, char ***optnext, char **optpptr) argument
539 for (q = optstr; *q != c; ) {
541 if (optstr[0] == ':') {
558 if (optstr[0] == ':') {
/netbsd-current/sbin/fsck/
H A Dfsck.c444 addoption(char *optstr) argument
449 if ((newoptions = strchr(optstr, ':')) == NULL)
455 if (!strcmp(e->type, optstr)) {
459 addentry(&opthead, optstr, newoptions);
/netbsd-current/usr.sbin/perfused/
H A Dperfused.c317 parse_debug(char *optstr) argument
323 for (opt = strtok_r(optstr, ",", &lastp);
/netbsd-current/usr.bin/grep/
H A Dgrep.c167 static const char optstr[] = variable
402 while (((c = getopt_long(aargc, aargv, optstr, long_options, NULL)) !=
/netbsd-current/sys/compat/ultrix/
H A Dultrix_fs.c324 char *optstr; /* string of nfs mount options*/ member in struct:ultrix_nfs_args
/netbsd-current/sys/dev/fdt/
H A Dfdt_boot.c71 #include <sys/optstr.h>
/netbsd-current/sys/arch/i386/i386/
H A Dmultiboot.c43 #include <sys/optstr.h>
/netbsd-current/external/bsd/am-utils/dist/libamu/
H A Dmount_fs.c1045 nap->optstr = mntp->mnt_opts;
1343 nap->optstr = mntp->mnt_opts;
/netbsd-current/sys/arch/riscv/riscv/
H A Driscv_machdep.c52 #include <sys/optstr.h>
/netbsd-current/external/apache2/mDNSResponder/dist/Clients/
H A Ddns-sd.c1333 static int getfirstoption(int argc, char **argv, const char *optstr, int *pOptInd) argument
1334 // Return the recognized option in optstr and the option index of the next arg.
1341 NULL != strchr(optstr, argv[i][1]))
1351 int o = getopt(argc, (char *const *)argv, optstr);
/netbsd-current/share/man/man9/
H A DMakefile43 namei.9 nullop.9 opencrypto.9 optstr.9 \
608 MLINKS+=optstr.9 optstr_get.9
/netbsd-current/sys/arch/x86/x86/
H A Dmultiboot2.c43 #include <sys/optstr.h>
/netbsd-current/external/cddl/osnet/dist/cmd/zfs/
H A Dzfs_main.c5353 const char *optstr = un ? "ldugecsrh" : "ldugecsh"; local
5356 while ((c = getopt(argc, argv, optstr)) != -1) {

Completed in 203 milliseconds