tools/nolibc: add setpgrp()

setpgrp() is defined to be identical to setpgid(0, 0).

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
Thomas Weißschuh 2025-04-11 11:00:44 +02:00 committed by Thomas Weißschuh
parent 7b11531ed1
commit 67fe525e34

View file

@ -952,6 +952,16 @@ int setpgid(pid_t pid, pid_t pgid)
return __sysret(sys_setpgid(pid, pgid));
}
/*
* pid_t setpgrp(void)
*/
static __attribute__((unused))
pid_t setpgrp(void)
{
return setpgid(0, 0);
}
/*
* pid_t setsid(void);