Enice(): added
[util-vserver.git] / 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()");
+}