aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-05-10 20:10:13 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-05-10 20:10:13 +1000
commitd2a9ddeb6cc58284996fbc5367877c99fee8914e (patch)
tree187cadb382d0336bbc529cc7ca9e3d1ccd680213 /include/libbb.h
parent1fa419fb3c7ef91e878398bb0388854d27d7bd8f (diff)
downloadbusybox-w32-old.tar.gz
busybox-w32-old.tar.bz2
busybox-w32-old.zip
general warning cleanupold
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index ea02a9978..ce90a11c7 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -410,6 +410,7 @@ extern void *xzalloc(size_t size);
410extern void *xrealloc(void *old, size_t size); 410extern void *xrealloc(void *old, size_t size);
411 411
412extern ssize_t safe_read(int fd, void *buf, size_t count); 412extern ssize_t safe_read(int fd, void *buf, size_t count);
413extern void xread(int fd, void *buf, size_t count);
413extern ssize_t full_read(int fd, void *buf, size_t count); 414extern ssize_t full_read(int fd, void *buf, size_t count);
414extern unsigned char xread_char(int fd); 415extern unsigned char xread_char(int fd);
415extern char *reads(int fd, char *buf, size_t count); 416extern char *reads(int fd, char *buf, size_t count);
@@ -419,6 +420,7 @@ extern void *xmalloc_open_read_close(const char *filename, size_t *sizep);
419 420
420#define safe_write(fd, buf, count) bb_safe_write(fd, buf, count) 421#define safe_write(fd, buf, count) bb_safe_write(fd, buf, count)
421extern ssize_t safe_write(int fd, const void *buf, size_t count); 422extern ssize_t safe_write(int fd, const void *buf, size_t count);
423extern void xwrite(int fd, const void *buf, size_t count);
422extern ssize_t full_write(int fd, const void *buf, size_t count); 424extern ssize_t full_write(int fd, const void *buf, size_t count);
423 425
424/* Reads and prints to stdout till eof, then closes FILE. Exits on error: */ 426/* Reads and prints to stdout till eof, then closes FILE. Exits on error: */
@@ -442,6 +444,7 @@ extern FILE *fopen_or_warn_stdin(const char *filename);
442 444
443/* Convert each alpha char in str to lower-case */ 445/* Convert each alpha char in str to lower-case */
444extern char* str_tolower(char *str); 446extern char* str_tolower(char *str);
447extern char* xstrndup(const char *s, int n);
445 448
446char *utoa(unsigned n); 449char *utoa(unsigned n);
447#ifdef __MINGW32__ 450#ifdef __MINGW32__