about summary refs log tree commit diff stats
path: root/src/librarian
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-06-05 15:03:37 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-06-05 15:03:37 +0200
commit3bdcae10c8e0ed7b958137124585b0ff594a21fc (patch)
tree03073bc8d2d4c27d446c16924122e1982573fd55 /src/librarian
parent681df1604dd27688fdcc07c7fd1640b3f1bd8a54 (diff)
downloadbox64-3bdcae10c8e0ed7b958137124585b0ff594a21fc.tar.gz
box64-3bdcae10c8e0ed7b958137124585b0ff594a21fc.zip
Added a few more wrapped function and improved getopt handling
Diffstat (limited to 'src/librarian')
-rwxr-xr-xsrc/librarian/globalsymbols.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/librarian/globalsymbols.c b/src/librarian/globalsymbols.c
index a6dc73c0..a5ca89c1 100755
--- a/src/librarian/globalsymbols.c
+++ b/src/librarian/globalsymbols.c
@@ -87,4 +87,17 @@ void my_checkGlobalTInfo()
     GLOB(PC)

     GLOB(ospeed)

     GLOB(ttytype)

+}

+

+// **************** getopts ****************

+EXPORT char *optarg;

+EXPORT int optind, opterr, optopt;

+

+void my_checkGlobalOpt()

+{

+    uintptr_t globoffs, globend;

+    GLOB(optarg);

+    GLOB(optind);

+    GLOB(opterr);

+    GLOB(optopt);

 }
\ No newline at end of file