4 #define AMIGA_H_VERSION "$Id: amiga.h,v 1.1 2001/05/13 21:57:06 administrator Exp $"
5 /*********************************************************************
7 * File : $Source: /home/administrator/cvs/ijb/amiga.h,v $
9 * Purpose : Amiga-specific declarations.
11 * Copyright : Written by and Copyright (C) 2001 the SourceForge
12 * IJBSWA team. http://ijbswa.sourceforge.net
14 * This program is free software; you can redistribute it
15 * and/or modify it under the terms of the GNU General
16 * Public License as published by the Free Software
17 * Foundation; either version 2 of the License, or (at
18 * your option) any later version.
20 * This program is distributed in the hope that it will
21 * be useful, but WITHOUT ANY WARRANTY; without even the
22 * implied warranty of MERCHANTABILITY or FITNESS FOR A
23 * PARTICULAR PURPOSE. See the GNU General Public
24 * License for more details.
26 * The GNU General Public License should be included with
27 * this file. If not, you can view it at
28 * http://www.gnu.org/copyleft/gpl.html
29 * or write to the Free Software Foundation, Inc., 59
30 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35 *********************************************************************/
39 #include <sys/socket.h>
43 #include <proto/socket.h>
46 #include <proto/exec.h>
47 #include <exec/tasks.h>
48 #include <proto/dos.h>
49 #include <dos/dostags.h>
57 #define SocketBase ((struct Library *)(((struct UserData *)(FindTask(NULL)->tc_UserData))->sb))
58 #define errno (((struct UserData *)(FindTask(NULL)->tc_UserData))->eno)
59 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,NULL)
60 #define inet_ntoa(x) Inet_NtoA(x.s_addr)
63 extern struct Task *main_task;
66 void amiga_exit(void);
67 void __memCleanUp(void);
68 __saveds ULONG server_thread(void);
74 if(main_task == FindTask(NULL))\
76 while(childs) Delay(10*TICKS_PER_SECOND); exit(x);\
78 CloseLibrary(SocketBase);\
87 #endif /* ndef _AMIGA_H */
88 #endif /* def AMIGA */