aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-04-26 02:41:05 -0500
committerRob Landley <rob@landley.net>2013-04-26 02:41:05 -0500
commitf01534401412812bc1d904812dfb4b0a31ee8fff (patch)
treedb23ecd59e456f54cfd071eeca8806328e29b8d9 /lib/lib.h
parenta4a6dfb584a3de8c947d2ccf159b53bf56daebb7 (diff)
downloadtoybox-f01534401412812bc1d904812dfb4b0a31ee8fff.tar.gz
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 18c0155f..ab858f90 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -119,6 +119,8 @@ 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);
+void msleep(long miliseconds);
+int xioctl(int fd, int request, void *data);
char *xgetcwd(void);
void xstat(char *path, struct stat *st);
char *xabspath(char *path, int exact);
@@ -152,6 +154,9 @@ int yesno(char *prompt, int def);
void for_each_pid_with_name_in(char **names, int (*callback)(pid_t pid, char *name));
unsigned long xstrtoul(const char *nptr, char **endptr, int base);
+// net.c
+int xsocket(int domain, int type, int protocol);
+
// getmountlist.c
struct mtab_list {
struct mtab_list *next;