summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Modified most (but not yet all) I/O to always go through sys.stdout orGuido van Rossum1992-09-251-6/+143
| | | | | | sys.stderr or sys.stdin, and to work with any object as long as it has a write() (respectively readline()) methods. Some functions that took a FILE* argument now take an object* argument.
* * Makefile: added IMGFILE; moved some stuff around.Guido van Rossum1992-09-171-19/+1
| | | | | | | | * flmodule.c: added some missing functions; changed readonly flags of some data members based upon FORMS documentation. * listobject.c: fixed int/long arg lint bug (bites PC compilers). * several: removed redundant print methods (repr is good enough). * posixmodule.c: added (still experimental) process group functions.
* * Makefile: cosmeticsGuido van Rossum1992-08-051-14/+45
| | | | | | | | | | | | | | | | | | | | | | | | | * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
* * Makefile adapted to changes below.Guido van Rossum1992-08-041-2/+9
| | | | | | | | | | | * split pythonmain.c in two: most stuff goes to pythonrun.c, in the library. * new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}. * new module from Sjoerd: mmmodule.c (dynamically loaded). * new module from Sjoerd: sv (svgen.py, svmodule.c.proto). * new files thread.{c,h} (from Sjoerd). * new xxmodule.c (example only). * myselect.h: bzero -> memset * select.c: bzero -> memset; removed global variable
* fileobject.c: fix fatal bug in getline() (forgot to initialize fp now)Guido van Rossum1992-07-311-0/+1
|
* Makefile: added instann rules and $(*DEST*) defines.Guido van Rossum1992-07-061-48/+46
| | | | | fileobject.c: report more moeaningful error for I/O on closed files; user getargs() everywhere.
* Changes for new UNIX-specific built-in module 'select' and new header forGuido van Rossum1992-06-231-0/+11
| | | | | interfaces to variants of select() system call, "myselect.h". This includes adding fileno() methods to files, sockets and stdwin.
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* Quiet lintGuido van Rossum1992-03-271-3/+2
|
* Change error handling. Call clearerr() more often.Guido van Rossum1992-03-041-15/+11
|
* Include modsupport.h for getargs().Guido van Rossum1992-01-271-0/+1
|
* Added message to EOFError.Guido van Rossum1991-12-241-1/+2
|
* Use new exceptions.Guido van Rossum1991-12-101-17/+7
|
* Call write(fileno(fp), ...) instead of fwrite for LARGE writes.Guido van Rossum1991-11-121-1/+11
|
* getlonglongargs --> getlonglongargGuido van Rossum1991-09-101-1/+1
|
* printobject now returns an error codeGuido van Rossum1991-06-071-3/+6
|
* In support of popen(), file objects are now parametrized with a closeGuido van Rossum1991-06-041-11/+32
| | | | | | function on creation. (There's a funny thing about the return value of the close function that should be resolved.) Also added 'isatty' method.
* Call clearerr() after EOF seen.Guido van Rossum1991-06-031-0/+1
|
* Added external interface to readline, for raw_input().Guido van Rossum1991-04-041-34/+71
|
* Added 'softspace' interface to replace 'needspace' printing hack.Guido van Rossum1991-04-041-1/+18
|
* Fixed read() and readline() to do arbitrarily long reads.Guido van Rossum1991-03-061-37/+178
| | | | | And readline() now reads null bytes correctly. Added tell(), seek() and flush().
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* Hack to open resource fork on the Mac: open(filename, '*rb').Guido van Rossum1991-02-131-2/+10
|
* Think C 4.0 fixes a bug in 3.0 that we programmed around.Guido van Rossum1991-01-021-2/+2
|
* "Compiling" versionGuido van Rossum1990-12-201-57/+45
|
* Reads of zero should be legal!Guido van Rossum1990-10-261-1/+6
|
* New error handling in getattr().Guido van Rossum1990-10-141-1/+2
|
* Initial revisionGuido van Rossum1990-10-141-0/+267