[pywin32-checkins] pywin32/win32/src win32file.i,1.84,1.85
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-06-06 04:26:46
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4315/win32/src Modified Files: win32file.i Log Message: Add _getmaxstdio and _setmaxstdio Index: win32file.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32file.i,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** win32file.i 5 Jun 2007 09:47:46 -0000 1.84 --- win32file.i 6 Jun 2007 04:26:46 -0000 1.85 *************** *** 1597,1604 **** --- 1597,1607 ---- #ifndef MS_WINCE // @pyswig long|_get_osfhandle|Gets operating-system file handle associated with existing stream + // @pyparm int|fd||File descriptor as returned by file.fileno() %name(_get_osfhandle) PyObject *myget_osfhandle( int filehandle ); // @pyswig int|_open_osfhandle|Associates a C run-time file handle with a existing operating-system file handle. + // @pyparm <o PyHANDLE>|osfhandle||An open file handle + // @pyparm int|flags||O_APPEND,O_RDONLY, or O_TEXT %name(_open_osfhandle) PyObject *myopen_osfhandle ( PyHANDLE osfhandle, int flags ); *************** *** 1626,1629 **** --- 1629,1641 ---- %} + // @pyswig int|_setmaxstdio|Set the maximum allowed number of open stdio handles + // @rdesc Returns the number that was set, or -1 on failure. + int _setmaxstdio( + int newmax // @pyparm int|newmax||Maximum number of open stdio streams, 2048 max + ); + + // @pyswig int| _getmaxstdio|Returns the maximum number of CRT io streams. + int _getmaxstdio( void ); + // Overlapped Socket stuff |