diff options
Diffstat (limited to 'sys/libc/cgetpid.c')
-rw-r--r-- | sys/libc/cgetpid.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/libc/cgetpid.c b/sys/libc/cgetpid.c new file mode 100644 index 00000000..69ad6133 --- /dev/null +++ b/sys/libc/cgetpid.c @@ -0,0 +1,15 @@ +/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. +*/ + +#define import_libc +#define import_xnames +#include <iraf.h> + + +/* C_GETPID -- Get the process id. +*/ +int +c_getpid ( void ) +{ + return ((int) GETPID()); +} |