forked from Imagelibrary/rtems
Added a imfs fdatasync routine that gets called for fdatasync and datasync.
This commit is contained in:
@@ -437,6 +437,10 @@ int IMFS_readlink(
|
||||
size_t bufsize
|
||||
);
|
||||
|
||||
int IMFS_fdatasync(
|
||||
rtems_libio_t *iop
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -437,6 +437,10 @@ int IMFS_readlink(
|
||||
size_t bufsize
|
||||
);
|
||||
|
||||
int IMFS_fdatasync(
|
||||
rtems_libio_t *iop
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -31,8 +31,8 @@ rtems_filesystem_file_handlers_r memfile_handlers = {
|
||||
IMFS_fchmod,
|
||||
memfile_ftruncate,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
IMFS_fdatasync,
|
||||
IMFS_fdatasync
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -49,9 +49,8 @@ rtems_filesystem_file_handlers_r dir_handlers = {
|
||||
imfs_dir_fstat,
|
||||
IMFS_fchmod,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
IMFS_fdatasync,
|
||||
IMFS_fdatasync
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -437,6 +437,10 @@ int IMFS_readlink(
|
||||
size_t bufsize
|
||||
);
|
||||
|
||||
int IMFS_fdatasync(
|
||||
rtems_libio_t *iop
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user