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