Merge branch 'getopt-cleanup' into 'master'
remove unused C header See merge request redox-os/relibc!1237
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#ifndef _GETOPT_H
|
||||
#define _GETOPT_H
|
||||
|
||||
// Generated from:
|
||||
// `grep "opt" target/include/unistd.h`
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern char* optarg;
|
||||
extern int opterr;
|
||||
extern int optind;
|
||||
extern int optopt;
|
||||
int getopt(int argc, char *const *argv, const char *optstring);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -11,6 +11,7 @@ use crate::{
|
||||
};
|
||||
use core::ptr;
|
||||
|
||||
/// cbindgen:ignore
|
||||
static mut CURRENT_OPT: *mut c_char = ptr::null_mut();
|
||||
|
||||
/// Non-POSIX, see <https://www.man7.org/linux/man-pages/man3/getopt.3.html>.
|
||||
|
||||
Reference in New Issue
Block a user