blockdev applet proposal
Denys Vlasenko
vda.linux at googlemail.com
Sun Sep 5 17:23:12 UTC 2010
On Sun, Sep 5, 2010 at 7:07 PM, Sergey Naumov <sknaumov at gmail.com> wrote:
>> Please put all things (help/config/applet/kbuild) into one file.
>> See procps/pmap.c for an example how to do it.
>
> Unfortunately there is no such a file in busybox-1.17.2
git clone git://busybox.net/busybox.git
>> What's the point in returning ERR_IOCTL from do_cmd() to main?
>> You can instead simply call bb_perror_msg_and_die("ioctl failure")
>> in do_cmd(). Same applies to some (all?) other ERR_foo constants.
>
> Wanted to close file descriptor. But OK, when process exits it will be
> closed automatically =)
> Another reason - destinguishing of exit statuses, but may be I can use
> bb_perror_msg() and then exit(ERR_foo);
xfunc_error_retval = N;
bb_perror_msg_and_die(...);
--
vda
More information about the busybox
mailing list