diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-10-07 14:27:24 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2007-10-07 14:27:24 +0200 |
commit | 2443c7a6f12bc330fcf88949786703d358f2f771 (patch) | |
tree | 97ebe4f57b46ae8414dd0fe170582c019aa0edff /lib/libbb.c | |
parent | abb402d0083df191958638f0e5dd1a506b2ac2f8 (diff) | |
download | barebox-2443c7a6f12bc330fcf88949786703d358f2f771.tar.gz barebox-2443c7a6f12bc330fcf88949786703d358f2f771.tar.xz |
export symbols
Diffstat (limited to 'lib/libbb.c')
-rw-r--r-- | lib/libbb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libbb.c b/lib/libbb.c index dd32307f18..ee91fec18b 100644 --- a/lib/libbb.c +++ b/lib/libbb.c @@ -34,6 +34,7 @@ char *concat_path_file(const char *path, const char *filename) return str; } +EXPORT_SYMBOL(concat_path_file); /* * This function make special for recursive actions with usage @@ -47,6 +48,7 @@ char *concat_subpath_file(const char *path, const char *f) return NULL; return concat_path_file(path, f); } +EXPORT_SYMBOL(concat_subpath_file); /* check if path points to an executable file; * return 1 if found; @@ -57,6 +59,8 @@ int execable_file(const char *name) struct stat s; return (!stat(name, &s) && S_ISREG(s.st_mode)); } +EXPORT_SYMBOL(execable_file); + /* search $PATH for an executable file; * return allocated string containing full path if found; @@ -84,6 +88,7 @@ char *find_execable(const char *filename) free(path); return NULL; } +EXPORT_SYMBOL(find_execable); /* Find out if the last character of a string matches the one given. * Don't underrun the buffer if the string length is 0. @@ -98,6 +103,7 @@ char* last_char_is(const char *s, int c) } return NULL; } +EXPORT_SYMBOL(last_char_is); /* Like strncpy but make sure the resulting string is always 0 terminated. */ char * safe_strncpy(char *dst, const char *src, size_t size) @@ -106,4 +112,5 @@ char * safe_strncpy(char *dst, const char *src, size_t size) dst[--size] = '\0'; return strncpy(dst, src, size); } +EXPORT_SYMBOL(safe_strncpy); |