aboutsummaryrefslogtreecommitdiff
path: root/src/posix_extras.h
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2016-02-20 15:22:17 -0500
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2016-02-21 20:38:01 -0500
commitf4b0c2e93a2f45b548465dba84b257bcb3b41446 (patch)
treeb74a6959532ca4ad21c75bd85c348293cfe46e50 /src/posix_extras.h
parent60cbb719e7e9b14d4966efcead89bca4fc022c8e (diff)
Implement unlink
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r--src/posix_extras.h4
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() {}