[rfc] xioctl()

Mike Frysinger vapier at gentoo.org
Sat Jun 23 17:31:19 UTC 2007


On Saturday 23 June 2007, Mike Frysinger wrote:
> +int xioctl(int fd, int request, unsigned long arg)
> +{
> +       int ret = ioctl(fd, request, arg);
> +       if (ret != 0)
> +               bb_perror_msg_and_die("ioctl");
> +       return ret;
> +}

actually now that i think about it, considering the usage here (people usually 
only care if it fails, they dont want to read the return value), we probably 
can do:
void xioctl(...)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070623/5f41d1e4/attachment-0002.pgp 


More information about the busybox mailing list