source: trunk/essentials/dev-lang/perl/wince/perllib.c

Last change on this file was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 8.4 KB
Line 
1/* Time-stamp: <01/08/01 20:58:55 keuchel@w2k> */
2
3#include "EXTERN.h"
4#include "perl.h"
5
6#include "XSUB.h"
7
8#ifdef PERL_IMPLICIT_SYS
9#include "win32iop.h"
10#include <fcntl.h>
11#endif /* PERL_IMPLICIT_SYS */
12
13
14/* Register any extra external extensions */
15char *staticlinkmodules[] = {
16 "DynaLoader",
17 NULL,
18};
19
20EXTERN_C void boot_DynaLoader (pTHX_ CV* cv);
21
22static void
23xs_init(pTHX)
24{
25 char *file = __FILE__;
26 dXSUB_SYS;
27 newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
28}
29
30#ifdef PERL_IMPLICIT_SYS
31
32extern "C" void win32_checkTLS(PerlInterpreter *host_perl);
33void
34win32_checkTLS(PerlInterpreter *host_perl)
35{
36 dTHX;
37 if (host_perl != my_perl) {
38 printf(" ... bad in win32_checkTLS\n");
39 printf(" %08X ne %08X\n",host_perl,my_perl);
40 int *nowhere = NULL;
41 *nowhere = 0;
42 abort();
43 }
44}
45
46#ifdef UNDER_CE
47int GetLogicalDrives() {
48 return 0; /* no logical drives on CE */
49}
50int GetLogicalDriveStrings(int size, char addr[]) {
51 return 0; /* no logical drives on CE */
52}
53/* TBD */
54DWORD GetFullPathNameA(LPCSTR fn, DWORD blen, LPTSTR buf, LPSTR *pfile) {
55 return 0;
56}
57/* TBD */
58DWORD GetFullPathNameW(CONST WCHAR *fn, DWORD blen, WCHAR * buf, WCHAR **pfile) {
59 return 0;
60}
61/* TBD */
62DWORD SetCurrentDirectoryA(LPSTR pPath) {
63 return 0;
64}
65/* TBD */
66DWORD SetCurrentDirectoryW(CONST WCHAR *pPath) {
67 return 0;
68}
69int xcesetuid(uid_t id){return 0;}
70int xceseteuid(uid_t id){ return 0;}
71int xcegetuid() {return 0;}
72int xcegeteuid(){ return 0;}
73#endif
74
75#include "perlhost.h"
76
77EXTERN_C void