aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-12-15 21:47:25 -0600
committerRob Landley <rob@landley.net>2007-12-15 21:47:25 -0600
commitbc07865a504c291b9c88e41b3481ee6b44334b4d (patch)
tree591494c428601e5324d91814cbcb690e4e530ba6 /lib/lib.h
parent4e68de1ef854fadd74fcb63c3a5ad15dce457a4c (diff)
downloadtoybox-bc07865a504c291b9c88e41b3481ee6b44334b4d.tar.gz
Start of "patch" support. Writes to stdout at the moment.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 963abb68..063c5d02 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -21,6 +21,12 @@ struct arg_list {
char *arg;
};
+struct double_list {
+ struct double_list *next;
+ struct double_list *prev;
+ char *data;
+};
+
// args.c
void get_optflags(void);
@@ -56,6 +62,7 @@ void xexec(char **argv);
void xaccess(char *path, int flags);
int xcreate(char *path, int flags, int mode);
int xopen(char *path, int flags);
+void xclose(int fd);
FILE *xfopen(char *path, char *mode);
ssize_t readall(int fd, void *buf, size_t len);
ssize_t writeall(int fd, void *buf, size_t len);
@@ -74,6 +81,9 @@ long atolx(char *c);
off_t fdlength(int fd);
char *xreadlink(char *name);
void loopfiles(char **argv, void (*function)(int fd, char *name));
+char *get_rawline(int fd, long *plen);
+char *get_line(int fd);
+void xsendfile(int in, int out);
// getmountlist.c
struct mtab_list {