| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
| |
buffering if we read less than 256 bytes at a time.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
(Fset_network_process_option): Update process contact list when
setting option succeeds.
(Fmake_network_process): Doc fix.
|
| |
|
|
| |
HAVE_STRUCT_IFREQ... macros.
|
| |
|
|
|
| |
(Fnetwork_interface_list): Doc fix.
(read_process_output, read_process_output): Delete unused var.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
(Fnetwork_interface_list, Fget_network_interface_info): New defuns.
(syms_of_process): Defsubr them.
|
| | |
|
| |
|
|
| |
instead of the result of decoding.
|
| | |
|
| |
|
|
| |
(Faccept_process_output): Simplify.
|
| |
|
|
| |
`cp might be used uninitialized' warnings.
|
| | |
|
| |
|
|
| |
for readmax and carryover, so actually use the alloted space.
|
| | |
|
| |
|
|
| |
POLLING_PROBLEM_IN_SELECT.
|
| |
|
|
| |
in/out descriptor is -1, do nothing.
|
| |
|
|
| |
(syms_of_process): Add `:' prefix to QCfilter_multibyte.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
| |
(syms_of_process): defsubr it.
(make-network-process): Update doc.
|
| |
|
|
| |
to host byte order for `:service t' case. From Mario Lang.
|
| | |
|
| |
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
| |
Test POLLING_PROBLEM_IN_SELECT, not hpux.
Avoid initialization for auto Lisp_Object var.
|
| | |
|
| |
|
|
| |
[HAVE_PTY_H]; Include pty.h.
|
| |
|
|
| |
name in addition to pid (as integer or string).
|
| |
|
|
|
|
|
|
| |
(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.
|
| | |
|
| |
|
|
| |
Before calling turn_on_atimers, call stop_polling.
|
| | |
|
| | |
|
| |
|
|
|
| |
(process_send_signal): Clean up handling of GID.
Detect errors in ioctls meant to set GID.
|
| |
|
|
|
| |
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
|
| | |
|
| | |
|
| |
|
|
| |
and XSTRING instead of XSYMBOL and name field.
|
| | |
|