| 1 | /* $Id: unknown.cpp,v 1.6 2000-03-22 20:07:25 sandervl Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 5 | * Win32 NT Runtime / NTDLL for OS/2
|
|---|
| 6 | * Copyright 1998, 1999 Patrick Haller (phaller@gmx.net)
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | /*****************************************************************************
|
|---|
| 11 | * Includes *
|
|---|
| 12 | *****************************************************************************/
|
|---|
| 13 |
|
|---|
| 14 | #include <os2wrap.h>
|
|---|
| 15 | #include <misc.h>
|
|---|
| 16 | #include <odinwrap.h>
|
|---|
| 17 |
|
|---|
| 18 | #define DBG_LOCALLOG DBG_unknown
|
|---|
| 19 | #include "dbglocal.h"
|
|---|
| 20 |
|
|---|
| 21 | ODINDEBUGCHANNEL(WSOCK32-UNKNOWN)
|
|---|
| 22 |
|
|---|
| 23 | /*****************************************************************************
|
|---|
| 24 | * Prototypes & Types & Defines *
|
|---|
| 25 | *****************************************************************************/
|
|---|
| 26 |
|
|---|
| 27 | typedef int SOCKET;
|
|---|
| 28 |
|
|---|
| 29 | int _System rexec(char **, int, char *, char *, char *, int *);
|
|---|
| 30 | int _System rcmd (char **, int, const char *, const char *, const char *, int *);
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | /*****************************************************************************
|
|---|
| 34 | *
|
|---|
| 35 | * Purpose, :
|
|---|
| 36 | * Parameters:
|
|---|
| 37 | * Variables :
|
|---|
| 38 | * Result :
|
|---|
| 39 | * Remark : WSOCK32.1102
|
|---|
| 40 | * Status : UNTESTED
|
|---|
| 41 | *
|
|---|
| 42 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 43 | *****************************************************************************/
|
|---|
| 44 |
|
|---|
| 45 | ODINFUNCTION6(int, OS2rexec, LPSTR*, lppArg1,
|
|---|
| 46 | int, iArg2,
|
|---|
| 47 | LPSTR, lpArg3,
|
|---|
| 48 | LPSTR, lpArg4,
|
|---|
| 49 | LPSTR, lpArg5,
|
|---|
| 50 | int*, lpiArg6)
|
|---|
| 51 | {
|
|---|
| 52 | dprintf(("WSOCK32: rexec not implemented correctly.\n"));
|
|---|
| 53 |
|
|---|
| 54 | return rexec(lppArg1,
|
|---|
| 55 | iArg2,
|
|---|
| 56 | lpArg3,
|
|---|
| 57 | lpArg4,
|
|---|
| 58 | lpArg5,
|
|---|
| 59 | lpiArg6);
|
|---|
| 60 | }
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 | /*****************************************************************************
|
|---|
| 64 | * ODINFUNCTION6( :, int, WIN32API, OS2rcmd,
|
|---|
| 65 | * Purpose, :,
|
|---|
| 66 | * Parameters:,
|
|---|
| 67 | * Variables, :,
|
|---|
| 68 | * Result :
|
|---|
| 69 | * Remark : WSOCK32.1103
|
|---|
| 70 | * Status : UNTESTED
|
|---|
| 71 | *
|
|---|
| 72 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 73 | *****************************************************************************/
|
|---|
| 74 |
|
|---|
| 75 | ODINFUNCTION6(int, OS2rcmd, LPSTR*, lppArg1,
|
|---|
| 76 | int, iArg2,
|
|---|
| 77 | const char*,lpArg3,
|
|---|
| 78 | const char*,lpArg4,
|
|---|
| 79 | const char*,lpArg5,
|
|---|
| 80 | int *,lpiArg6)
|
|---|
| 81 | {
|
|---|
| 82 | dprintf(("WSOCK32: rcmd not implemented.\n"));
|
|---|
| 83 |
|
|---|
| 84 | //@@@PH actually it exists in TCP/IP 5.0 headers. Unknown which OS/2 function to link to.
|
|---|
| 85 | return 0;
|
|---|
| 86 | /*
|
|---|
| 87 | return rcmd(lppArg1,
|
|---|
| 88 | iArg2,
|
|---|
| 89 | lpArg3,
|
|---|
| 90 | lpArg4,
|
|---|
| 91 | lpArg5,
|
|---|
| 92 | lpiArg6);
|
|---|
| 93 | */
|
|---|
| 94 | }
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 | /*****************************************************************************
|
|---|
| 98 | * Name :
|
|---|
| 99 | * Purpose :
|
|---|
| 100 | * Parameters:
|
|---|
| 101 | * Variables :
|
|---|
| 102 | * Result :
|
|---|
| 103 | * Remark :
|
|---|
| 104 | * Status : UNTESTED STUB
|
|---|
| 105 | *
|
|---|
| 106 | * Author : Patrick Haller [Tue, 1998/06/16 23:00]
|
|---|
| 107 | *****************************************************************************/
|
|---|
| 108 |
|
|---|
| 109 | ODINFUNCTION4(int, OS2WSARecvEx, SOCKET, s,
|
|---|
| 110 | char FAR*, buf,
|
|---|
| 111 | int, len,
|
|---|
| 112 | int FAR *,flags)
|
|---|
| 113 | {
|
|---|
| 114 | dprintf(("WSOCK32: WSARecvEx not implemented.\n"));
|
|---|
| 115 |
|
|---|
| 116 | // return WSARecvEx(s,buf,len,flags);
|
|---|
| 117 | return 0;
|
|---|
| 118 | }
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 | /*****************************************************************************
|
|---|
| 122 | * Name :
|
|---|
| 123 | * Purpose :
|
|---|
| 124 | * Parameters:
|
|---|
| 125 | * Variables :
|
|---|
| 126 | * Result :
|
|---|
| 127 | * Remark :
|
|---|
| 128 | * Status : UNTESTED STUB
|
|---|
| 129 | *
|
|---|
| 130 | * Author : Patrick Haller [Tue, 1998/06/16 23:00]
|
|---|
| 131 | *****************************************************************************/
|
|---|
| 132 |
|
|---|
| 133 | ODINPROCEDURE2(OS2s_perror, char*, pszMessage,
|
|---|
| 134 | void*, pUnknown)
|
|---|
| 135 | {
|
|---|
| 136 | dprintf(("WSOCK32: s_perror not implemented.\n"));
|
|---|
| 137 |
|
|---|
| 138 | //perror(pszMessage);
|
|---|
| 139 | }
|
|---|
| 140 |
|
|---|
| 141 |
|
|---|