aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 08:18:50 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 08:18:50 +0000
commitae4342ca3e30f7b11732ecda3ad15821e81bc314 (patch)
tree1878104940eac4649bc8add4d0b2893ab1cb0a94 /include/libbb.h
parentee56e013cfb6304f66129afee7978b0864699419 (diff)
downloadbusybox-w32-ae4342ca3e30f7b11732ecda3ad15821e81bc314.tar.gz
busybox-w32-ae4342ca3e30f7b11732ecda3ad15821e81bc314.tar.bz2
busybox-w32-ae4342ca3e30f7b11732ecda3ad15821e81bc314.zip
- Rename getpty() to xgetpty() and adjust callers.
- Rewrite kbd_mode and setconsole - Introduce and use console_make_active() and xopen_xwrite_close() - honour buffer-reservation method as set by the user (dumpkmap, loadkmap) - shrink rtcwake and some console-tools Saves about 270 Bytes
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 4067063e6..f50ae3604 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -281,8 +281,9 @@ extern int recursive_action(const char *fileName, unsigned flags,
281 void* userData, unsigned depth); 281 void* userData, unsigned depth);
282extern int device_open(const char *device, int mode); 282extern int device_open(const char *device, int mode);
283enum { GETPTY_BUFSIZE = 16 }; /* more than enough for "/dev/ttyXXX" */ 283enum { GETPTY_BUFSIZE = 16 }; /* more than enough for "/dev/ttyXXX" */
284extern int getpty(char *line); 284extern int xgetpty(char *line);
285extern int get_console_fd(void); 285extern int get_console_fd(void);
286extern void console_make_active(int fd, const int vt_num);
286extern char *find_block_device(const char *path); 287extern char *find_block_device(const char *path);
287/* bb_copyfd_XX print read/write errors and return -1 if they occur */ 288/* bb_copyfd_XX print read/write errors and return -1 if they occur */
288extern off_t bb_copyfd_eof(int fd1, int fd2); 289extern off_t bb_copyfd_eof(int fd1, int fd2);
@@ -590,6 +591,7 @@ extern ssize_t safe_write(int fd, const void *buf, size_t count);
590// if some data was written before error occurred 591// if some data was written before error occurred
591extern ssize_t full_write(int fd, const void *buf, size_t count); 592extern ssize_t full_write(int fd, const void *buf, size_t count);
592extern void xwrite(int fd, const void *buf, size_t count); 593extern void xwrite(int fd, const void *buf, size_t count);
594extern void xopen_xwrite_close(const char* file, const char *str);
593 595
594/* Reads and prints to stdout till eof, then closes FILE. Exits on error: */ 596/* Reads and prints to stdout till eof, then closes FILE. Exits on error: */
595extern void xprint_and_close_file(FILE *file); 597extern void xprint_and_close_file(FILE *file);