aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-22 00:21:07 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-22 00:21:07 +0000
commit2ae5f6f7b023c362db59c8ecf16c416bf1f77a75 (patch)
tree7ddaf73cf2deda0f357b21802dab4d42798dd778 /include/libbb.h
parentd8c6309724259aa293ac194650a154c4dbc154db (diff)
downloadbusybox-w32-2ae5f6f7b023c362db59c8ecf16c416bf1f77a75.tar.gz
busybox-w32-2ae5f6f7b023c362db59c8ecf16c416bf1f77a75.tar.bz2
busybox-w32-2ae5f6f7b023c362db59c8ecf16c416bf1f77a75.zip
tar et al: die if bb_copyfd_size copies less than asked for.
(we have bb_copyfd_exact_size now for that kind of usage) git-svn-id: svn://busybox.net/trunk/busybox@17038 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 2fd54e789..2bfeba4e1 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -203,8 +203,13 @@ extern int recursive_action(const char *fileName, int recurse,
203extern int device_open(const char *device, int mode); 203extern int device_open(const char *device, int mode);
204extern int get_console_fd(void); 204extern int get_console_fd(void);
205extern char *find_block_device(char *path); 205extern char *find_block_device(char *path);
206extern off_t bb_copyfd_size(int fd1, int fd2, off_t size); 206/* bb_copyfd_XX print read/write errors and return -1 if they occur */
207extern off_t bb_copyfd_eof(int fd1, int fd2); 207extern off_t bb_copyfd_eof(int fd1, int fd2);
208extern off_t bb_copyfd_size(int fd1, int fd2, off_t size);
209extern void bb_copyfd_exact_size(int fd1, int fd2, off_t size);
210/* "short" copy can be detected by return value < size */
211/* this helper yells "short read!" if param is not -1 */
212extern void complain_copyfd_and_die(off_t sz) ATTRIBUTE_NORETURN;
208extern char bb_process_escape_sequence(const char **ptr); 213extern char bb_process_escape_sequence(const char **ptr);
209extern char *bb_get_last_path_component(char *path); 214extern char *bb_get_last_path_component(char *path);
210extern int ndelay_on(int fd); 215extern int ndelay_on(int fd);