| 1 | /* $Id: unknown.cpp,v 1.3 2000-03-22 20:01:06 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 | #include "wsock32.h" | 
|---|
| 18 |  | 
|---|
| 19 | #define DBG_LOCALLOG    DBG_unknown | 
|---|
| 20 | #include "dbglocal.h" | 
|---|
| 21 |  | 
|---|
| 22 | ODINDEBUGCHANNEL(WSOCK32-UNKNOWN) | 
|---|
| 23 |  | 
|---|
| 24 | /***************************************************************************** | 
|---|
| 25 | * | 
|---|
| 26 | * Purpose,  : | 
|---|
| 27 | * Parameters: | 
|---|
| 28 | * Variables : | 
|---|
| 29 | * Result    : | 
|---|
| 30 | * Remark    : WSOCK32.1102 | 
|---|
| 31 | * Status    : UNTESTED | 
|---|
| 32 | * | 
|---|
| 33 | * Author    : Patrick Haller [Tue, 1999/06/01 09:00] | 
|---|
| 34 | *****************************************************************************/ | 
|---|
| 35 |  | 
|---|
| 36 | ODINFUNCTION6(int, OS2rexec, LPSTR*, lppArg1, | 
|---|
| 37 | int,    iArg2, | 
|---|
| 38 | LPSTR,  lpArg3, | 
|---|
| 39 | LPSTR,  lpArg4, | 
|---|
| 40 | LPSTR,  lpArg5, | 
|---|
| 41 | int*,   lpiArg6) | 
|---|
| 42 | { | 
|---|
| 43 | dprintf(("WSOCK32: rexec not implemented correctly.\n")); | 
|---|
| 44 |  | 
|---|
| 45 | return rexec(lppArg1, | 
|---|
| 46 | iArg2, | 
|---|
| 47 | lpArg3, | 
|---|
| 48 | lpArg4, | 
|---|
| 49 | lpArg5, | 
|---|
| 50 | lpiArg6); | 
|---|
| 51 | } | 
|---|
| 52 |  | 
|---|
| 53 |  | 
|---|
| 54 | /***************************************************************************** | 
|---|
| 55 | * ODINFUNCTION6( :, int, WIN32API, OS2rcmd, | 
|---|
| 56 | * Purpose, :, | 
|---|
| 57 | * Parameters:, | 
|---|
| 58 | * Variables, :, | 
|---|
| 59 | * Result    : | 
|---|
| 60 | * Remark    : WSOCK32.1103 | 
|---|
| 61 | * Status    : UNTESTED | 
|---|
| 62 | * | 
|---|
| 63 | * Author    : Patrick Haller [Tue, 1999/06/01 09:00] | 
|---|
| 64 | *****************************************************************************/ | 
|---|
| 65 |  | 
|---|
| 66 | ODINFUNCTION6(int, OS2rcmd, LPSTR*,     lppArg1, | 
|---|
| 67 | int,        iArg2, | 
|---|
| 68 | const char*,lpArg3, | 
|---|
| 69 | const char*,lpArg4, | 
|---|
| 70 | const char*,lpArg5, | 
|---|
| 71 | int       *,lpiArg6) | 
|---|
| 72 | { | 
|---|
| 73 | dprintf(("WSOCK32: rcmd not implemented.\n")); | 
|---|
| 74 |  | 
|---|
| 75 | //@@@PH actually it exists in TCP/IP 5.0 headers. Unknown which OS/2 function to link to. | 
|---|
| 76 | return 0; | 
|---|
| 77 | /* | 
|---|
| 78 | return rcmd(lppArg1, | 
|---|
| 79 | iArg2, | 
|---|
| 80 | lpArg3, | 
|---|
| 81 | lpArg4, | 
|---|
| 82 | lpArg5, | 
|---|
| 83 | lpiArg6); | 
|---|
| 84 | */ | 
|---|
| 85 | } | 
|---|
| 86 |  | 
|---|
| 87 |  | 
|---|
| 88 | /***************************************************************************** | 
|---|
| 89 | * Name      : | 
|---|
| 90 | * Purpose   : | 
|---|
| 91 | * Parameters: | 
|---|
| 92 | * Variables : | 
|---|
| 93 | * Result    : | 
|---|
| 94 | * Remark    : | 
|---|
| 95 | * Status    : UNTESTED STUB | 
|---|
| 96 | * | 
|---|
| 97 | * Author    : Patrick Haller [Tue, 1998/06/16 23:00] | 
|---|
| 98 | *****************************************************************************/ | 
|---|
| 99 |  | 
|---|
| 100 | ODINFUNCTION4(int, WSARecvEx, SOCKET,    s, | 
|---|
| 101 | char FAR*, buf, | 
|---|
| 102 | int,       len, | 
|---|
| 103 | int FAR *,flags) | 
|---|
| 104 | { | 
|---|
| 105 | dprintf(("WSOCK32: WSARecvEx not implemented.\n")); | 
|---|
| 106 |  | 
|---|
| 107 | //    return WSARecvEx(s,buf,len,flags); | 
|---|
| 108 | return 0; | 
|---|
| 109 | } | 
|---|
| 110 |  | 
|---|
| 111 |  | 
|---|
| 112 | /***************************************************************************** | 
|---|
| 113 | * Name      : | 
|---|
| 114 | * Purpose   : | 
|---|
| 115 | * Parameters: | 
|---|
| 116 | * Variables : | 
|---|
| 117 | * Result    : | 
|---|
| 118 | * Remark    : | 
|---|
| 119 | * Status    : UNTESTED STUB | 
|---|
| 120 | * | 
|---|
| 121 | * Author    : Patrick Haller [Tue, 1998/06/16 23:00] | 
|---|
| 122 | *****************************************************************************/ | 
|---|
| 123 |  | 
|---|
| 124 | ODINPROCEDURE2(OS2s_perror, char*, pszMessage, | 
|---|
| 125 | void*, pUnknown) | 
|---|
| 126 | { | 
|---|
| 127 | dprintf(("WSOCK32: s_perror not implemented.\n")); | 
|---|
| 128 |  | 
|---|
| 129 | //perror(pszMessage); | 
|---|
| 130 | } | 
|---|
| 131 |  | 
|---|
| 132 |  | 
|---|