<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-06-25)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-25 Jennifer Averett <Jennifer.Averett@OARcorp.com
* libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added default
filesystem handlers.
* libfs/src/defaults/default_chown.c,
libfs/src/defaults/default_evalpath.c,
libfs/src/defaults/default_fchmod.c,
libfs/src/defaults/default_fcntl.c,
libfs/src/defaults/default_fdatasync.c,
libfs/src/defaults/default_freenode.c,
libfs/src/defaults/default_fsmount.c,
libfs/src/defaults/default_fstat.c,
libfs/src/defaults/default_fsync.c,
libfs/src/defaults/default_ftruncate.c,
libfs/src/defaults/default_ioctl.c,
libfs/src/defaults/default_link.c,
libfs/src/defaults/default_lseek.c,
libfs/src/defaults/default_mount.c,
libfs/src/defaults/default_read.c,
libfs/src/defaults/default_readlink.c,
libfs/src/defaults/default_rename.c,
libfs/src/defaults/default_rmnod.c,
libfs/src/defaults/default_statvfs.c,
libfs/src/defaults/default_symlink.c,
libfs/src/defaults/default_unlink.c,
libfs/src/defaults/default_utime.c,
libfs/src/defaults/default_write.c: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2463&r2=text&tr2=1.2464&diff_format=h">M</a></td><td width='1%'>1.2464</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/include/rtems/libio.h.diff?r1=text&tr1=1.71&r2=text&tr2=1.72&diff_format=h">M</a></td><td width='1%'>1.72</td><td width='100%'>cpukit/libcsupport/include/rtems/libio.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/Makefile.am.diff?r1=text&tr1=1.41&r2=text&tr2=1.42&diff_format=h">M</a></td><td width='1%'>1.42</td><td width='100%'>cpukit/libfs/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_chown.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_chown.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_evalpath.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_evalpath.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_fchmod.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_fchmod.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_fcntl.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_fcntl.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_fdatasync.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_fdatasync.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_freenode.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_freenode.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_fsmount.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_fsmount.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_fstat.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_fstat.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_fsync.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_fsync.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_ftruncate.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_ftruncate.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_ioctl.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_ioctl.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_link.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_link.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_lseek.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_lseek.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_mount.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_mount.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_read.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_read.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_readlink.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_readlink.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_rename.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_rename.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_rmnod.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_rmnod.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_statvfs.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_statvfs.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_symlink.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_symlink.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_unlink.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_unlink.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_utime.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_utime.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/defaults/default_write.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libfs/src/defaults/default_write.c</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2463 rtems/cpukit/ChangeLog:1.2464
--- rtems/cpukit/ChangeLog:1.2463 Thu Jun 24 17:40:30 2010
+++ rtems/cpukit/ChangeLog Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -1,3 +1,31 @@
</font><font color='#000088'>+2010-06-25 Jennifer Averett <Jennifer.Averett@OARcorp.com
+
+ * libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added default
+ filesystem handlers.
+ * libfs/src/defaults/default_chown.c,
+ libfs/src/defaults/default_evalpath.c,
+ libfs/src/defaults/default_fchmod.c,
+ libfs/src/defaults/default_fcntl.c,
+ libfs/src/defaults/default_fdatasync.c,
+ libfs/src/defaults/default_freenode.c,
+ libfs/src/defaults/default_fsmount.c,
+ libfs/src/defaults/default_fstat.c,
+ libfs/src/defaults/default_fsync.c,
+ libfs/src/defaults/default_ftruncate.c,
+ libfs/src/defaults/default_ioctl.c,
+ libfs/src/defaults/default_link.c,
+ libfs/src/defaults/default_lseek.c,
+ libfs/src/defaults/default_mount.c,
+ libfs/src/defaults/default_read.c,
+ libfs/src/defaults/default_readlink.c,
+ libfs/src/defaults/default_rename.c,
+ libfs/src/defaults/default_rmnod.c,
+ libfs/src/defaults/default_statvfs.c,
+ libfs/src/defaults/default_symlink.c,
+ libfs/src/defaults/default_unlink.c,
+ libfs/src/defaults/default_utime.c,
+ libfs/src/defaults/default_write.c: New files.
+
</font> 2010-06-24 Gedare Bloom <giddyup44@yahoo.com>
PR 1589/cpukit
<font color='#006600'>diff -u rtems/cpukit/libcsupport/include/rtems/libio.h:1.71 rtems/cpukit/libcsupport/include/rtems/libio.h:1.72
--- rtems/cpukit/libcsupport/include/rtems/libio.h:1.71 Sat Jun 12 22:02:26 2010
+++ rtems/cpukit/libcsupport/include/rtems/libio.h Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -50,7 +50,7 @@
</font> */
/**
<font color='#880000'>- * @brief A 64-bit file offset for internal use by RTEMS. Based on the Newlib
</font><font color='#000088'>+ * A 64-bit file offset for internal use by RTEMS. Based on the Newlib
</font> * type.
*/
typedef _off64_t rtems_off64_t;
<font color='#997700'>@@ -77,6 +77,10 @@
</font> * @{
*/
<font color='#000088'>+/**
+ * This type defines the interface to the open(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_open_t)(
rtems_libio_t *iop,
const char *pathname,
<font color='#997700'>@@ -84,62 +88,110 @@
</font> uint32_t mode
);
<font color='#000088'>+/**
+ * This type defines the interface to the close(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_close_t)(
rtems_libio_t *iop
);
<font color='#000088'>+/**
+ * This type defines the interface to the read(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef ssize_t (*rtems_filesystem_read_t)(
rtems_libio_t *iop,
void *buffer,
size_t count
);
<font color='#000088'>+/**
+ * This type defines the interface to the write(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef ssize_t (*rtems_filesystem_write_t)(
rtems_libio_t *iop,
const void *buffer,
size_t count
);
<font color='#000088'>+/**
+ * This type defines the interface to the ioctl(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_ioctl_t)(
rtems_libio_t *iop,
uint32_t command,
void *buffer
);
<font color='#000088'>+/**
+ * This type defines the interface to the lseek(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef rtems_off64_t (*rtems_filesystem_lseek_t)(
rtems_libio_t *iop,
rtems_off64_t length,
int whence
);
<font color='#000088'>+/**
+ * This type defines the interface to the fstat(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_fstat_t)(
rtems_filesystem_location_info_t *loc,
struct stat *buf
);
<font color='#000088'>+/**
+ * This type defines the interface to the fchmod(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_fchmod_t)(
rtems_filesystem_location_info_t *loc,
mode_t mode
);
<font color='#000088'>+/**
+ * This type defines the interface to the ftruncate(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_ftruncate_t)(
rtems_libio_t *iop,
rtems_off64_t length
);
<font color='#000088'>+/**
+ * This type defines the interface to the fpathconf(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_fpathconf_t)(
rtems_libio_t *iop,
int name
);
<font color='#000088'>+/**
+ * This type defines the interface to the fsync(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_fsync_t)(
rtems_libio_t *iop
);
<font color='#000088'>+/**
+ * This type defines the interface to the fdatasync(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_fdatasync_t)(
rtems_libio_t *iop
);
<font color='#000088'>+/**
+ * This type defines the interface to the fnctl(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
</font> typedef int (*rtems_filesystem_fcntl_t)(
int cmd,
rtems_libio_t *iop
<font color='#997700'>@@ -156,34 +208,284 @@
</font> * @brief File system node operations table.
*/
struct _rtems_filesystem_file_handlers_r {
<font color='#880000'>- rtems_filesystem_open_t open_h;
- rtems_filesystem_close_t close_h;
- rtems_filesystem_read_t read_h;
- rtems_filesystem_write_t write_h;
- rtems_filesystem_ioctl_t ioctl_h;
- rtems_filesystem_lseek_t lseek_h;
- rtems_filesystem_fstat_t fstat_h;
- rtems_filesystem_fchmod_t fchmod_h;
- rtems_filesystem_ftruncate_t ftruncate_h;
- rtems_filesystem_fpathconf_t fpathconf_h;
- rtems_filesystem_fsync_t fsync_h;
- rtems_filesystem_fdatasync_t fdatasync_h;
- rtems_filesystem_fcntl_t fcntl_h;
- rtems_filesystem_rmnod_t rmnod_h;
</font><font color='#000088'>+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the open(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method must have a filesystem specific implementation.
+ *
+ * @note There is no default implementation.
+ */
+ rtems_filesystem_open_t open_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the close(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method is REQUIRED by all file systems.
+ *
+ * @note There is no default implementation.
+ */
+ rtems_filesystem_close_t close_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the read(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method must have a filesystem specific implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_read_t read_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the write(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_write_t write_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the ioctl(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_ioctl_t ioctl_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the lseek(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_lseek_t lseek_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the fstat(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_fstat_t fstat_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the fchmod(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_fchmod_t fchmod_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the ftruncate(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_ftruncate_t ftruncate_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the fpathconf(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_fpathconf_t fpathconf_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the fsync(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_fsync_t fsync_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the fdatasync(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_fdatasync_t fdatasync_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the fcntl(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_fcntl_t fcntl_h;
+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the rmnod(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
+ rtems_filesystem_rmnod_t rmnod_h;
</font> };
/**
<font color='#000088'>+ * This method defines the interface to the default read(2)<span style="background-color: #FF0000"> </span>
+ * system call support which is provided by a file system<span style="background-color: #FF0000"> </span>
+ * implementation.
+ */
+size_t rtems_filesystem_default_read(
+ rtems_libio_t *iop,
+ void *buffer,
+ size_t count
+);
+
+/**
+ * This method defines the interface to the default write(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+ssize_t rtems_filesystem_default_write(
+ rtems_libio_t *iop,
+ const void *buffer,
+ size_t count
+);
+
+/**
+ * This method defines the interface to the default ioctl(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_ioctl(
+ rtems_libio_t *iop,
+ uint32_t command,
+ void *buffer
+);
+
+/**
+ * This method defines the interface to the default lseek(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+rtems_off64_t rtems_filesystem_default_lseek(
+ rtems_libio_t *iop,
+ rtems_off64_t length,
+ int whence
+);
+
+/**
+ * This method defines the interface to the default fstat(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_fstat(
+ rtems_filesystem_location_info_t *loc,
+ struct stat *buf
+);
+
+/**
+ * This method defines the interface to the default fchmod(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_fchmod(
+ rtems_filesystem_location_info_t *loc,
+ mode_t mode
+);
+
+/**
+ * This method defines the interface to the default ftruncate(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_ftruncate(
+ rtems_libio_t *iop,
+ rtems_off64_t length
+);
+
+/**
+ * This method defines the interface to the default fpathconf(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_fpathconf(
+ rtems_libio_t *iop,
+ int name
+);
+
+/**
+ * This method defines the interface to the default fsync(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_fsync(
+ rtems_libio_t *iop
+);
+
+/**
+ * This method defines the interface to the default fdatasync(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_fdatasync(
+ rtems_libio_t *iop
+);
+
+/**
+ * This method defines the interface to the default fnctl(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_fcntl(
+ int cmd,
+ rtems_libio_t *iop
+);
+
+/**
+ * This method defines the interface to the default rmnod(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */
+int rtems_filesystem_default_rmnod(
+ rtems_filesystem_location_info_t *parent_loc, /* IN */
+ rtems_filesystem_location_info_t *pathloc /* IN */
+);
+
+/**
</font> * @name File System Operations
*
* @{
*/
<font color='#880000'>-/*
- * XXX
- * This routine does not allocate any space and rtems_filesystem_freenode_t
- * is not called by the generic after calling this routine.
- * ie. node_access does not have to contain valid data when the
- * routine returns.
</font><font color='#000088'>+/**
+ * This type defines the interface to the mknod(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ *<span style="background-color: #FF0000"> </span>
+ * @note This routine does not allocate any space and<span style="background-color: #FF0000"> </span>
+ * rtems_filesystem_freenode_t is not called by the generic<span style="background-color: #FF0000"> </span>
+ * after calling this routine. ie. node_access does not have<span style="background-color: #FF0000"> </span>
+ * to contain valid data when the routine returns.
</font> */
typedef int (*rtems_filesystem_mknod_t)(
const char *path, /* IN */
<font color='#997700'>@@ -192,11 +494,14 @@
</font> rtems_filesystem_location_info_t *pathloc /* IN/OUT */
);
<font color='#880000'>-/*
- * rtems_filesystem_freenode_t must be called by the generic after
- * calling this routine
</font><font color='#000088'>+/**
+ * This type defines the interface that allows the<span style="background-color: #FF0000"> </span>
+ * file system implementation to parse a path and<span style="background-color: #FF0000"> </span>
+ * allocate any memory necessary for tracking purposes.
+ *
+ * @note rtems_filesystem_freenode_t must be called by<span style="background-color: #FF0000"> </span>
+ * the generic after calling this routine
</font> */
<font color='#880000'>-
</font> typedef int (*rtems_filesystem_evalpath_t)(
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
<font color='#997700'>@@ -204,77 +509,145 @@
</font> rtems_filesystem_location_info_t *pathloc /* IN/OUT */
);
<font color='#000088'>+/**
+ * This type defines the interface that allows the<span style="background-color: #FF0000"> </span>
+ * file system implementation to parse a path with the
+ * intent of creating a new node and to<span style="background-color: #FF0000"> </span>
+ * allocate any memory necessary for tracking purposes.
+ *
+ * @note rtems_filesystem_freenode_t must be called by<span style="background-color: #FF0000"> </span>
+ * the generic after calling this routine
+ */
</font> typedef int (*rtems_filesystem_evalmake_t)(
const char *path, /* IN */
rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
const char **name /* OUT */
);
<font color='#000088'>+/**
+ * This type defines the interface to the link(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_link_t)(
<font color='#880000'>- rtems_filesystem_location_info_t *to_loc, /* IN */
- rtems_filesystem_location_info_t *parent_loc, /* IN */
- const char *name /* IN */
</font><font color='#000088'>+ rtems_filesystem_location_info_t *to_loc, /* IN */
+ rtems_filesystem_location_info_t *parent_loc, /* IN */
+ const char *name /* IN */
</font> );
<font color='#000088'>+/**
+ * This type defines the interface to the unlink(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_unlink_t)(
<font color='#880000'>- rtems_filesystem_location_info_t *parent_pathloc, /* IN */
- rtems_filesystem_location_info_t *pathloc /* IN */
</font><font color='#000088'>+ rtems_filesystem_location_info_t *parent_pathloc, /* IN */
+ rtems_filesystem_location_info_t *pathloc /* IN */
</font> );
<font color='#000088'>+/**
+ * This type defines the interface to the chown(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_chown_t)(
<font color='#880000'>- rtems_filesystem_location_info_t *pathloc, /* IN */
- uid_t owner, /* IN */
- gid_t group /* IN */
</font><font color='#000088'>+ rtems_filesystem_location_info_t *pathloc, /* IN */
+ uid_t owner, /* IN */
+ gid_t group /* IN */
</font> );
<font color='#000088'>+/**
+ * This type defines the interface to the freenod(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_freenode_t)(
rtems_filesystem_location_info_t *pathloc /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface that allows the implemented
+ * filesystem ot mount another filesystem at the given location.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (* rtems_filesystem_mount_t ) (
rtems_filesystem_mount_table_entry_t *mt_entry /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface that allows a file system<span style="background-color: #FF0000"> </span>
+ * implementation to do any necessary work that is needed when
+ * it is being mounted.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (* rtems_filesystem_fsmount_me_t )(
rtems_filesystem_mount_table_entry_t *mt_entry, /* IN */
const void *data /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface allow the filesystem to
+ * unmount a filesystem that was mounted at one of its node
+ * locations.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (* rtems_filesystem_unmount_t ) (
rtems_filesystem_mount_table_entry_t *mt_entry /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface that allows a file system<span style="background-color: #FF0000"> </span>
+ * implementation to do any necessary work that is needed when
+ * it is being unmounted.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (* rtems_filesystem_fsunmount_me_t ) (
rtems_filesystem_mount_table_entry_t *mt_entry /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface that will return the<span style="background-color: #FF0000"> </span>
+ * type of a filesystem implementations node.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef rtems_filesystem_node_types_t (* rtems_filesystem_node_type_t) (
rtems_filesystem_location_info_t *pathloc /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface to the time(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (* rtems_filesystem_utime_t)(
rtems_filesystem_location_info_t *pathloc, /* IN */
time_t actime, /* IN */
time_t modtime /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface to the link(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_evaluate_link_t)(
rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
int flags /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface to the symlink(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_symlink_t)(
rtems_filesystem_location_info_t *loc, /* IN */
const char *link_name, /* IN */
const char *node_name
);
<font color='#000088'>+/**
+ * This type defines the interface to the readlink(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_readlink_t)(
rtems_filesystem_location_info_t *loc, /* IN */
char *buf, /* OUT */
size_t bufsize
);
<font color='#000088'>+/**
+ * This type defines the interface to the name(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_rename_t)(
rtems_filesystem_location_info_t *old_parent_loc, /* IN */
rtems_filesystem_location_info_t *old_loc, /* IN */
<font color='#997700'>@@ -282,6 +655,10 @@
</font> const char *name /* IN */
);
<font color='#000088'>+/**
+ * This type defines the interface to the statvfs(2) system call<span style="background-color: #FF0000"> </span>
+ * support which is provided by a file system implementation.
+ */<span style="background-color: #FF0000"> </span>
</font> typedef int (*rtems_filesystem_statvfs_t)(
rtems_filesystem_location_info_t *loc, /* IN */
struct statvfs *buf /* OUT */
<font color='#997700'>@@ -293,26 +670,342 @@
</font> * @brief File system operations table.
*/
struct _rtems_filesystem_operations_table {
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine that evaluates a character path and
+ * returns the node assocated with the last node in the path.<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method must have a filesystem specific implementation.
+ *
+ * @note There is no default implementation.
+ */
</font> rtems_filesystem_evalpath_t evalpath_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine that evaluates a character path and
+ * returns the node assocated with next to the last node in<span style="background-color: #FF0000"> </span>
+ * the path. The last node will be the new node to be created.
+ *
+ * @note This method must have a filesystem specific implementation.
+ *
+ * @note There is no default implementation.
+ */
</font> rtems_filesystem_evalmake_t evalformake_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the link(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_link_t link_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the unlink(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_unlink_t unlink_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of a method that returns the node type of the given node.<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_node_type_t node_type_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the link(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a mknod implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_mknod_t mknod_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the link(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_chown_t chown_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the freenod(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_freenode_t freenod_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the mount(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_mount_t mount_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the fsmount(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_fsmount_me_t fsmount_me_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the unmount(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_unmount_t unmount_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the fsunmount(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_fsunmount_me_t fsunmount_me_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the utime(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_utime_t utime_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the eval_link(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_evaluate_link_t eval_link_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the sumlink(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_symlink_t symlink_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the readlink(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_readlink_t readlink_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the rename(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_rename_t rename_h;
<font color='#000088'>+
+ /**
+ * This field points to the file system specific implementation
+ * of the support routine for the statvfs(2) system call<span style="background-color: #FF0000"> </span>
+ *
+ * @note This method may use a default implementation.
+ *
+ * @note The default implementation returns -1 and sets
+ * errno to ENOTSUP.
+ */
</font> rtems_filesystem_statvfs_t statvfs_h;
};
<font color='#000088'>+/*
+ * @brief Default filesystem evalpath
+ */
+
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a link command.
+ */
+int rtems_filesystem_default_link(
+ rtems_filesystem_location_info_t *to_loc, /* IN */
+ rtems_filesystem_location_info_t *parent_loc, /* IN */
+ const char *name /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a unlink command.
+ */
+int rtems_filesystem_default_unlink(
+ rtems_filesystem_location_info_t *parent_pathloc, /* IN */
+ rtems_filesystem_location_info_t *pathloc /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a chown command.
+ */
+int rtems_filesystem_default_chown(
+ rtems_filesystem_location_info_t *pathloc, /* IN */
+ uid_t owner, /* IN */
+ gid_t group /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a freenode command.
+ */
+int rtems_filesystem_default_freenode(
+ rtems_filesystem_location_info_t *pathloc /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a mount command.
+ */
+int rtems_filesystem_default_mount (
+ rtems_filesystem_mount_table_entry_t *mt_entry /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a fsmount command.
+ */
+int rtems_filesystem_default_fsmount(
+ rtems_filesystem_mount_table_entry_t *mt_entry, /* IN */
+ const void *data /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a unmount command.
+ */
+int rtems_filesystem_default_unmount(
+ rtems_filesystem_mount_table_entry_t *mt_entry /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a fsunmount command.
+ */
+int rtems_filesystem_default_fsunmount(
+ rtems_filesystem_mount_table_entry_t *mt_entry /* IN */
+);
+
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a utime command.
+ */
+int rtems_filesystem_default_utime(
+ rtems_filesystem_location_info_t *pathloc, /* IN */
+ time_t actime, /* IN */
+ time_t modtime /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a link command.
+ */
+int rtems_filesystem_default_evaluate_link(
+ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
+ int flags /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a symlink command.
+ */
+int rtems_filesystem_default_symlink(
+ rtems_filesystem_location_info_t *loc, /* IN */
+ const char *link_name, /* IN */
+ const char *node_name
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a readlink command.
+ */
+int rtems_filesystem_default_readlink(
+ rtems_filesystem_location_info_t *loc, /* IN */
+ char *buf, /* OUT */
+ size_t bufsize
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a rename command.
+ */
+int rtems_filesystem_default_rename(
+ rtems_filesystem_location_info_t *old_parent_loc, /* IN */
+ rtems_filesystem_location_info_t *old_loc, /* IN */
+ rtems_filesystem_location_info_t *new_parent_loc, /* IN */
+ const char *name /* IN */
+);
+
+/**
+ * @brief Provides a defualt routine for filesystem
+ * implementation of a statvfs command.
+ */
+int rtems_filesystem_default_statvfs(
+ rtems_filesystem_location_info_t *loc, /* IN */
+ struct statvfs *buf /* OUT */
+);
+
</font> /**
* @brief File system table entry.
*/
<font color='#006600'>diff -u rtems/cpukit/libfs/Makefile.am:1.41 rtems/cpukit/libfs/Makefile.am:1.42
--- rtems/cpukit/libfs/Makefile.am:1.41 Tue Jun 8 05:25:45 2010
+++ rtems/cpukit/libfs/Makefile.am Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -14,8 +14,22 @@
</font>
EXTRA_DIST = README
<font color='#880000'>-noinst_LIBRARIES = libimfs.a
</font><font color='#000088'>+noinst_LIBRARIES = libdefaultfs.a
+libdefaultfs_a_SOURCES = \
+ src/defaults/default_chown.c src/defaults/default_fdatasync.c \
+ src/defaults/default_fsync.c src/defaults/default_lseek.c \
+ src/defaults/default_rename.c src/defaults/default_unlink.c \
+ src/defaults/default_evalpath.c src/defaults/default_freenode.c \
+ src/defaults/default_ftruncate.c src/defaults/default_mount.c \
+ src/defaults/default_rmnod.c src/defaults/default_utime.c \
+ src/defaults/default_fchmod.c src/defaults/default_fsmount.c \
+ src/defaults/default_ioctl.c src/defaults/default_read.c \
+ src/defaults/default_statvfs.c src/defaults/default_write.c \
+ src/defaults/default_fcntl.c src/defaults/default_fstat.c \
+ src/defaults/default_link.c src/defaults/default_readlink.c \
+ src/defaults/default_symlink.c
</font>
<font color='#000088'>+noinst_LIBRARIES += libimfs.a
</font> libimfs_a_SOURCES =
libimfs_a_SOURCES += src/imfs/imfs_chown.c src/imfs/imfs_config.c \
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_chown.c:1.1
--- /dev/null Fri Jun 25 10:13:26 2010
+++ rtems/cpukit/libfs/src/defaults/default_chown.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_chown_t(
+ rtems_filesystem_location_info_t *pathloc, /* IN */
+ uid_t owner, /* IN */
+ gid_t group /* IN */
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_evalpath.c:1.1
--- /dev/null Fri Jun 25 10:13:26 2010
+++ rtems/cpukit/libfs/src/defaults/default_evalpath.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,25 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_evalpath_t(
+ const char *pathname, /* IN */
+ size_t pathnamelen, /* IN */
+ int flags, /* IN */
+ rtems_filesystem_location_info_t *pathloc /* IN/OUT */
+)
+{
+ pathloc = NULL;
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
+
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_fchmod.c:1.1
--- /dev/null Fri Jun 25 10:13:26 2010
+++ rtems/cpukit/libfs/src/defaults/default_fchmod.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_fchmod(
+ rtems_filesystem_location_info_t *loc,
+ mode_t mode
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_fcntl.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_fcntl.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_fcntl(
+ int cmd,
+ rtems_libio_t *iop
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_fdatasync.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_fdatasync.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,20 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_fdatasync(
+ rtems_libio_t *iop
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_freenode.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_freenode.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_freenode_t(
+ rtems_filesystem_location_info_t *pathloc /* IN */
+)
+{
+ return 0;
+}
+
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_fsmount.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_fsmount.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_fsmount_t(
+ rtems_filesystem_mount_table_entry_t *mt_entry, /* IN */
+ const void *data /* IN */
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_fstat.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_fstat.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_fstat(
+ rtems_filesystem_location_info_t *loc,
+ struct stat *buf
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_fsync.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_fsync.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,20 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_fsync(
+ rtems_libio_t *iop
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_ftruncate.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_ftruncate.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_ftruncate(
+ rtems_libio_t *iop,
+ rtems_off64_t length
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_ioctl.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_ioctl.c Fri Jun 25 09:23:47 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_ioctl(
+ rtems_libio_t *iop,
+ uint32_t command,
+ void *buffer
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_link.c:1.1
--- /dev/null Fri Jun 25 10:13:27 2010
+++ rtems/cpukit/libfs/src/defaults/default_link.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,23 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_link_t(
+ rtems_filesystem_location_info_t *to_loc, /* IN */
+ rtems_filesystem_location_info_t *parent_loc, /* IN */
+ const char *name /* IN */
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
+
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_lseek.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_lseek.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+rtems_off64_t rtems_filesystem_default_lseek(
+ rtems_libio_t *iop,
+ rtems_off64_t length,
+ int whence
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_mount.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_mount.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,20 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_mount_t (
+ rtems_filesystem_mount_table_entry_t *mt_entry /* IN */
+)
+{
+ return 0;
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_read.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_read.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+size_t rtems_filesystem_default_read(
+ rtems_libio_t *iop,
+ void *buffer,
+ size_t count
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_readlink.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_readlink.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_readlink(
+ rtems_filesystem_location_info_t *loc, /* IN */
+ char *buf, /* OUT */
+ size_t bufsize
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_rename.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_rename.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,23 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_rename_t(
+ rtems_filesystem_location_info_t *old_parent_loc, /* IN */
+ rtems_filesystem_location_info_t *old_loc, /* IN */
+ rtems_filesystem_location_info_t *new_parent_loc, /* IN */
+ const char *name /* IN */
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_rmnod.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_rmnod.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_rmnod(
+ rtems_filesystem_location_info_t *parent_loc, /* IN */
+ rtems_filesystem_location_info_t *pathloc /* IN */
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_statvfs.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_statvfs.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_statvfs_t(
+ rtems_filesystem_location_info_t *loc, /* IN */
+ struct statvfs *buf /* OUT */
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_symlink.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_symlink.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_symlink_t(
+ rtems_filesystem_location_info_t *loc, /* IN */
+ const char *link_name, /* IN */
+ const char *node_name
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_unlink.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_unlink.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,21 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_unlink_t(
+ rtems_filesystem_location_info_t *parent_pathloc, /* IN */
+ rtems_filesystem_location_info_t *pathloc /* IN */
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_utime.c:1.1
--- /dev/null Fri Jun 25 10:13:28 2010
+++ rtems/cpukit/libfs/src/defaults/default_utime.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,23 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_utime_t(
+ rtems_filesystem_location_info_t *pathloc, /* IN */
+ time_t actime, /* IN */
+ time_t modtime /* IN */
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
+
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libfs/src/defaults/default_write.c:1.1
--- /dev/null Fri Jun 25 10:13:29 2010
+++ rtems/cpukit/libfs/src/defaults/default_write.c Fri Jun 25 09:23:48 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+/*
+ * COPYRIGHT (c) 2010.
+ * 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$
+ */
+
+#include <rtems/libio.h>
+#include <rtems/libio_.h>
+
+ssize_t rtems_filesystem_default_write(
+ rtems_libio_t *iop,
+ const void *buffer,
+ size_t count
+)
+{
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
+}
</font></pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>