/*
    Function declarations and defines for CESH remote I/O
    functions
*/

#ifdef __cplusplus
extern "C"
{
#endif

/* stolen from pkfuncs.h */
int U_ropen(const WCHAR *, UINT);
int U_rread(int, BYTE *, int);
int U_rwrite(int, BYTE *, int);
int U_rlseek(int, int, int);
int U_rclose(int);

#ifdef __cplusplus
}
#endif

/* defines stolen from the desktop VC++ header file io.h */

#define _O_RDONLY       0x0000  /* open for reading only */
#define _O_WRONLY       0x0001  /* open for writing only */
#define _O_RDWR         0x0002  /* open for reading and writing */
#define _O_APPEND       0x0008  /* writes done at eof */

#define _O_CREAT        0x0100  /* create and open file */
#define _O_TRUNC        0x0200  /* open and truncate */
#define _O_EXCL         0x0400  /* open if file doesn't exist */

/* sequential/random access hints */
#define _O_SEQUENTIAL   0x0020  /* file access is sequential */
#define _O_RANDOM       0x0010  /* file access is random */



