Source

cpython / pyconfig.h.in

Author Commit Message Labels Comments Date
Martin von Löwis
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and STRICT_SYSV_CURSES when compiling curses module on HP/UX. Generalize access to _flags on systems where WINDOW is opaque. Fixes bugs #432497, #422265, and the curses parts of #467145 and #473150.
Branches
legacy-trunk
Guido van Rossum
SF patch #460805 by Chris Gonnerman: Support for unsetenv() This adds unsetenv to posix, and uses it in the __delitem__ method of os.environ. (XXX Should we change the preferred name for putenv to setenv, for consistency?)
Branches
legacy-trunk
Guido van Rossum
SF patch #462296: Add attributes to os.stat results; by Nick Mathewson. This is a big one, touching lots of files. Some of the platforms aren't tested yet. Briefly, this changes the return value of the os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the time functions localtime(), gmtime(), and strptime() from tuples into pseudo-sequences. When accessed as a sequence, they behave exactly as before. But they also have attributes like st_mtime or tm_y…
Branches
legacy-trunk
Guido van Rossum
Shut up warnings for setgroups() on Linux -- you have to #include <grp.h> it seems. This requires yet another configure test.
Branches
legacy-trunk
Martin von Löwis
Expose setgroups. Fixes feature request #468116.
Branches
legacy-trunk
Martin von Löwis
Do not define _POSIX_THREADS if unistd.h defines it. Check for pthread_sigmask before using it. Fixes remaining problem in #470781.
Branches
legacy-trunk
Martin von Löwis
Check for term.h and include it on non-ncurses system to get a declaration for tigetstr.
Branches
legacy-trunk
Martin von Löwis
Add chroot call. Implements feature #459267.
Branches
legacy-trunk
Martin von Löwis
Patch #462122: add readline startup and pre_event hooks.
Branches
legacy-trunk
Guido van Rossum
Improve threading on Solaris, according to SF patch #460269, submitted by bbrox@bbrox.org / lionel.ulmer@free.fr. This adds a configure check and if all goes well turns on the PTHREAD_SCOPE_SYSTEM thread attribute for new threads. This should remove the need to add tiny sleeps at the start of threads to allow other threads to be scheduled.
Branches
legacy-trunk
Guido van Rossum
This time (I hope) I've fixed largefile support on Linux (and Solaris, I expect) for real. The necessary symbols are defined once and for all, under the assumption that they won't harm elsewhere.
Branches
legacy-trunk
Martin von Löwis
Revert parts of patch #453627, documenting the resulting test failures instead.
Branches
legacy-trunk
Martin von Löwis
Move UnixWare 7 defines to acconfig.h, regenerate pyconfig.h.in.
Branches
legacy-trunk
Guido van Rossum
Changes to automatically enable large file support on some systems. I believe this works on Linux (tested both on a system with large file support and one without it), and it may work on Solaris 2.7. The changes are twofold: (1) The configure script now boldly tries to set the two symbols that are recommended (for Solaris and Linux), and then tries a test script that does some simple seeking without writing. (2) The _portable_{fseek,ftell} functions are a little more systematic in how they try the different large file support options: first try fseeko/ftello, but only if off_…
Branches
legacy-trunk
Martin von Löwis
Patch #453627: Define the following macros when compiling on a UnixWare 7.x system: SCO_ATAN2_BUG, SCO_ACCEPT_BUG, and STRICT_SYSV_CURSES. Work aroudn a bug in the SCO UnixWare atan2() implementation.
Branches
legacy-trunk
Martin von Löwis
Fix portability problems with glibc 2.0, as reported in #449157.
Branches
legacy-trunk
Martin von Löwis
Autotest for netpacket/packet.h, as it is not available on all Linux versions. Depend AF_PACKET on HAVE_NETPACKET_PACKET_H.
Branches
legacy-trunk
Martin von Löwis
Expose nl_langinfo through locale where available.
Branches
legacy-trunk
Martin von Löwis
Auto-detect hstrerror. Raise socket.herror in PyH_Error. Register the three exception classes in the module dictionary.
Branches
legacy-trunk
Martin von Löwis
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Branches
legacy-trunk