fs/FileSystem: add pure attributes
This commit is contained in:
parent
71acad6c21
commit
f883c09b6b
@ -98,6 +98,7 @@ MakeFifo(Path path, mode_t mode) noexcept
|
|||||||
/**
|
/**
|
||||||
* Wrapper for access() that uses #Path names.
|
* Wrapper for access() that uses #Path names.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::pure]]
|
||||||
static inline bool
|
static inline bool
|
||||||
CheckAccess(Path path, int mode) noexcept
|
CheckAccess(Path path, int mode) noexcept
|
||||||
{
|
{
|
||||||
@ -109,6 +110,7 @@ CheckAccess(Path path, int mode) noexcept
|
|||||||
/**
|
/**
|
||||||
* Checks if #Path exists and is a regular file.
|
* Checks if #Path exists and is a regular file.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::pure]]
|
||||||
static inline bool
|
static inline bool
|
||||||
FileExists(Path path, bool follow_symlinks = true) noexcept
|
FileExists(Path path, bool follow_symlinks = true) noexcept
|
||||||
{
|
{
|
||||||
@ -127,6 +129,7 @@ FileExists(Path path, bool follow_symlinks = true) noexcept
|
|||||||
/**
|
/**
|
||||||
* Checks if #Path exists and is a directory.
|
* Checks if #Path exists and is a directory.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::pure]]
|
||||||
static inline bool
|
static inline bool
|
||||||
DirectoryExists(Path path, bool follow_symlinks = true) noexcept
|
DirectoryExists(Path path, bool follow_symlinks = true) noexcept
|
||||||
{
|
{
|
||||||
@ -144,6 +147,7 @@ DirectoryExists(Path path, bool follow_symlinks = true) noexcept
|
|||||||
/**
|
/**
|
||||||
* Checks if #Path exists.
|
* Checks if #Path exists.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::pure]]
|
||||||
static inline bool
|
static inline bool
|
||||||
PathExists(Path path) noexcept
|
PathExists(Path path) noexcept
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user