Archive-Unzip-Burst
view release on metacpan or search on metacpan
unzip-6.0/wince/wince.h view on Meta::CPAN
#endif
ZCRTIMP int __cdecl mblen(const char *mbc, size_t mbszmax);
#endif /* _MBCS */
#if _WIN32_WCE >= 211
# define errno ((int)GetLastError())
#endif
#ifdef _WIN32_WCE_EMULATION
// The emulation runtime library lacks a required element for setjmp/longjmp,
// disable the recovery functionality for now.
# undef setjmp
# define setjmp(buf) 0
# undef longjmp
# define longjmp(buf, rv)
#endif
//******************************************************************************
//***** STRING.H functions
//******************************************************************************
ZCRTIMP int __cdecl _stricmp(const char *, const char *);
ZCRTIMP char * __cdecl _strupr(char *);
ZCRTIMP char * __cdecl strerror(int errnum);
ZCRTIMP char * __cdecl strrchr(const char *, int);
//******************************************************************************
//***** TIME.H functions
//******************************************************************************
#ifndef _TM_DEFINED
struct tm {
int tm_sec; // seconds after the minute - [0,59]
int tm_min; // minutes after the hour - [0,59]
int tm_hour; // hours since midnight - [0,23]
int tm_mday; // day of the month - [1,31]
int tm_mon; // months since January - [0,11]
int tm_year; // years since 1900
// int tm_wday; // days since Sunday - [0,6]
// int tm_yday; // days since January 1 - [0,365]
int tm_isdst; // daylight savings time flag
};
#define _TM_DEFINED
#endif
ZCRTIMP struct tm * __cdecl localtime(const time_t *);
// tzset is not supported on native WCE, define it as a NOP macro
#ifndef tzset
# define tzset()
#endif
//******************************************************************************
//***** SYS\STAT.H functions
//******************************************************************************
struct stat {
// _dev_t st_dev;
// _ino_t st_ino;
unsigned short st_mode;
// short st_nlink;
// short st_uid;
// short st_gid;
// _dev_t st_rdev;
_off_t st_size;
// time_t st_atime;
time_t st_mtime;
// time_t st_ctime;
};
#define _S_IFMT 0170000 // file type mask
#define _S_IFDIR 0040000 // directory
//#define _S_IFCHR 0020000 // character special
//#define _S_IFIFO 0010000 // pipe
#define _S_IFREG 0100000 // regular
#define _S_IREAD 0000400 // read permission, owner
#define _S_IWRITE 0000200 // write permission, owner
#define _S_IEXEC 0000100 // execute/search permission, owner
#define S_IFMT _S_IFMT
#define S_IFDIR _S_IFDIR
//#define S_IFCHR _S_IFCHR
//#define S_IFREG _S_IFREG
#define S_IREAD _S_IREAD
#define S_IWRITE _S_IWRITE
#define S_IEXEC _S_IEXEC
ZCRTIMP int __cdecl stat(const char *, struct stat *);
//******************************************************************************
#endif // _WIN32_WCE
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __WINCE_H__
( run in 1.366 second using v1.01-cache-2.11-cpan-b16cb0d3907 )