summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Check empty argument lists.Guido van Rossum1992-03-271-1/+13
| | | | Lint fixes (and include <unistd.h>)
* Added uname. Made lstat/readlink/symlink unconditional (the latterGuido van Rossum1992-02-051-10/+54
| | | | two raise posix.error if symlinks aren't supported).
* Use getargs() function.Guido van Rossum1992-01-271-50/+35
|
* getlonglongargs --> getlonglongargGuido van Rossum1991-09-101-2/+3
| | | | Fixed type error in argument of newopenfileobject.
* Ignore SIGPIPE when we've opened a pipeGuido van Rossum1991-07-271-0/+3
|
* Fixed confusing error message (open should be popen)Guido van Rossum1991-07-011-1/+1
|
* Getpgrp() has a parameter, at least on BSD!Guido van Rossum1991-06-071-1/+1
|
* Added getpgrp(); fixed buggy calls to getnoarg().Guido van Rossum1991-06-041-2/+13
|
* Added popen().Guido van Rossum1991-06-041-1/+37
| | | | Added getmtime() function for use by ".pyc" processing.
* Removed utimes() compatibility hack.Guido van Rossum1991-06-031-1/+165
| | | | Added _exit, exec, fork, getpid, getppid, kill and wait.
* Incorporated MSDOS changes (untested).Guido van Rossum1991-04-081-2/+93
|
* Made utime use much more portable.Guido van Rossum1991-04-081-14/+52
| | | | | Incorporated i386 mods. (Oh, BTW, the "right" python name is now posix.utime, not utimes!
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* Moved getcwd() hack to its own file.Guido van Rossum1991-01-211-21/+0
|
* "Compiling" versionGuido van Rossum1990-12-201-17/+5
|
* Added prototype to declaration of strerror().Guido van Rossum1990-10-301-1/+1
|
* Made posix_error back static as it should be.Guido van Rossum1990-10-211-1/+1
|