| 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 */
|
|---|
| 15 | char *staticlinkmodules[] = {
|
|---|
| 16 | "DynaLoader",
|
|---|
| 17 | NULL,
|
|---|
| 18 | };
|
|---|
| 19 |
|
|---|
| 20 | EXTERN_C void boot_DynaLoader (pTHX_ CV* cv);
|
|---|
| 21 |
|
|---|
| 22 | static void
|
|---|
| 23 | xs_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 |
|
|---|
| 32 | extern "C" void win32_checkTLS(PerlInterpreter *host_perl);
|
|---|
| 33 | void
|
|---|
| 34 | win32_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
|
|---|
| 47 | int GetLogicalDrives() {
|
|---|
| 48 | return 0; /* no logical drives on CE */
|
|---|
| 49 | }
|
|---|
| 50 | int GetLogicalDriveStrings(int size, char addr[]) {
|
|---|
| 51 | return 0; /* no logical drives on CE */
|
|---|
| 52 | }
|
|---|
| 53 | /* TBD */
|
|---|
| 54 | DWORD GetFullPathNameA(LPCSTR fn, DWORD blen, LPTSTR buf, LPSTR *pfile) {
|
|---|
| 55 | return 0;
|
|---|
| 56 | }
|
|---|
| 57 | /* TBD */
|
|---|
| 58 | DWORD GetFullPathNameW(CONST WCHAR *fn, DWORD blen, WCHAR * buf, WCHAR **pfile) {
|
|---|
| 59 | return 0;
|
|---|
| 60 | }
|
|---|
| 61 | /* TBD */
|
|---|
| 62 | DWORD SetCurrentDirectoryA(LPSTR pPath) {
|
|---|
| 63 | return 0;
|
|---|
| 64 | }
|
|---|
| 65 | /* TBD */
|
|---|
| 66 | DWORD SetCurrentDirectoryW(CONST WCHAR *pPath) {
|
|---|
| 67 | return 0;
|
|---|
| 68 | }
|
|---|
| 69 | int xcesetuid(uid_t id){return 0;}
|
|---|
| 70 | int xceseteuid(uid_t id){ return 0;}
|
|---|
| 71 | int xcegetuid() {return 0;}
|
|---|
| 72 | int xcegeteuid(){ return 0;}
|
|---|
| 73 | #endif
|
|---|
| 74 |
|
|---|
| 75 | #include "perlhost.h"
|
|---|
| 76 |
|
|---|
| 77 | EXTERN_C void
|
|---|
|
|---|