2 * Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
12 #include <errno_private.h>
15 #define RETURN_AND_SET_ERRNO(err) \
24 ioctl(int fd
, ulong cmd
, ...)
32 argument
= va_arg(args
, void*);
33 size
= va_arg(args
, size_t);
36 status
= _kern_ioctl(fd
, cmd
, argument
, size
);
38 RETURN_AND_SET_ERRNO(status
)