Implements stat compatibility shims for nxdk.
More...
#include <cstring>
#include <sys/stat.h>
|
| int | _fstat (int fd, struct stat *status) |
| | Windows-style alias for the fstat compatibility shim.
|
| |
| int | _stat (const char *path, struct stat *status) |
| | Windows-style alias for the stat compatibility shim.
|
| |
| int | fstat (int fd, struct stat *status) |
| | Stub fstat for nxdk builds that only need a successful zeroed response.
|
| |
| int | stat (const char *path, struct stat *status) |
| | Stub stat for nxdk builds that do not expose a compatible host file system.
|
| |
Implements stat compatibility shims for nxdk.
◆ _fstat()
| int _fstat |
( |
int | fd, |
|
|
struct stat * | status ) |
Windows-style alias for the fstat compatibility shim.
- Parameters
-
| fd | File descriptor to inspect. |
| status | Optional output populated with a zeroed status record. |
- Returns
- Result from fstat().
◆ _stat()
| int _stat |
( |
const char * | path, |
|
|
struct stat * | status ) |
Windows-style alias for the stat compatibility shim.
- Parameters
-
| path | Requested path. |
| status | Optional output populated with a zeroed status record. |
- Returns
- Result from stat().
◆ fstat()
| int fstat |
( |
int | fd, |
|
|
struct stat * | status ) |
Stub fstat for nxdk builds that only need a successful zeroed response.
- Parameters
-
| fd | File descriptor to inspect. |
| status | Optional output populated with a zeroed status record. |
- Returns
- Zero after clearing the status record when provided.
◆ stat()
| int stat |
( |
const char * | path, |
|
|
struct stat * | status ) |
Stub stat for nxdk builds that do not expose a compatible host file system.
- Parameters
-
| path | Requested path. |
| status | Optional output populated with a zeroed status record. |
- Returns
- Always -1 to indicate that the query is unsupported.