newlib/libgloss/libnosys/getpid.c
2000-03-17 22:48:54 +00:00

22 lines
268 B
C

/*
* Stub version of getpid.
*/
#include "config.h"
#include <_ansi.h>
#include <_syslist.h>
#include <errno.h>
#undef errno
extern int errno;
#include "warning.h"
int
_DEFUN (_getpid, (),
_NOARGS)
{
errno = ENOSYS;
return -1;
}
stub_warning(_getpid)