summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/devfs04
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/devfs04
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/devfs04')
-rw-r--r--testsuites/libtests/devfs04/init.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/testsuites/libtests/devfs04/init.c b/testsuites/libtests/devfs04/init.c
index bc747a8e07..a7549abdad 100644
--- a/testsuites/libtests/devfs04/init.c
+++ b/testsuites/libtests/devfs04/init.c
@@ -13,21 +13,17 @@
#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[] = "DEVFS 4";
-/* forward declarations to avoid warnings */
-rtems_task Init(rtems_task_argument argument);
-
-rtems_task Init(
+static rtems_task Init(
rtems_task_argument argument
)
{
@@ -88,9 +84,6 @@ rtems_task Init(
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-/* Make sure that we have enough devices for all BSPs */
-#define CONFIGURE_MAXIMUM_DEVICES 64
-
#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
#define CONFIGURE_INIT