--- sbbs/src/xpdev/dirwrap.h 2018/04/24 16:41:24 1.1.1.1 +++ sbbs/src/xpdev/dirwrap.h 2018/04/24 16:45:29 1.1.1.2 @@ -2,13 +2,13 @@ /* Directory system-call wrappers */ -/* $Id: dirwrap.h,v 1.1.1.1 2018/04/24 16:41:24 root Exp $ */ +/* $Id: dirwrap.h,v 1.1.1.2 2018/04/24 16:45:29 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public License * @@ -218,7 +218,7 @@ extern "C" { /* General file system wrappers for all platforms and compilers */ DLLEXPORT BOOL DLLCALL fexist(const char *filespec); DLLEXPORT BOOL DLLCALL fexistcase(char *filespec); /* fixes upr/lwr case fname */ -DLLEXPORT long DLLCALL flength(const char *filename); +DLLEXPORT off_t DLLCALL flength(const char *filename); DLLEXPORT time_t DLLCALL fdate(const char *filename); DLLEXPORT int DLLCALL setfdate(const char* filename, time_t t); DLLEXPORT BOOL DLLCALL isdir(const char *filename); @@ -227,20 +227,21 @@ DLLEXPORT BOOL DLLCALL isfullpath(const DLLEXPORT char* DLLCALL getfname(const char* path); DLLEXPORT char* DLLCALL getfext(const char* path); DLLEXPORT int DLLCALL getfattr(const char* filename); +DLLEXPORT long DLLCALL getdirsize(const char* path, BOOL include_subdirs, BOOL subdir_only); DLLEXPORT ulong DLLCALL getdisksize(const char* path, ulong unit); DLLEXPORT ulong DLLCALL getfreediskspace(const char* path, ulong unit); -DLLEXPORT ulong DLLCALL delfiles(char *inpath, char *spec); +DLLEXPORT ulong DLLCALL delfiles(const char *inpath, const char *spec); DLLEXPORT char* DLLCALL backslash(char* path); DLLEXPORT BOOL DLLCALL wildmatch(const char *fname, const char *spec, BOOL path); DLLEXPORT BOOL DLLCALL wildmatchi(const char *fname, const char *spec, BOOL path); -DLLEXPORT int DLLCALL mkdirs(const char* path); +DLLEXPORT int DLLCALL mkpath(const char* path); #if defined(__unix__) DLLEXPORT void DLLCALL _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext); DLLEXPORT char * DLLCALL _fullpath(char *target, const char *path, size_t size); -DLLEXPORT int DLLCALL removecase(char *path); +DLLEXPORT int DLLCALL removecase(const char *path); #else #define removecase(x) remove(x) #endif