Buckets:
| /* | |
| * tclUnixPort.h -- | |
| * | |
| * This header file handles porting issues that occur because of | |
| * differences between systems. It reads in UNIX-related header files and | |
| * sets up UNIX-related macros for Tcl's UNIX core. It should be the only | |
| * file that contains #ifdefs to handle different flavors of UNIX. This | |
| * file sets up the union of all UNIX-related things needed by any of the | |
| * Tcl core files. This file depends on configuration #defines such as | |
| * NO_DIRENT_H that are set up by the "configure" script. | |
| * | |
| * Much of the material in this file was originally contributed by Karl | |
| * Lehenbauer, Mark Diekhans and Peter da Silva. | |
| * | |
| * Copyright (c) 1991-1994 The Regents of the University of California. | |
| * Copyright (c) 1994-1997 Sun Microsystems, Inc. | |
| * | |
| * See the file "license.terms" for information on usage and redistribution of | |
| * this file, and for a DISCLAIMER OF ALL WARRANTIES. | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The following sets of #includes and #ifdefs are required to get Tcl to | |
| * compile under the various flavors of unix. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Parameterize for 64-bit filesystem support. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| typedef struct dirent64 Tcl_DirEntry; | |
| typedef struct dirent Tcl_DirEntry; | |
| typedef DIR64 TclDIR; | |
| typedef DIR TclDIR; | |
| typedef off64_t Tcl_SeekOffset; | |
| typedef off_t Tcl_SeekOffset; | |
| extern "C" { | |
| /* Make some symbols available without including <windows.h> */ | |
| typedef unsigned short WCHAR; | |
| __declspec(dllimport) extern __stdcall int GetModuleHandleExW(unsigned int, const void *, void *); | |
| __declspec(dllimport) extern __stdcall int GetModuleFileNameW(void *, const void *, int); | |
| __declspec(dllimport) extern __stdcall int WideCharToMultiByte(int, int, const void *, int, | |
| char *, int, const char *, void *); | |
| __declspec(dllimport) extern __stdcall int MultiByteToWideChar(int, int, const char *, int, | |
| WCHAR *, int); | |
| __declspec(dllimport) extern __stdcall void OutputDebugStringW(const WCHAR *); | |
| __declspec(dllimport) extern __stdcall int IsDebuggerPresent(void); | |
| __declspec(dllimport) extern __stdcall int GetLastError(void); | |
| __declspec(dllimport) extern __stdcall int GetFileAttributesW(const WCHAR *); | |
| __declspec(dllimport) extern __stdcall int SetFileAttributesW(const WCHAR *, int); | |
| __declspec(dllimport) extern int cygwin_conv_path(int, const void *, void *, int); | |
| extern int TclOSstat(const char *name, void *statBuf); | |
| extern int TclOSlstat(const char *name, void *statBuf); | |
| } | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Miscellaneous includes that might be missing. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| extern int TclUnixSetBlockingMode(int fd, int mode); | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Socket support stuff: This likely needs more work to parameterize for each | |
| * system. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Some platforms (e.g. SunOS) don't define FLT_MAX and FLT_MIN, so we look | |
| * for an alternative definition. If no other alternative is available we use | |
| * a reasonable guess. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * NeXT doesn't define O_NONBLOCK, so #define it here if necessary. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The type of the status returned by wait varies from UNIX system to UNIX | |
| * system. The macro below defines it: | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Supply definitions for macros to query wait status, if not already defined | |
| * in header files above. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Define constants for waitpid() system call if they aren't defined by a | |
| * system header file. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Supply macros for seek offsets, if they're not already provided by an | |
| * include file. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The stuff below is needed by the "time" command. If this system has no | |
| * gettimeofday call, then must use times() instead. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| extern int gettimeofday(struct timeval *tp, | |
| struct timezone *tzp); | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Define access mode constants if they aren't already defined. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Define FD_CLOEEXEC (the close-on-exec flag bit) if it isn't already | |
| * defined. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * On systems without symbolic links (i.e. S_IFLNK isn't defined) define | |
| * "lstat" to use "stat" instead. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Define macros to query file type bits, if they're not already defined. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Make sure that MAXPATHLEN and MAXNAMLEN are defined. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The following macro defines the type of the mask arguments to select: | |
| *--------------------------------------------------------------------------- | |
| */ | |
| typedef long fd_mask; | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Define "NBBY" (number of bits per byte) if it's not already defined. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The following macro defines the number of fd_masks in an fd_set: | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Not all systems declare the errno variable in errno.h. so this file does it | |
| * explicitly. The list of system error messages also isn't generally declared | |
| * in a header file anywhere. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| extern int errno; | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Not all systems declare all the errors that Tcl uses! Provide some | |
| * work-arounds... | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Variables provided by the C library: | |
| *--------------------------------------------------------------------------- | |
| */ | |
| extern char ** environ; | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Darwin specifc configure overrides. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Support for fat compiles: configure runs only once for multiple architectures | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Include AvailabilityMacros.h here (when available) to ensure any symbolic | |
| * MAC_OS_X_VERSION_* constants passed on the command line are translated. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Support for weak import. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Support for MAC_OS_X_VERSION_MAX_ALLOWED define from AvailabilityMacros.h: | |
| * only use API available in the indicated OS version or earlier. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* prior to 10.3, realpath is not threadsafe, c.f. bug 711232 */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * At present, using vfork() instead of fork() causes execve() to fail | |
| * intermittently on Darwin x86_64. rdar://4685553 | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* Workaround problems with vfork() when building with llvm-gcc-4.2 */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The following macros and declarations represent the interface between | |
| * generic and unix-specific parts of Tcl. Some of the macros may override | |
| * functions declared in tclInt.h. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * The default platform eol translation on Unix is TCL_TRANSLATE_LF. | |
| */ | |
| typedef int socklen_t; | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The following macros have trivial definitions, allowing generic code to | |
| * address platform-specific issues. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The following defines wrap the system memory allocation routines. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * The following macros and declaration wrap the C runtime library functions. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| /* FIXME - Hyper-enormous platform assumption! */ | |
| /* | |
| *--------------------------------------------------------------------------- | |
| * Set of MT-safe implementations of some known-to-be-MT-unsafe library calls. | |
| * Instead of returning pointers to the static storage, those return pointers | |
| * to the TSD data. | |
| *--------------------------------------------------------------------------- | |
| */ | |
| extern struct passwd * TclpGetPwNam(const char *name); | |
| extern struct group * TclpGetGrNam(const char *name); | |
| extern struct passwd * TclpGetPwUid(uid_t uid); | |
| extern struct group * TclpGetGrGid(gid_t gid); | |
| extern struct hostent * TclpGetHostByName(const char *name); | |
| extern struct hostent * TclpGetHostByAddr(const char *addr, | |
| int length, int type); | |
| extern void *TclpMakeTcpClientChannelMode( | |
| void *tcpSocket, int mode); | |
| /* | |
| * Local Variables: | |
| * mode: c | |
| * c-basic-offset: 4 | |
| * fill-column: 78 | |
| * End: | |
| */ | |
Xet Storage Details
- Size:
- 21.1 kB
- Xet hash:
- 118489b352d8cc32df89a5de149592705e0c961b9c80732798c3da71e8d0d0db
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.