diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-20 15:22:17 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-21 20:38:01 -0500 |
commit | f4b0c2e93a2f45b548465dba84b257bcb3b41446 (patch) | |
tree | b74a6959532ca4ad21c75bd85c348293cfe46e50 /src/posix_extras.h | |
parent | 60cbb719e7e9b14d4966efcead89bca4fc022c8e (diff) |
Implement unlink
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r-- | src/posix_extras.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/posix_extras.h b/src/posix_extras.h index b6dbdfd..f4e7c69 100644 --- a/src/posix_extras.h +++ b/src/posix_extras.h @@ -71,6 +71,10 @@ class File { File OpenAt(const char* path, int flags) const; File OpenAt(const char* path, int flags, mode_t mode) const; + // Removes the file at the path relative to the file descriptor. The path + // must indeed be relative (i.e., it must not start with '/'). + void UnlinkAt(const char* path) const; + private: File() {} |