Commit | Line | Data |
2986a63f |
1 | |
2 | /* |
3 | * Copyright © 2001 Novell, Inc. All Rights Reserved. |
4 | * |
5 | * You may distribute under the terms of either the GNU General Public |
6 | * License or the Artistic License, as specified in the README file. |
7 | * |
8 | */ |
9 | |
10 | /* |
11 | * FILENAME : netware.h |
12 | * DESCRIPTION : Include for NetWare stuff. |
13 | * This is based on the win32.h file of Win32 port. |
14 | * Author : SGP |
15 | * Date : January 2001. |
16 | * |
17 | */ |
18 | |
19 | |
20 | |
21 | #ifndef _INC_NW_PERL5 |
22 | #define _INC_NW_PERL5 |
23 | |
24 | #include <dirent.h> |
25 | #include "stdio.h" |
26 | |
27 | // to get the internal debugger break for functions that are not yet handled |
28 | #include "deb.h" |
29 | |
30 | #ifndef EXT |
31 | #include "EXTERN.h" |
32 | #endif |
33 | |
34 | //structure that will be used by times routine. |
35 | struct tms { |
36 | long tms_utime; |
37 | long tms_stime; |
38 | long tms_cutime; |
39 | long tms_cstime; |
40 | }; |
41 | |
42 | #define PERL_GET_CONTEXT_DEFINED |
43 | #define ENV_IS_CASELESS |
44 | |
45 | #undef init_os_extras |
46 | #define init_os_extras Perl_init_os_extras |
47 | |
48 | #define HAVE_INTERP_INTERN |
49 | struct interp_intern { |
50 | void * internal_host; |
51 | }; |
52 | |
53 | /* |
54 | * handle socket stuff, assuming socket is always available |
55 | */ |
56 | #include <sys/socket.h> |
57 | #include <sys/types.h> |
58 | #include <netdb.h> |
59 | |
60 | //This is clashing with a definition in perly.h, hence |
61 | //undefine, may have to redefine if need be - CHKSGP |
62 | #undef WORD |
63 | |
64 | #ifndef SOCKET |
65 | typedef u_int SOCKET; |
66 | #endif |
67 | |
68 | #define nw_internal_host (PL_sys_intern.internal_host) |
69 | |
70 | EXTERN_C void Perl_nw5_init(int *argcp, char ***argvp); |
71 | |
72 | /* |
73 | * This provides a layer of functions and macros to ensure extensions will |
74 | * get to use the same RTL functions as the core. |
75 | */ |
76 | #include "nw5iop.h" |
77 | |
78 | // Below is called in Run.c file when a perl script executes/runs. |
79 | #ifdef MPK_ON |
80 | #define PERL_ASYNC_CHECK() kYieldThread(); |
81 | #else |
82 | #define PERL_ASYNC_CHECK() ThreadSwitch(); |
83 | #endif |
84 | |
85 | |
86 | #endif /* _INC_NW_PERL5 */ |
87 | |