summaryrefslogtreecommitdiff
path: root/sendfilemodule.c
Commit message (Collapse)AuthorAgeFilesLines
* reindent + little refactoringGiampaolo Rodola2012-01-101-7/+7
|
* rename project py-sendfile -> pysendfileGiampaolo Rodola2012-01-101-1/+1
|
* rewrite Python initialization C code to fix compilation warnings; used ↵Giampaolo Rodola2012-01-051-29/+38
| | | | http://docs.python.org/py3k/howto/cporting.html#module-initialization-and-state as an example.
* instead of attempting to import the module in setup.pt to figure out whether ↵Giampaolo Rodola2012-01-051-8/+13
| | | | the platform is supported, use #error pre processor directive in the C code
* BSD systems: do not raise exception if errno == EBUSY and some data has been ↵Giampaolo Rodola2012-01-041-2/+3
| | | | sent; instead, return the bytes just being sent
* update LICENSEGiampaolo Rodola2012-01-031-1/+1
|
* use Py_ssize_t on *BSDGiampaolo Rodola2012-01-031-5/+5
|
* drop support for python 2.4: we need to use Py_ssize_t type because the ↵Giampaolo Rodola2012-01-031-16/+7
| | | | current implementation is broken
* get rid of socket constants which are no longer neededGiampaolo Rodola2012-01-031-7/+0
|
* #11: get rid of header/trailer on Linux via TCP_CORK; thinking back it's not ↵Giampaolo Rodola2012-01-031-76/+8
| | | | a good idea as we're messing with C types when returning
* remove flags argument on linuxGiampaolo Rodola2011-04-211-5/+4
|
* raise platform not supported in setup.ptGiampaolo Rodola2011-04-211-6/+0
|
* Linux/Solaris: use 'n' arg for Py_BuildValue which is compatible with ↵Giampaolo Rodola2011-04-201-3/+10
| | | | ssize_t C type. On py versions < 2.5 cast to long and return long.
* on Solaris return long instead of intGiampaolo Rodola2011-04-201-1/+2
|
* Add support for offset = None on Linux, meaning the offset is automatically ↵Giampaolo Rodola2011-04-191-10/+14
| | | | updated by sendfile() call
* finally use _parse_off_t() to figure out whether using long or long-long for ↵Giampaolo Rodola2011-04-181-26/+30
| | | | the offset depending on platform large file support
* C types SolarisGiampaolo Rodola2011-04-181-3/+3
|
* C arg types againGiampaolo Rodola2011-04-181-3/+7
|
* another data type change attemptGiampaolo Rodola2011-04-181-2/+6
|
* revert last 2 commitsGiampaolo Rodola2011-04-181-4/+16
|
* again change Pt_ArgParseTyple input typesGiampaolo Rodola2011-04-181-12/+4
|
* BSD: fix large file supportGiampaolo Rodola2011-04-181-4/+0
|
* Fix some C warnings; fix python 2.4 compatibility broke in previous commitsGiampaolo Rodola2011-04-181-25/+10
|
* BSD/OSX - PyPargseArg: use #l or #L depending on large file supportGiampaolo Rodola2011-04-181-16/+21
|
* Linux - PyPargseArg: use #l or #L depending on large file supportGiampaolo Rodola2011-04-171-15/+20
|
* SunOS - PyPargseArg: use #l or #L depending on large file supportGiampaolo Rodola2011-04-171-1/+8
|
* Fix #12: add SunOS supportGiampaolo Rodola2011-04-171-7/+27
|
* improved if statementGiampaolo Rodola2011-04-161-2/+1
|
* Py_BEGIN/END_ALLOW_THREADS around getsockopt(), setsockopt(), send()Giampaolo Rodola2011-04-161-0/+8
|
* Linux: when sending header/trailer and send() return 0 raise EAGAINGiampaolo Rodola2011-04-161-3/+15
|
* - Linux: add error handling for getsockopt() and setsockopt()Giampaolo Rodola2011-04-161-16/+14
| | | | | | - test for non socket fd - test suite now automatically remotes test files on interpreter exit
* fix 11: add header/trailer support for LinuxGiampaolo Rodola2011-04-161-7/+63
|
* OSX: redefine sf_hdtr structure to make it work on Python 2.5 and lowerGiampaolo Rodola2011-04-161-0/+9
|
* be more explicit in sf_hdtr usageGiampaolo Rodola2011-04-161-1/+5
|
* rename headers->header, trailers->trailerGiampaolo Rodola2011-04-161-5/+5
|
* make it work on OSX againGiampaolo Rodola2011-04-161-0/+12
|
* change header/trailer type: make them strings instead of sequencesGiampaolo Rodola2011-04-151-103/+30
|
* Remove Py_buffer interface usage to make the module work on python versions ↵Giampaolo Rodola2011-04-151-92/+55
| | | | < 2.6
* fix OSX test_headers failureGiampaolo Rodola2011-04-081-9/+13
|
* add OSX support (test_headers is failing)Giampaolo Rodola2011-04-081-10/+40
|
* change license to MIT; update setup.py metadata and version.Giampaolo Rodola2011-04-081-31/+44
|
* raise NotImplementedError if platform is not supportedGiampaolo Rodola2011-04-061-2/+18
|
* return just the number of bytes sent instead of a (bsent, offset) tuple (BSD ↵Giampaolo Rodola2011-02-091-7/+12
| | | | and AIX).
* return just the number of bytes sent instead of a (bsent, offset) tuple.Giampaolo Rodola2011-02-091-9/+8
|
* update module docstringGiampaolo Rodola2011-02-071-30/+17
|
* fix some compiler warningsGiampaolo Rodola2011-02-071-10/+0
|
* set svn prosetGiampaolo Rodola2011-02-071-7/+10
|
* fix issue #6: add FreeBSD constants to use with 'flags' argGiampaolo Rodola2011-02-071-0/+20
|
* fix py3 tests on BSDGiampaolo Rodola2011-02-071-1/+1
|
* port C extension to python 3Giampaolo Rodola2011-02-061-18/+62
|