File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -452,6 +452,7 @@ int __attribute__((weak)) _unlink(const char *path);
452452int __attribute__((weak )) mkdir (const char * path , mode_t mode );
453453int __attribute__((weak )) rmdir (const char * path );
454454int __attribute__((weak )) _stat (const char * path , struct stat * buf );
455+ int __attribute__((weak )) _fstat (int fd , struct stat * buf );
455456int __attribute__((weak )) _close (int fd );
456457int __attribute__((weak )) _read (int fd , void * buf , size_t nbytes );
457458off_t __attribute__((weak )) _lseek (int fd , off_t offset , int whence );
@@ -471,7 +472,7 @@ void __fioOpsInitializeImpl(void)
471472 // cppcheck-suppress knownConditionTrueFalse
472473 if (& rmdir ) __fio_fdman_path_ops .rmdir = fioRmdir ;
473474 // cppcheck-suppress knownConditionTrueFalse
474- if (& _stat ) __fio_fdman_path_ops .stat = __fioGetstatHelper ;
475+ if (( & _stat ) || ( & _fstat ) ) __fio_fdman_path_ops .stat = __fioGetstatHelper ;
475476
476477 memset (& __fio_fdman_ops_file , 0 , sizeof (__fio_fdman_ops_file ));
477478 __fio_fdman_ops_file .getfd = __fioGetFdHelper ;
Original file line number Diff line number Diff line change @@ -458,6 +458,7 @@ int __attribute__((weak)) _rename(const char *old, const char *new);
458458int __attribute__((weak )) mkdir (const char * path , mode_t mode );
459459int __attribute__((weak )) rmdir (const char * path );
460460int __attribute__((weak )) _stat (const char * path , struct stat * buf );
461+ int __attribute__((weak )) _fstat (int fd , struct stat * buf );
461462ssize_t __attribute__((weak )) readlink (const char * path , char * buf , size_t bufsiz );
462463int __attribute__((weak )) symlink (const char * target , const char * linkpath );
463464int __attribute__((weak )) _close (int fd );
@@ -482,7 +483,7 @@ extern void __fileXioOpsInitializeImpl(void)
482483 // cppcheck-suppress knownConditionTrueFalse
483484 if (& rmdir ) __fileXio_fdman_path_ops .rmdir = fileXioRmdir ;
484485 // cppcheck-suppress knownConditionTrueFalse
485- if (& _stat ) __fileXio_fdman_path_ops .stat = __fileXioGetstatHelper ;
486+ if (( & _stat ) || ( & _fstat ) ) __fileXio_fdman_path_ops .stat = __fileXioGetstatHelper ;
486487 // cppcheck-suppress knownConditionTrueFalse
487488 if (& readlink ) __fileXio_fdman_path_ops .readlink = fileXioReadlink ;
488489 // cppcheck-suppress knownConditionTrueFalse
You can’t perform that action at this time.
0 commit comments