Larry Hastings
a6cc551502
Issue #22631 : Added Linux-specific socket constant CAN_RAW_FD_FRAMES.
...
Patch courtesy of Joe Jevnik.
2015-04-13 17:48:40 -04:00
Victor Stinner
9eb57c5fa5
Issue #22181 : The availability of the getrandom() is now checked in configure,
...
and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define.
Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
2015-03-19 22:21:49 +01:00
Victor Stinner
35a97c0bed
Issue #22524 : Fix os.scandir() for platforms which don't have a d_type field in
...
the dirent structure (ex: OpenIndiana).
2015-03-08 02:59:09 +01:00
Victor Stinner
923e06f77d
Issue #22038 , configure: HAVE_STD_ATOMIC now also check that "atomic_int" and
...
"_Atomic void*" types work. Change needed on FreeBSD 10 where stdatomic.h is
available but the compiler fails on "_Atomic void*" with "_Atomic cannot be
applied to incomplete type 'void'".
2015-01-14 16:01:46 +01:00
Victor Stinner
4f5366e65a
Issue #22038 : pyatomic.h now uses stdatomic.h or GCC built-in functions for
...
atomic memory access if available. Patch written by Vitor de Lima and Gustavo
Temple.
2015-01-09 02:13:19 +01:00
Victor Stinner
4d6a3d6c01
Issue #22585 : On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
...
instead of reading /dev/urandom, to get pseudo-random bytes.
2014-12-21 01:16:38 +01:00
Victor Stinner
beeb512fe1
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation.
Patch written by Bernard Spil.
2014-11-28 13:28:25 +01:00
Benjamin Peterson
d1e22ba7db
only support append_history if readline has it
2014-11-26 14:35:12 -06:00
Benjamin Peterson
8bdeb1672c
support setting fpu precision on m68k ( closes #20904 )
...
Patch from Andreas Schwab.
2014-04-17 00:00:31 -04:00
Christian Heimes
647cd87169
Issue #19922 : define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
...
for mbrtowc().
2013-12-07 23:39:33 +01:00
Christian Heimes
985ecdcfc2
ssue #19183 : Implement PEP 456 'secure and interchangeable hash algorithm'.
...
Python now uses SipHash24 on all major platforms.
2013-11-20 11:46:18 +01:00
Christian Heimes
b7bd5df809
Issue #16595 : Add prlimit() to resource module
...
prlimit() is a Linux specific command that combines setrlimit, getrlimit and can set the limit
of other processes.
2013-10-22 11:21:54 +02:00
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
...
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
2013-08-28 00:53:59 +02:00
Benjamin Peterson
3a7dffa4ce
remove support for compiling on systems without getcwd()
...
Do we need a fallback implementation of getcwd() from 1991 that claims to
support "really old Unix systems"? I don't think so.
2013-08-23 21:01:48 -05:00
Christian Heimes
6acbe2aaa3
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:34 +02:00
Christian Heimes
f77b4b20e9
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:05 +02:00
Christian Heimes
360b89ca5e
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
2013-06-18 13:22:37 +02:00
Christian Heimes
f0400baba8
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
2013-06-18 13:22:17 +02:00
Benjamin Peterson
f6b687fcd4
remove support GCC PyArg_ParseTuple format patch, last seen in 2006
2013-05-12 23:08:28 -05:00
Benjamin Peterson
feb5149244
-Wformat is needed by gcc 4.8 ( closes #17547 )
2013-05-11 13:00:05 -05:00
Victor Stinner
cd777eaf53
Issue #17615 : Comparing two Unicode strings now uses wmemcmp() when possible
...
wmemcmp() is twice faster than a dummy loop (342 usec vs 744 usec) on Fedora
18/x86_64, GCC 4.7.2.
2013-04-08 22:43:44 +02:00
Charles-François Natali
773e42dff8
Issue #15359 : Add CAN_BCM protocol support to the socket module. Patch by Brian
...
Thorne.
2013-02-05 19:42:01 +01:00
Mark Dickinson
6e61d18891
Issue 10052: merge fix from 3.2.
2012-12-02 13:21:37 +00:00
Mark Dickinson
ce31f66a6d
Issue 10052: fix failed uint32_t / uint64_t / int32_t / int64_t detection on some platforms.
2012-12-02 13:20:22 +00:00
Mark Dickinson
983bc16c15
Issue 10052: fix failed uint32_t / uint64_t / int32_t / int64_t detection on some platforms.
2012-12-02 12:11:38 +00:00
doko@ubuntu.com
b457b9be4d
- Issue #3754 : Fix /dev/ptmx, /dev/ptc file checks for cross builds,
...
require values set in CONFIG_SITE.
2012-06-30 19:28:16 +02:00
Stefan Krah
1919b7e72b
Issue #7652 : Integrate the decimal floating point libmpdec library to speed
...
up the decimal module. Performance gains of the new C implementation are
between 12x and 80x, depending on the application.
2012-03-21 18:25:23 +01:00
Matthias Klose
5ce31cc4fc
merge 3.2
2012-03-14 23:17:31 +01:00
Matthias Klose
d83be23689
merge 3.1
2012-03-14 23:14:35 +01:00
Matthias Klose
0f4c16e29c
- rename configure.in to configure.ac
...
- change references from configure.in to configure.ac
2012-03-14 23:10:15 +01:00
Antoine Pitrou
bcf2b59fb5
Issue #13609 : Add two functions to query the terminal size:
...
os.get_terminal_size (low level) and shutil.get_terminal_size (high level).
Patch by Zbigniew Jędrzejewski-Szmek.
2012-02-08 23:28:36 +01:00
Martin v. Löwis
9d6c66933a
Issue #13777 : Add PF_SYSTEM sockets on OS X.
...
Patch by Michael Goderbauer.
2012-02-03 17:44:58 +01:00
Gregory P. Smith
1577cf758b
Improve the test for dirfd(). Some systems #define it rather than
...
have it as a library function.
2012-01-21 18:21:56 -08:00
Gregory P. Smith
df300d5062
Improve the test for dirfd(), some systems #define it rather than have
...
an actual function.
2012-01-21 18:20:15 -08:00
Gregory P. Smith
d635af5a61
Fixes issue #8052 : The posix subprocess module's close_fds behavior was
...
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().
It now closes only the open fds when it is possible to safely determine what
those are.
2012-01-21 14:39:29 -08:00
Gregory P. Smith
8facece99a
Fixes issue #8052 : The posix subprocess module's close_fds behavior was
...
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().
It now closes only the open fds when it is possible to safely determine what
those are.
2012-01-21 14:01:08 -08:00
Gregory P. Smith
30c8a11836
Add a test for the dirfd library function (to be used in an upcoming
...
change). configure will be regenerated in the next commit.
2012-01-16 02:09:11 -08:00
Gregory P. Smith
4188441f96
Test for the dirfd library function (for use in some upcoming
...
changes).
2012-01-16 02:05:23 -08:00
Benjamin Peterson
95c16629d3
fix for old kernels which don't have epoll_create1
2011-12-27 15:36:32 -06:00
Antoine Pitrou
f0effe6379
Better resolution for issue #11849 : Ensure that free()d memory arenas are really released
...
on POSIX systems supporting anonymous memory mappings. Patch by Charles-François Natali.
2011-11-26 01:11:02 +01:00
Victor Stinner
984890fcbb
Close #13415 : Test in configure if unsetenv() has a return value or not.
...
Patch written by Charles-François Natali.
2011-11-24 13:53:38 +01:00
Jesus Cea
d8b9ae6e8f
Issue #6397 : Support '/dev/poll' polling objects in select module, under Solaris & derivatives.
2011-11-14 19:07:41 +01:00
Victor Stinner
e0be423297
Close #10278 : Add clock_getres(), clock_gettime() and CLOCK_xxx constants to
...
the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic
clock
2011-10-25 13:06:09 +02:00
Antoine Pitrou
2c3b2302ad
Issue #13134 : optimize finding single-character strings using memchr
2011-10-11 20:29:21 +02:00
Charles-François Natali
47413c1171
Issue #10141 : socket: add SocketCAN (PF_CAN) support. Initial patch by Matthias
...
Fuchs, updated by Tiago Gonçalves.
2011-10-06 19:47:44 +02:00
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
2011-09-28 07:41:54 +02:00
Benjamin Peterson
b77fe17320
Use xattr functions from sys/xattr.h instead of attr/xattr.h ( closes #12720 )
...
sys/xattr.h is glibc while attr/xattr.h is a separate library.
2011-09-13 17:20:47 -04:00
Charles-François Natali
ea0d5fcb4a
Issue #12871 : sched_get_priority_(min|max) might not be defined even though
...
<sched.h> is available (most notably on OpenBSD when built without pthread):
add an explicit configure check.
2011-09-06 19:03:35 +02:00
Benjamin Peterson
799bd80d8a
expose linux extended file system attributes ( closes #12720 )
2011-08-31 22:15:17 -04:00
Benjamin Peterson
c5fce4ded2
check individually for some for sched_ functions
2011-08-02 18:07:32 -05:00
Benjamin Peterson
2740af8cc4
sched.h can exist without sched affinity support
2011-08-02 17:41:34 -05:00
Benjamin Peterson
94b580d423
expose sched.h functions ( closes #12655 )
2011-08-02 17:30:04 -05:00
Charles-François Natali
6613c18ea2
Issue #13415 : Test in configure if unsetenv() has a return value or not.
2011-11-27 12:41:06 +01:00
Antoine Pitrou
370092071b
Issue #11863 : Remove support for legacy systems deprecated in Python 3.2
...
(following PEP 11). These systems are systems using Mach C Threads,
SunOS lightweight processes, GNU pth threads and IRIX threads.
2011-07-08 23:47:50 +02:00
Ned Deily
8b56c4b1b8
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-28 00:13:01 -07:00
Ned Deily
3eb67d58d6
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-28 00:00:28 -07:00
Ross Lagerwall
bc808224b6
Issue #12303 : Add sigwaitinfo() and sigtimedwait() to the signal module.
2011-06-25 12:13:40 +02:00
Ross Lagerwall
b0ae53d8a0
Issue #9344 : Add os.getgrouplist().
2011-06-10 07:30:30 +02:00
Charles-François Natali
daafdd5bea
Issue #12196 : Add pipe2() to the os module.
2011-05-29 20:07:40 +02:00
Nadeem Vawda
d74b5936a1
Fix _socket compilation failures on non-Linux buildbots (cf. issue #1746656 ).
2011-05-15 13:16:22 +02:00
Gregory P. Smith
5ed2e779f1
Issue #1746656 : Add if_nameindex, if_nametoindex, if_indextoname
...
methods to the socket module.
2011-05-15 00:26:45 -07:00
Benjamin Peterson
316e02be83
run autoreconf
2011-05-10 15:01:56 -05:00
Victor Stinner
8f9f8d612a
Issue #11888 : Use system log2() when available
...
I expect the system libc to use more accurate functions than Python. The GNU
libc uses for example FYL2X and FYL2XP1 hardware instructions on Intel FPU.
2011-05-09 12:45:41 +02:00
Victor Stinner
b3e7219abf
Issue #8407 : Add pthread_kill(), sigpending() and sigwait() functions to the
...
signal module.
2011-05-08 01:46:11 +02:00
Antoine Pitrou
6f26be09e0
Issue #11849 : Make it more likely for the system allocator to release
...
free()d memory arenas on glibc-based systems. Patch by Charles-François
Natali.
2011-05-03 18:18:59 +02:00
Victor Stinner
024e37adcc
Issue #11393 : Add the new faulthandler module
2011-03-31 01:31:06 +02:00
Ross Lagerwall
7807c3545d
Issue #10812 : Add some extra posix functions to the os module.
2011-03-17 20:20:30 +02:00
Jesus Cea
736e7fc0f6
Issue #11495 : OSF support is eliminated. It was deprecated in Python 3.2
2011-03-14 17:36:54 +01:00
Antoine Pitrou
061cfb5258
Issue #10866 : Add socket.sethostname(). Initial patch by Ross Lagerwall.
2011-02-28 22:25:22 +00:00
Antoine Pitrou
5c2f4640a7
Fix compilation warning in Modules/posixmodule.c.
2011-02-26 00:22:09 +00:00
Antoine Pitrou
8250e23abd
Issue #10755 : Add the posix.fdlistdir() function. Patch by Ross Lagerwall.
2011-02-25 23:41:16 +00:00
Antoine Pitrou
f65132de3d
Issue #4761 : Add the *at() family of functions (openat(), etc.) to the posix
...
module. Patch by Ross Lagerwall.
2011-02-25 23:25:17 +00:00
Giampaolo Rodolà
18e8bcb289
Issue 10784: adds os.getpriority() and os.setpriority() functions.
2011-02-25 20:57:54 +00:00
Giampaolo Rodolà
c9c2c8b034
Issue 10882: add os.sendfile(). (patch provided by Ross Lagerwall)
2011-02-25 14:39:16 +00:00
Benjamin Peterson
83a0efd303
run autoconf
2011-02-25 14:01:05 +00:00
Martin v. Löwis
d1fc34d563
Build and install libpython3.so.
2010-12-30 14:55:47 +00:00
Mark Dickinson
ec0d355836
Regenerated configure and pyconfig.h.in.
2010-11-20 10:29:12 +00:00
Benjamin Peterson
bdf5effc6c
add 'no' output to --with-system-ffi
2010-10-31 16:55:05 +00:00
Benjamin Peterson
d8d835bd1d
run autoconf
2010-10-15 23:14:46 +00:00
Antoine Pitrou
b1c5496738
Issue #7523 : Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
...
where supported by the system. Patch by Nikita Vetoshkin.
2010-10-14 15:05:38 +00:00
Amaury Forgeot d'Arc
feb7307db4
#9210 : remove --with-wctype-functions configure option.
...
The internal unicode database is now always used.
(after 5 years: see
http://mail.python.org/pipermail/python-dev/2004-December/050193.html
)
2010-09-12 22:42:57 +00:00
Antoine Pitrou
15db1443ae
Merged revisions 84584 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84584 | antoine.pitrou | 2010-09-07 16:52:42 +0200 (mar., 07 sept. 2010) | 4 lines
Issue #4026 : Make the fcntl extension build under AIX.
Patch by Sébastien Sablé.
........
2010-09-07 14:58:50 +00:00
Antoine Pitrou
a300007c6e
Issue #4026 : Make the fcntl extension build under AIX.
...
Patch by Sébastien Sablé.
2010-09-07 14:52:42 +00:00
Benjamin Peterson
d7f73e913d
run autoreconf
2010-09-05 00:09:07 +00:00
Georg Brandl
01669309d3
Revert unintended change from r84458.
2010-09-03 22:29:08 +00:00
Barry Warsaw
35f3a2cbeb
PEP 3149 is accepted.
...
http://mail.python.org/pipermail/python-dev/2010-September/103408.html
2010-09-03 18:30:30 +00:00
Daniel Stutzbach
a606faa491
Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers other than MSC
2010-08-31 19:51:07 +00:00
Antoine Pitrou
042b128f58
Issue #9203 : Computed gotos are now enabled by default on supported
...
compilers (which are detected by the configure script). They can still
be disable selectively by specifying --without-computed-gotos.
2010-08-13 21:15:58 +00:00
Benjamin Peterson
f7155a38cd
run autoreconf
2010-06-21 16:51:22 +00:00
Jean-Paul Calderone
6ed7ac48ec
Revert r82089. Commit was intended for a branch.
2010-06-19 19:58:37 +00:00
Jean-Paul Calderone
867c435460
merge forward from the python 2.x branch
2010-06-19 19:54:48 +00:00
Matthias Klose
bada4c39a1
configure.in: Avoid autoconf warning: Assume C89 semantics that
...
RETSIGTYPE is always void (issue #8510 ).
2010-04-25 21:18:48 +00:00
Matthias Klose
b962171414
- Issue #8510 : Update to autoconf2.65.
2010-04-24 17:59:49 +00:00
Ronald Oussoren
755740f3ea
Forward port a number of OSX bugfixes from the trunk to 3.2
2010-02-07 19:56:39 +00:00
Benjamin Peterson
05159c4a7b
Merged revisions 76644 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76644 | benjamin.peterson | 2009-12-02 20:52:39 -0600 (Wed, 02 Dec 2009) | 4 lines
disable pymalloc tricks with the --with-valgrind option #2422
Patch from James Henstridge.
........
2009-12-03 03:01:27 +00:00
Antoine Pitrou
b7572f08f4
Merged revisions 76636 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76636 | antoine.pitrou | 2009-12-02 21:37:54 +0100 (mer., 02 déc. 2009) | 5 lines
Issue #7333 : The `posix` module gains an `initgroups()` function providing
access to the initgroups(3) C library call on Unix systems which implement
it. Patch by Jean-Paul Calderone.
........
2009-12-02 20:46:48 +00:00
Mark Dickinson
875ada4b0f
Merged revisions 76566 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r76566 | mark.dickinson | 2009-11-28 12:48:43 +0000 (Sat, 28 Nov 2009) | 18 lines
Merged revisions 76432,76558 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76432 | mark.dickinson | 2009-11-20 19:30:22 +0000 (Fri, 20 Nov 2009) | 5 lines
Issue #7272 : Add configure test to detect whether sem_open works
properly, and use this to skip test_multiprocessing on platforms
where sem_open raises a signal. This should fix some FreeBSD buildbot
failures for test_multiprocessing.
........
r76558 | mark.dickinson | 2009-11-28 10:44:20 +0000 (Sat, 28 Nov 2009) | 4 lines
Issue #7272 , continued: don't re-use existing HAVE_BROKEN_POSIX_SEMAPHORES
to indicate that semaphores aren't available; define a new variable
POSIX_SEMAPHORES_NOT_ENABLED instead.
........
................
2009-11-28 12:52:39 +00:00
Mark Dickinson
a614f042a2
Merged revisions 76432,76558 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76432 | mark.dickinson | 2009-11-20 19:30:22 +0000 (Fri, 20 Nov 2009) | 5 lines
Issue #7272 : Add configure test to detect whether sem_open works
properly, and use this to skip test_multiprocessing on platforms
where sem_open raises a signal. This should fix some FreeBSD buildbot
failures for test_multiprocessing.
........
r76558 | mark.dickinson | 2009-11-28 10:44:20 +0000 (Sat, 28 Nov 2009) | 4 lines
Issue #7272 , continued: don't re-use existing HAVE_BROKEN_POSIX_SEMAPHORES
to indicate that semaphores aren't available; define a new variable
POSIX_SEMAPHORES_NOT_ENABLED instead.
........
2009-11-28 12:48:43 +00:00
Martin v. Löwis
7aed61ae46
Merged revisions 76550 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76550 | martin.v.loewis | 2009-11-27 14:56:01 +0100 (Fr, 27 Nov 2009) | 2 lines
Issue #6508 : Add posix.{getresuid,getresgid,setresuid,setresgid}.
........
2009-11-27 14:09:49 +00:00
Mark Dickinson
6ce4a9a9f2
Merged revisions 76308 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76308 | mark.dickinson | 2009-11-15 16:18:58 +0000 (Sun, 15 Nov 2009) | 3 lines
Issue #7228 : Add '%lld' and '%llu' support to PyFormat_FromString,
PyFormat_FromStringV and PyErr_Format.
........
2009-11-16 17:00:11 +00:00