mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibC: Add a stub for nice()
This commit is contained in:
parent
651560d588
commit
b9a8447dc0
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/danners
Commit: b9a8447dc0
Pull-request: https://github.com/SerenityOS/serenity/pull/14074
2 changed files with 8 additions and 0 deletions
|
@ -995,4 +995,11 @@ int getdtablesize()
|
||||||
int rc = getrlimit(RLIMIT_NOFILE, &dtablesize);
|
int rc = getrlimit(RLIMIT_NOFILE, &dtablesize);
|
||||||
__RETURN_WITH_ERRNO(rc, dtablesize.rlim_cur, rc);
|
__RETURN_WITH_ERRNO(rc, dtablesize.rlim_cur, rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/007904975/functions/nice.html
|
||||||
|
int nice(int incr)
|
||||||
|
{
|
||||||
|
dbgln("FIXME: nice was called with: {}, not implemented", incr);
|
||||||
|
return incr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,7 @@ char* getpass(char const* prompt);
|
||||||
int pause(void);
|
int pause(void);
|
||||||
int chroot(char const*);
|
int chroot(char const*);
|
||||||
int getdtablesize(void);
|
int getdtablesize(void);
|
||||||
|
int nice(int incr);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
_PC_NAME_MAX,
|
_PC_NAME_MAX,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue