summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-10-01 10:26:45 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-10-01 10:26:45 +0200
commitaaa71a12636ca0eb45a024683fed654ad1518bf6 (patch)
treefcc06e8a9621d3484efda8f38709457e70599cb0 /lib
parent3847938e51fd198addb2cb56fabe345e04a246fe (diff)
downloadbarebox-aaa71a12636ca0eb45a024683fed654ad1518bf6.tar.gz
barebox-aaa71a12636ca0eb45a024683fed654ad1518bf6.tar.xz
Export symbols printf and the ones needed for getopt
Diffstat (limited to 'lib')
-rw-r--r--lib/getopt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/getopt.c b/lib/getopt.c
index c054e1365f..64d6ac1e15 100644
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -18,6 +18,7 @@
*/
#include <common.h>
+#include <module.h>
#include <getopt.h>
int opterr = 1;
@@ -25,6 +26,11 @@ int optind = 1;
int optopt;
char *optarg;
+EXPORT_SYMBOL(optind);
+EXPORT_SYMBOL(opterr);
+EXPORT_SYMBOL(optopt);
+EXPORT_SYMBOL(optarg);
+
static int optindex = 1; /* option index in the current argv[] element */
static int nonopts = 0; /* number of nonopts found */
@@ -33,6 +39,7 @@ void getopt_reset(void)
optind = opterr = optindex = 1;
nonopts = 0;
}
+EXPORT_SYMBOL(getopt_reset);
int getopt(int argc, char *argv[], char *optstring)
{
@@ -141,3 +148,4 @@ int getopt(int argc, char *argv[], char *optstring)
optind++;
return curopt;
}
+EXPORT_SYMBOL(getopt);