home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
useful
/
comm
/
tcp
/
amitcp
/
src
/
netlib
/
getpid.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-04
|
588b
|
26 lines
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;
}