summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/deviceio01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-03 19:23:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-09 17:26:54 +0100
commit0161b93d50d6915116c4ca9d1cad42ef89a4ad9e (patch)
tree92519deb9ceecf46fa298e94c5ae6dc11672bf01 /testsuites/libtests/deviceio01
parentimfs: Simplify code generation (diff)
downloadrtems-0161b93d50d6915116c4ca9d1cad42ef89a4ad9e.tar.bz2
imfs: Replace devfs with an IMFS specialization
Add a simplified path evaluation function IMFS_eval_path_devfs() for a device only IMFS configuration. The code size can be further reduced by the application if it disables the support for legacy IO drivers via: #define CONFIGURE_IMFS_DISABLE_MKNOD #define CONFIGURE_IMFS_DISABLE_MKNOD_DEVICE Obsolete CONFIGURE_MAXIMUM_DEVICES. Remove BSP_MAXIMUM_DEVICES. Update #3894. Update #3898.
Diffstat (limited to 'testsuites/libtests/deviceio01')
-rw-r--r--testsuites/libtests/deviceio01/init.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuites/libtests/deviceio01/init.c b/testsuites/libtests/deviceio01/init.c
index ff6223234f..c27e345be5 100644
--- a/testsuites/libtests/deviceio01/init.c
+++ b/testsuites/libtests/deviceio01/init.c
@@ -13,21 +13,18 @@
#include <tmacros.h>
#include "test_support.h"
-#include <rtems/devfs.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/ioctl.h>
#include <fcntl.h>
#include "test_driver.h"
#include <rtems/devnull.h>
const char rtems_test_name[] = "DEVICEIO 1";
-/* forward declarations to avoid warnings */
-rtems_task Init(rtems_task_argument argument);
-
-rtems_task Init(
+static rtems_task Init(
rtems_task_argument argument
)
{