head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.11.14.21.17.47; author drixter; state Exp; branches; next ; commitid bKeWa6TYbymhpt3H; desc @@ 1.1 log @vfu: Update to version 5.09 5.09: 22.Jun.2023 ! 1. fixed problem with some tools (key "T", tools menu) when current directory has no entries. ! 2. fixed shell escaping for pipe char (and % jtbs) @ text @$NetBSD$ Add sys/statvfs.h and change struct from statfs to statvfs --- vfu/vfucopy.cpp.orig +++ vfu/vfucopy.cpp @@@@ -12,6 +12,7 @@@@ #include "vfusys.h" #include "vfucopy.h" #include +#include /**************************************************************************** ** @@@@ -38,16 +39,16 @@@@ fsize_t device_free_space( const char *target ) { - struct statfs stafs; - int res = statfs( str_file_path( target ), &stafs ); + struct statvfs stafs; + int res = statvfs( str_file_path( target ), &stafs ); if( res == 0 ) return ((fsize_t)(stafs.f_bsize)) * stafs.f_bfree; return 0; } fsize_t device_avail_space( const char *target ) { - struct statfs stafs; - int res = statfs( str_file_path( target ), &stafs ); + struct statvfs stafs; + int res = statvfs( str_file_path( target ), &stafs ); if( res == 0 ) return ((fsize_t)(stafs.f_bsize)) * stafs.f_bavail; return 0; } @