@@ -14,6 +14,9 @@ extern int __librt_fstat_r(struct _reent *r,int fd,struct stat *st);
1414extern int __librt_fstat64_r (struct _reent * r ,int fd ,struct stat * st );
1515extern int __librt_stat_r (struct _reent * r ,const char * path ,struct stat * st );
1616extern int __librt_stat64_r (struct _reent * r ,const char * path ,struct stat * st );
17+ extern int __librt_ftruncate_r (struct _reent * r ,int fd ,off_t len );
18+ extern int __librt_truncate_r (struct _reent * r ,const char * path ,off_t len );
19+ extern int __librt_fsync_r (struct _reent * r ,int fd );
1720extern _ssize_t __librt_read_r (struct _reent * r ,int fd ,void * ptr ,size_t len );
1821extern _ssize_t __librt_write_r (struct _reent * r ,int fd ,const void * ptr ,size_t len );
1922extern _off_t __librt_lseek_r (struct _reent * r ,int fd ,_off_t pos ,int dir );
@@ -66,6 +69,9 @@ static void __syscalls_init(void)
6669 __syscalls .fstat64_r = __librt_fstat64_r ;
6770 __syscalls .stat_r = __librt_stat_r ;
6871 __syscalls .stat64_r = __librt_stat64_r ;
72+ __syscalls .ftruncate_r = __librt_ftruncate_r ;
73+ __syscalls .truncate_r = __librt_truncate_r ;
74+ __syscalls .fsync_r = __librt_fsync_r ;
6975 __syscalls .chmod_r = __librt_chmod_r ;
7076 __syscalls .rename_r = __librt_rename_r ;
7177 __syscalls .isatty_r = __librt_isatty_r ;
0 commit comments