Sha256: f599360efb331ba14d17f38c34c3821a256ed52db5a48df71673e384b887ec5b

Contents?: true

Size: 1.45 KB

Versions: 55

Compression:

Stored size: 1.45 KB

Contents

#ifndef RHO_SHARED_NET_5686566c7ccb458784a377272387d53a
#define RHO_SHARED_NET_5686566c7ccb458784a377272387d53a

#ifdef _WIN32_WCE

/*
*	Because we need a per-thread errno, we define a function
*	pointer that we can call to return a pointer to the errno
*	for the current thread.  Then we define a macro for errno
*	that dereferences this function's result.
*
*	This makes it syntactically just like the "real" errno.
*
*	Using a function pointer allows us to use a very fast
*	function when there are no threads running and a slower
*	function when there are multiple threads running.
*/
void __WinCE_Errno_New_Thread(int *Errno_Pointer);
void __WinCE_Errno_Thread_Exit(void);
extern int *(*__WinCE_Errno_Pointer_Function)(void);

#define	errno (*(*__WinCE_Errno_Pointer_Function)())
/*
struct stat {
	unsigned long st_size;
	unsigned long st_ino;
	int st_mode;
	unsigned long st_atime;
	unsigned long st_mtime;
	unsigned long st_ctime;
	unsigned short st_dev;
	unsigned short st_nlink;
	unsigned short st_uid;
	unsigned short st_gid;
};

int stat(const char *path, struct stat *st);   */

#define _S_IFMT   0170000
#define _S_IFDIR  0040000
#define _S_IFREG  0100000
#define _S_IEXEC  0000100
#define _S_IWRITE 0000200 
#define _S_IREAD  0000400

#define S_IFMT _S_IFMT
#define S_IFDIR _S_IFDIR
#define S_IFREG _S_IFREG
#define S_IEXEC _S_IEXEC
#define S_IWRITE _S_IWRITE
#define S_IREAD _S_IREAD

#endif // _WIN32_WCE

#endif // RHO_SHARED_NET_5686566c7ccb458784a377272387d53a

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/shared/net/CompatWince.h
rhodes-3.0.2.beta.1 platform/shared/net/CompatWince.h
rhodes-3.0.1 platform/shared/net/CompatWince.h
rhodes-3.0.1.beta.8 platform/shared/net/CompatWince.h
rhodes-3.0.1.beta.7 platform/shared/net/CompatWince.h
rhodes-3.0.1.beta.6 platform/shared/net/CompatWince.h
rhodes-3.0.1.beta.5 platform/shared/net/CompatWince.h
rhodes-3.0.1.beta.4 platform/shared/net/CompatWince.h
rhodes-3.0.1.beta.3 platform/shared/net/CompatWince.h
rhodes-3.0.1.beta.2 platform/shared/net/CompatWince.h
rhodes-3.0.0 platform/shared/net/CompatWince.h
rhodes-3.0.0.beta.7 platform/shared/net/CompatWince.h
rhodes-3.0.0.beta.6 platform/shared/net/CompatWince.h
rhodes-3.0.0.beta.5 platform/shared/net/CompatWince.h
rhodes-3.0.0.beta.4 platform/shared/net/CompatWince.h
rhodes-3.0.0.beta.3 platform/shared/net/CompatWince.h
rhodes-3.0.0.beta.2 platform/shared/net/CompatWince.h
rhodes-3.0.0.beta.1 platform/shared/net/CompatWince.h
rhodes-2.4.1 platform/shared/net/CompatWince.h
rhodes-2.4.1.beta.1 platform/shared/net/CompatWince.h