summaryrefslogtreecommitdiff
path: root/src/callproc.c
Commit message (Collapse)AuthorAgeFilesLines
* (Fcall_process, child_setup, getenv_internal): Use type test macros.Karl Heuer1994-09-271-9/+7
|
* (Fcall_process) [__osf__ && __alpha]:Richard M. Stallman1994-09-171-1/+9
| | | | Don't stop reading if read returns negative.
* (delete_temp_file): Use Fdelete_file.Richard M. Stallman1994-09-141-1/+3
|
* (Fcall_process_region): gcpro filename_string.Karl Heuer1994-08-171-2/+5
|
* Put stdio.h after config.h.Richard M. Stallman1994-06-151-1/+1
|
* (init_callproc) [MSDOS]: Exclude less code, so ../etcRichard M. Stallman1994-06-071-2/+3
| | | | is still tested for doc file.
* [MSDOS]: #include "msdos.h" for rootrelativepath template.Karl Heuer1994-06-041-0/+1
|
* (child_setup): If PWD is set, set it in the child so thatRichard M. Stallman1994-05-281-4/+16
| | | | it points at the child's working directory.
* (child_setup): PRIO_PROCESS renamed to SET_EMACS_PRIORITY.Richard M. Stallman1994-05-131-2/+3
| | | | Don't call nice if emacs_priority is positive.
* (init_callproc): Never set Vdata_directory based onRichard M. Stallman1994-05-121-1/+25
| | | | the executable's location. But maybe set it from source dir.
* [MSDOS]: Rename Vbinary_process to Vbinary_process_output.Richard M. Stallman1994-05-071-4/+29
| | | | | | | | | | | (syms_of_callproc) [MSDOS]: Rename lisp variable binary-process to binary-process-output. (Fcall_process, syms_of_callproc) [MSDOS]: Use new names. (Vbinary_process_input) [MSDOS]: New variable. (syms_of_callproc) [MSDOS]: Declare binary-process-input. (Fcall_process_region) [MSDOS]: Bind binary-process-input temporarily to buffer-file-type. (init_callproc) [MSDOS]: Don't add lib-src as the wrapped binaries are in bin.
* (child_setup): Test PRIO_PROCESS, as in sys_subshell.Richard M. Stallman1994-04-281-0/+2
|
* (init_callproc): Set Vdoc_directory like Vdata_directory.Richard M. Stallman1994-04-211-1/+1
|
* If we include fcntl.h, define INCLUDED_FCNTL.Richard M. Stallman1994-04-121-0/+2
|
* (child_setup): Check out==err when relocating fds.Karl Heuer1994-03-311-2/+7
|
* (call_process_cleanup, getenv_internal): Use assignment, not initialization.Karl Heuer1994-03-231-3/+5
|
* (Fcall_process): Make sure to close descriptors.Richard M. Stallman1994-03-221-9/+15
| | | | (call_process_cleanup): Always close descriptor.
* (Fcall_process): GCPRO some things.Karl Heuer1994-03-181-16/+19
|
* Don't kill remaining processes if child exits.Richard M. Stallman1994-03-091-0/+16
| | | | | | (call_process_exited): New variable. (Fcall_process): Set it. (call_process_cleanup): Test it.
* (syms_of_callproc): New variable Vdoc_directory.Karl Heuer1994-02-221-2/+10
| | | | (init_callproc_1): Initialize it.
* Include stdio.h.Richard M. Stallman1994-01-291-4/+7
| | | | (init_callproc): Put non-ex-dir warnings on stderr.
* (init_callproc): Use Vinstallation_directory.Richard M. Stallman1994-01-171-15/+9
|
* (child_setup): Call close_load_descs.Richard M. Stallman1994-01-111-0/+1
|
* (child_setup): Don't declare PID `register'; we later take its address.Roland McGrath1994-01-081-1/+1
|
* Don't declare sys_errlist; declare strerror instead.Roland McGrath1994-01-081-6/+5
| | | | (relocate_fd): Call strerror instead of using sys_errlist.
* (syms_of_callproc) [MSDOS]: New lisp variable: binary-process.Richard M. Stallman1994-01-081-5/+115
| | | | | | | | | | | | | | | (init_callproc) [MSDOS]: Initialize binary-process. [MSDOS]: Declare binary-process. [MSDOS]: Include <fcntl.h>, <sys/stat.h>, <sys/param.h>, and <errno.h> needed for the next changes. (Fcall_process) [MSDOS]: Create temporary file for process output. Run the subprocess using `run_msdos_command' instead of forking. Arrange for cleanup to erase temporary file. (Fcall_process) [not subprocesses]: Barf if zero buffer argument. (call_process_cleanup) [MSDOS]: Close and erase temporary file instead of the pid-stuff. (Fcall_process_region) [MSDOS]: Create temporary file in $TMP or $TEMP. (Fchild_setup) [MSDOS]: #if 0, as it is not used.
* Include systty.h.Richard M. Stallman1993-12-251-1/+3
| | | | (child_setup): Use EMACS_SET_TTY_PGRP.
* (Fcall_process): Call prepare_menu_bars.Richard M. Stallman1993-12-231-2/+8
| | | | (Fgetenv): One arg is maximum.
* (child_setup): Test SETPGRP_RELEASES_CTTY, not IRIX.Richard M. Stallman1993-11-251-5/+5
| | | | (init_callproc): Fix previous change.
* (init_callproc): Maybe add ../lib-src to exec-pathRichard M. Stallman1993-11-241-10/+47
| | | | | | and maybe store it in exec-directory. Maybe put ../etc into data-directory. (init_callproc_1): Part of init_callproc is split out.
* (Fcall_process): Clear synch_process_death andRichard M. Stallman1993-11-111-3/+6
| | | | synch_process_retcode before the vfork.
* Include <paths.h>, not "paths.h".Roland McGrath1993-09-121-1/+1
|
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (PRIO_PROCESS): Definition deleted.Richard M. Stallman1993-06-301-1/+1
|
* Changes for Irix 4.0, tested this time:Jim Blandy1993-06-181-1/+1
| | | | | | | | | | | | | | | | * s/irix4-0.h: Get rid of our fake definitions for setpgrp and getpgrp. * callproc.c (Fcall_process): Go ahead and use the USG calling convention for setpgrp. * ymakefile (pre-crt0.o): Add rule for this. Perhaps it will help separate-source-directory compilation. * emacs.c (shut_down_emacs): Some USG systems #define EMACS_HAVE_TTY_PGRP; call getpgrp as appropriate for such systems. * sysdep.c (sys_suspend): Call getpgrp as appropriate for USG and non-USG. * process.c [IRIX] (create_process): Don't put child in process group zero before opening the tty; Irix is like USG in this regard.
* * m/iris4d.h (LIB_STANDARD): Do *not* include -lbsd. We areJim Blandy1993-06-171-1/+3
| | | | | | | | now calling the BSD[sg]etpgrp functions directly, so this library is not needed; it just provides the BSD[sg]etpgrp functions under the [sg]etpgrp names. * callproc.c [IRIX] (child_setup): Don't call setpgrp this time. It's already been called up in Fcall_process, and create_process.
* * callproc.c (Fcall_process, child_setup): If IRIX is #defined,Jim Blandy1993-06-171-2/+2
| | | | | | call setpgrp with arguments, even if USG is #defined. * process.c [IRIX] (create_process): Don't call setpgrp before opening the pty. Call it after doing the TIOCNOTTY ioctl.
* * paths.h (PATH_INFO): New path, to edited by the configurationJim Blandy1993-05-251-0/+8
| | | | | | | process. * callproc.c (Vconfigure_info_directory): New variable, used internally by build process. (syms_of_callproc): DEFVAR it and initialize it.
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* (child_setup): Omit duplicates from new env array.Richard M. Stallman1993-05-131-3/+27
|
* * callproc.c (relocate_fd): Make messages string literals, notJim Blandy1993-04-101-5/+4
| | | | initialized arrays.
* New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of theJim Blandy1993-03-301-7/+3
| | | | | | | | | | | equivalent of /dev/null, and the suffixes used by executable files. This is simple, and helps people porting Emacs to other operating systems. * process.h (NULL_DEVICE): Give this a default value. * process.c (Fstart_process): Pass EXEC_SUFFIXES to openp. (Fprocess_send_eof): Use NULL_DEVICE instead of "/dev/null". * callproc.c (Fcall_process): Pass EXEC_SUFFIXES to openp. Use NULL_DEVICE instead of "/dev/null".
* * callproc.c (child_setup): Make sure that in, out, and err areJim Blandy1993-03-201-0/+42
| | | | | not less than three. (relocate_fd): New function.
* * callproc.c (delete_temp_file): Declare this to returnJim Blandy1993-02-221-2/+6
| | | | | | | | | | Lisp_Object, to smooth type-checking. * callproc.c (init_callproc): Move the initialization of Vprocess_environment to its own function. (set_process_environment): This is that. * emacs.c (main): Call set_process_environment earlier than init_callproc.
* * process.c (Fstart_process): Jimb's change of December 11Michael I. Bushnell1993-02-181-1/+1
| | | | | | had a misplaced paren. This only became apparent because of jimb's change on February 8 to Fexpand_file_name. * callproc.c (Fcall_process): Ditto.
* Give subprocess creation a way to find a valid current directoryJim Blandy1992-12-121-11/+29
| | | | | | | | | | | | | | | | | | | for subprocesses when the buffer's default-directory is a handled name. * fileio.c (Funhandled_file_name_directory): New function. (Qunhandled_file_name_directory): New file-name-handler operation. (syms_of_fileio): Defsubr Sunhandled_file_name_directory, and initialize and staticpro Qunhandled_file_name_directory. * callproc.c (Fcall_process): Call Funhandled_file_name_directory on the buffer's default directory. Do it earlier in the function so there's less to GCPRO. * process.c (create_process): Don't check the validity of the buffer's default directory here... (Fstart_process): Instead, do it here; if we call Funhandled_file_name_directory here, there's less GCPROing to do. * callproc.c (Fcall_process_region): Return the value returned by Fcall_process.
* * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c:Jim Blandy1992-11-161-1/+1
| | | | Added VMS changes from Roland Roberts.
* * callproc.c: Arrange for synchronous processes to get SIGINT theJim Blandy1992-10-311-7/+28
| | | | | | | | | | first time the user quits, or SIGKILL if the user quits again. #include "syssignal.h". (call_process_kill): New function. (call_process_cleanup): Send SIGINT to the subprocess, and then arrange to call call_process_kill if the user quits while we wait for it to terminate. (Fcall_process, Fcall_process_region): Doc fix.
* * callproc.c (child_setup): Don't use setpriority; we just need aJim Blandy1992-09-231-1/+5
| | | | simple, portable call to nice here.
* Restored up-to-date version of this file from pogo. What is going onJim Blandy1992-08-071-96/+120
| | | | here?