diff options
author | Rob Landley <rob@landley.net> | 2012-07-15 16:56:20 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-07-15 16:56:20 -0500 |
commit | 2037b8396427ab82edd1912357e9177a2800b01a (patch) | |
tree | b6eaae82fbd0db5b3e36a786d1a8b45d8b0a889a /lib/lib.h | |
parent | f96fe64b1ed0ffa7bd7c954de3e1b14104d5bac6 (diff) | |
download | toybox-2037b8396427ab82edd1912357e9177a2800b01a.tar.gz |
New infrastructure for od (oops).
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -65,9 +65,9 @@ void get_optflags(void); struct dirtree { struct dirtree *next, *parent, *child; long extra; // place for user to store their stuff (can be pointer) - long data; // dirfd for directory, linklen for symlink, -1 = comeagain struct stat st; char *symlink; + int data; // dirfd for directory, linklen for symlink, -1 = comeagain char name[]; }; @@ -112,6 +112,7 @@ size_t xread(int fd, void *buf, size_t len); void xreadall(int fd, void *buf, size_t len); void xwrite(int fd, void *buf, size_t len); off_t xlseek(int fd, off_t offset, int whence); +off_t lskip(int fd, off_t offset); char *readfile(char *name); char *xreadfile(char *name); char *xgetcwd(void); @@ -128,6 +129,7 @@ char *utoa(unsigned n); char *itoa(int n); long atolx(char *c); int numlen(long l); +int stridx(char *haystack, char needle); off_t fdlength(int fd); char *xreadlink(char *name); void loopfiles_rw(char **argv, int flags, int permissions, int failok, |