Commit graph

99 commits

Author SHA1 Message Date
Kenichi Handa
776b95cb48 (Fcall_process): Pay attention to
Vdefault_process_coding_system.
(Fcall_process_region): Likewise.
1997-06-09 12:59:22 +00:00
Kenichi Handa
69445b3bd4 (Fcall_process_region): Supply 7th new arg
CODING_SYSTEM as Qnil to Fwrite_region.
1997-05-10 03:37:01 +00:00
Karl Heuer
32d0864482 Include charset.h and coding.h.
(Fcall_process): Perform character code conversion of a process
arguments and the process output.
(Fcall_process_region): Encode coding of a text given to a
process.
1997-02-20 06:46:14 +00:00
Richard M. Stallman
d3e81d0a9e (Fcall_process_region): Define missing local `count'. 1996-12-10 23:27:58 +00:00
Richard M. Stallman
8abd035b44 (Vtemp_file_name_pattern): New variable. 1996-12-07 21:10:03 +00:00
Geoff Voelker
489f937121 Use new names for w32 files 1996-11-19 07:04:49 +00:00
Richard M. Stallman
76d5c6cf01 (init_callproc): Use dir_warning. 1996-10-31 17:57:43 +00:00
Richard M. Stallman
5711b5478c (Fcall_process_region) [DOS_NT]: Avoid downcasing
the `X' characters in the template passed to `mktemp'.
1996-08-05 01:15:49 +00:00
Miles Bader
6f89d28ab4 (Fcall_process) [MSDOS]:
Initialize fd[0]; unlink `tempfile' in case of errors.
  Make the `tempfile' parameter passed to `report_file_error' be a Lisp string.
(Fcall_process):
  When fd_error is negative, don't close fd[0] if it's same as filefd.
  If stderr is redirected to NULL_DEVICE, make `report_file_error' print the
  name of device.  Make the arguments a cons cell.
1996-07-06 20:02:39 +00:00
Richard M. Stallman
a9d4f28a2b (Fcall_process): Fix previous change. 1996-06-21 15:30:28 +00:00
Richard M. Stallman
45be8a1e58 (Fcall_process): Handle t or nil as STDERR_FILE. 1996-06-16 23:09:17 +00:00
Karl Heuer
799abb26c3 (Fcall_process): Don't close the same fd twice. 1996-05-15 14:32:37 +00:00
Richard M. Stallman
cd5f8f60db (Fcall_process): Fix previous change (now !MSDOS only). 1996-05-12 22:50:25 +00:00
Richard M. Stallman
70ffb393ea (Fcall_process): Close fd_error if successful. 1996-05-11 10:53:17 +00:00
Richard M. Stallman
4252a4bd63 (Fcall_process) [WINDOWSNT]: Remove conditional NT code.
(Fcall_process_region) [DOSNT]: Canonicalize slashes in filename.
(child_setup) [WINDOWSNT]: Decrease handles array by one.
1996-04-26 19:52:37 +00:00
Richard M. Stallman
6b2cd868d5 (Fcall_process, child_setup): If BSD_PGRPS, call
setpgrp the BSD way even on USG.
1996-03-24 12:45:26 +00:00
Richard M. Stallman
f040c0ba59 (child_setup): Fix size in write call. 1996-01-30 18:41:57 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Karl Heuer
8e6208c5d2 Comment fixes. 1996-01-05 10:03:17 +00:00
Karl Heuer
2610078a77 (Fcall_process) [MSDOS]: Support redirection of
stderr.  Assign process exit code to `synch_process_retcode' and
error description to `synch_process_death'.  Reset
`synch_process_alive' to zero when the sub-process exits.
1995-12-13 02:26:40 +00:00
Richard M. Stallman
bc4498bb86 (Fcall_process_region): Pass new arg to Fwrite_region. 1995-08-14 17:26:50 +00:00
Richard M. Stallman
e17f75338a (init_callproc): Set Vdoc_directory based on
Vinstallation_directory when that's non-nil, regardless of whether
we had to set Vexec_directory.
1995-07-20 19:28:08 +00:00
Richard M. Stallman
f29f9e4afc (child_setup): Don't get confused if in == err. 1995-06-29 17:30:50 +00:00
Richard M. Stallman
0774fcf89c (call-process-region) [DOS_NT]: Use IS_DIRECTORY_SEP.
(call-process-region) [WINDOWSNT]: Use proper temp file template.
1995-06-15 15:28:34 +00:00
Richard M. Stallman
60558b198d (Fcall_process): Keep reading till buffer is nearly full. 1995-05-09 05:35:45 +00:00
Richard M. Stallman
6e3bfbb258 (Fcall_process): Extend BUFFER arg so it can specify
a separate output file for stderr output.
(Fcall_process_region): Doc fix.
1995-04-29 16:47:57 +00:00
Richard M. Stallman
d20b8af682 (child_setup): Reword "can't exec" message.
Add newline after message.

(Fcall_process): Call Fexpand_file_name for error_file.
1995-04-24 05:51:40 +00:00
Karl Heuer
a9971c6d05 (getenv_internal): Balance parentheses across #if/#endif. 1995-04-12 02:56:05 +00:00
Karl Heuer
ff27bfbe5c (child_setup) [WINDOWSNT]: Removed syntax errors. 1995-04-12 01:59:39 +00:00
Karl Heuer
f8c25f1b67 Update copyright. 1995-04-07 02:21:52 +00:00
Richard M. Stallman
39eaa78275 (Fcall_process): Extend BUFFER arg so it can specify
a separate output file for stderr output.
(Fcall_process_region): Doc fix.
1995-02-26 07:58:52 +00:00
Richard M. Stallman
2e3dc201ba (delete_temp_file): Use internal_delete_file. 1994-11-28 19:27:41 +00:00
Richard M. Stallman
bad95d8f8d (getenv_internal) [WINDOWSNT]: Use strnicmp, not bcmp.
(child_setup): Use IS_DIRECTORY_SEP.
[WINDOWSNT]: Call prepare_standard_handles.  Use spawnve.
Use reset_standard_handles.

(Fcall_process_region): Test DOS_NT, not MSDOS.
(Fcall_process) [WINDOWSNT]: Call pipe_with_inherited_out.
Use the return value of child_setup to get the child's pid;
don't call vfork etc. explicitly.

[WINDOWSNT]: Add includes.  Defone NOMINMAX, _P_NOWAIT.
(Vbinary_process_input, Vbinary_process_output)
(Qbuffer_file_type): Test DOS_NT, not MSDOS.
(syms_of_callproc): Test DOS_NT, not MSDOS.

(init_callproc): Test DOS_NT, not MSDOS.
1994-11-01 06:49:52 +00:00
Richard M. Stallman
20b25e46b6 (child_setup): Always use _exit. 1994-10-19 19:46:05 +00:00
Karl Heuer
d50d3dc8e3 (Fcall_process, child_setup, getenv_internal): Use type test macros. 1994-09-27 03:10:43 +00:00
Richard M. Stallman
00fb3e95ef (Fcall_process) [__osf__ && __alpha]:
Don't stop reading if read returns negative.
1994-09-17 05:30:39 +00:00
Richard M. Stallman
59750d69f8 (delete_temp_file): Use Fdelete_file. 1994-09-14 09:15:46 +00:00
Karl Heuer
39323a7e46 (Fcall_process_region): gcpro filename_string. 1994-08-17 21:44:49 +00:00
Richard M. Stallman
565620a54d Put stdio.h after config.h. 1994-06-15 03:54:06 +00:00
Richard M. Stallman
1a6640ec24 (init_callproc) [MSDOS]: Exclude less code, so ../etc
is still tested for doc file.
1994-06-07 15:29:45 +00:00
Karl Heuer
00353d4f04 [MSDOS]: #include "msdos.h" for rootrelativepath template. 1994-06-04 00:15:17 +00:00
Richard M. Stallman
7fcf7f0518 (child_setup): If PWD is set, set it in the child so that
it points at the child's working directory.
1994-05-28 08:29:36 +00:00
Richard M. Stallman
68d10241fc (child_setup): PRIO_PROCESS renamed to SET_EMACS_PRIORITY.
Don't call nice if emacs_priority is positive.
1994-05-13 07:18:18 +00:00
Richard M. Stallman
7e93368366 (init_callproc): Never set Vdata_directory based on
the executable's location.  But maybe set it from source dir.
1994-05-12 06:35:19 +00:00
Richard M. Stallman
093650fe31 [MSDOS]: Rename Vbinary_process to Vbinary_process_output.
(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.
1994-05-07 21:53:28 +00:00
Richard M. Stallman
5b633aeb24 (child_setup): Test PRIO_PROCESS, as in sys_subshell. 1994-04-28 05:44:54 +00:00
Richard M. Stallman
4bb45197d8 (init_callproc): Set Vdoc_directory like Vdata_directory. 1994-04-21 08:31:39 +00:00
Richard M. Stallman
472e83febc If we include fcntl.h, define INCLUDED_FCNTL. 1994-04-12 03:25:18 +00:00
Karl Heuer
3e9367e7de (child_setup): Check out==err when relocating fds. 1994-03-31 22:19:27 +00:00
Karl Heuer
c135075247 (call_process_cleanup, getenv_internal): Use assignment, not initialization. 1994-03-23 22:26:47 +00:00