summaryrefslogtreecommitdiffstats
path: root/PC/msvcrtmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Partial fix for SF bug 122780 (msvcrt.locking constants aren't defined).Tim Peters2000-12-121-12/+47
| | | | Still needs docs; see bug report (which was reassigned to Fred) for MS's docs.
* [*** Not tested as I don't have Windows running right now! ***]Fred Drake2000-06-301-2/+5
| | | | | | | | | | | | | | | Trent Mick <trentm@activestate.com>: Fix PC/msvcrtmodule.c and PC/winreg.c for Win64. Basically: - sizeof(HKEY) > sizeof(long) on Win64, so use PyLong_FromVoidPtr() instead of PyInt_FromLong() to return HKEY values on Win64 - Check for string overflow of an arbitrary registry value (I know that ensuring that a registry value does not overflow 2**31 characters seems ridiculous but it is *possible*). Closes SourceForge patch #100517.
* Check for potential error returned by _ungetch().Guido van Rossum1999-02-161-1/+2
|
* Release the interpreter lock for calls that may block: _locking(),Guido van Rossum1998-05-291-2/+10
| | | | | | | _getch(), _getche(). Fix bogus error return when open_osfhandle() doesn't have the right argument list.
* Made it real. Changed locking() to work with file descriptors insteadGuido van Rossum1997-08-131-44/+134
| | | | | | of Python file objects. Added open_osfhandle() (Mark had done some work for that), get_osfhandle(), setmode(), and the console I/O functions kbhit(), getch(), getche(), ungetch(), and putch().
* Got the new structure working with MSVC 4.2.Guido van Rossum1997-08-071-0/+95
main_nt.c is gone -- we can use Modules/python.c now. Added Mark Hammond's module msvcrt.c (untested). Added several new symbols.