RCS_ID_C="$Id: getpid.c,v 3.2 1994/04/04 01:26:31 jraja Exp $";
/*
 * getpid() -- stub for FindTask(NULL)
 *
 * Author: ppessi <Pekka.Pessi@hut.fi>
 *
 * Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
 *                  Helsinki University of Technology, Finland.
 *                  All rights reserved.
 *
 * Created      : Thu Mar 24 05:19:36 1994 ppessi
 * Last modified: Thu Mar 24 05:33:48 1994 ppessi
 *
 */

#include <sys/types.h>
#include <unistd.h>
#include <exec/execbase.h>
extern struct ExecBase *SysBase;

pid_t
getpid(void)
{
  return (pid_t)SysBase->ThisTask;
}
