summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Use #ifdef MS_WIN32 instead of _MSC_VER > 850.Guido van Rossum1996-09-071-1/+1
|
* Added simple-minded (i.e. leaking :-) putenv() interface, if os has it.Guido van Rossum1996-07-231-0/+27
|
* Added plock() system call.Guido van Rossum1996-06-281-1/+25
| | | | Changed test for Windows times() emulation.
* changed windows test symbols; removed debug printf from socketsGuido van Rossum1996-06-261-16/+17
|
* Clear waitpid() status arg in case there's no process to report withGuido van Rossum1996-06-191-1/+1
| | | | WNOHANG set.
* Avoid core dump in resizestring() on read() with 0 bytes.Guido van Rossum1996-06-111-4/+5
|
* Changed NT -> MSC or WATCOMGuido van Rossum1996-05-281-1/+1
|
* Added mkfifo, ftruncate. Windows/PC changes.Guido van Rossum1996-05-231-31/+214
|
* Made 2nd arg to mkdir optionalGuido van Rossum1996-02-251-2/+13
|
* add remove==unlink; mark strftime as varargsGuido van Rossum1996-02-131-0/+1
|
* added 5th return item, clock time, to posix.times()Guido van Rossum1995-09-131-3/+5
|
* suppress . and .. in listdir return valueGuido van Rossum1995-07-181-0/+9
|
* sys/wait.h; NeXT changes (no unistd, utime; getcwd?)Guido van Rossum1995-06-141-0/+20
|
* add WNOHANGGuido van Rossum1995-03-301-0/+8
|
* some more changes for NT and BorlandGuido van Rossum1995-03-101-3/+5
|
* changes for NT/Borland CGuido van Rossum1995-03-011-21/+65
|
* fix comment opener after #endifGuido van Rossum1995-02-171-1/+1
|
* correct typo in utime stubGuido van Rossum1995-02-071-1/+1
|
* uname 64-bit fixGuido van Rossum1995-01-261-1/+4
|
* added bufsize parameter to fdopen and popenGuido van Rossum1995-01-101-10/+19
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Another bulky set of minor changes.Guido van Rossum1995-01-021-13/+12
| | | | | Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
* distinguish between getpgrp and setpgrp arg requirementsGuido van Rossum1994-10-201-3/+3
|
* * Modules/xxmodule.c: integrated with xxobject.c by JackGuido van Rossum1994-09-291-0/+25
| | | | * Modules/(posix,socket}module.c: more NT changes
* Move #endif for NTGuido van Rossum1994-08-291-1/+1
|
* * Modules/posixmodule.c: some more NT changesGuido van Rossum1994-08-231-3/+20
|
* Changes to make it work and compile on NT, by Mark Hammond.Guido van Rossum1994-08-181-74/+60
| | | | (NT changes for posixmodule.c re-invented by Guido.)
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-133/+291
|
* * Grammar: corrected old typo (class instead of 'class')Guido van Rossum1993-12-201-158/+0
| | | | | | | * dosmodule.c: MSDOS specific stuff from posixmodule.c. * posixmodule.c: removed all MSDOS specific stuff. * tokenizer.h, parsetok.h: in prototypes, don't mix named and unnamed parameters (MSC doesn't like this).
* * timemodule.c: Add hack for Solaris 2.Guido van Rossum1993-11-231-2/+2
| | | | | | | | | | | | | | | * posixmodule.c: don't prototype getcwd() -- it's not portable... * mappingobject.c: double-check validity of last_name_char in dict{lookup,insert,remove}. * arraymodule.c: need memmove only for non-STDC Suns. * Makefile: comment out HTML_LIBS and XT_USE by default * pythonmain.c: don't prototype getopt() -- it's not standardized * socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to recvfrom() to (ANY*). * pythonrun.c (initsigs): fix prototype, make it static * intobject.c (LONG_BIT): only #define it if not already defined * classobject.[ch]: remove all references to unused instance_convert() * mappingobject.c (getmappingsize): Don't return NULL in int function.
* * posixmodule.c: added set{uid,gid}.Guido van Rossum1993-11-101-0/+30
| | | | | | * {tuple,list,mapping,array}object.c: call printobject with 0 for flags * compile.c (parsestr): use quote instead of '\'' at one crucial point * arraymodule.c (array_getattr): Added __members__ attribute
* Added execve; change getstrarg into getargs with "s" formatGuido van Rossum1993-11-051-10/+99
|
* Hacks for NEXTSTEP.Guido van Rossum1993-11-011-0/+5
|
* Work around a bug in the DEC alpha OSF/1 C preprocessor.Guido van Rossum1993-10-261-0/+3
|
* * import.c (MAGIC): Changed magic word to avoid confusion about execGuido van Rossum1993-10-221-3/+3
| | | | | | | function vs. exec statement * bltinmodule.c: renamed the module to __builtin__. * posixmodule.c (posix_execv): renamed exec --> execv since it is now a reserved word.
* * Added support for X11 modules.Guido van Rossum1993-07-281-3/+3
| | | | | | | * Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
* * config.c: different default PYTHONPATH for MS-DOSGuido van Rossum1993-07-091-10/+60
| | | | | | | * timemodule.c: change #ifdef TURBO_C into #ifdef MSDOS * posixmodule.c: MSDOS changes by Marcel van der Peijl (Digicash) * stropmodule.c: use C isspace(c) to test for whitespace; add whitespace, lowercase and uppercase variables to the module.
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-171-12/+12
| | | | | | | | | | Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
* New posix functions open, close, dup, dup2, lseek, read, write, fstat, pipe.Guido van Rossum1993-05-171-27/+233
| | | | Improved some comments and defaults in the Makefile.
* * Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum1993-03-161-35/+17
| | | | | | | | | | * Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error.
* Added separate main program for the Mac: macmain.cGuido van Rossum1993-01-211-15/+11
| | | | | | | | | | | | | | | | | | | | | stdwinmodule.c: wsetfont can now return an error Makefile: add CL_USE and CL_LIB*S; config.c: move CL part around New things in imgfile; also in Makefile. longobject.c: fix comparison of negative long ints... [REAL BUG!] marshal.c: add dumps() and loads() to read/write strings timemodule.c: make sure there's always a floatsleep() posixmodule.c: rationalize struct returned by times() Makefile: add test target, disable imgfile by default thread.c: Improved coexistance with dl module (sjoerd) stdwinmodule.c: Change include stdwin.h if macintosh rotormodule.c: added missing last argument to RTR_?_region calls confic.c: merged with configmac.c, added 1993 to copyright message fileobject.c: int compared to NULL in writestring(); change fopenRF ifdef timemodule.c: simplify times() using mkvalue; include myselect.h earlier (for sequent). posixmodule: for sequent, include unistd.h instead of explicit extern definitions and don't define rename() Makefile: change misleading/wrong MD5 comments
* * Makefile: use cp -r to install the libraryGuido van Rossum1993-01-091-2/+22
| | | | | | | | * ceval.c: use #ifdef COMPAT_HACKS instead of #if 0 * Makefile: fix to make clmodule.c compile; make config.o dependent on libpython.a (so date is always correct) * timemodule.c: now sleep() also takes a float argument. * posixmodule.c: added nice().
* * Configure.py: use #!/usr/local/bin/pythonGuido van Rossum1993-01-041-16/+19
| | | | | | | | | | | * posixmodule.c: move extern function declarations to top * listobject.c: cmp() arguments must be void* if __STDC__ * Makefile, allobjects.h, panelmodule.c, modsupport.c: get rid of strdup() -- it is a portability risk * Makefile: enclosed ranlib command in parentheses for Sequent Make which aborts if the command is not found even if '-' is present * timemodule.c: time() returns a floating point number, in microsecond precision if BSD_TIME is defined.
* * Makefile: added IMGFILE; moved some stuff around.Guido van Rossum1992-09-171-3/+41
| | | | | | | | * 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.
* posix: added setpgrp() and, if sgi, setsid() and setpgid(pid, pgid)Guido van Rossum1992-09-131-1/+59
|
* DO_TIMES must now be defined in the MakefileGuido van Rossum1992-08-121-4/+0
|
* Makefile, Configure.py: ##ask --> ##[el]if[yes|no]Guido van Rossum1992-08-091-28/+30
| | | | posixmodule.c: waitpid() is separate
* * Makefile: cosmeticsGuido van Rossum1992-08-051-11/+56
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Added gete?[gu]id functionsGuido van Rossum1992-05-151-0/+44
|
* Added times() (from time)Guido van Rossum1992-04-051-2/+50
|