diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 14:17:57 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 14:32:25 +0100 |
commit | ba120d1aaa7695cb73c824c93c34a6d0949bce27 (patch) | |
tree | 8587b1ce359379c92b3f0afd5c28477aa50e2166 | |
parent | Filesystem: Documentation (diff) | |
download | rtems-ba120d1aaa7695cb73c824c93c34a6d0949bce27.tar.bz2 |
Filesystem: Use ENOTTY for default ioctl() handler
This is in line with Linux and FreeBSD.
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 2 | ||||
-rw-r--r-- | cpukit/libfs/src/defaults/default_ioctl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index 903991bc71..aa64ff35c4 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -1009,7 +1009,7 @@ ssize_t rtems_filesystem_default_write( ); /** - * @retval -1 Always. The errno is set to ENOTSUP. + * @retval -1 Always. The errno is set to ENOTTY. * * @see rtems_filesystem_ioctl_t. */ diff --git a/cpukit/libfs/src/defaults/default_ioctl.c b/cpukit/libfs/src/defaults/default_ioctl.c index f9e9a9cf29..5df22818ce 100644 --- a/cpukit/libfs/src/defaults/default_ioctl.c +++ b/cpukit/libfs/src/defaults/default_ioctl.c @@ -26,5 +26,5 @@ int rtems_filesystem_default_ioctl( void *buffer ) { - rtems_set_errno_and_return_minus_one( ENOTSUP ); + rtems_set_errno_and_return_minus_one( ENOTTY ); } |