diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-14 13:16:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-15 10:01:42 +0200 |
commit | df01da67078b4ed4787680d3987f5b40ac93d080 (patch) | |
tree | a5a111a82290eb1b79c344459d34b989b341602d /cpukit/libcsupport | |
parent | rfs: Fix major and minor number integer types (diff) | |
download | rtems-df01da67078b4ed4787680d3987f5b40ac93d080.tar.bz2 |
Filesystem: Use ioctl_command_t
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 14 | ||||
-rw-r--r-- | cpukit/libcsupport/include/sys/ioccom.h | 7 |
2 files changed, 9 insertions, 12 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index bb6c44fcfa..9268aed2e1 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -832,9 +832,9 @@ typedef ssize_t (*rtems_filesystem_write_t)( * @see rtems_filesystem_default_ioctl(). */ typedef int (*rtems_filesystem_ioctl_t)( - rtems_libio_t *iop, - uint32_t request, - void *buffer + rtems_libio_t *iop, + ioctl_command_t request, + void *buffer ); /** @@ -1008,9 +1008,9 @@ ssize_t rtems_filesystem_default_write( * @see rtems_filesystem_ioctl_t. */ int rtems_filesystem_default_ioctl( - rtems_libio_t *iop, - uint32_t command, - void *buffer + rtems_libio_t *iop, + ioctl_command_t request, + void *buffer ); /** @@ -1225,7 +1225,7 @@ typedef struct { */ typedef struct { rtems_libio_t *iop; - uint32_t command; + ioctl_command_t command; void *buffer; int ioctl_return; } rtems_libio_ioctl_args_t; diff --git a/cpukit/libcsupport/include/sys/ioccom.h b/cpukit/libcsupport/include/sys/ioccom.h index 054eac7f04..4bbe1bcc79 100644 --- a/cpukit/libcsupport/include/sys/ioccom.h +++ b/cpukit/libcsupport/include/sys/ioccom.h @@ -83,15 +83,12 @@ #define FIOSETOWN _IOW('f', 124, int) /* set owner */ #define FIOGETOWN _IOR('f', 123, int) /* get owner */ +typedef uint32_t ioctl_command_t; + #ifndef _KERNEL #include <sys/cdefs.h> -#ifndef __ioctl_command_defined -typedef u_int32_t ioctl_command_t; -#define __ioctl_command_defined -#endif - __BEGIN_DECLS int ioctl(int, ioctl_command_t, ...); __END_DECLS |