unistd: introduce nice()

This commit implements nice() as specified in POSIX.1-2008.

Fixes #4932.

Change-Id: Ibd8d4636d9e3a8adf0f26a081d5b1180f0cbb839
Reviewed-on: https://review.haiku-os.org/c/863
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Leorize
2019-01-19 18:31:58 +00:00
committed by waddlesplash
parent 8ae2e95643
commit b9c25b0d0e
3 changed files with 37 additions and 0 deletions
+2
View File
@@ -246,6 +246,8 @@ extern pid_t setpgrp(void);
extern int chroot(const char *path);
extern int nice(int incr);
/* access permissions */
extern gid_t getegid(void);
extern uid_t geteuid(void);