summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa).Ross Lagerwall2011-09-191-0/+3
| | |
* | | only compile xattrs on glibc (closes #12720)Benjamin Peterson2011-09-141-5/+9
| | |
* | | Use xattr functions from sys/xattr.h instead of attr/xattr.h (closes #12720)Benjamin Peterson2011-09-131-6/+6
| | | | | | | | | | | | sys/xattr.h is glibc while attr/xattr.h is a separate library.
* | | TypoJesus Cea2011-09-091-3/+3
| | |
* | | Yet another fix for #12763: test_posix failure on OpenIndianaJesus Cea2011-09-091-1/+7
| | |
* | | Close issue 12952: Solaris/Illumos (OpenIndiana) Scheduling policiesJesus Cea2011-09-091-1/+13
| | |
* | | Issue #12904: os.utime, os.futimes, os.lutimes, and os.futimesat now writeLarry Hastings2011-09-091-42/+110
| | | | | | | | | | | | atime and mtime with nanosecond precision on modern POSIX platforms.
* | | Issue #12871: sched_get_priority_(min|max) might not be defined even thoughCharles-François Natali2011-09-061-1/+7
| | | | | | | | | | | | | | | <sched.h> is available (most notably on OpenBSD when built without pthread): add an explicit configure check.
* | | expose linux extended file system attributes (closes #12720)Benjamin Peterson2011-09-011-0/+402
| | |
* | | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin2011-08-111-6/+4
| | | | | | | | | | | | The macro was introduced in #12724.
* | | typoBenjamin Peterson2011-08-091-1/+1
| | |
* | | merge 3.2Benjamin Peterson2011-08-041-2/+0
|\ \ \ | |/ /
| * | dosmodule is, thankfully, no moreBenjamin Peterson2011-08-041-2/+0
| | |
* | | fix arg stringsBenjamin Peterson2011-08-031-2/+2
| | |
* | | need NULL sentinelBenjamin Peterson2011-08-031-1/+1
| | |
* | | avoid warning when SchedParamType is not usedBenjamin Peterson2011-08-021-0/+2
| | |
* | | only add sched_param if it is initializedBenjamin Peterson2011-08-021-0/+3
| | |
* | | I have been spoiled by chained comparisons in pythonBenjamin Peterson2011-08-021-1/+1
| | |
* | | comparing on number of cpus makes more senseBenjamin Peterson2011-08-021-1/+1
| | |
* | | fix sched definesBenjamin Peterson2011-08-021-1/+1
| | |
* | | check individually for some for sched_ functionsBenjamin Peterson2011-08-021-0/+30
| | |
* | | make_new_cpu_set takes the number of cpusBenjamin Peterson2011-08-021-1/+1
| | |
* | | sched.h can exist without sched affinity supportBenjamin Peterson2011-08-021-0/+8
| | |
* | | expose sched.h functions (closes #12655)Benjamin Peterson2011-08-021-0/+584
| | |
* | | Issue #12442: add shutil.disk_usage()Giampaolo Rodola'2011-07-011-0/+27
| | |
* | | (Merge 3.2) posixmodule.c: fix function name in argument parsingVictor Stinner2011-06-171-9/+9
|\ \ \ | |/ / | | | | | | | | | | | | Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces.
| * | posixmodule.c: fix function name in argument parsingVictor Stinner2011-06-171-22/+22
| | | | | | | | | | | | | | | | | | Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces.
* | | Merge 3.2 - update to the fix for #12084Brian Curtin2011-06-141-10/+11
|\ \ \ | |/ /
| * | Correct completely broken os.stat behavior on Windows XP.Brian Curtin2011-06-141-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After 1a3e8db28d49, Windows XP could not os.stat at all due to raising immediately when GetFinalPathNameByHandle wasn't available (pre-Vista). The proper behavior in that situation is to just not attempt a traversal rather than outright rejecting. This change additionally handles a failed malloc by setting the error code and returning false. Patch by Hirokazu Yamamoto.
| * | branch merge?Brian Curtin2011-06-131-0/+40
| |\ \
* | \ \ branch mergeBrian Curtin2011-06-131-95/+142
|\ \ \ \
| * \ \ \ Merge from 3.2 for Issue #12084.Brian Curtin2011-06-131-95/+142
| |\ \ \ \ | | |/ / /
| | * | | Fix #12084. os.stat on Windows wasn't working properly with relative symlinks.Brian Curtin2011-06-131-96/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use of DeviceIoControl to obtain the symlink path via the reparse tag was removed. The code now uses GetFinalPathNameByHandle in the case of a symbolic link and works properly given the added test which creates a symbolic link and calls os.stat on it from multiple locations. Victor Stinner also noticed an issue with os.lstat following the os.stat code path when being passed bytes. The posix_lstat function was adjusted to properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
* | | | | Issue #9344: Add os.getgrouplist().Ross Lagerwall2011-06-101-0/+67
| | | | |
* | | | | Merge 3.2Brian Curtin2011-06-091-1/+4
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | Correction to 88e318166eaf - Issue #11583Brian Curtin2011-06-091-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than wrapping the C _isdir function in a Python function, just import the C _isdir function directly. Additionally, add in the docstring which was left out.
* | | | | Fix #11583. Changed os.path.isdir to use GetFileAttributes instead of os.stat.Brian Curtin2011-06-081-0/+37
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By changing to the Windows GetFileAttributes API in nt._isdir we can figure out if the path is a directory without opening the file via os.stat. This has the minor benefit of speeding up os.path.isdir by at least 2x for regular files and 10-15x improvements were seen on symbolic links (which opened the file multiple times during os.stat). Since os.path.isdir is used in several places on interpreter startup, we get a minor speedup in startup time.
| * | | | Fix #11583. Changed os.path.isdir to use GetFileAttributes instead of os.stat.Brian Curtin2011-06-081-0/+37
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By changing to the Windows GetFileAttributes API in nt._isdir we can figure out if the path is a directory without opening the file via os.stat. This has the minor benefit of speeding up os.path.isdir by at least 2x for regular files and 10-15x improvements were seen on symbolic links (which opened the file multiple times during os.stat). Since os.path.isdir is used in several places on interpreter startup, we get a minor speedup in startup time.
* | | | Issue #12196: Make os.pipe2() flags argument mandatory.Charles-François Natali2011-06-061-8/+9
| |/ / |/| |
* | | Issue #12196: Add pipe2() to the os module.Charles-François Natali2011-05-291-0/+28
| | |
* | | Issue #6501: os.device_encoding() returns None on Windows if the applicationVictor Stinner2011-05-231-10/+13
| | | | | | | | | | | | has no console.
* | | Issue #12105: Add O_CLOEXEC to the os module.Charles-François Natali2011-05-221-0/+3
| | |
* | | Issue #11918: OS/2 and VMS are no more supported because of the lack ofVictor Stinner2011-04-261-0/+2
| | | | | | | | | | | | maintainer.
* | | Issue #11382: Trivial system calls, such as dup() or pipe(), needn'tAntoine Pitrou2011-04-231-14/+0
| | | | | | | | | | | | release the GIL. Patch by Charles-François Natali.
* | | os.sendfile(): on Linux if offset parameter is passed as NULL we were ↵Giampaolo Rodola'2011-04-191-3/+2
| | | | | | | | | | | | erroneously returning a (bytes_sent, None) tuple instead of bytes_sent
* | | Fix refleak introduced by #10812.Ross Lagerwall2011-03-191-13/+22
| | |
* | | Issue #11592: Fix compilation warnings in os module.Ross Lagerwall2011-03-181-4/+4
| | |
* | | Issue #10812: Revert os.lseek change.Ross Lagerwall2011-03-171-1/+7
| | |
* | | Issue #10812: Add some extra posix functions to the os module.Ross Lagerwall2011-03-171-152/+812
| | |
* | | #11515: Merge with 3.2.Ezio Melotti2011-03-151-1/+1
|\ \ \ | |/ /