diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-01 17:37:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-01 17:37:01 +0000 |
commit | d120078564831428282d254b9f50149144c701cb (patch) | |
tree | 6a2990ae2c65562a987dc78e76cb67ef33950119 /cpukit/libfs | |
parent | 2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-d120078564831428282d254b9f50149144c701cb.tar.bz2 |
2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* libfs/Makefile.am: Add stub for devide filesystem for unix port.
* libfs/src/devfs/devfs_unixstub.c: New file.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/libfs/src/devfs/devfs_unixstub.c | 50 |
2 files changed, 51 insertions, 1 deletions
diff --git a/cpukit/libfs/Makefile.am b/cpukit/libfs/Makefile.am index a5a2537ff0..683ef481d4 100644 --- a/cpukit/libfs/Makefile.am +++ b/cpukit/libfs/Makefile.am @@ -19,7 +19,7 @@ noinst_LIBRARIES = libimfs.a libimfs_a_SOURCES = if UNIX -libimfs_a_SOURCES += src/imfs/imfs_unixstub.c +libimfs_a_SOURCES += src/imfs/imfs_unixstub.c src/devfs/devfs_unixstub.c else libimfs_a_SOURCES += src/imfs/imfs_chown.c src/imfs/imfs_config.c \ src/imfs/imfs_creat.c src/imfs/imfs_directory.c src/imfs/imfs_eval.c \ diff --git a/cpukit/libfs/src/devfs/devfs_unixstub.c b/cpukit/libfs/src/devfs/devfs_unixstub.c new file mode 100644 index 0000000000..1d5575e082 --- /dev/null +++ b/cpukit/libfs/src/devfs/devfs_unixstub.c @@ -0,0 +1,50 @@ +/* + * IMFS Stub for UNIX configuration + * + * COPYRIGHT (c) 1989-1999. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#include <sys/types.h> /* for mkdir */ +#include <fcntl.h> +#include <unistd.h> +#include <stdlib.h> + +#include <assert.h> + +#include <rtems/libio_.h> + +#include <stdio.h> + +/* + * IMFS file system operations table + */ + +const rtems_filesystem_operations_table devFS_ops = { + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL +}; |