summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/nice.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 19:45:02 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 19:45:02 +0000
commit6f7dc709ed7e403af224b0fbb91e9619629eb2ec (patch)
tree349296ed6e3d73f390409bf96fa4269d1ac20ec7 /libc/sysdeps/linux/common/nice.c
parent2d997660372123ab6ac1ee519b22fe015eaa787b (diff)
make DODEBUG=y happy, update sysdeps/common/* copyright
Diffstat (limited to 'libc/sysdeps/linux/common/nice.c')
-rw-r--r--libc/sysdeps/linux/common/nice.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/common/nice.c b/libc/sysdeps/linux/common/nice.c
index 75e065e65..e6e80e7be 100644
--- a/libc/sysdeps/linux/common/nice.c
+++ b/libc/sysdeps/linux/common/nice.c
@@ -2,10 +2,10 @@
/*
* nice() for uClibc
*
- * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
* Copyright (C) 2005 by Manuel Novoa III <mjn3@codepoet.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include "syscalls.h"
@@ -16,12 +16,12 @@ libc_hidden_proto(getpriority)
#ifdef __NR_nice
-#define __NR___syscall_nice __NR_nice
+# define __NR___syscall_nice __NR_nice
static inline _syscall1(int, __syscall_nice, int, incr);
#else
-#include <limits.h>
+# include <limits.h>
libc_hidden_proto(setpriority)
@@ -41,10 +41,10 @@ static inline int int_add_no_wrap(int a, int b)
static inline int __syscall_nice(int incr)
{
int old_priority;
-#if 1
+# if 1
/* This should never fail. */
old_priority = getpriority(PRIO_PROCESS, 0);
-#else
+# else
/* But if you want to be paranoid... */
int old_errno;
@@ -55,7 +55,7 @@ static inline int __syscall_nice(int incr)
return -1;
}
__set_errno(old_errno);
-#endif
+# endif
if (setpriority(PRIO_PROCESS, 0, int_add_no_wrap(old_priority, incr))) {
__set_errno(EPERM); /* SUSv3 mandates EPERM for nice failure. */