git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ready for tagging
[util-vserver.git]
/
ensc_wrappers
/
wrappers-unistd.hc
diff --git
a/ensc_wrappers/wrappers-unistd.hc
b/ensc_wrappers/wrappers-unistd.hc
index
0d12225
..
8762120
100644
(file)
--- a/
ensc_wrappers/wrappers-unistd.hc
+++ b/
ensc_wrappers/wrappers-unistd.hc
@@
-1,4
+1,4
@@
-// $Id: wrappers-unistd.hc 2
307 2006-09-12 17:09:08
Z dhozac $ --*- c -*--
+// $Id: wrappers-unistd.hc 2
467 2007-01-21 18:26:45
Z dhozac $ --*- c -*--
// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
@@
-138,6
+138,12
@@
Eunlink(char const *pathname)
FatalErrnoError(unlink(pathname)==-1, "unlink()");
}
FatalErrnoError(unlink(pathname)==-1, "unlink()");
}
+inline static WRAPPER_DECL void
+Elink(char const *oldpath, char const *newpath)
+{
+ FatalErrnoError(link(oldpath, newpath)==-1, "link()");
+}
+
inline static void
Esetuid(uid_t uid)
{
inline static void
Esetuid(uid_t uid)
{