diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2021-10-24 02:56:15 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2021-10-24 03:10:03 +0200 |
| commit | 9c6112eb5bec5e66bff092e8131839f38a2be39b (patch) | |
| tree | 00c1bee8df24aa20626a64b36c9ca8d81d668a32 /libpsx/src | |
| parent | 9157d1d6e6b6d16a24f88cdcc8182db96ae8aede (diff) | |
fopen_internal: return ENOENT on file not found
This is actually expected by open(2), but I do not expect the BIOS
implementation to conform.
Diffstat (limited to 'libpsx/src')
| -rw-r--r-- | libpsx/src/libc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpsx/src/libc.c b/libpsx/src/libc.c index 6e5c75d..7480825 100644 --- a/libpsx/src/libc.c +++ b/libpsx/src/libc.c @@ -177,6 +177,7 @@ static FILE *fopen_internal(const char *path, const char *mode, FILE *f) if(fd == -1) { + errno = ENOENT; if(s!=NULL)free(s); return NULL; } |
