/openbsd-src/lib/libc/stdlib/ |
H A D | getopt.3 | 28 .\" $OpenBSD: getopt.3,v 1.48 2022/07/25 02:25:55 jsg Exp $ 34 .Nm getopt 44 .Fn getopt "int argc" "char * const *argv" "const char *optstring" 47 .Fn getopt 75 .Fn getopt 81 .Fn getopt , 90 .Fn getopt . 100 .Fn getopt 107 .Fn getopt . 110 .Fn getopt [all …]
|
H A D | getopt_long.3 | 31 .\" @(#)getopt.3 8.5 (Berkeley) 4/27/95 55 .Xr getopt 3 60 .Xr getopt 3 . 69 .Xr getopt 3 . 90 .Xr getopt 3 . 170 .Xr getopt 3 . 282 .Xr getopt 3 289 .Xr getopt 3 : 302 .Fn getopt 330 .Xr getopt 3 [all …]
|
/openbsd-src/gnu/usr.bin/texinfo/lib/ |
H A D | getopt_.h | 1 /* Declarations for getopt. 52 /* For communication from `getopt' to the caller. 53 When `getopt' finds an option that takes an argument, 62 and for communication between successive calls to `getopt'. 64 On entry to `getopt', zero means this is the first call; initialize. 66 When `getopt' returns -1, this is the index of the first of the 74 /* Callers store zero here to inhibit the error message `getopt' prints 102 one). For long options that have a zero `flag' field, `getopt' 120 #endif /* need getopt */ 137 optional. This behavior is specific to the GNU `getopt'. [all …]
|
/openbsd-src/gnu/usr.bin/binutils-2.17/include/ |
H A D | getopt.h | 1 /* Declarations for getopt. 30 /* For communication from `getopt' to the caller. 31 When `getopt' finds an option that takes an argument, 40 and for communication between successive calls to `getopt'. 42 On entry to `getopt', zero means this is the first call; initialize. 44 When `getopt' returns -1, this is the index of the first of the 52 /* Callers store zero here to inhibit the error message `getopt' prints 79 one). For long options that have a zero `flag' field, `getopt' 110 /* Many other libraries have conflicting prototypes for getopt, with 112 errors, only prototype getopt for the GNU C library. */ [all …]
|
/openbsd-src/gnu/lib/libiberty/include/ |
H A D | getopt.h | 1 /* Declarations for getopt. 30 /* For communication from `getopt' to the caller. 31 When `getopt' finds an option that takes an argument, 40 and for communication between successive calls to `getopt'. 42 On entry to `getopt', zero means this is the first call; initialize. 44 When `getopt' returns -1, this is the index of the first of the 52 /* Callers store zero here to inhibit the error message `getopt' prints 79 one). For long options that have a zero `flag' field, `getopt' 110 /* Many other libraries have conflicting prototypes for getopt, with 112 errors, only prototype getopt for the GNU C library. */ [all …]
|
/openbsd-src/gnu/usr.bin/binutils/include/ |
H A D | getopt.h | 1 /* Declarations for getopt. 30 /* For communication from `getopt' to the caller. 31 When `getopt' finds an option that takes an argument, 40 and for communication between successive calls to `getopt'. 42 On entry to `getopt', zero means this is the first call; initialize. 44 When `getopt' returns -1, this is the index of the first of the 52 /* Callers store zero here to inhibit the error message `getopt' prints 79 one). For long options that have a zero `flag' field, `getopt' 110 /* Many other libraries have conflicting prototypes for getopt, with 112 errors, only prototype getopt for the GNU C library. */ [all …]
|
/openbsd-src/gnu/gcc/include/ |
H A D | getopt.h | 1 /* Declarations for getopt. 30 /* For communication from `getopt' to the caller. 31 When `getopt' finds an option that takes an argument, 40 and for communication between successive calls to `getopt'. 42 On entry to `getopt', zero means this is the first call; initialize. 44 When `getopt' returns -1, this is the index of the first of the 52 /* Callers store zero here to inhibit the error message `getopt' prints 79 one). For long options that have a zero `flag' field, `getopt' 110 /* Many other libraries have conflicting prototypes for getopt, with 112 errors, only prototype getopt for the GNU C library. */ [all …]
|
/openbsd-src/gnu/usr.sbin/mkhybrid/src/ |
H A D | getopt.h | 1 /* Declarations for getopt. 25 /* For communication from `getopt' to the caller. 26 When `getopt' finds an option that takes an argument, 35 and for communication between successive calls to `getopt'. 37 On entry to `getopt', zero means this is the first call; initialize. 39 When `getopt' returns EOF, this is the index of the first of the 47 /* Callers store zero here to inhibit the error message `getopt' prints 74 one). For long options that have a zero `flag' field, `getopt' 99 /* Many other libraries have conflicting prototypes for getopt, with 101 errors, only prototype getopt for the GNU C library. */ [all …]
|
H A D | getopt.c | 1 /* Getopt for GNU. 2 NOTE: getopt is now part of the C library, so if you don't know what 30 /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. 75 contain conflicting prototypes for getopt. */ 79 /* This version of `getopt' appears to the caller like standard Unix `getopt' 83 As `getopt' works, it permutes the elements of ARGV so that, 93 #include "getopt.h" 95 /* For communication from `getopt' to the caller. 96 When `getopt' finds an option that takes an argument, 105 and for communication between successive calls to `getopt'. [all …]
|
/openbsd-src/gnu/usr.bin/cvs/lib/ |
H A D | getopt.h | 1 /* Declarations for getopt. 21 /* For communication from `getopt' to the caller. 22 When `getopt' finds an option that takes an argument, 31 and for communication between successive calls to `getopt'. 33 On entry to `getopt', zero means this is the first call; initialize. 35 When `getopt' returns EOF, this is the index of the first of the 43 /* Callers store zero here to inhibit the error message `getopt' prints 70 one). For long options that have a zero `flag' field, `getopt' 94 /* Many other libraries have conflicting prototypes for getopt, with 99 declaring getopt() but that is a bigger issue. */ [all …]
|
H A D | getopt.c | 1 /* Getopt for GNU. 2 NOTE: getopt is now part of the C library, so if you don't know what 19 /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. 65 contain conflicting prototypes for getopt. */ 69 /* This version of `getopt' appears to the caller like standard Unix `getopt' 73 As `getopt' works, it permutes the elements of ARGV so that, 83 #include "getopt.h" 85 /* For communication from `getopt' to the caller. 86 When `getopt' finds an option that takes an argument, 95 and for communication between successive calls to `getopt'. [all …]
|
/openbsd-src/usr.bin/getopt/ |
H A D | getopt.1 | 1 .\" $OpenBSD: getopt.1,v 1.20 2021/05/04 21:03:31 naddy Exp $ 10 .Nm getopt 29 .Xr getopt 3 ) ; 61 args=`getopt abo: $*` 96 .Xr getopt 3 103 .Dl set -- `getopt optstring $*` 112 .Xr getopt 3 123 .Nm getopt ;
|
/openbsd-src/gnu/usr.bin/perl/lib/Getopt/ |
H A D | Std.pm | 1 package Getopt::Std; 10 Getopt::Std - Process single-character switches with switch clustering 14 use Getopt::Std; 19 getopt('oDI'); # -o, -D & -I take arguments 21 getopt('oDI', \my %opts); # -o, -D & -I take arg, values in %opts 39 The C<getopt()> function is similar, but its argument is a string containing 42 Unspecified switches are silently accepted. Use of C<getopt()> is B<not 52 C<getopt()> and C<getopts()> will also accept a hash reference as an optional 72 Note that due to excessive paranoia, if C<$Getopt::Std::STANDARD_HELP_VERSION> 76 to set C<$Getopt 100 sub getopt (;$$) { global() subroutine [all...] |
H A D | Std.t | 12 use Getopt::Std; 16 # First we test the getopt function 18 getopt('f'); 25 getopt 'il', \%opt; 91 getopt('bc', \%opt); 94 "getopt: multiple switches; switch expected argument, none provided; value undef"); 100 getopt('c', \%opt); 103 "getopt: single switch; switch expected argument, none provided; value undef"); 107 # GH21466: Test `\my %opt` syntax with getopt() 111 getopt('b [all...] |
/openbsd-src/gnu/usr.bin/perl/cpan/Getopt-Long/t/ |
H A D | gol-linkage.t | 12 use Getopt::Long; 17 Getopt::Long::Configure ("no_ignore_case"); 29 Getopt::Long::Configure ("default","no_ignore_case"); 44 Getopt::Long::Configure ("default","prefix_pattern=--|/|-|\\+","long_prefix_pattern=--|/"); 63 Getopt::Long::Configure ("default","bundling","ignore_case_always", 73 Getopt::Long::Configure ("default","bundling","ignore_case_always", 88 Getopt::Long::Configure("default"); 98 Getopt::Long::Configure("default"); 99 Getopt::Long::Configure("pass_through"); 112 Getopt::Long::Configure("default"); [all …]
|
H A D | gol-oo.t | 12 use Getopt::Long::Parser; 14 die("Getopt::Long version $want_version required--this is only version ". 15 $Getopt::Long::Parser::VERSION) 16 unless $Getopt::Long::Parser::VERSION ge $want_version; 20 my $p = new Getopt::Long::Parser (config => ["no_ignore_case"]); 34 my $o = Getopt::Long::Parser->new;
|
H A D | gol-xargv.t | 12 use Getopt::Long qw(GetOptionsFromArray :config no_ignore_case); 14 die("Getopt::Long version $want_version required--this is only version ". 15 $Getopt::Long::VERSION) 16 unless $Getopt::Long::VERSION ge $want_version;
|
H A D | gol-xstring.t | 12 use Getopt::Long qw(GetOptionsFromString :config no_ignore_case); 14 die("Getopt::Long version $want_version required--this is only version ". 15 $Getopt::Long::VERSION) 16 unless $Getopt::Long::VERSION ge $want_version;
|
/openbsd-src/usr.sbin/pkg_add/OpenBSD/ |
H A D | Getopt.pod | 1 $OpenBSD: Getopt.pod,v 1.2 2023/05/21 13:44:56 espie Exp $ 5 OpenBSD::Getopt - Process single-characters switches 9 use OpenBSD::Getopt; 20 This is similar to L<getopt(3)>. One call to C<getopts($optstring, $h)> parses 25 Contrary to L<getopt(3)>, C<$h-E<gt>{v}> is incremented each time the switch is
|
/openbsd-src/regress/lib/libc/getopt/ |
H A D | Makefile | 3 REGRESS_TARGETS = getopt 4 PROG = getopt-test 7 getopt: ${PROG} target 8 sh ${.CURDIR}/getopt.sh
|
/openbsd-src/gnu/usr.bin/perl/cpan/Getopt-Long/lib/Getopt/ |
H A D | Long.pm | 3 # Getopt::Long.pm -- Universal options parsing 12 # Getopt::Long is reported to run under 5.6.1. Thanks Tux! 18 package Getopt::Long; 35 # Values for $order. See GNU getopt.c for details. 132 Getopt::Long::Configure () 142 sub Getopt::Long::Parser::new { 143 require Getopt::Long::Parser; 144 goto &Getopt::Long::Parser::new; 236 ("Getopt::Long $VERSION ", 539 (Getopt [all...] |
/openbsd-src/gnu/lib/libiberty/src/ |
H A D | getopt.c | 1 /* Getopt for GNU. 2 NOTE: getopt is now part of the C library, so if you don't know what 27 /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. 71 contain conflicting prototypes for getopt. */ 94 /* This version of `getopt' appears to the caller like standard Unix `getopt' 98 As `getopt' works, it permutes the elements of ARGV so that, 108 #include "getopt.h" 110 /* For communication from `getopt' to the caller. 111 When `getopt' finds an option that takes an argument, 120 and for communication between successive calls to `getopt'. [all …]
|
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.brendan/ |
H A D | crash39.C | 4 //#include <GetOpt.h> 7 class GetOpt 25 GetOpt (int argc, char **argv, const char *optstring); 28 //end <GetOpt.h>
|
/openbsd-src/gnu/usr.bin/gcc/gcc/ |
H A D | tsystem.h | 34 indirectly include getopt.h. Our -I flags will cause gcc's gnu 35 getopt.h to be included, not the platform's copy. In the default 36 case, gnu getopt.h will provide us with a no-argument prototype 38 target files actually use getopt, so it is safe to tell gnu 39 getopt.h we never need this prototype. */
|
/openbsd-src/gnu/llvm/lldb/include/lldb/Host/common/ |
H A D | GetOptInc.h | 23 // from getopt.h 38 int getopt(int argc, char *const argv[], const char *optstring); 40 // from getopt.h 49 #include <getopt.h>
|