summaryrefslogtreecommitdiff
path: root/cpukit/libfs/src/defaults (follow)
AgeCommit message (Collapse)Author
2018-12-04Spelling and grammar fixes in source code comments (GCI 2018)Marçal Comajoan Cara
2017-07-14posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel
Added a mmap file handler to struct _rtems_filesystem_file_handlers_r. Updated each file handler object to support the default mmap handler. Updated mmap() to call the mmap handler for MAP_SHARED. Added a mmap file handler for shm Added support for MAP_ANON in mmap(). Updates #2859
2017-02-23termios: Add kqueue() and poll() supportSebastian Huber
Real implementation is provided by libbsd.
2015-02-12Filesystem: Use ENOTSUP for default mount/unmountSebastian Huber
2015-02-09Filesystem: Delete unused fsmountme_h handlerSebastian Huber
2015-01-22Filesystem: Delete node type operationSebastian Huber
Use the fstat handler instead.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns
2013-12-20libcsupport: Accept NULL for zero-length entriesSebastian Huber
2013-12-20Filesystem: Use default kqfilter and poll handlerSebastian Huber
2013-12-20Filesystem: Add readv/writev handlersSebastian Huber
The readv() and writev() support was implemented in terms of multiple calls to the read and write handlers. This imposes a problem on device files which use an IO vector as single request entity. For example a low-level network device (e.g. BPF(4)) may use an IO vector to create one frame from multiple protocol layers each with its own IO vector entry.
2013-11-27statvfs filesystem handlers: Remove restrictJoel Sherrill
2013-11-21statvfs and ALL filesystem handlers: Add restrict keyword.Daniel Ramirez
2013-11-04Filesystem: Add kernel event filter handlerSebastian Huber
This handler is necessary to implement the KQUEUE(2) system calls. Add <sys/event.h> from FreeBSD 8.4.
2013-11-04Filesystem: Add poll() handlerSebastian Huber
This handler is necessary to implement the SELECT(2) and POLL(2) system calls. Add <sys/poll.h> from FreeBSD 8.4.
2013-10-31Filesystem: Use ENOTTY for default ioctl() handlerSebastian Huber
This is in line with Linux and FreeBSD.
2013-10-11Return EINVAL in default ftruncate() handlerSebastian Huber
According to POSIX this case is implementation defined. Linux and FreeBSD return EINVAL.
2013-08-23Filesystem: Avoid usage of uninitialized variableSebastian Huber
This is a cosmetic fix. There was no bug.
2012-12-28libfs: Doxygen Enhancement Task #4Ayush Awasthi
2012-12-28libfs: Doxygen Enhancement Task #5Mathew Kallada
2012-12-28libfs: Doxygen Enhancement Task #3Alex Ivanov
2012-11-22Filesystem: PR1619: Use ENOSYS for default statvfsSebastian Huber
POSIX does not specify an error number in case the file system does not support this call. Use the Linux value.
2012-05-15Filesystem: Add const qualifier to lock/unlockSebastian Huber
2012-05-15Filesystem: Use ioctl_command_tSebastian Huber
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2012-05-11Filesystem: PR1398: Fix lseek() mechanicSebastian Huber
According to POSIX the lseek() function shall not, by itself, extend the size of a file. Remove the size field of rtems_libio_t. A file has only one size but may have multiple open file descriptors. Thus a file size field in the file descriptor may lead to inconsistencies. New default handlers rtems_filesystem_default_lseek_file() and rtems_filesystem_default_lseek_directory().
2012-03-13Filesystem: New defaults fsync_h and fdatasync_hSebastian Huber
New defaults rtems_filesystem_default_fsync_or_fdatasync() and rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and fdatasync_h. The rtems_filesystem_default_fsync_or_fdatasync() sets now errno to EINVAL according to POSIX.
2012-03-13Filesystem: Change error indicationSebastian Huber
Change error indication to ESPIPE in rtems_filesystem_default_lseek().
2012-03-13Filesystem: New functionSebastian Huber
New function rtems_filesystem_default_lseek_success().
2012-03-13Filesystem: Reference counting for locationsSebastian Huber
o A new data structure rtems_filesystem_global_location_t was introduced to be used for o the mount point location in the mount table entry, o the file system root location in the mount table entry, o the root directory location in the user environment, and o the current directory location in the user environment. During the path evaluation global start locations are obtained to ensure that the current file system instance will be not unmounted in the meantime. o The user environment uses now reference counting and is protected from concurrent access. o The path evaluation process was completely rewritten and simplified. The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation method. Recursive calls in the path evaluation have been replaced with iteration to avoid stack overflows. Only the evaluation of symbolic links is recursive. No dynamic memory allocations and intermediate buffers are used in the high level path evaluation. No global locks are held during the file system instance specific path evaluation process. o Recursive symbolic link evaluation is now limited by RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value via sysconf(). o The device file system (devFS) uses now no global variables and allocation from the workspace. Node names are allocated from the heap. o The upper layer lseek() performs now some parameter checks. o The upper layer ftruncate() performs now some parameter checks. o unmask() is now restricted to the RWX flags and protected from concurrent access. o The fchmod_h and rmnod_h file system node handlers are now a file system operation. o The unlink_h operation has been removed. All nodes are now destroyed with the rmnod_h operation. o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system operations. o The path evaluation and file system operations are now protected by per file system instance lock and unlock operations. o Fix and test file descriptor duplicate in fcntl(). o New test fstests/fsnofs01.
2012-02-02Removed fpathconf file system node handler.Sebastian Huber
There existed no calling function for this handler.
2011-11-062011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius
PR1945/cpukit * libfs/src/defaults/default_ftruncate.c, libfs/src/defaults/default_lseek.c: Replace rtems_off64_t with off_t.
2010-09-272010-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber
* libfs/src/defaults/default_close.c: Return 0 instead of an error status.
2010-08-272010-08-26 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber
* libfs/src/defaults/default_evalpath.c, libfs/src/defaults/default_evaluate_link.c: Removed superfluous assignment.
2010-08-252010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber
* libfs/src/imfs/imfs_fcntl.c: Removed file. * libfs/Makefile.am: Reflect change from above. * libfs/src/defaults/default_fcntl.c: Return 0 instead of -1 and errno. * libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_fifo.c, libfs/src/imfs/imfs_handlers_directory.c, libfs/src/imfs/imfs_handlers_memfile.c, libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems-file.c, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h: Use default file system handlers.
2010-07-152010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber
* libcsupport/include/rtems/libio.h: Changed rtems_filesystem_node_types_t to an enum. Declare rtems_filesystem_handlers_default, rtems_filesystem_operations_default, rtems_filesystem_default_evalpath(), rtems_filesystem_default_evalformake, and rtems_filesystem_default_node_type(). * libfs/src/dosfs/msdos.h: Fixed msdos_node_type() prototype. * libfs/src/defaults/default_evalformake.c, libfs/src/defaults/default_handlers.c, libfs/src/defaults/default_node_type.c, libfs/src/defaults/default_ops.c: New files. * libfs/Makefile.am: Reflect changes above.
2010-07-032010-07-03 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill
* libcsupport/include/rtems/libio.h, libfs/src/defaults/default_read.c, libfs/src/defaults/default_readlink.c, libfs/src/rfs/rtems-rfs-rtems.c: Correct types and prototypes to eliminate warnings.
2010-06-302010-06-30 Jennifer.Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett
* libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added filesystem default mknod method. * libfs/src/defaults/default_mknod.c: New file.
2010-06-292010-06-29 Jennifer.Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett
* libcsupport/include/rtems/libio.h, libfs/Makefile.am, libfs/src/defaults/default_chown.c, libfs/src/defaults/default_evalpath.c, libfs/src/defaults/default_freenode.c, libfs/src/defaults/default_fsmount.c, libfs/src/defaults/default_link.c, libfs/src/defaults/default_mount.c, libfs/src/defaults/default_rename.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/devfs/devfs_init.c, libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs_init.c, libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems.c, wrapup/Makefile.am: Fixed typo in default names. Added default methods into filesystem tables. * libfs/src/defaults/default_close.c, libfs/src/defaults/default_evaluate_link.c, libfs/src/defaults/default_fpathconf.c, libfs/src/defaults/default_fsunmount.c, libfs/src/defaults/default_open.c, libfs/src/defaults/default_unmount.c: New files.
2010-06-292010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill
* 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: Add include of rtems/seterr.h
2010-06-252010-06-25 Jennifer Averett <Jennifer.Averett@OARcorp.comJennifer Averett
* 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.