Eunlink(): added
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 18 Oct 2003 02:26:10 +0000 (02:26 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 18 Oct 2003 02:26:10 +0000 (02:26 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@221 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/wrappers.h

index 2278855..62f9481 100644 (file)
@@ -181,6 +181,12 @@ Esymlink(const char *oldpath, const char *newpath)
   FatalErrnoError(symlink(oldpath, newpath)==-1, "symlink()");
 }
 
+inline static WRAPPER_DECL void
+Eunlink(char const *pathname)
+{
+  FatalErrnoError(unlink(pathname)==-1, "unlink()");
+}
+
 #undef WRAPPER_DECL
 
 #endif //  H_UTIL_VSERVER_SRC_WRAPPERS_H