Changeset 626 for trunk/libs/mini-libc/unistd.c
- Timestamp:
- Apr 29, 2019, 7:25:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/unistd.c
r625 r626 66 66 } 67 67 68 ////////////////// 69 int fsync( int fd ) 70 { 71 return hal_user_syscall( SYS_FSYNC, 72 (reg_t)fd, 0, 0, 0 ); 73 } 74 68 75 ///////////////////////////// 69 76 int getcwd( char * buf, … … 75 82 } 76 83 77 //////////// 84 ////////////////// 78 85 int getpid( void ) 79 86 { … … 132 139 } 133 140 141 ///////////////// 142 void sync( void ) 143 { 144 hal_user_syscall( SYS_SYNC, 0, 0, 0, 0 ); 145 } 146 134 147 /////////////////////////////////// 135 148 int unlink( const char * pathname )
Note: See TracChangeset
for help on using the changeset viewer.