// Author : Christopher S. Hull
// Created On : Sat Jan 31 15:55:00 2004
// Last Modified By: Christopher S. Hull
-// Last Modified On: Mon Feb 23 10:48:23 2004
-// Update Count : 663
+// Last Modified On: Tue Feb 24 11:01:09 2004
+// Update Count : 664
// $Id$
#include <stdio.h>
off_t
lseek(int fd, off_t offset, int whence)
{
- return _lseek(fd, offset, whence);
+ return _lseeki64(fd, offset, whence);
}
int
* Author : Christopher S. Hull
* Created On : Fri Jan 30 13:00:51 2004
* Last Modified By: Christopher S. Hull
- * Last Modified On: Mon Feb 23 10:39:46 2004
- * Update Count : 202
+ * Last Modified On: Tue Feb 24 11:13:32 2004
+ * Update Count : 218
* $Id$
*/
#ifndef __COMPAT_H_
#define __COMPAT_H_
+
+#define __STDC__ 1
+
#include <stdio.h>
#include <basetsd.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdarg.h>
#include <conio.h>
-//#include <io.h>
#include <process.h>
#include <errno.h>
#include <string.h>
#include <direct.h>
#include <ctype.h>
#include <fcntl.h>
-
-#define __STDC__ 1
#include <io.h>
typedef unsigned short uint16_t;
typedef signed short int16_t;
typedef long time_t;
-typedef long _off_t;
+#if __STDC__
+typedef _dev_t dev_t;
+typedef __int64 ino_t;
+typedef __int64 off_t; /* STDC=1 means we can define this */
+#else
+typedef long _off_t; /* must be same as sys/types.h */
+#endif
typedef signed char int8_t;
typedef int BOOL;
#define bool BOOL
typedef double float64_t;
-
typedef UINT32 u_int32_t;
typedef unsigned char u_int8_t;
typedef unsigned short u_int16_t;
#define S_ISSOCK(x) 0
#define S_ISLNK(x) 0
+
+#if __STDC__
+#define O_RDONLY _O_RDONLY
+#define O_WRONLY _O_WRONLY
+#define O_RDWR _O_RDWR
+#define O_CREAT _O_CREAT
+#define O_TRUNC _O_TRUNC
+
+#define isascii __isascii
+#define toascii __toascii
+#define iscsymf __iscsymf
+#define iscsym __iscsym
+
+#endif
#define SIGUSR2 9999
int umask(int);