| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
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.
|
| | |
|
| |
|
|
| |
use non-blocking I/O.
|
| |
|
|
| |
when we can make them non-blocking.
|
| | |
|
| |
|
|
| |
lisp/ChangeLog, and src/ChangeLog for list of changes.
|
| | |
|
| |
|
|
|
|
| |
(Fprocess_datagram_address, Fset_process_datagram_address)
(Fset_network_process_options, server_accept_connection):
Fix some int/Lisp_Object confusions (thank you union types).
|
| | |
|
| |
|
|
| |
(make-network-process): Doc fix.
|
| |
|
|
| |
subfeatures if HAVE_SOCKETS.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(QCtype, Qdatagram): New variables.
(network_process_featurep): Removed function.
(Fmake_network_process): Removed :feature check.
Use :type 'datagram instead of :datagram t to create a datagram
socket. This allows us to add other connection types (e.g. raw
sockets) later in a consistent manner.
(init_process) [subprocess]: Provide list of supported subfeatures
for feature make-network-process.
(syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
Intern and staticpro QCtype and Qdatagram.
(syms_of_process) [!subprocess]: Intern and staticpro QCtype.
|
| | |
|
| |
|
|
|
| |
use "sun" as a variable, it's a predefined constant on Sun
machines.
|
| |
|
|
| |
where they are used.
|
| |
|
|
| |
Remove explicit GNU_LINUX settings for datagram support.
|
| |
|
|
|
| |
Doc fix. Add usage:.
(set_socket_options): Remove unused variables `optnum' and `opttype'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
(QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
New variables.
(NETCONN1_P): New macro.
(DATAGRAM_SOCKETS): New conditional symbol.
(datagram_address): New array.
(DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
(status_message): Use concat3.
(Fprocess_status): Add `listen' status to doc string. Return `stop'
for a stopped network process.
(Fset_process_buffer): Update contact plist for network process.
(Fset_process_filter): Ditto. Don't enable input for stopped
network processes. Server must listen, even if filter is t.
(Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
New functions.
(Fprocess_kill_without_query): Removed. Now defined in simple.el.
(Fprocess_contact): Added KEY argument. Handle datagrams.
(list_processes_1): Optionally show only processes with the query
on exit flag set. Dynamically adjust column widths. Omit tty
column if not needed. Report stopped network processes.
Identify server and datagram network processes.
(Flist_processes): New optional arg `query-only'.
(conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
(conv_lisp_to_sockaddr, set_socket_options)
(network_process_featurep, unwind_request_sigio): New helper functions.
(Fprocess_datagram_address, Fset_process_datagram_address):
(Fset_network_process_options): New lisp functions.
(Fopen_network_stream): Removed. Now defined in simple.el.
(Fmake_network_process): New lisp function. Code is based on previous
Fopen_network_stream, but heavily reworked with new property list based
argument list, support for datagrams, server processes, and local
sockets in addition to old client-only functionality.
(server_accept_connection): New function.
(wait_reading_process_input): Use it to handle incoming connects.
Do not enable input on a new connection if process is stopped.
(read_process_output): Handle datagram sockets. Use 2k buffer for them.
(send_process): Handle datagram sockets.
(Fstop_process, Fcontinue_process): Apply to network processes. A stopped
network process is indicated by setting command field to t .
(Fprocess_send_eof): No-op if datagram connection.
(Fstatus_notify): Don't read input for a stream server socket or a
stopped network process.
(init_process): Initialize datagram_address array.
(syms_of_process): Intern and staticpro new variables, defsubr new
functions.
|
| | |
|
| | |
|