From: Enrico Scholz Date: Tue, 19 Oct 2004 21:03:53 +0000 (+0000) Subject: Enice(): added X-Git-Tag: IPSENTINEL_VERSION_0_12~259 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=885f9ac2db6178a196a0f7df54c47b7459283e4f;p=util-vserver.git Enice(): added git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1733 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/ensc_wrappers/wrappers-unistd.hc b/util-vserver/ensc_wrappers/wrappers-unistd.hc index 9a3d95f..9cd29a8 100644 --- a/util-vserver/ensc_wrappers/wrappers-unistd.hc +++ b/util-vserver/ensc_wrappers/wrappers-unistd.hc @@ -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()"); +}