mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-24 12:42:36 +00:00
Implement unlink
This commit is contained in:
@@ -601,8 +601,13 @@ int _link(const char *old, const char *new) {
|
||||
|
||||
#ifdef F__unlink
|
||||
int _unlink(const char *path) {
|
||||
errno = ENOSYS;
|
||||
return -1; /* not supported */
|
||||
char dest[MAXNAMLEN + 1];
|
||||
if(__path_absolute(path, dest, MAXNAMLEN) < 0) {
|
||||
errno = ENAMETOOLONG;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return __set_errno(sceIoRemove(dest));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user