Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/lib/sysdep/filesystem.h
/* Copyright (C) 2010 Wildfire Games. | /* Copyright (C) 2021 Wildfire Games. | ||||
* | * | ||||
* Permission is hereby granted, free of charge, to any person obtaining | * Permission is hereby granted, free of charge, to any person obtaining | ||||
* a copy of this software and associated documentation files (the | * a copy of this software and associated documentation files (the | ||||
* "Software"), to deal in the Software without restriction, including | * "Software"), to deal in the Software without restriction, including | ||||
* without limitation the rights to use, copy, modify, merge, publish, | * without limitation the rights to use, copy, modify, merge, publish, | ||||
* distribute, sublicense, and/or sell copies of the Software, and to | * distribute, sublicense, and/or sell copies of the Software, and to | ||||
* permit persons to whom the Software is furnished to do so, subject to | * permit persons to whom the Software is furnished to do so, subject to | ||||
* the following conditions: | * the following conditions: | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
LIB_API int wtruncate(const OsPath& pathname, off_t length); | LIB_API int wtruncate(const OsPath& pathname, off_t length); | ||||
LIB_API int wunlink(const OsPath& pathname); | LIB_API int wunlink(const OsPath& pathname); | ||||
LIB_API int wrmdir(const OsPath& path); | LIB_API int wrmdir(const OsPath& path); | ||||
// | // | ||||
// stdio.h | |||||
// | |||||
LIB_API int wrename(const OsPath& pathnameOld, const OsPath& pathnameNew); | |||||
// | |||||
// stdlib.h | // stdlib.h | ||||
// | // | ||||
LIB_API OsPath wrealpath(const OsPath& pathname); | LIB_API OsPath wrealpath(const OsPath& pathname); | ||||
// | // | ||||
// sys/stat.h | // sys/stat.h | ||||
// | // | ||||
LIB_API int wstat(const OsPath& pathname, struct stat* buf); | LIB_API int wstat(const OsPath& pathname, struct stat* buf); | ||||
LIB_API int wmkdir(const OsPath& path, mode_t mode); | LIB_API int wmkdir(const OsPath& path, mode_t mode); | ||||
#endif // #ifndef INCLUDED_SYSDEP_FILESYSTEM | #endif // #ifndef INCLUDED_SYSDEP_FILESYSTEM |
Wildfire Games · Phabricator