Commit 54abe359 authored by Willy Tarreau's avatar Willy Tarreau Committed by Paul E. McKenney
Browse files

tools/nolibc/sys: add syscall definition for getppid()



This is essentially for completeness as it's not the most often used
in regtests.

Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 0e7b4929
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -464,6 +464,23 @@ pid_t getpid(void)
}


/*
 * pid_t getppid(void);
 */

static __attribute__((unused))
pid_t sys_getppid(void)
{
	return my_syscall0(__NR_getppid);
}

static __attribute__((unused))
pid_t getppid(void)
{
	return sys_getppid();
}


/*
 * pid_t gettid(void);
 */