uniLoader/lib/sys/netware/getpid.c
Ivaylo Ivanov a1be36ae02 EXPERIMENTAL: Partially implement NewLib
Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
2023-07-19 19:37:17 +03:00

12 lines
248 B
C

/* NetWare version of getpid. This is supposed to return a unique
identifier which is used to create temporary file names. We use
the thread ID. I hope this is unique. */
#include <unistd.h>
pid_t
getpid ()
{
return GetThreadID ();
}