From f4b0c2e93a2f45b548465dba84b257bcb3b41446 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sat, 20 Feb 2016 15:22:17 -0500 Subject: Implement unlink --- src/posix_extras.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/posix_extras.h') 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() {} -- cgit v1.2.3