#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
/* CAUTION: Build setups should ensure that NDEBUG is defined on the
* compiler command line when building Python in release mode; else
#include "frameobject.h"
#include "structmember.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
/*
* Which timer to use should be made more configurable, but that should not
* be difficult. This will do for now.
#include "pythread.h"
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "Python.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#include <sys/types.h>
#include <string.h>
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#endif /* HAVE_UNISTD_H */
-
#ifdef WITH_NEXT_FRAMEWORK
#include <mach-o/dyld.h>
#endif
#include "Python.h"
#include "structmember.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#else
#include "osdefs.h"
#include "compile.h" /* For CO_FUTURE_DIVISION */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef MS_WINDOWS
#include <fcntl.h>
#endif
#endif
#ifdef UNIX
-#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <grp.h>
#endif
-/* pick up declaration of confstr on some systems? */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif /* HAVE_UNISTD_H */
-
/* Various compilers have only certain posix functions */
/* XXX Gosh I wish these were all moved into pyconfig.h */
#if defined(PYCC_VACPP) && defined(PYOS_OS2)
#ifndef _MSC_VER
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#if defined(sun) && !defined(__SVR4)
/* SunOS 4.1.4 doesn't have prototypes for these: */
extern int rename(const char *, const char *);
#include <signal.h>
#include <errno.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h> /* For isatty() */
-#endif
-
/* GNU readline definitions */
#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
#include <readline/readline.h>
#include "Python.h"
#include <sys/resource.h>
#include <sys/time.h>
-#include <unistd.h>
#include <string.h>
#include <errno.h>
#endif
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
#include <string.h>
/*
#define FD_SETSIZE 512
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
#if defined(HAVE_POLL_H)
#include <poll.h>
#elif defined(HAVE_SYS_POLL_H)
#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
#include <fcntl.h>
static PyObject *
#include <process.h>
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#include <signal.h>
#ifndef SIG_ERR
#include "pythread.h"
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#if defined(PYCC_VACPP)
#include <types.h>
#include <io.h>
#define SOLARIS
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#endif
#include <sys/ioctl.h>
-#ifdef __BEOS__
-#include <unistd.h>
-#endif
-
/* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
* MDTR, MRI, and MRTS (appearantly used internally by some things
* defined as macros; these are not used here directly).
#include <io.h>
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_FTIME
#include <sys/timeb.h>
#if !defined(MS_WINDOWS) && !defined(PYOS_OS2)
#include <sys/types.h>
#endif /* DONT_HAVE_SYS_TYPES_H */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef MS_WIN32
#define fileno _fileno
/* can (almost fully) duplicate with _chsize, see file_truncate */
#include <sys/stat.h>
#include <string.h>
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#endif /* HAVE_UNISTD_H */
-
/* Search in some common locations for the associated Python libraries.
*
* Py_GetPath() tries to return a sensible Python module search path.
#include <stdio.h>
#include <string.h>
#include <signal.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
static int interrupted;
#include <ctype.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef RISCOS
#include "unixstuff.h"
#endif
#include <kernel/image.h>
#include <kernel/OS.h>
#include <stdlib.h>
-#include <unistd.h>
#include "Python.h"
#include "importdl.h"
extern int PyInitFrozenExtensions(void);
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h> /* For isatty() */
-#endif
-
-/* For isatty()'s proto. - [cjh] */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
/* Main program */
int
#include "macglue.h"
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include "eval.h"
#include "marshal.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#include "osdefs.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef MS_COREDLL
extern void *PyWin_DLLhModule;
/* A string loaded from the DLL at startup: */
which is included by this file dependent on config settings.
Stuff shared by all thread_*.h files is collected here. */
-#include "pyconfig.h"
+#include "Python.h"
/* pyconfig.h may or may not define DL_IMPORT */
#ifndef DL_IMPORT /* declarations for DLL import/export */
#endif
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef __DGUX
#define _USING_POSIX4A_DRAFT6
#endif
#include <stdlib.h>
#include <stdio.h>
-#include <unistd.h>
#include <errno.h>
#include </usr/include/thread.h>
#undef _POSIX_THREADS