#endif /* HAVE_FCNTL_H */
/* Various compilers have only certain posix functions */
+/* XXX Gosh I wish these were all moved into config.h */
#ifdef __WATCOMC__ /* Watcom compiler */
#define HAVE_GETCWD 1
#define HAVE_OPENDIR 1
PyObject *self;
PyObject *args;
{
+ /* XXX Should redo this putting the three versions of opendir
+ in separate files instead of having them all here... */
#if defined(MS_WIN32) && !defined(HAVE_OPENDIR)
char *name;
long atime, mtime;
int res;
+/* XXX should define struct utimbuf instead, above */
#ifdef HAVE_UTIME_H
struct utimbuf buf;
#define ATIME buf.actime
}
-
+/* XXX The following should be more unified -- only difference left is
+ function name and module name. */
#if defined(_MSC_VER) || defined(__WATCOMC__)
void
return;
finally:
+ /* XXX Shouldn't */
Py_FatalError("can't initialize NT posixmodule");
}
#else /* not a PC port */
return;
finally:
+ /* XXX Shouldn't */
Py_FatalError("can't initialize posix module");
}
#endif /* !_MSC_VER */