mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
Add getopt_long_only()
This commit is contained in:
parent
829a229d88
commit
f99a4b252c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126190
@ -43,7 +43,7 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GNU-like getopt_long() with 4.4BSD optreset extension.
|
* GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.
|
||||||
* getopt() is declared here too for GNU programs.
|
* getopt() is declared here too for GNU programs.
|
||||||
*/
|
*/
|
||||||
#define no_argument 0
|
#define no_argument 0
|
||||||
@ -67,6 +67,8 @@ struct option {
|
|||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int getopt_long(int, char * const *, const char *,
|
int getopt_long(int, char * const *, const char *,
|
||||||
const struct option *, int *);
|
const struct option *, int *);
|
||||||
|
int getopt_long_only(int, char * const *, const char *,
|
||||||
|
const struct option *, int *);
|
||||||
#ifndef _GETOPT_DECLARED
|
#ifndef _GETOPT_DECLARED
|
||||||
#define _GETOPT_DECLARED
|
#define _GETOPT_DECLARED
|
||||||
int getopt(int, char * const [], const char *);
|
int getopt(int, char * const [], const char *);
|
||||||
|
Loading…
Reference in New Issue
Block a user