forked from Imagelibrary/rtems
Removed fpathconf file system node handler.
There existed no calling function for this handler.
This commit is contained in:
@@ -155,15 +155,6 @@ typedef int (*rtems_filesystem_ftruncate_t)(
|
||||
off_t length
|
||||
);
|
||||
|
||||
/**
|
||||
* This type defines the interface to the fpathconf(2) system call
|
||||
* support which is provided by a file system implementation.
|
||||
*/
|
||||
typedef int (*rtems_filesystem_fpathconf_t)(
|
||||
rtems_libio_t *iop,
|
||||
int name
|
||||
);
|
||||
|
||||
/**
|
||||
* This type defines the interface to the fsync(2) system call
|
||||
* support which is provided by a file system implementation.
|
||||
@@ -297,17 +288,6 @@ struct _rtems_filesystem_file_handlers_r {
|
||||
*/
|
||||
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
|
||||
*
|
||||
* @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
|
||||
@@ -446,15 +426,6 @@ int rtems_filesystem_default_ftruncate(
|
||||
off_t length
|
||||
);
|
||||
|
||||
/**
|
||||
* This method defines the interface to the default fpathconf(2) system call
|
||||
* 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
|
||||
* support which is provided by a file system implementation.
|
||||
|
||||
@@ -22,7 +22,7 @@ libdefaultfs_a_SOURCES = \
|
||||
src/defaults/default_fdatasync.c src/defaults/default_fstat.c \
|
||||
src/defaults/default_ioctl.c src/defaults/default_mount.c \
|
||||
src/defaults/default_rename.c src/defaults/default_symlink.c \
|
||||
src/defaults/default_write.c src/defaults/default_fpathconf.c \
|
||||
src/defaults/default_write.c \
|
||||
src/defaults/default_unmount.c src/defaults/default_evaluate_link.c \
|
||||
src/defaults/default_open.c src/defaults/default_close.c \
|
||||
src/defaults/default_fsunmount.c src/defaults/default_mknod.c \
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/*
|
||||
* 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>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
int rtems_filesystem_default_fpathconf(
|
||||
rtems_libio_t *iop,
|
||||
int name
|
||||
)
|
||||
{
|
||||
rtems_set_errno_and_return_minus_one( ENOTSUP );
|
||||
}
|
||||
@@ -31,7 +31,6 @@ const rtems_filesystem_file_handlers_r rtems_filesystem_handlers_default = {
|
||||
.fstat_h = rtems_filesystem_default_fstat,
|
||||
.fchmod_h = rtems_filesystem_default_fchmod,
|
||||
.ftruncate_h = rtems_filesystem_default_ftruncate,
|
||||
.fpathconf_h = rtems_filesystem_default_fpathconf,
|
||||
.fsync_h = rtems_filesystem_default_fsync,
|
||||
.fdatasync_h = rtems_filesystem_default_fdatasync,
|
||||
.fcntl_h = rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -50,7 +50,6 @@ rtems_filesystem_file_handlers_r devFS_file_handlers =
|
||||
devFS_stat,
|
||||
rtems_filesystem_default_fchmod,
|
||||
rtems_filesystem_default_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
rtems_filesystem_default_fsync,
|
||||
rtems_filesystem_default_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -28,7 +28,6 @@ const rtems_filesystem_file_handlers_r msdos_dir_handlers = {
|
||||
msdos_dir_stat,
|
||||
msdos_dir_chmod,
|
||||
rtems_filesystem_default_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
msdos_dir_sync,
|
||||
msdos_dir_sync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -28,7 +28,6 @@ const rtems_filesystem_file_handlers_r msdos_file_handlers = {
|
||||
msdos_file_stat,
|
||||
msdos_file_chmod,
|
||||
msdos_file_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
msdos_file_sync,
|
||||
msdos_file_datasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -140,7 +140,6 @@ const rtems_filesystem_file_handlers_r IMFS_fifo_handlers = {
|
||||
IMFS_stat,
|
||||
IMFS_fchmod,
|
||||
rtems_filesystem_default_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
rtems_filesystem_default_fsync,
|
||||
rtems_filesystem_default_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -33,7 +33,6 @@ const rtems_filesystem_file_handlers_r IMFS_device_handlers = {
|
||||
IMFS_stat,
|
||||
IMFS_fchmod,
|
||||
device_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
rtems_filesystem_default_fsync,
|
||||
rtems_filesystem_default_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -33,7 +33,6 @@ const rtems_filesystem_file_handlers_r IMFS_directory_handlers = {
|
||||
imfs_dir_fstat,
|
||||
IMFS_fchmod,
|
||||
rtems_filesystem_default_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
rtems_filesystem_default_fsync,
|
||||
IMFS_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -33,7 +33,6 @@ const rtems_filesystem_file_handlers_r IMFS_link_handlers = {
|
||||
IMFS_stat, /* stat */
|
||||
rtems_filesystem_default_fchmod,
|
||||
rtems_filesystem_default_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
rtems_filesystem_default_fsync,
|
||||
rtems_filesystem_default_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -33,7 +33,6 @@ const rtems_filesystem_file_handlers_r IMFS_memfile_handlers = {
|
||||
IMFS_stat,
|
||||
IMFS_fchmod,
|
||||
memfile_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
IMFS_fdatasync, /* fsync */
|
||||
IMFS_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -2998,7 +2998,6 @@ struct _rtems_filesystem_file_handlers_r nfs_file_file_handlers = {
|
||||
nfs_fstat, /* OPTIONAL; may be defaulted */
|
||||
nfs_fchmod, /* OPTIONAL; may be defaulted */
|
||||
nfs_file_ftruncate, /* OPTIONAL; may be defaulted */
|
||||
rtems_filesystem_default_fpathconf,
|
||||
rtems_filesystem_default_fsync,
|
||||
rtems_filesystem_default_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
@@ -3017,7 +3016,6 @@ struct _rtems_filesystem_file_handlers_r nfs_dir_file_handlers = {
|
||||
nfs_fstat, /* OPTIONAL; may be defaulted */
|
||||
nfs_fchmod, /* OPTIONAL; may be defaulted */
|
||||
rtems_filesystem_default_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
rtems_filesystem_default_fsync,
|
||||
rtems_filesystem_default_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
@@ -3036,7 +3034,6 @@ struct _rtems_filesystem_file_handlers_r nfs_link_file_handlers = {
|
||||
nfs_fstat, /* OPTIONAL; may be defaulted */
|
||||
nfs_fchmod, /* OPTIONAL; may be defaulted */
|
||||
rtems_filesystem_default_ftruncate,
|
||||
rtems_filesystem_default_fpathconf,
|
||||
rtems_filesystem_default_fsync,
|
||||
rtems_filesystem_default_fdatasync,
|
||||
rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -259,7 +259,6 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_device_handlers = {
|
||||
.fstat_h = rtems_rfs_rtems_fstat,
|
||||
.fchmod_h = rtems_rfs_rtems_fchmod,
|
||||
.ftruncate_h = rtems_rfs_rtems_device_ftruncate,
|
||||
.fpathconf_h = rtems_filesystem_default_fpathconf,
|
||||
.fsync_h = rtems_filesystem_default_fsync,
|
||||
.fdatasync_h = rtems_filesystem_default_fdatasync,
|
||||
.fcntl_h = rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -237,7 +237,6 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_dir_handlers = {
|
||||
.fstat_h = rtems_rfs_rtems_fstat,
|
||||
.fchmod_h = rtems_rfs_rtems_fchmod,
|
||||
.ftruncate_h = rtems_filesystem_default_ftruncate,
|
||||
.fpathconf_h = rtems_filesystem_default_fpathconf,
|
||||
.fsync_h = rtems_filesystem_default_fsync,
|
||||
.fdatasync_h = rtems_rfs_rtems_fdatasync,
|
||||
.fcntl_h = rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -354,7 +354,6 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_file_handlers = {
|
||||
.fstat_h = rtems_rfs_rtems_fstat,
|
||||
.fchmod_h = rtems_rfs_rtems_fchmod,
|
||||
.ftruncate_h = rtems_rfs_rtems_file_ftruncate,
|
||||
.fpathconf_h = rtems_filesystem_default_fpathconf,
|
||||
.fsync_h = rtems_rfs_rtems_fdatasync,
|
||||
.fdatasync_h = rtems_rfs_rtems_fdatasync,
|
||||
.fcntl_h = rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -1179,7 +1179,6 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_link_handlers =
|
||||
.fstat_h = rtems_rfs_rtems_fstat,
|
||||
.fchmod_h = rtems_filesystem_default_fchmod,
|
||||
.ftruncate_h = rtems_filesystem_default_ftruncate,
|
||||
.fpathconf_h = rtems_filesystem_default_fpathconf,
|
||||
.fsync_h = rtems_filesystem_default_fsync,
|
||||
.fdatasync_h = rtems_filesystem_default_fdatasync,
|
||||
.fcntl_h = rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -1317,7 +1317,6 @@ static const rtems_filesystem_file_handlers_r rtems_ftpfs_handlers = {
|
||||
.fstat_h = rtems_ftpfs_fstat,
|
||||
.fchmod_h = rtems_filesystem_default_fchmod,
|
||||
.ftruncate_h = rtems_ftpfs_ftruncate,
|
||||
.fpathconf_h = rtems_filesystem_default_fpathconf,
|
||||
.fsync_h = rtems_filesystem_default_fsync,
|
||||
.fdatasync_h = rtems_filesystem_default_fdatasync,
|
||||
.fcntl_h = rtems_filesystem_default_fcntl,
|
||||
@@ -1334,7 +1333,6 @@ static const rtems_filesystem_file_handlers_r rtems_ftpfs_root_handlers = {
|
||||
.fstat_h = rtems_filesystem_default_fstat,
|
||||
.fchmod_h = rtems_filesystem_default_fchmod,
|
||||
.ftruncate_h = rtems_filesystem_default_ftruncate,
|
||||
.fpathconf_h = rtems_filesystem_default_fpathconf,
|
||||
.fsync_h = rtems_filesystem_default_fsync,
|
||||
.fdatasync_h = rtems_filesystem_default_fdatasync,
|
||||
.fcntl_h = rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -1111,7 +1111,6 @@ static const rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
|
||||
.fstat_h = rtems_filesystem_default_fstat,
|
||||
.fchmod_h = rtems_filesystem_default_fchmod,
|
||||
.ftruncate_h = rtems_tftp_ftruncate,
|
||||
.fpathconf_h = rtems_filesystem_default_fpathconf,
|
||||
.fsync_h = rtems_filesystem_default_fsync,
|
||||
.fdatasync_h = rtems_filesystem_default_fdatasync,
|
||||
.fcntl_h = rtems_filesystem_default_fcntl,
|
||||
|
||||
@@ -774,7 +774,6 @@ static const rtems_filesystem_file_handlers_r socket_handlers = {
|
||||
rtems_bsdnet_fstat, /* fstat */
|
||||
rtems_filesystem_default_fchmod, /* fchmod */
|
||||
rtems_filesystem_default_ftruncate, /* ftruncate */
|
||||
rtems_filesystem_default_fpathconf, /* fpathconf */
|
||||
rtems_filesystem_default_fsync, /* fsync */
|
||||
rtems_filesystem_default_fdatasync, /* fdatasync */
|
||||
rtems_bsdnet_fcntl, /* fcntl */
|
||||
|
||||
Reference in New Issue
Block a user