@@ -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 );
@@ -32,6 +35,7 @@ extern long int __librt_telldir_r(struct _reent *r,DIR *dirp);
3235extern void __librt_rewinddir_r (struct _reent * r ,DIR * dirp );
3336extern void __librt_seekdir_r (struct _reent * r ,DIR * dirp ,long int loc );
3437extern int __librt_rmdir_r (struct _reent * r ,const char * dirname );
38+ extern int __librt_link_r (struct _reent * r ,const char * old ,const char * new );
3539extern int __librt_unlink_r (struct _reent * r ,const char * path );
3640extern int __librt_access_r (struct _reent * r ,const char * path ,int amode );
3741
@@ -65,6 +69,9 @@ static void __syscalls_init(void)
6569 __syscalls .fstat64_r = __librt_fstat64_r ;
6670 __syscalls .stat_r = __librt_stat_r ;
6771 __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 ;
6875 __syscalls .chmod_r = __librt_chmod_r ;
6976 __syscalls .rename_r = __librt_rename_r ;
7077 __syscalls .isatty_r = __librt_isatty_r ;
@@ -78,6 +85,7 @@ static void __syscalls_init(void)
7885 __syscalls .rewinddir_r = __librt_rewinddir_r ;
7986 __syscalls .seekdir_r = __librt_seekdir_r ;
8087 __syscalls .rmdir_r = __librt_rmdir_r ;
88+ __syscalls .link_r = __librt_link_r ;
8189 __syscalls .unlink_r = __librt_unlink_r ;
8290 __syscalls .access_r = __librt_access_r ;
8391
0 commit comments