Merge branch 'getopt-cleanup' into 'master'

remove unused C header

See merge request redox-os/relibc!1237
This commit is contained in:
Jeremy Soller
2026-04-29 06:39:20 -06:00
2 changed files with 1 additions and 21 deletions
-21
View File
@@ -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
+1
View File
@@ -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>.