summaryrefslogtreecommitdiff
path: root/Modules/ossaudiodev.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45434: pyport.h no longer includes <stdlib.h> (GH-28914)Victor Stinner2021-10-131-0/+1
| | | | | Include <stdlib.h> explicitly in C files. Python.h includes <wchar.h>.
* bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587)Victor Stinner2020-12-011-2/+2
| | | | | | | | | No longer use deprecated aliases to functions: * Replace PyObject_MALLOC() with PyObject_Malloc() * Replace PyObject_REALLOC() with PyObject_Realloc() * Replace PyObject_FREE() with PyObject_Free() * Replace PyObject_Del() with PyObject_Free() * Replace PyObject_DEL() with PyObject_Free()
* bpo-40268: Remove unused structmember.h includes (GH-19530)Victor Stinner2020-04-151-1/+1
| | | | | | If only offsetof() is needed: include stddef.h instead. When structmember.h is used, add a comment explaining that PyMemberDef is used.
* bpo-39582: ossaudiodev module update helpers signature for ioctl calls. ↵David CARLIER2020-03-141-3/+3
| | | | (GH-18412)
* Remove a dead comment from ossaudiodev.c (#15346)Brett Cannon2019-08-201-2/+0
|
* bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)Jeroen Demeyer2019-07-081-1/+1
|
* bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵Jeroen Demeyer2019-05-301-4/+4
| | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async
* bpo-34740: Get rid of tp_getattro in ossaudiodev.oss_audio_device. (GH-9421)Serhiy Storchaka2018-10-041-35/+34
| | | Use tp_members and tp_getset instead.
* Fix misleading mentions of tp_size in comments (GH-9093)Peter Eisentraut2018-09-101-2/+2
| | | | Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.
* Add the const qualifier to "char *" variables that refer to literal strings. ↵Serhiy Storchaka2017-11-111-4/+4
| | | | (#4370)
* bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)Serhiy Storchaka2017-04-161-20/+20
|
* Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-231-10/+5
| | | | possible. Patch is writen with Coccinelle.
* Issue #28715: Added error checks for PyUnicode_AsUTF8().Serhiy Storchaka2016-11-201-3/+6
|\
| * Issue #28715: Added error checks for PyUnicode_AsUTF8().Serhiy Storchaka2016-11-201-3/+6
| |
* | more linux -> __linux__Benjamin Peterson2016-09-071-1/+1
| |
* | Issue #26854: Android has a different include path for soundcard.h.Stefan Krah2016-04-261-0/+4
|/
* Issue #23709, #23001: ossaudiodev now uses Py_ssize_t for sizes instead of intVictor Stinner2015-03-201-6/+7
| | | | | The module is now also "SSIZE_T clean" (for PyArg_Parse...() functions) since it switched to Py_buffer ("y*" argument format).
* Issue #23001: Fix typoVictor Stinner2015-03-201-1/+1
|
* Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, andSerhiy Storchaka2015-03-201-9/+19
| | | | | codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too.
* Issue #23709: The ossaudiodev module now retries read/write when interrupted byVictor Stinner2015-03-201-28/+22
| | | | | | a signal (PEP 475). Use he new _Py_read() and _Py_write() functions.
* Issue #23694: Enhance _Py_open(), it now raises exceptionsVictor Stinner2015-03-181-7/+2
| | | | | | | | * _Py_open() now raises exceptions on error. If open() fails, it raises an OSError with the filename. * _Py_open() now releases the GIL while calling open() * Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not held
* Issue #22369: Change "context manager protocol" to "context management ↵Serhiy Storchaka2014-09-101-2/+2
| | | | protocol".
* Issue #16404: Add checks for return value of PyLong_FromLong() inSerhiy Storchaka2013-12-171-8/+1
|\ | | | | | | | | sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
| * Issue #16404: Add checks for return value of PyLong_FromLong() inSerhiy Storchaka2013-12-171-8/+1
| | | | | | | | | | sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-281-2/+5
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | Use strncat() instead of strcat() to silence some warnings.Christian Heimes2013-07-201-3/+3
|/ | | | CID 486616, CID 486617, CID 486615
* Merge 3.2, Issue #17047: remove doubled words found in 2.7 to 3.4Terry Jan Reedy2013-03-111-1/+1
|\ | | | | | | Modules/*, as reported by Serhiy Storchaka and Matthew Barnett.
| * Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,Terry Jan Reedy2013-03-111-1/+1
| | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-1/+3
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by ThomasCharles-François Natali2011-09-291-0/+1
|\ \ | |/ | | | | Jarosch.
| * Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by ThomasCharles-François Natali2011-09-291-0/+1
| | | | | | | | Jarosch.
* | Use the new Py_ARRAY_LENGTH macroVictor Stinner2011-09-291-3/+3
| |
* | Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali2011-08-281-0/+5
|\ \ | |/ | | | | greater than FD_SETSIZE.
| * Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali2011-08-281-0/+5
| | | | | | | | greater than FD_SETSIZE.
* | Issue #12287: In ossaudiodev, check that the device isn't closed in severalCharles-François Natali2011-06-111-0/+91
|/ | | | methods.
* These are true PyCFunctions, after adding the second argument to oss_self, ↵Georg Brandl2010-10-241-5/+5
| | | | no need to cast.
* Add casts (one needed, one for consistency).Georg Brandl2010-10-241-4/+4
|
* #6518: enable context manager protocol for ossaudiodev types.Georg Brandl2010-10-231-0/+25
|
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-13/+13
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Issue #8139: ossaudiodev didn't initialize its types properly, thereforeAntoine Pitrou2010-03-231-1/+7
| | | | | some methods (such as oss_mixer_device.fileno()) were not available. Initial patch by Bertrand Janin.
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-2/+2
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* fixes deferred/release blocker issue #3797: Fixed the dbm, marshal, mmap,Gregory P. Smith2008-09-061-3/+3
| | | | | ossaudiodev, & winreg modules to return bytes objects instead of bytearray objects.
* Rename PyUnicode_AsString -> _PyUnicode_AsString andMarc-André Lemburg2008-08-071-1/+1
| | | | | | | | | PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark them for interpreter internal use only. We'll have to rework these APIs or create new ones for the purpose of accessing the UTF-8 representation of Unicode objects for 3.1.
* #3247: get rid of Py_FindMethodAmaury Forgeot d'Arc2008-07-021-10/+45
| | | | Third step: unix-only modules. Really remove the function this time.
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-6/+19
|
* Renamed PyBytes to PyByteArrayChristian Heimes2008-05-261-3/+3
|
* Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵Christian Heimes2007-12-021-12/+12
| | | | in intobject.h
* Use unicodeNeal Norwitz2007-08-261-11/+11
|
* Merged revisions 56467-56482 via svnmerge fromMartin v. Löwis2007-07-211-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ................ r56477 | martin.v.loewis | 2007-07-21 09:04:38 +0200 (Sa, 21 Jul 2007) | 11 lines Merged revisions 56466-56476 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r56476 | martin.v.loewis | 2007-07-21 08:55:02 +0200 (Sa, 21 Jul 2007) | 4 lines PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. ........ ................ r56478 | martin.v.loewis | 2007-07-21 09:47:23 +0200 (Sa, 21 Jul 2007) | 2 lines PEP 3123: Use proper C inheritance for PyObject. ................ r56479 | martin.v.loewis | 2007-07-21 10:06:55 +0200 (Sa, 21 Jul 2007) | 3 lines Add longintrepr.h to Python.h, so that the compiler can see that PyFalse is really some kind of PyObject*. ................ r56480 | martin.v.loewis | 2007-07-21 10:47:18 +0200 (Sa, 21 Jul 2007) | 2 lines Qualify SHIFT, MASK, BASE. ................ r56482 | martin.v.loewis | 2007-07-21 19:10:57 +0200 (Sa, 21 Jul 2007) | 2 lines Correctly refer to _ob_next. ................