aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (wait_reading_process_input) [SYNC_INPUT]: Check interrupt_input_pending.Stefan Monnier2004-01-211-0/+4
|
* (wait_reading_process_input): Lisp_Object/int mixup.Stefan Monnier2004-01-201-2/+2
|
* (read_process_output): Only activate adaptiveKim F. Storm2004-01-061-2/+2
| | | | buffering if we read less than 256 bytes at a time.
* (ADAPTIVE_READ_BUFFERING): New conditional.Kim F. Storm2004-01-011-35/+164
| | | | | | | | | | | | | | | | | | | | | (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX) (READ_OUTPUT_DELAY_MAX_MAX): New constants. (process_output_delay_count, process_output_skip): New vars. (Vprocess_adaptive_read_buffering): New variable. (make_process): Initialize adaptive read buffering members. (Fstart_process): Set adaptive_read_buffering member. (deactivate_process): Cleanup adaptive read buffering. (wait_reading_process_input): Temporarily omit delayed subprocesses from the set of file descriptors to read from; adjust the select timeout if we skipped any subprocesses. (read_process_output): Increase adaptive read buffering delay if we read less than a full buffer; reduce delay when we read a full buffer. (send_process): Simplify using local Lisp_Process var. Reset adaptive read buffering delay after write. (init_process): Initialize process_output_delay_count and process_output_skip. (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
* Remove period at end of error message.Jan Djärv2003-11-161-1/+1
|
* (send_process): Delete unused temp_buf.Kenichi Handa2003-09-271-3/+0
|
* (set_socket_option): Fix :bindtodevice option.Kim F. Storm2003-09-231-16/+31
| | | | | | (Fset_network_process_option): Update process contact list when setting option succeeds. (Fmake_network_process): Doc fix.
* (Fnetwork_interface_info): UseDave Love2003-09-231-4/+4
| | | | HAVE_STRUCT_IFREQ... macros.
* (Fnetwork_interface_info): Fix type error.Dave Love2003-09-181-4/+4
| | | | | (Fnetwork_interface_list): Doc fix. (read_process_output, read_process_output): Delete unused var.
* (Fnetwork_interface_list, Fnetwork_interface_info):Kim F. Storm2003-09-171-9/+11
| | | | | | | | | Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns. (Fnetwork_interface_info): Check that ifreq struct has required fields before accessing them; this requires that those fields are defined as macros, which may be too restrictive on some platforms, but it is better than failing on other platforms. (syms_of_process): Only defsubr above fns when included.
* (Fset_process_sentinel): Add sentinel to childp plistKim F. Storm2003-09-161-231/+181
| | | | | | | | | | | | | | | | | | | | | | for network process. (socket_options): Add `:' prefix to option names. Add optbit field. (set_socket_option): Remove no_error arg and special handling of s < 0. Return 1<<optbit for known option, 0 for unknown. Do not interpret 0 as false for boolean option (only nil). Pass failed option and value to report_file_error. (Fset_network_process_options): Replaced by Fset_network_process_option. (Fset_network_process_option): New function to set just one option. (Fmake_network_process): Allow :coding arg to be a cons. Allow :server arg to be an integer specifying backlog size. Remove :options arg, and allow options to be specified directly as :KEY, VALUE pairs. Parse these options before binding socket. As before, :reuseaddr t is default for a server process, but this can now be disabled by specifying :reuseaddr nil. (Fnetwork_interface_info): Rename from Fget_network_interface_info. (init_process): Availability of network options is now checked with simpler syntax (featurep 'make-network-process :OPTION); use loop to setup features. (syms_of_process): Fix defsubr's for the replaced functions.
* [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.Kim F. Storm2003-09-131-0/+245
| | | | | (Fnetwork_interface_list, Fget_network_interface_info): New defuns. (syms_of_process): Defsubr them.
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (read_process_output): Return the actually read bytesKenichi Handa2003-07-311-7/+4
| | | | instead of the result of decoding.
* (wait_reading_process_input): Don't signal SIGIO in batch mode.Richard M. Stallman2003-06-221-1/+1
|
* (allocate_pty): Revert part of the previous patch.Stefan Monnier2003-06-041-7/+2
| | | | (Faccept_process_output): Simplify.
* (allocate_pty): Remove `unused var stb' andStefan Monnier2003-05-251-34/+37
| | | | `cp might be used uninitialized' warnings.
* (read_process_output): Back out change from 2003-03-09.David Kastrup2003-05-171-3/+3
|
* (read_process_output): We have allocated enough spaceDavid Kastrup2003-03-091-3/+3
| | | | for readmax and carryover, so actually use the alloted space.
* Removed subtty, workaround for when TIOCSIGSEND fails.Jan Djärv2003-02-211-26/+45
|
* (wait_reading_process_input): Use POLL_INTERRUPTED_SYS_CALL, notJuanma Barranquero2003-02-211-4/+4
| | | | POLLING_PROBLEM_IN_SELECT.
* (setup_process_coding_systems): If the process'sKenichi Handa2003-02-201-0/+3
| | | | in/out descriptor is -1, do nothing.
* Doc fixes.Kim F. Storm2003-02-101-9/+9
| | | | (syms_of_process): Add `:' prefix to QCfilter_multibyte.
* (QCfilter_multibyte): New variable.Kenichi Handa2003-02-101-43/+101
| | | | | | | | | | | | | | | | | | | | | | | | | (setup_process_coding_systems): New function. (Fset_process_buffer, Fset_process_filter): Call setup_process_coding_systems. (Fstart_process): Initialize the member `filter_multibyte' of struct Lisp_Process. (create_process): Call setup_process_coding_systems. (Fmake_network_process): New keyward `:filter-multibyte'. Initialize the member `filter_multibyte' of struct Lisp_Process. Call setup_process_coding_systems. (server_accept_connection): Call setup_process_coding_systems. (read_process_output): If the process has a filter, decide the multibyteness of a string to given to the filter by `filter_multibyte' member of the process. If the process doesn't have a filter and the result of conversion is unibyte, use Fstring_to_multibyte (not Fstring_make_multibyte) to get the multibyte form. (Fset_process_coding_system): Call setup_process_coding_systems. (Fset_process_filter_multibyte): New function. (Fprocess_filter_multibyte_p): New function. (syms_of_process): Intern and staticpro QCfilter_multibyte. Defsubr Sset_process_filter_multibyte and Sprocess_filter_multibyte_p.
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-72/+72
|
* (set-process-filter): Document unibyte/multibyte-ness of string argument.Kim F. Storm2003-01-161-3/+11
|
* (Fset_process_plist): Fixed return value.Kim F. Storm2003-01-141-1/+2
|
* Reworked 2003-01-12 change -- call a plist a plist!Kim F. Storm2003-01-141-35/+23
| | | | | | | | (QCplist): Renamed from QCvars. All uses changed. (Fprocess_plist): Replaces Fprocess_variable. Simplified. (Fset_process_plist): Replaces Fset_process_variable. Simplified. (syms_of_process): Intern, staticpro, defsubr these. (Fmake_network_process): Describe :plist arg. Removed :vars arg.
* (QCvars): New variable.Kim F. Storm2003-01-121-13/+39
| | | | | | | | | | | (syms_of_process): Intern and staticpro it. (Fprocess_variable, Fset_process_variable): New functions. (syms_of_process): Defsubr them. (Fstart_process): Initialize private_vars plist to nil. (Fmake_network_process): New arg :vars to setup the private variables for new network process. (server_accept_connection): Copy server's private variables to client process.
* (Fset_process_contact): New function.Kim F. Storm2003-01-101-1/+24
| | | | | (syms_of_process): defsubr it. (make-network-process): Update doc.
* (Fmake_network_process): Convert new port numberKim F. Storm2003-01-081-1/+1
| | | | to host byte order for `:service t' case. From Mario Lang.
* (format-network-address): Added optional OMIT-PORT arg. Callers changed.Kim F. Storm2003-01-081-14/+23
|
* (server_accept_connection): Fixed recording of newKim F. Storm2003-01-081-1/+11
| | | | | | connection's local address in :local property of contact info. (Fmake_network_process): Record local network address for new client processes in :local property of contact info.
* (_GNU_SOURCE): Don't define.Dave Love2002-11-181-1/+0
|
* (Fformat_network_address): Removed unused locals p, cp, and i.Kim F. Storm2002-11-071-4/+0
|
* (wait_reading_process_input):Richard M. Stallman2002-11-061-2/+4
| | | | | Test POLLING_PROBLEM_IN_SELECT, not hpux. Avoid initialization for auto Lisp_Object var.
* (Fformat_network_address): Fix int/Lisp_Object mixup.Stefan Monnier2002-10-311-6/+6
|
* Include sys/wait.h.Dave Love2002-10-301-0/+7
| | | | [HAVE_PTY_H]; Include pty.h.
* (Fsignal_process): Allow PROCESS to be specified byKim F. Storm2002-10-281-6/+38
| | | | name in addition to pid (as integer or string).
* (Fformat_network_address): New function.Kim F. Storm2002-10-241-13/+76
| | | | | | | | (syms_of_process): Defsubr it. (list_processes_1): Use it to format :local/:remote address if service/host is not set; before emacs would crash in that case. (Fmake_network_process): Don't use Ffind_operation_coding_system to setup coding system if host or service is not set.
* (make-network-process): Doc fix (there is no network-server-log-function hook).Kim F. Storm2002-09-181-3/+2
|
* (wait_reading_process_input, both versions):Richard M. Stallman2002-09-121-1/+5
| | | | Before calling turn_on_atimers, call stop_polling.
* (Fstart_process): Remove /: from program name.Richard M. Stallman2002-08-241-6/+14
|
* * process.c (status_message): Use SSET.Ken Raeburn2002-07-161-1/+1
|
* (create_process): Test USG_SUBTTY_WORKS.Richard M. Stallman2002-07-161-16/+19
| | | | | (process_send_signal): Clean up handling of GID. Detect errors in ioctls meant to set GID.
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-66/+66
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* (process_send_signal): Add abort call.Richard M. Stallman2002-07-121-1/+3
|
* Use macro SPECPDL_INDEX.Juanma Barranquero2002-07-111-5/+5
|
* * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAMEKen Raeburn2002-05-201-3/+3
| | | | and XSTRING instead of XSYMBOL and name field.
* Fix typo.Juanma Barranquero2002-05-161-1/+1
|