aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (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
|
* (init_process): Only add server subfeature if we canJason Rumney2002-05-041-1/+1
| | | | use non-blocking I/O.
* (Fmake_network_process): Only support server socketsJason Rumney2002-05-031-1/+3
| | | | when we can make them non-blocking.
* (Fstart_process): Update call to openp.Stefan Monnier2002-04-301-1/+1
|
* Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,Andrew Choi2002-04-261-0/+13
| | | | lisp/ChangeLog, and src/ChangeLog for list of changes.
* Comment change.Richard M. Stallman2002-04-031-1/+2
|
* (DATAGRAM_CONN_P, list_processes_1)Stefan Monnier2002-04-011-8/+8
| | | | | | (Fprocess_datagram_address, Fset_process_datagram_address) (Fset_network_process_options, server_accept_connection): Fix some int/Lisp_Object confusions (thank you union types).
* (DATAGRAM_CONN_P): Make sure PROC is really a process.Miles Bader2002-03-281-1/+1
|
* (set-network-process-options): Add usage.Pavel Janík2002-03-271-3/+5
| | | | (make-network-process): Doc fix.
* (init_process): Only provide make-network-process feature andKim F. Storm2002-03-211-16/+19
| | | | subfeatures if HAVE_SOCKETS.
* (QCfeature, QCdatagram): Removed variables.Kim F. Storm2002-03-211-121/+72
| | | | | | | | | | | | | | (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.
* (QCfamily, QCfiler): Remove duplicate declaration and initialization.Jason Rumney2002-03-201-6/+6
|
* (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don'tEli Zaretskii2002-03-201-7/+7
| | | | | use "sun" as a variable, it's a predefined constant on Sun machines.
* (wait_reading_process_input): Move variables `pname' and `pnamelen' downPavel Janík2002-03-181-11/+14
| | | | where they are used.
* Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.Kim F. Storm2002-03-181-9/+1
| | | | Remove explicit GNU_LINUX settings for datagram support.
* (Fmake_network_process): Remove unused variable `sa'.Pavel Janík2002-03-181-4/+4
| | | | | Doc fix. Add usage:. (set_socket_options): Remove unused variables `optnum' and `opttype'.
* (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)Kim F. Storm2002-03-171-274/+1630
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* (Fopen_network_stream): Always call turn_on_atimers around connect.Kim F. Storm2002-03-031-4/+2
|
* (Fopen_network_stream): Use GCPRO6.Kim F. Storm2002-03-011-5/+4
|