Enice(): added
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 19 Oct 2004 21:03:53 +0000 (21:03 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 19 Oct 2004 21:03:53 +0000 (21:03 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1733 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/ensc_wrappers/wrappers-unistd.hc

index 9a3d95f..9cd29a8 100644 (file)
@@ -200,3 +200,9 @@ Elseek(int fildes, off_t offset, int whence)
   FatalErrnoError(res==(off_t)-1, "lseek()");
   return res;
 }
+
+inline static WRAPPER_DECL void
+Enice(int n)
+{
+  FatalErrnoError(nice(n)==-1, "nice()");
+}