unlink (Debugging with GDB)
From Get docs
Gdb/docs/latest/gdb/unlink
Next: stat/fstat, Previous: rename, Up: List of Supported Calls [Contents][Index]
unlink
- Synopsis:
int unlink(const char *pathname);
- Request:
‘
Funlink,pathnameptr/len’- Return value:
On success, zero is returned. On error, -1 is returned.
- Errors:
EACCESNo access to the file or the path of the file.
EPERMThe system does not allow unlinking of directories.
EBUSYThe file
pathnamecannot be unlinked because it’s being used by another process.EFAULTpathnameptris an invalid pointer value.ENAMETOOLONGpathnamewas too long.ENOENTA directory component in
pathnamedoes not exist.ENOTDIRA component of the path is not a directory.
EROFSThe file is on a read-only filesystem.
EINTRThe call was interrupted by the user.