From: Enrico Scholz Date: Sat, 18 Oct 2003 02:26:10 +0000 (+0000) Subject: Eunlink(): added X-Git-Tag: VERSION_0_10~1192 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c8efa7e28be3b7c8dec5d9ed816f512f3a96fcf;p=util-vserver.git Eunlink(): added git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@221 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/wrappers.h b/util-vserver/src/wrappers.h index 2278855..62f9481 100644 --- a/util-vserver/src/wrappers.h +++ b/util-vserver/src/wrappers.h @@ -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