Home
last modified time | relevance | path

Searched refs:nargc (Results 1 – 25 of 29) sorted by relevance

12

/freebsd-13-stable/bin/test/
HDtest.c168 static int nargc; variable
213 nargc = argc; in main()
216 if (nargc == 4 && strcmp(*t_wp, "!") == 0) { in main()
218 --nargc; in main()
224 if (--nargc > 0) in main()
246 if (t_lex(nargc > 0 ? (--nargc, *++t_wp) : NULL) == BOR) in oexpr()
247 return oexpr(t_lex(nargc > 0 ? (--nargc, *++t_wp) : NULL)) || in oexpr()
250 nargc++; in oexpr()
260 if (t_lex(nargc > 0 ? (--nargc, *++t_wp) : NULL) == BAND) in aexpr()
261 return aexpr(t_lex(nargc > 0 ? (--nargc, *++t_wp) : NULL)) && in aexpr()
[all …]
/freebsd-13-stable/contrib/libevent/WIN32-Code/
HDgetopt_long.c74 getopt_internal(nargc, nargv, ostr) in getopt_internal() argument
75 int nargc; in getopt_internal()
87 if (optind >= nargc || *(place = nargv[optind]) != '-') {
119 else if (nargc <= ++optind) { /* no arg */
140 getopt2(nargc, nargv, ostr)
141 int nargc;
147 if ((retval = getopt_internal(nargc, nargv, ostr)) == -2) {
160 getopt_long(nargc, nargv, options, long_options, index) in getopt_long() argument
161 int nargc; in getopt_long()
174 if ((retval = getopt_internal(nargc, nargv, options)) == -2) {
HDgetopt.c83 getopt(nargc, nargv, ostr) in getopt() argument
84 int nargc; in getopt()
98 if (optind >= nargc || *(place = nargv[optind]) != '-') {
132 else if (nargc <= ++optind) { /* no arg */
/freebsd-13-stable/contrib/ntp/sntp/libevent/WIN32-Code/
HDgetopt_long.c74 getopt_internal(nargc, nargv, ostr) in getopt_internal() argument
75 int nargc; in getopt_internal()
87 if (optind >= nargc || *(place = nargv[optind]) != '-') {
119 else if (nargc <= ++optind) { /* no arg */
140 getopt2(nargc, nargv, ostr)
141 int nargc;
147 if ((retval = getopt_internal(nargc, nargv, ostr)) == -2) {
160 getopt_long(nargc, nargv, options, long_options, index) in getopt_long() argument
161 int nargc; in getopt_long()
174 if ((retval = getopt_internal(nargc, nargv, options)) == -2) {
HDgetopt.c83 getopt(nargc, nargv, ostr) in getopt() argument
84 int nargc; in getopt()
98 if (optind >= nargc || *(place = nargv[optind]) != '-') {
132 else if (nargc <= ++optind) { /* no arg */
/freebsd-13-stable/contrib/file/src/
HDgetopt_long.c177 getopt_internal(nargc, nargv, options) in getopt_internal() argument
178 int nargc; in getopt_internal()
203 if (optind >= nargc) { /* end of argument vector */
275 if (++optind >= nargc) { /* no arg */
298 if (++optind >= nargc) { /* no arg */
322 getopt(nargc, nargv, options) in getopt() argument
323 int nargc; in getopt()
332 retval = getopt_internal(nargc, (char **)nargv, options);
356 getopt_long(nargc, nargv, options, long_options, idx) in getopt_long() argument
357 int nargc; in getopt_long()
[all …]
/freebsd-13-stable/contrib/libfido2/openbsd-compat/
HDgetopt_long.c285 getopt_internal(int nargc, char * const *nargv, const char *options, in getopt_internal() argument
321 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
437 else if (++optind >= nargc) { /* no arg */ in getopt_internal()
458 if (++optind >= nargc) { /* no arg */ in getopt_internal()
481 getopt(int nargc, char * const *nargv, const char *options) in getopt() argument
492 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0)); in getopt()
501 getopt_long(int nargc, char * const *nargv, const char *options,
505 return (getopt_internal(nargc, nargv, options, long_options, idx,
514 getopt_long_only(int nargc, char * const *nargv, const char *options,
518 return (getopt_internal(nargc, nargv, options, long_options, idx,
/freebsd-13-stable/crypto/openssh/openbsd-compat/
HDgetopt_long.c308 getopt_internal(int nargc, char * const *nargv, const char *options, in getopt_internal() argument
344 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
460 else if (++optind >= nargc) { /* no arg */ in getopt_internal()
481 if (++optind >= nargc) { /* no arg */ in getopt_internal()
504 getopt(int nargc, char * const *nargv, const char *options) in getopt() argument
515 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0)); in getopt()
524 getopt_long(int nargc, char * const *nargv, const char *options,
528 return (getopt_internal(nargc, nargv, options, long_options, idx,
537 getopt_long_only(int nargc, char * const *nargv, const char *options,
541 return (getopt_internal(nargc, nargv, options, long_options, idx,
/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/common/
HDGetOptInc.cpp223 static int getopt_internal(int nargc, char *const *nargv, const char *options, in getopt_internal() argument
259 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
369 else if (++optind >= nargc) { /* no arg */ in getopt_internal()
389 if (++optind >= nargc) { /* no arg */ in getopt_internal()
412 int getopt(int nargc, char *const *nargv, const char *options) { in getopt() argument
422 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0)); in getopt()
431 int getopt_long(int nargc, char *const *nargv, const char *options, in getopt_long() argument
434 getopt_internal(nargc, nargv, options, long_options, idx, FLAG_PERMUTE)); in getopt_long()
443 int getopt_long_only(int nargc, char *const *nargv, const char *options, in getopt_long_only() argument
446 return (getopt_internal(nargc, nargv, options, long_options, idx, in getopt_long_only()
/freebsd-13-stable/lib/libc/stdlib/
HDgetopt_long.c355 getopt_internal(int nargc, char * const *nargv, const char *options, argument
391 if (optind >= nargc) { /* end of argument vector */
525 else if (++optind >= nargc) { /* no arg */
549 if (++optind >= nargc) { /* no arg */
573 getopt(int nargc, char * const *nargv, const char *options) argument
584 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0));
593 getopt_long(int nargc, char * const *nargv, const char *options, argument
597 return (getopt_internal(nargc, nargv, options, long_options, idx,
606 getopt_long_only(int nargc, char * const *nargv, const char *options, argument
610 return (getopt_internal(nargc, nargv, options, long_options, idx,
HDgetopt.c61 getopt(int nargc, char * const nargv[], const char *ostr) in getopt() argument
69 if (optind >= nargc || *place++ != '-') { in getopt()
120 else if (nargc > ++optind) in getopt()
/freebsd-13-stable/contrib/smbfs/lib/smb/
HDcfopt.c54 cf_getopt(nargc, nargv, ostr) in cf_getopt() argument
55 int nargc; in cf_getopt()
67 if (tmpind >= nargc) {
107 else if (nargc <= ++cf_optind) { /* no arg */
/freebsd-13-stable/contrib/tcpdump/missing/
HDgetopt_long.c376 getopt_internal(int nargc, char * const *nargv, const char *options, argument
415 if (optind >= nargc) { /* end of argument vector */
546 else if (++optind >= nargc) { /* no arg */
572 if (++optind >= nargc) { /* no arg */
596 getopt(int nargc, char * const *nargv, const char *options) argument
607 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0));
616 getopt_long(int nargc, char * const *nargv, const char *options, argument
620 return (getopt_internal(nargc, nargv, options, long_options, idx,
629 getopt_long_only(int nargc, char * const *nargv, const char *options, argument
633 return (getopt_internal(nargc, nargv, options, long_options, idx,
/freebsd-13-stable/stand/common/
HDinterp_lua.c141 int argc, nargc; in interp_run() local
161 for (nargc = 0; nargc < argc; ++nargc) { in interp_run()
162 lua_pushstring(luap, argv[nargc]); in interp_run()
/freebsd-13-stable/stand/libsa/
HDgetopt.c53 getopt(int nargc, char * const *nargv, const char *ostr) in getopt() argument
60 if (optind >= nargc || *(place = nargv[optind]) != '-') { in getopt()
92 else if (nargc <= ++optind) { /* no arg */ in getopt()
/freebsd-13-stable/lib/libc/gen/
HDsetproctitle.c67 int nargc; in setproctitle_internal() local
103 nargc = 1; in setproctitle_internal()
107 nargc = oargc; in setproctitle_internal()
159 ps_strings->ps_nargvstr = nargc; in setproctitle_internal()
/freebsd-13-stable/contrib/unifdef/FreeBSD/
HDgetopt.c48 getopt(int nargc, char *nargv[], const char *ostr) in getopt() argument
56 if (optind >= nargc || *place++ != '-') { in getopt()
101 else if (nargc > ++optind) in getopt()
/freebsd-13-stable/contrib/libpcap/missing/
HDgetopt.c59 getopt(int nargc, char * const *nargv, const char *ostr) in getopt() argument
74 if (optind >= nargc || *(place = nargv[optind]) != '-') { in getopt()
116 else if (nargc <= ++optind) { /* no arg */ in getopt()
HDgetopt.h7 extern int getopt(int nargc, char * const *nargv, const char *ostr);
/freebsd-13-stable/crypto/heimdal/lib/roken/
HDgetopt.c58 getopt(int nargc, char * const *nargv, const char *ostr) in getopt() argument
66 if (optind >= nargc || *(place = nargv[optind]) != '-') { in getopt()
104 else if (nargc <= ++optind) { /* no arg */ in getopt()
/freebsd-13-stable/contrib/bmake/
HDgetopt.c58 getopt(int nargc, char * const nargv[], const char *ostr) in getopt() argument
76 if (optind >= nargc || *place++ != '-') { in getopt()
126 else if (nargc > ++optind) in getopt()
/freebsd-13-stable/usr.bin/pr/
HDegetopt.c75 egetopt(int nargc, char * const *nargv, const char *ostr) in egetopt() argument
92 if ((eoptind >= nargc) || in egetopt()
193 } else if (nargc <= ++eoptind) { in egetopt()
/freebsd-13-stable/stand/liblua/
HDlutils.c144 int argc, nargc; in lua_parse() local
148 for (nargc = 0; nargc < argc; ++nargc) { in lua_parse()
149 lua_pushstring(L, argv[nargc]); in lua_parse()
152 return nargc; in lua_parse()
/freebsd-13-stable/contrib/unifdef/win32/
HDunifdef.h82 int getopt(int nargc, char *nargv[], const char *ostr);
/freebsd-13-stable/contrib/libedit/TEST/
HDwtc1.c246 int nargc; in main() local
248 tok_str(ntok, my_wcstombs(line), &nargc, &nav); in main()

12