diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-29 15:25:12 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-29 15:25:12 +0200 |
commit | fd6481d82ff407139157e53df28563d40bb3ad3b (patch) | |
tree | ed2ae9e08c31d1eed424793272a60c25cdec6c00 /tools/cpio/src/atoll.h | |
parent | 14804005d5b33beb6f52d4a72034acb00c00eb90 (diff) |
add a cpio implementation to tools directory
cpio utility is a mess in point of portability.
For example NetBSD cpio implementation does not support
userid and groupid changes for the archive. This
feature is required for initramfs filesystem targets.
This cpio is from the Heirloom project.
Fix needed rebuild of tools, when changing targets.
Diffstat (limited to 'tools/cpio/src/atoll.h')
-rw-r--r-- | tools/cpio/src/atoll.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/cpio/src/atoll.h b/tools/cpio/src/atoll.h new file mode 100644 index 000000000..8283aff64 --- /dev/null +++ b/tools/cpio/src/atoll.h @@ -0,0 +1,8 @@ +/* Sccsid @(#)atoll.h 1.4 (gritter) 7/18/04 */ + +#if defined (__hpux) || defined (_AIX) || \ + defined (__FreeBSD__) && (__FreeBSD__) < 5 +extern long long strtoll(const char *nptr, char **endptr, int base); +extern unsigned long long strtoull(const char *nptr, char **endptr, int base); +extern long long atoll(const char *nptr); +#endif /* __hpux || _AIX || __FreeBSD__ < 5 */ |