浏览代码

LibC: Expose various option variables for later usage

These variables are used by the dmidecode utility to parse the
commandline arguments that were specified by the user.
Liav A 4 年之前
父节点
当前提交
c6fe1de30e
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Userland/Libraries/LibC/getopt.h

+ 5 - 0
Userland/Libraries/LibC/getopt.h

@@ -41,6 +41,11 @@ struct option {
     int val;
 };
 
+extern int opterr;
+extern int optopt;
+extern int optind;
+extern int optreset;
+extern char* optarg;
 int getopt_long(int argc, char** argv, const char* short_options, const struct option* long_options, int* out_long_option_index);
 
 __END_DECLS