diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-03 14:16:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-03 14:16:24 +0000 |
commit | 0e2c9fb4e09fb0c5a47ddc74b0ba53238570599e (patch) | |
tree | ab1416450c6c339fdbe3422a4e4243e7d2098541 /include | |
parent | f223efbcde63c0c01e5b1331f2fc7f1a9c812f20 (diff) | |
download | busybox-0e2c9fb4e09fb0c5a47ddc74b0ba53238570599e.tar.gz |
mount: print errno on NFS error (again)
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 13bd2d688..546bbafc6 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -733,7 +733,10 @@ extern int get_linux_version_code(void); extern char *query_loop(const char *device); extern int del_loop(const char *device); -extern int set_loop(char **device, const char *file, unsigned long long offset); +/* If *devname is not NULL, use that name, otherwise try to find free one, + * malloc and return it in *devname. + * return value: 1: read-only loopdev was setup, 0: rw, < 0: error */ +extern int set_loop(char **devname, const char *file, unsigned long long offset); //TODO: pass buf pointer or return allocated buf (avoid statics)? @@ -1061,6 +1064,7 @@ extern const char bb_default_login_shell[]; #endif # define VC_FORMAT "/dev/vc/%d" # define LOOP_FORMAT "/dev/loop/%d" +# define LOOP_NAMESIZE (sizeof("/dev/loop/") + sizeof(int)*3 + 1) # define LOOP_NAME "/dev/loop/" # define FB_0 "/dev/fb/0" #else @@ -1081,6 +1085,7 @@ extern const char bb_default_login_shell[]; #endif # define VC_FORMAT "/dev/tty%d" # define LOOP_FORMAT "/dev/loop%d" +# define LOOP_NAMESIZE (sizeof("/dev/loop") + sizeof(int)*3 + 1) # define LOOP_NAME "/dev/loop" # define FB_0 "/dev/fb0" #endif |