Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
c567505d
Commit
c567505d
authored
17 years ago
by
patacongo
Browse files
Options
Downloads
Patches
Plain Diff
Added fsync()
git-svn-id:
svn://svn.code.sf.net/p/nuttx/code/trunk@241
42af7a65-404d-4744-a932-0658087f49c3
parent
f9de27c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/nuttx/fs.h
+11
-4
11 additions, 4 deletions
include/nuttx/fs.h
include/unistd.h
+4
-3
4 additions, 3 deletions
include/unistd.h
with
15 additions
and
7 deletions
include/nuttx/fs.h
+
11
−
4
View file @
c567505d
...
...
@@ -136,16 +136,23 @@ struct mountpt_operations
off_t
(
*
seek
)(
FAR
struct
file
*
filp
,
off_t
offset
,
int
whence
);
int
(
*
ioctl
)(
FAR
struct
file
*
filp
,
int
cmd
,
unsigned
long
arg
);
/* The two structures need not be common after this point. The following
* are extended methods needed to deal with the unique needs of mounted
* file systems.
*/
int
(
*
sync
)(
FAR
struct
file
*
filp
);
/* The two structures need not be common after this point. For the
* case of struct mountpt_operations, additional operations are included
* that used only for mounting and unmounting the volume.
*/
int
(
*
bind
)(
FAR
struct
inode
*
blkdriver
,
const
void
*
data
,
void
**
handle
);
int
(
*
unbind
)(
void
*
handle
);
int
(
*
bind
)(
FAR
struct
inode
*
blkdriver
,
const
void
*
data
,
void
**
handle
);
int
(
*
unbind
)(
void
*
handle
);
/* NOTE: More operations will be needed here to support: disk usage stats
, stat(),
* s
ync
(), unlink(), mkdir(), chmod(), rename(), etc.
/* NOTE: More operations will be needed here to support: disk usage stats
* s
tat
(), unlink(), mkdir(), chmod(), rename(), etc.
*/
};
...
...
This diff is collapsed.
Click to expand it.
include/unistd.h
+
4
−
3
View file @
c567505d
...
...
@@ -94,7 +94,7 @@
#undef _POSIX_ASYNC_IO
#undef _POSIX_PRIO_IO
#define fsync(f)
#define
fdatasync(f)
fsync(f)
/************************************************************
* Global Function Prototypes
...
...
@@ -118,8 +118,9 @@ EXTERN void usleep(unsigned long usec);
/* File descriptor operations */
EXTERN
int
close
(
int
fd
);
EXTERN
int
dup
(
int
fildes
);
EXTERN
int
dup2
(
int
fildes1
,
int
fildes2
);
EXTERN
int
dup
(
int
fd
);
EXTERN
int
dup2
(
int
fd1
,
int
fd2
);
EXTERN
int
fsync
(
int
fd
);
EXTERN
off_t
lseek
(
int
fd
,
off_t
offset
,
int
whence
);
EXTERN
int
read
(
int
fd
,
void
*
buf
,
unsigned
int
nbytes
);
EXTERN
int
unlink
(
const
char
*
path
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment