summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-11 11:06:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-15 12:21:45 +0200
commit4f17444eccebeeadeaed212568a202ef97f4e71f (patch)
treeb006ce0f54caf425510289408ed771c1276ac42f /include
parentdb33f32842973245f0adcae2fb7fd23ec4325630 (diff)
downloadbarebox-4f17444eccebeeadeaed212568a202ef97f4e71f.tar.gz
barebox-4f17444eccebeeadeaed212568a202ef97f4e71f.tar.xz
libfile: move open_and_lseek() to libfile
libfile is a collection of helpers for handling files. open_and_lseek() is a perfect match for this, so move it there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/common.h1
-rw-r--r--include/libfile.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 54120c447a..680a0affb6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -128,7 +128,6 @@ static inline void print_hex_dump(const char *level, const char *prefix_str,
int mem_parse_options(int argc, char *argv[], char *optstr, int *mode,
char **sourcefile, char **destfile, int *swab);
-int open_and_lseek(const char *filename, int mode, loff_t pos);
#define RW_BUF_SIZE (unsigned)4096
extern const char version_string[];
diff --git a/include/libfile.h b/include/libfile.h
index d5b914a47a..51fa06008f 100644
--- a/include/libfile.h
+++ b/include/libfile.h
@@ -19,4 +19,6 @@ int copy_recursive(const char *src, const char *dst);
int compare_file(const char *f1, const char *f2);
+int open_and_lseek(const char *filename, int mode, loff_t pos);
+
#endif /* __LIBFILE_H */