Changeset e22af78 in rtems
- Timestamp:
- 11/27/14 15:30:12 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 3b4ca3a
- Parents:
- 8dbbea6b
- git-author:
- Joel Sherrill <joel.sherrill@…> (11/27/14 15:30:12)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (11/27/14 16:06:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libcsupport/src/sync.c
r8dbbea6b re22af78 30 30 31 31 #include <rtems.h> 32 #include <rtems/score/assert.h> 32 33 33 34 /* XXX check standards -- Linux version appears to be void */ … … 38 39 { 39 40 int fn = fileno(f); 41 int rc; 40 42 41 43 /* 42 * We are explicitly NOT checking the return values as it does not 43 * matter if they succeed. We are just making a best faith attempt 44 * at both and trusting that we were passed a good FILE pointer. 44 * We are explicitly NOT checking the return values in non-debug builds 45 * as it does not matter if they succeed. We are just making a best 46 * faith attempt at both and trusting that we were passed a good 47 * FILE pointer. 45 48 */ 46 fsync(fn); 47 fdatasync(fn); 49 rc = fsync(fn); 50 _Assert( rc == 0 ); 51 52 rc = fdatasync(fn); 53 _Assert( rc == 0 ); 48 54 } 49 55
Note: See TracChangeset
for help on using the changeset viewer.