aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-11-21 22:24:57 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-11-21 22:24:57 +0000
commitd77eade56a2e7bf8bef3caafb69d2079c16b57d6 (patch)
treee949e5879a7083bac9e2da249363f9c613d0a409 /include/libbb.h
parent6ed9d590d5323fae0933b685181eb8dcd640844b (diff)
downloadbusybox-w32-d77eade56a2e7bf8bef3caafb69d2079c16b57d6.tar.gz
busybox-w32-d77eade56a2e7bf8bef3caafb69d2079c16b57d6.tar.bz2
busybox-w32-d77eade56a2e7bf8bef3caafb69d2079c16b57d6.zip
As we no longer use function pointers for read in common archiving code
archive_xread can be replaced with bb_full_read, and archive_copy_file with bb_copyfd* bb_copyfd is split into two functions bb_copyfd_size and bb_copyfd_eof, they share a common backend. git-svn-id: svn://busybox.net/trunk/busybox@7984 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 22a77e610..5ff49114b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -136,7 +136,8 @@ extern long *find_pid_by_name( const char* pidName);
136extern char *find_real_root_device_name(const char* name); 136extern char *find_real_root_device_name(const char* name);
137extern char *bb_get_line_from_file(FILE *file); 137extern char *bb_get_line_from_file(FILE *file);
138extern char *bb_get_chomped_line_from_file(FILE *file); 138extern char *bb_get_chomped_line_from_file(FILE *file);
139extern int bb_copyfd(int fd1, int fd2, const off_t chunksize); 139extern int bb_copyfd_size(int fd1, int fd2, const off_t size);
140extern int bb_copyfd_eof(int fd1, int fd2);
140extern void bb_xprint_and_close_file(FILE *file); 141extern void bb_xprint_and_close_file(FILE *file);
141extern int bb_xprint_file_by_name(const char *filename); 142extern int bb_xprint_file_by_name(const char *filename);
142extern char bb_process_escape_sequence(const char **ptr); 143extern char bb_process_escape_sequence(const char **ptr);
@@ -480,6 +481,6 @@ extern void xregcomp(regex_t *preg, const char *regex, int cflags);
480#define HASH_SHA1 1 481#define HASH_SHA1 1
481#define HASH_MD5 2 482#define HASH_MD5 2
482extern int hash_fd(int fd, const size_t size, const uint8_t hash_algo, uint8_t *hashval); 483extern int hash_fd(int fd, const size_t size, const uint8_t hash_algo, uint8_t *hashval);
483 484extern size_t bb_full_fd_action(int src_fd, int dst_fd, const size_t size, ssize_t (*action)(int fd, const void *, size_t));
484 485
485#endif /* __LIBCONFIG_H__ */ 486#endif /* __LIBCONFIG_H__ */