File indexing completed on 2025-01-17 09:56:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef _TCLINTPLATDECLS
0014 #define _TCLINTPLATDECLS
0015
0016 #undef TCL_STORAGE_CLASS
0017 #ifdef BUILD_tcl
0018 # define TCL_STORAGE_CLASS DLLEXPORT
0019 #else
0020 # ifdef USE_TCL_STUBS
0021 # define TCL_STORAGE_CLASS
0022 # else
0023 # define TCL_STORAGE_CLASS DLLIMPORT
0024 # endif
0025 #endif
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 #ifdef __cplusplus
0036 extern "C" {
0037 #endif
0038
0039
0040
0041
0042
0043 #if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(MAC_OSX_TCL)
0044
0045 EXTERN void TclGetAndDetachPids(Tcl_Interp *interp,
0046 Tcl_Channel chan);
0047
0048 EXTERN int TclpCloseFile(TclFile file);
0049
0050 EXTERN Tcl_Channel TclpCreateCommandChannel(TclFile readFile,
0051 TclFile writeFile, TclFile errorFile,
0052 int numPids, Tcl_Pid *pidPtr);
0053
0054 EXTERN int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe);
0055
0056 EXTERN int TclpCreateProcess(Tcl_Interp *interp, int argc,
0057 const char **argv, TclFile inputFile,
0058 TclFile outputFile, TclFile errorFile,
0059 Tcl_Pid *pidPtr);
0060
0061 EXTERN int TclUnixWaitForFile_(int fd, int mask, int timeout);
0062
0063 EXTERN TclFile TclpMakeFile(Tcl_Channel channel, int direction);
0064
0065 EXTERN TclFile TclpOpenFile(const char *fname, int mode);
0066
0067 EXTERN int TclUnixWaitForFile(int fd, int mask, int timeout);
0068
0069 EXTERN TclFile TclpCreateTempFile(const char *contents);
0070
0071 EXTERN Tcl_DirEntry * TclpReaddir(TclDIR *dir);
0072
0073 EXTERN struct tm * TclpLocaltime_unix(const time_t *clock);
0074
0075 EXTERN struct tm * TclpGmtime_unix(const time_t *clock);
0076
0077 EXTERN char * TclpInetNtoa(struct in_addr addr);
0078
0079 EXTERN int TclUnixCopyFile(const char *src, const char *dst,
0080 const Tcl_StatBuf *statBufPtr,
0081 int dontCopyAtts);
0082
0083 EXTERN int TclMacOSXGetFileAttribute(Tcl_Interp *interp,
0084 int objIndex, Tcl_Obj *fileName,
0085 Tcl_Obj **attributePtrPtr);
0086
0087 EXTERN int TclMacOSXSetFileAttribute(Tcl_Interp *interp,
0088 int objIndex, Tcl_Obj *fileName,
0089 Tcl_Obj *attributePtr);
0090
0091 EXTERN int TclMacOSXCopyFileAttributes(const char *src,
0092 const char *dst,
0093 const Tcl_StatBuf *statBufPtr);
0094
0095 EXTERN int TclMacOSXMatchType(Tcl_Interp *interp,
0096 const char *pathName, const char *fileName,
0097 Tcl_StatBuf *statBufPtr,
0098 Tcl_GlobTypeData *types);
0099
0100 EXTERN void TclMacOSXNotifierAddRunLoopMode(
0101 const void *runLoopMode);
0102
0103
0104
0105 EXTERN TclFile TclpCreateTempFile_(const char *contents);
0106
0107
0108
0109
0110
0111
0112
0113 EXTERN int TclWinCPUID(unsigned int index, unsigned int *regs);
0114
0115 EXTERN int TclUnixOpenTemporaryFile(Tcl_Obj *dirObj,
0116 Tcl_Obj *basenameObj, Tcl_Obj *extensionObj,
0117 Tcl_Obj *resultingNameObj);
0118 #endif
0119 #if defined(_WIN32) || defined(__CYGWIN__)
0120
0121 EXTERN void TclWinConvertError(DWORD errCode);
0122
0123 EXTERN void TclWinConvertWSAError(DWORD errCode);
0124
0125 EXTERN struct servent * TclWinGetServByName(const char *nm,
0126 const char *proto);
0127
0128 EXTERN int TclWinGetSockOpt(SOCKET s, int level, int optname,
0129 char *optval, int *optlen);
0130
0131 EXTERN HINSTANCE TclWinGetTclInstance(void);
0132
0133 EXTERN int TclUnixWaitForFile(int fd, int mask, int timeout);
0134
0135 EXTERN unsigned short TclWinNToHS(unsigned short ns);
0136
0137 EXTERN int TclWinSetSockOpt(SOCKET s, int level, int optname,
0138 const char *optval, int optlen);
0139
0140 EXTERN int TclpGetPid(Tcl_Pid pid);
0141
0142 EXTERN int TclWinGetPlatformId(void);
0143
0144 EXTERN Tcl_DirEntry * TclpReaddir(TclDIR *dir);
0145
0146 EXTERN void TclGetAndDetachPids(Tcl_Interp *interp,
0147 Tcl_Channel chan);
0148
0149 EXTERN int TclpCloseFile(TclFile file);
0150
0151 EXTERN Tcl_Channel TclpCreateCommandChannel(TclFile readFile,
0152 TclFile writeFile, TclFile errorFile,
0153 int numPids, Tcl_Pid *pidPtr);
0154
0155 EXTERN int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe);
0156
0157 EXTERN int TclpCreateProcess(Tcl_Interp *interp, int argc,
0158 const char **argv, TclFile inputFile,
0159 TclFile outputFile, TclFile errorFile,
0160 Tcl_Pid *pidPtr);
0161
0162 EXTERN int TclpIsAtty(int fd);
0163
0164 EXTERN int TclUnixCopyFile(const char *src, const char *dst,
0165 const Tcl_StatBuf *statBufPtr,
0166 int dontCopyAtts);
0167
0168 EXTERN TclFile TclpMakeFile(Tcl_Channel channel, int direction);
0169
0170 EXTERN TclFile TclpOpenFile(const char *fname, int mode);
0171
0172 EXTERN void TclWinAddProcess(HANDLE hProcess, DWORD id);
0173
0174 EXTERN char * TclpInetNtoa(struct in_addr addr);
0175
0176 EXTERN TclFile TclpCreateTempFile(const char *contents);
0177
0178
0179 EXTERN char * TclWinNoBackslash(char *path);
0180
0181
0182 EXTERN void TclWinSetInterfaces(int wide);
0183
0184 EXTERN void TclWinFlushDirtyChannels(void);
0185
0186 EXTERN void TclWinResetInterfaces(void);
0187
0188 EXTERN int TclWinCPUID(unsigned int index, unsigned int *regs);
0189
0190 EXTERN int TclUnixOpenTemporaryFile(Tcl_Obj *dirObj,
0191 Tcl_Obj *basenameObj, Tcl_Obj *extensionObj,
0192 Tcl_Obj *resultingNameObj);
0193 #endif
0194 #ifdef MAC_OSX_TCL
0195
0196 EXTERN void TclGetAndDetachPids(Tcl_Interp *interp,
0197 Tcl_Channel chan);
0198
0199 EXTERN int TclpCloseFile(TclFile file);
0200
0201 EXTERN Tcl_Channel TclpCreateCommandChannel(TclFile readFile,
0202 TclFile writeFile, TclFile errorFile,
0203 int numPids, Tcl_Pid *pidPtr);
0204
0205 EXTERN int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe);
0206
0207 EXTERN int TclpCreateProcess(Tcl_Interp *interp, int argc,
0208 const char **argv, TclFile inputFile,
0209 TclFile outputFile, TclFile errorFile,
0210 Tcl_Pid *pidPtr);
0211
0212 EXTERN int TclUnixWaitForFile_(int fd, int mask, int timeout);
0213
0214 EXTERN TclFile TclpMakeFile(Tcl_Channel channel, int direction);
0215
0216 EXTERN TclFile TclpOpenFile(const char *fname, int mode);
0217
0218 EXTERN int TclUnixWaitForFile(int fd, int mask, int timeout);
0219
0220 EXTERN TclFile TclpCreateTempFile(const char *contents);
0221
0222 EXTERN Tcl_DirEntry * TclpReaddir(TclDIR *dir);
0223
0224 EXTERN struct tm * TclpLocaltime_unix(const time_t *clock);
0225
0226 EXTERN struct tm * TclpGmtime_unix(const time_t *clock);
0227
0228 EXTERN char * TclpInetNtoa(struct in_addr addr);
0229
0230 EXTERN int TclUnixCopyFile(const char *src, const char *dst,
0231 const Tcl_StatBuf *statBufPtr,
0232 int dontCopyAtts);
0233
0234 EXTERN int TclMacOSXGetFileAttribute(Tcl_Interp *interp,
0235 int objIndex, Tcl_Obj *fileName,
0236 Tcl_Obj **attributePtrPtr);
0237
0238 EXTERN int TclMacOSXSetFileAttribute(Tcl_Interp *interp,
0239 int objIndex, Tcl_Obj *fileName,
0240 Tcl_Obj *attributePtr);
0241
0242 EXTERN int TclMacOSXCopyFileAttributes(const char *src,
0243 const char *dst,
0244 const Tcl_StatBuf *statBufPtr);
0245
0246 EXTERN int TclMacOSXMatchType(Tcl_Interp *interp,
0247 const char *pathName, const char *fileName,
0248 Tcl_StatBuf *statBufPtr,
0249 Tcl_GlobTypeData *types);
0250
0251 EXTERN void TclMacOSXNotifierAddRunLoopMode(
0252 const void *runLoopMode);
0253
0254
0255
0256 EXTERN TclFile TclpCreateTempFile_(const char *contents);
0257
0258
0259
0260
0261
0262
0263
0264 EXTERN int TclWinCPUID(unsigned int index, unsigned int *regs);
0265
0266 EXTERN int TclUnixOpenTemporaryFile(Tcl_Obj *dirObj,
0267 Tcl_Obj *basenameObj, Tcl_Obj *extensionObj,
0268 Tcl_Obj *resultingNameObj);
0269 #endif
0270
0271 typedef struct TclIntPlatStubs {
0272 int magic;
0273 void *hooks;
0274
0275 #if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(MAC_OSX_TCL)
0276 void (*tclGetAndDetachPids) (Tcl_Interp *interp, Tcl_Channel chan);
0277 int (*tclpCloseFile) (TclFile file);
0278 Tcl_Channel (*tclpCreateCommandChannel) (TclFile readFile, TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr);
0279 int (*tclpCreatePipe) (TclFile *readPipe, TclFile *writePipe);
0280 int (*tclpCreateProcess) (Tcl_Interp *interp, int argc, const char **argv, TclFile inputFile, TclFile outputFile, TclFile errorFile, Tcl_Pid *pidPtr);
0281 int (*tclUnixWaitForFile_) (int fd, int mask, int timeout);
0282 TclFile (*tclpMakeFile) (Tcl_Channel channel, int direction);
0283 TclFile (*tclpOpenFile) (const char *fname, int mode);
0284 int (*tclUnixWaitForFile) (int fd, int mask, int timeout);
0285 TclFile (*tclpCreateTempFile) (const char *contents);
0286 Tcl_DirEntry * (*tclpReaddir) (TclDIR *dir);
0287 struct tm * (*tclpLocaltime_unix) (const time_t *clock);
0288 struct tm * (*tclpGmtime_unix) (const time_t *clock);
0289 char * (*tclpInetNtoa) (struct in_addr addr);
0290 int (*tclUnixCopyFile) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr, int dontCopyAtts);
0291 int (*tclMacOSXGetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj **attributePtrPtr);
0292 int (*tclMacOSXSetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj *attributePtr);
0293 int (*tclMacOSXCopyFileAttributes) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr);
0294 int (*tclMacOSXMatchType) (Tcl_Interp *interp, const char *pathName, const char *fileName, Tcl_StatBuf *statBufPtr, Tcl_GlobTypeData *types);
0295 void (*tclMacOSXNotifierAddRunLoopMode) (const void *runLoopMode);
0296 void (*reserved20)(void);
0297 void (*reserved21)(void);
0298 TclFile (*tclpCreateTempFile_) (const char *contents);
0299 void (*reserved23)(void);
0300 void (*reserved24)(void);
0301 void (*reserved25)(void);
0302 void (*reserved26)(void);
0303 void (*reserved27)(void);
0304 void (*reserved28)(void);
0305 int (*tclWinCPUID) (unsigned int index, unsigned int *regs);
0306 int (*tclUnixOpenTemporaryFile) (Tcl_Obj *dirObj, Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, Tcl_Obj *resultingNameObj);
0307 #endif
0308 #if defined(_WIN32) || defined(__CYGWIN__)
0309 void (*tclWinConvertError) (DWORD errCode);
0310 void (*tclWinConvertWSAError) (DWORD errCode);
0311 struct servent * (*tclWinGetServByName) (const char *nm, const char *proto);
0312 int (*tclWinGetSockOpt) (SOCKET s, int level, int optname, char *optval, int *optlen);
0313 HINSTANCE (*tclWinGetTclInstance) (void);
0314 int (*tclUnixWaitForFile) (int fd, int mask, int timeout);
0315 unsigned short (*tclWinNToHS) (unsigned short ns);
0316 int (*tclWinSetSockOpt) (SOCKET s, int level, int optname, const char *optval, int optlen);
0317 int (*tclpGetPid) (Tcl_Pid pid);
0318 int (*tclWinGetPlatformId) (void);
0319 Tcl_DirEntry * (*tclpReaddir) (TclDIR *dir);
0320 void (*tclGetAndDetachPids) (Tcl_Interp *interp, Tcl_Channel chan);
0321 int (*tclpCloseFile) (TclFile file);
0322 Tcl_Channel (*tclpCreateCommandChannel) (TclFile readFile, TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr);
0323 int (*tclpCreatePipe) (TclFile *readPipe, TclFile *writePipe);
0324 int (*tclpCreateProcess) (Tcl_Interp *interp, int argc, const char **argv, TclFile inputFile, TclFile outputFile, TclFile errorFile, Tcl_Pid *pidPtr);
0325 int (*tclpIsAtty) (int fd);
0326 int (*tclUnixCopyFile) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr, int dontCopyAtts);
0327 TclFile (*tclpMakeFile) (Tcl_Channel channel, int direction);
0328 TclFile (*tclpOpenFile) (const char *fname, int mode);
0329 void (*tclWinAddProcess) (HANDLE hProcess, DWORD id);
0330 char * (*tclpInetNtoa) (struct in_addr addr);
0331 TclFile (*tclpCreateTempFile) (const char *contents);
0332 void (*reserved23)(void);
0333 char * (*tclWinNoBackslash) (char *path);
0334 void (*reserved25)(void);
0335 void (*tclWinSetInterfaces) (int wide);
0336 void (*tclWinFlushDirtyChannels) (void);
0337 void (*tclWinResetInterfaces) (void);
0338 int (*tclWinCPUID) (unsigned int index, unsigned int *regs);
0339 int (*tclUnixOpenTemporaryFile) (Tcl_Obj *dirObj, Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, Tcl_Obj *resultingNameObj);
0340 #endif
0341 #ifdef MAC_OSX_TCL
0342 void (*tclGetAndDetachPids) (Tcl_Interp *interp, Tcl_Channel chan);
0343 int (*tclpCloseFile) (TclFile file);
0344 Tcl_Channel (*tclpCreateCommandChannel) (TclFile readFile, TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr);
0345 int (*tclpCreatePipe) (TclFile *readPipe, TclFile *writePipe);
0346 int (*tclpCreateProcess) (Tcl_Interp *interp, int argc, const char **argv, TclFile inputFile, TclFile outputFile, TclFile errorFile, Tcl_Pid *pidPtr);
0347 int (*tclUnixWaitForFile_) (int fd, int mask, int timeout);
0348 TclFile (*tclpMakeFile) (Tcl_Channel channel, int direction);
0349 TclFile (*tclpOpenFile) (const char *fname, int mode);
0350 int (*tclUnixWaitForFile) (int fd, int mask, int timeout);
0351 TclFile (*tclpCreateTempFile) (const char *contents);
0352 Tcl_DirEntry * (*tclpReaddir) (TclDIR *dir);
0353 struct tm * (*tclpLocaltime_unix) (const time_t *clock);
0354 struct tm * (*tclpGmtime_unix) (const time_t *clock);
0355 char * (*tclpInetNtoa) (struct in_addr addr);
0356 int (*tclUnixCopyFile) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr, int dontCopyAtts);
0357 int (*tclMacOSXGetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj **attributePtrPtr);
0358 int (*tclMacOSXSetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj *attributePtr);
0359 int (*tclMacOSXCopyFileAttributes) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr);
0360 int (*tclMacOSXMatchType) (Tcl_Interp *interp, const char *pathName, const char *fileName, Tcl_StatBuf *statBufPtr, Tcl_GlobTypeData *types);
0361 void (*tclMacOSXNotifierAddRunLoopMode) (const void *runLoopMode);
0362 void (*reserved20)(void);
0363 void (*reserved21)(void);
0364 TclFile (*tclpCreateTempFile_) (const char *contents);
0365 void (*reserved23)(void);
0366 void (*reserved24)(void);
0367 void (*reserved25)(void);
0368 void (*reserved26)(void);
0369 void (*reserved27)(void);
0370 void (*reserved28)(void);
0371 int (*tclWinCPUID) (unsigned int index, unsigned int *regs);
0372 int (*tclUnixOpenTemporaryFile) (Tcl_Obj *dirObj, Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, Tcl_Obj *resultingNameObj);
0373 #endif
0374 } TclIntPlatStubs;
0375
0376 extern const TclIntPlatStubs *tclIntPlatStubsPtr;
0377
0378 #ifdef __cplusplus
0379 }
0380 #endif
0381
0382 #if defined(USE_TCL_STUBS)
0383
0384
0385
0386
0387
0388 #if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(MAC_OSX_TCL)
0389 #define TclGetAndDetachPids \
0390 (tclIntPlatStubsPtr->tclGetAndDetachPids)
0391 #define TclpCloseFile \
0392 (tclIntPlatStubsPtr->tclpCloseFile)
0393 #define TclpCreateCommandChannel \
0394 (tclIntPlatStubsPtr->tclpCreateCommandChannel)
0395 #define TclpCreatePipe \
0396 (tclIntPlatStubsPtr->tclpCreatePipe)
0397 #define TclpCreateProcess \
0398 (tclIntPlatStubsPtr->tclpCreateProcess)
0399 #define TclUnixWaitForFile_ \
0400 (tclIntPlatStubsPtr->tclUnixWaitForFile_)
0401 #define TclpMakeFile \
0402 (tclIntPlatStubsPtr->tclpMakeFile)
0403 #define TclpOpenFile \
0404 (tclIntPlatStubsPtr->tclpOpenFile)
0405 #define TclUnixWaitForFile \
0406 (tclIntPlatStubsPtr->tclUnixWaitForFile)
0407 #define TclpCreateTempFile \
0408 (tclIntPlatStubsPtr->tclpCreateTempFile)
0409 #define TclpReaddir \
0410 (tclIntPlatStubsPtr->tclpReaddir)
0411 #define TclpLocaltime_unix \
0412 (tclIntPlatStubsPtr->tclpLocaltime_unix)
0413 #define TclpGmtime_unix \
0414 (tclIntPlatStubsPtr->tclpGmtime_unix)
0415 #define TclpInetNtoa \
0416 (tclIntPlatStubsPtr->tclpInetNtoa)
0417 #define TclUnixCopyFile \
0418 (tclIntPlatStubsPtr->tclUnixCopyFile)
0419 #define TclMacOSXGetFileAttribute \
0420 (tclIntPlatStubsPtr->tclMacOSXGetFileAttribute)
0421 #define TclMacOSXSetFileAttribute \
0422 (tclIntPlatStubsPtr->tclMacOSXSetFileAttribute)
0423 #define TclMacOSXCopyFileAttributes \
0424 (tclIntPlatStubsPtr->tclMacOSXCopyFileAttributes)
0425 #define TclMacOSXMatchType \
0426 (tclIntPlatStubsPtr->tclMacOSXMatchType)
0427 #define TclMacOSXNotifierAddRunLoopMode \
0428 (tclIntPlatStubsPtr->tclMacOSXNotifierAddRunLoopMode)
0429
0430
0431 #define TclpCreateTempFile_ \
0432 (tclIntPlatStubsPtr->tclpCreateTempFile_)
0433
0434
0435
0436
0437
0438
0439 #define TclWinCPUID \
0440 (tclIntPlatStubsPtr->tclWinCPUID)
0441 #define TclUnixOpenTemporaryFile \
0442 (tclIntPlatStubsPtr->tclUnixOpenTemporaryFile)
0443 #endif
0444 #if defined(_WIN32) || defined(__CYGWIN__)
0445 #define TclWinConvertError \
0446 (tclIntPlatStubsPtr->tclWinConvertError)
0447 #define TclWinConvertWSAError \
0448 (tclIntPlatStubsPtr->tclWinConvertWSAError)
0449 #define TclWinGetServByName \
0450 (tclIntPlatStubsPtr->tclWinGetServByName)
0451 #define TclWinGetSockOpt \
0452 (tclIntPlatStubsPtr->tclWinGetSockOpt)
0453 #define TclWinGetTclInstance \
0454 (tclIntPlatStubsPtr->tclWinGetTclInstance)
0455 #define TclUnixWaitForFile \
0456 (tclIntPlatStubsPtr->tclUnixWaitForFile)
0457 #define TclWinNToHS \
0458 (tclIntPlatStubsPtr->tclWinNToHS)
0459 #define TclWinSetSockOpt \
0460 (tclIntPlatStubsPtr->tclWinSetSockOpt)
0461 #define TclpGetPid \
0462 (tclIntPlatStubsPtr->tclpGetPid)
0463 #define TclWinGetPlatformId \
0464 (tclIntPlatStubsPtr->tclWinGetPlatformId)
0465 #define TclpReaddir \
0466 (tclIntPlatStubsPtr->tclpReaddir)
0467 #define TclGetAndDetachPids \
0468 (tclIntPlatStubsPtr->tclGetAndDetachPids)
0469 #define TclpCloseFile \
0470 (tclIntPlatStubsPtr->tclpCloseFile)
0471 #define TclpCreateCommandChannel \
0472 (tclIntPlatStubsPtr->tclpCreateCommandChannel)
0473 #define TclpCreatePipe \
0474 (tclIntPlatStubsPtr->tclpCreatePipe)
0475 #define TclpCreateProcess \
0476 (tclIntPlatStubsPtr->tclpCreateProcess)
0477 #define TclpIsAtty \
0478 (tclIntPlatStubsPtr->tclpIsAtty)
0479 #define TclUnixCopyFile \
0480 (tclIntPlatStubsPtr->tclUnixCopyFile)
0481 #define TclpMakeFile \
0482 (tclIntPlatStubsPtr->tclpMakeFile)
0483 #define TclpOpenFile \
0484 (tclIntPlatStubsPtr->tclpOpenFile)
0485 #define TclWinAddProcess \
0486 (tclIntPlatStubsPtr->tclWinAddProcess)
0487 #define TclpInetNtoa \
0488 (tclIntPlatStubsPtr->tclpInetNtoa)
0489 #define TclpCreateTempFile \
0490 (tclIntPlatStubsPtr->tclpCreateTempFile)
0491
0492 #define TclWinNoBackslash \
0493 (tclIntPlatStubsPtr->tclWinNoBackslash)
0494
0495 #define TclWinSetInterfaces \
0496 (tclIntPlatStubsPtr->tclWinSetInterfaces)
0497 #define TclWinFlushDirtyChannels \
0498 (tclIntPlatStubsPtr->tclWinFlushDirtyChannels)
0499 #define TclWinResetInterfaces \
0500 (tclIntPlatStubsPtr->tclWinResetInterfaces)
0501 #define TclWinCPUID \
0502 (tclIntPlatStubsPtr->tclWinCPUID)
0503 #define TclUnixOpenTemporaryFile \
0504 (tclIntPlatStubsPtr->tclUnixOpenTemporaryFile)
0505 #endif
0506 #ifdef MAC_OSX_TCL
0507 #define TclGetAndDetachPids \
0508 (tclIntPlatStubsPtr->tclGetAndDetachPids)
0509 #define TclpCloseFile \
0510 (tclIntPlatStubsPtr->tclpCloseFile)
0511 #define TclpCreateCommandChannel \
0512 (tclIntPlatStubsPtr->tclpCreateCommandChannel)
0513 #define TclpCreatePipe \
0514 (tclIntPlatStubsPtr->tclpCreatePipe)
0515 #define TclpCreateProcess \
0516 (tclIntPlatStubsPtr->tclpCreateProcess)
0517 #define TclUnixWaitForFile_ \
0518 (tclIntPlatStubsPtr->tclUnixWaitForFile_)
0519 #define TclpMakeFile \
0520 (tclIntPlatStubsPtr->tclpMakeFile)
0521 #define TclpOpenFile \
0522 (tclIntPlatStubsPtr->tclpOpenFile)
0523 #define TclUnixWaitForFile \
0524 (tclIntPlatStubsPtr->tclUnixWaitForFile)
0525 #define TclpCreateTempFile \
0526 (tclIntPlatStubsPtr->tclpCreateTempFile)
0527 #define TclpReaddir \
0528 (tclIntPlatStubsPtr->tclpReaddir)
0529 #define TclpLocaltime_unix \
0530 (tclIntPlatStubsPtr->tclpLocaltime_unix)
0531 #define TclpGmtime_unix \
0532 (tclIntPlatStubsPtr->tclpGmtime_unix)
0533 #define TclpInetNtoa \
0534 (tclIntPlatStubsPtr->tclpInetNtoa)
0535 #define TclUnixCopyFile \
0536 (tclIntPlatStubsPtr->tclUnixCopyFile)
0537 #define TclMacOSXGetFileAttribute \
0538 (tclIntPlatStubsPtr->tclMacOSXGetFileAttribute)
0539 #define TclMacOSXSetFileAttribute \
0540 (tclIntPlatStubsPtr->tclMacOSXSetFileAttribute)
0541 #define TclMacOSXCopyFileAttributes \
0542 (tclIntPlatStubsPtr->tclMacOSXCopyFileAttributes)
0543 #define TclMacOSXMatchType \
0544 (tclIntPlatStubsPtr->tclMacOSXMatchType)
0545 #define TclMacOSXNotifierAddRunLoopMode \
0546 (tclIntPlatStubsPtr->tclMacOSXNotifierAddRunLoopMode)
0547
0548
0549 #define TclpCreateTempFile_ \
0550 (tclIntPlatStubsPtr->tclpCreateTempFile_)
0551
0552
0553
0554
0555
0556
0557 #define TclWinCPUID \
0558 (tclIntPlatStubsPtr->tclWinCPUID)
0559 #define TclUnixOpenTemporaryFile \
0560 (tclIntPlatStubsPtr->tclUnixOpenTemporaryFile)
0561 #endif
0562
0563 #endif
0564
0565
0566
0567 #undef TCL_STORAGE_CLASS
0568 #define TCL_STORAGE_CLASS DLLIMPORT
0569 #undef TclpLocaltime_unix
0570 #undef TclpGmtime_unix
0571 #undef TclWinConvertWSAError
0572 #define TclWinConvertWSAError TclWinConvertError
0573 #undef TclpInetNtoa
0574 #define TclpInetNtoa inet_ntoa
0575
0576 #undef TclpCreateTempFile_
0577 #undef TclUnixWaitForFile_
0578 #ifndef MAC_OSX_TCL
0579 #undef TclMacOSXGetFileAttribute
0580 #undef TclMacOSXSetFileAttribute
0581 #undef TclMacOSXCopyFileAttributes
0582 #undef TclMacOSXMatchType
0583 #undef TclMacOSXNotifierAddRunLoopMode
0584 #endif
0585
0586 #if defined(_WIN32)
0587 # undef TclWinNToHS
0588 # undef TclWinGetServByName
0589 # undef TclWinGetSockOpt
0590 # undef TclWinSetSockOpt
0591 # define TclWinNToHS ntohs
0592 # define TclWinGetServByName getservbyname
0593 # define TclWinGetSockOpt getsockopt
0594 # define TclWinSetSockOpt setsockopt
0595 #else
0596 # undef TclpGetPid
0597 # define TclpGetPid(pid) ((unsigned long) (pid))
0598 #endif
0599
0600 #endif