aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fstart_process): Use raw-text instead of emacs-muleKenichi Handa1998-01-221-51/+56
| | | | | | | | | | if enable-multibyte-characters is nil. Initialize members decoding_carryover and encoding_carryover of PROC. (create_process): Adjusted for the change of encode_coding. (Fopen_network_stream): Initialize members decoding_carryover and encoding_carryover of PROC. (read_process_output): Adjusted for the change of decode_coding. (send_process): Adjusted for the change of encode_coding.
* Update copyright year.Richard M. Stallman1998-01-211-1/+1
|
* (read_process_output): Use insert_1_both.Richard M. Stallman1998-01-051-34/+47
| | | | | | | | | (read_process_output): New var `multibyte'. Set it according to which coding system was used. (read_process_output): Handle bytes vs chars. (send_process): Use size_byte of OBJECT. (Fprocess_send_string): Pass size_byte to send_process.
* (status_notify): Use byte and char pointers.Richard M. Stallman1998-01-011-25/+47
| | | | | | (Fprocess_send_region): Make bytepos for send_process. (read_process_output): Save, restore, and update both kinds of ptrs. (send_process): OFFSET is now in bytes.
* (read_process_output): Fix previous change, i.e, ifKenichi Handa1997-12-091-7/+13
| | | | | | | | | proc_encode_coding_system[p->outfd] is NULL, instead of allocating `struct coding_system' for encoding, just skip setting up coding system for encoding. Set Vlast_coding_system_used after some text is read. (send_process): Set Vlast_coding_system_used after deciding a coding system to be used for encoding.
* (read_process_output): Allocate for coding system, ifKarl Heuer1997-12-081-0/+4
| | | | not already done.
* (create_process, deactivate_process, close_process_descs):Andreas Schwab1997-11-281-1/+6
| | | | | (kill_buffer_processes, status_notify): Return void. (Fstart_process): Cast arg to create_process.
* (create_process): Encode arguments for the process.Kenichi Handa1997-11-081-2/+32
| | | | | (read_process_output): Use new macros defined in coding.h. (send_process): Likewise.
* (create_process): Encode the new current dir.Richard M. Stallman1997-09-091-0/+5
|
* (read_process_output): Index forKenichi Handa1997-09-011-1/+1
| | | | | proc_encode_coding_system should be p->outfd (not `channel' which is p->infd).
* (Fset_process_coding_system): Doc-string modified.Kenichi Handa1997-08-041-2/+2
| | | | (Fprocess_coding_system): Likewise.
* (read_process_output): Don't call setup_coding_systemRichard M. Stallman1997-07-311-9/+13
| | | | | | | | for proc_decode_coding_system[channel]. It is already done in detect_coding called via decode_coding. (wait_reading_process_input): Call detect_input_pending whenever read_kbd is 0, not just when wait_for_cell.
* (read_process_output): Use new macroKenichi Handa1997-07-251-2/+2
| | | | | CODING_REQUIRE_NO_CONVERSION (send_process): Use new macro CODING_MAY_REQUIRE_NO_CONVERSION.
* (wait_reading_process_input): Initialize total_read.Richard M. Stallman1997-07-241-2/+9
| | | | Check for read_process_output giving back EIO.
* (Fprocess_send_region): Convert move_gap argument to int.Richard M. Stallman1997-07-121-1/+1
|
* (read_process_output): Add cast.Richard M. Stallman1997-07-101-1/+1
|
* (Fstart_process): If enable-multibyte-characters isKenichi Handa1997-07-071-4/+32
| | | | | | | nil, set coding system for decoding output of process to emacs-mule, and set coding system for encoding to nil. (Fopen_network_stream): If enable-multibyte-characters is nil, set coding systems for decoding and encoding to nil.
* (send_process): Make buf and temp_buf `unsigned char *'.Richard M. Stallman1997-07-041-16/+15
|
* (Fstart_process): Call Ffind_operation_coding_system.Kenichi Handa1997-07-021-6/+7
| | | | (Fopen_network_stream): Likewise.
* (READ_CHILD_OUTPUT): Macro deleted.Richard M. Stallman1997-07-011-10/+4
| | | | (read_process_output): Use read instead of READ_CHILD_OUTPUT.
* (wait_reading_process_input): If wait_for_cell,Richard M. Stallman1997-06-291-8/+11
| | | | | | do check for keyboard input and swallow events, just don't exit. (max): New macro. (wait_reading_process_input): Pass a smaller first arg to select.
* (wait_reading_process_input): Don't check forRichard M. Stallman1997-06-221-3/+20
| | | | keyboard input if wait_for_cell.
* (Fprocess_send_eof): Prooperly conditionalize prev. change.Richard M. Stallman1997-06-191-0/+4
|
* (Fprocess_send_eof): Use shutdown, if it's a socket.Richard M. Stallman1997-06-191-1/+10
| | | | Don't close the output descriptor if that is also the input descriptor.
* Further fix previous change.Richard M. Stallman1997-06-181-1/+2
|
* (wait_reading_process_input): Fix previous change.Richard M. Stallman1997-06-171-1/+2
|
* (wait_reading_process_input): When exiting becauseRichard M. Stallman1997-06-161-0/+10
| | | | the process WAIT_PROC has terminated, first read all its output.
* (wait_reading_process_input): Return if unread events appear.Richard M. Stallman1997-06-131-0/+10
|
* (Fstart_process):Pay attention toKenichi Handa1997-06-091-2/+12
| | | | | Vdefault_process_coding_system. (Fopen_network_stream): Likewise.
* (read_process_output): Update opoint, old_begv and old_zvRichard M. Stallman1997-04-301-19/+25
| | | | | | based on actual buffer change rather than size of string. old_begv and old_zv are now ints. (status_notify): Likewise for opoint.
* (Fopen_network_stream): Use same socket for in and out.Richard M. Stallman1997-03-251-3/+1
|
* (wait_reading_process_input): If wait_for_cell,Richard M. Stallman1997-03-221-1/+10
| | | | | | | | ignore subprocess input and respond only to keyboard. (non_process_wait_mask): New variable. (add_keyboard_wait_descriptor): Update it. (delete_keyboard_wait_descriptor): Update it. (init_process): Initialize it.
* (Fstart_process, Fopen_network_stream): Do not performKenichi Handa1997-02-271-76/+104
| | | | character code conversion if enable-multibyte-characters is nil.
* Include charset.h and coding.h.Karl Heuer1997-02-201-11/+297
| | | | | | | | | | | | | | | (proc_decode_coding_system, proc_encode_coding_system): New variables. (Fstart_process, create_process, Fopen_network_stream): Setup coding systems for character code conversion. (READ_CHILD_OUTPUT): New macro. (read_process_output): Perform character code conversion of a process output. (send_process): Perform character code conversion of a text sent to a process. (Fset_process_coding_system, Fprocess_coding_system): New functions. (syms_of_process): Handle them.
* Include blockinput.h.Richard M. Stallman1996-12-301-0/+5
| | | | (create_process): Block input around the fork.
* (read_process_output, exec_sentinel):Richard M. Stallman1996-12-191-4/+4
| | | | Call Fmatch_data with new explicit arguments.
* (send_process) [EMACS_HAS_USECS]:Richard M. Stallman1996-12-181-0/+4
| | | | When we wait for the buffer to clear, wait just .02 second.
* (status_notify): Test p->infd > 0Richard M. Stallman1996-12-081-5/+43
| | | | | | before each call to read_process_output. (read_process_output): Handle match data properly in recursive calls. (exec_sentinel): Likewise.
* (status_notify): Update p->tick againRichard M. Stallman1996-10-261-0/+5
| | | | just before running the sentinel, in case it dies.
* Replaced symbol BSD with BSD_SYSTEM.Karl Heuer1996-09-171-5/+5
|
* (stream_process): Variable deleted.Richard M. Stallman1996-09-161-5/+0
| | | | (syms_of_process): staticpro deleted.
* (create_process): Test HAVE_SETPGID for using setpgid.Richard M. Stallman1996-09-041-1/+1
|
* (create_process_1, sigchld_handler) [POSIX_SIGNALS]:Richard M. Stallman1996-09-041-3/+3
| | | | Don't reestablish handler.
* (create_process): Undo previous change.Richard M. Stallman1996-09-031-5/+7
|
* (Fprocess_contact): New function.Richard M. Stallman1996-09-011-6/+17
| | | | | | (Fopen_network_stream): Store a cons cell in childp. (NETCONN_P): Use GC_CONSP. (list_processes_1): Use new childp format.
* (create_process): Test defined (TIOCSCTTY)Richard M. Stallman1996-09-011-2/+4
| | | | and defined (HAVE_SETSID) instead of DONT_REOPEN_PTY.
* Change all references from point to PT.Karl Heuer1996-09-011-9/+9
|
* (send_process): GCPRO object.Richard M. Stallman1996-08-221-0/+5
|
* (create_process_1, sigchld_handler): Undo previous change.Karl Heuer1996-07-161-3/+3
|
* (create_process_1, sigchld_handler):Karl Heuer1996-07-151-3/+3
| | | | Don't reinstall sig handler if POSIX_SIGNALS.