1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 20:50:52 -08:00
Commit graph

378 commits

Author SHA1 Message Date
Ken Raeburn
a814cc69c6 * process.c (status_message): Use SSET. 2002-07-16 15:49:48 +00:00
Richard M. Stallman
2af70a0cff (create_process): Test USG_SUBTTY_WORKS.
(process_send_signal): Clean up handling of GID.
Detect errors in ioctls meant to set GID.
2002-07-16 13:41:16 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Richard M. Stallman
20505336e1 (process_send_signal): Add abort call. 2002-07-12 11:13:47 +00:00
Juanma Barranquero
aed1337830 Use macro SPECPDL_INDEX. 2002-07-11 14:18:02 +00:00
Ken Raeburn
e923592f18 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
and XSTRING instead of XSYMBOL and name field.
2002-05-20 08:06:32 +00:00
Juanma Barranquero
aa87aafcde Fix typo. 2002-05-16 12:00:33 +00:00
Jason Rumney
a8e8ea6124 (init_process): Only add server subfeature if we can
use non-blocking I/O.
2002-05-04 14:55:19 +00:00
Jason Rumney
75728599a0 (Fmake_network_process): Only support server sockets
when we can make them non-blocking.
2002-05-03 21:24:27 +00:00
Stefan Monnier
cc4db0c748 (Fstart_process): Update call to openp. 2002-04-30 01:01:37 +00:00
Andrew Choi
e0f712ba55 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
2002-04-26 23:39:06 +00:00
Richard M. Stallman
b50fe468c8 Comment change. 2002-04-03 15:19:39 +00:00
Stefan Monnier
bed9664a99 (DATAGRAM_CONN_P, list_processes_1)
(Fprocess_datagram_address, Fset_process_datagram_address)
(Fset_network_process_options, server_accept_connection):
Fix some int/Lisp_Object confusions (thank you union types).
2002-04-01 19:50:51 +00:00
Miles Bader
d464840254 (DATAGRAM_CONN_P): Make sure PROC is really a process. 2002-03-28 06:43:02 +00:00
Pavel Janík
320aebc9b6 (set-network-process-options): Add usage.
(make-network-process): Doc fix.
2002-03-27 07:56:19 +00:00
Kim F. Storm
c2bd2c26f3 (init_process): Only provide make-network-process feature and
subfeatures if HAVE_SOCKETS.
2002-03-21 13:01:14 +00:00
Kim F. Storm
9057ff80bc (QCfeature, QCdatagram): Removed variables.
(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.
2002-03-21 12:20:24 +00:00
Jason Rumney
3635ecad99 (QCfamily, QCfiler): Remove duplicate declaration and initialization. 2002-03-20 20:37:41 +00:00
Eli Zaretskii
fb23673a66 (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
use "sun" as a variable, it's a predefined constant on Sun
machines.
2002-03-20 18:10:01 +00:00
Pavel Janík
44c887be5c (wait_reading_process_input): Move variables pname' and pnamelen' down
where they are used.
2002-03-18 18:22:37 +00:00
Kim F. Storm
28c6e94f3a Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
Remove explicit GNU_LINUX settings for datagram support.
2002-03-18 14:09:57 +00:00
Pavel Janík
fa9d4315b7 (Fmake_network_process): Remove unused variable `sa'.
Doc fix.  Add usage:.
(set_socket_options): Remove unused variables `optnum' and `opttype'.
2002-03-18 11:27:26 +00:00
Kim F. Storm
e690ca94fe (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
(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.
2002-03-17 20:20:33 +00:00
Kim F. Storm
f40f9848b6 (Fopen_network_stream): Always call turn_on_atimers around connect. 2002-03-03 00:31:22 +00:00
Kim F. Storm
922eae5667 (Fopen_network_stream): Use GCPRO6. 2002-03-01 21:04:00 +00:00
Kim F. Storm
e4984112de (Fprocess_status): Document connect and failed return values. 2002-03-01 00:00:21 +00:00
Kim F. Storm
dd2a17ab8b (Qconnect, Qfailed): New variables.
(syms_of_process): Intern and staticpro them.
[NON_BLOCKING_CONNECT]: New conditional.
(connect_wait_mask, num_pending_connects): New variables.
(status_message): Convert Qfailed status.
(Fopen_network_stream): Added support for non-blocking connect.
New optional args: filter, sentinel, non_blocking.  Doc updated.
[HAVE_GETADDRINFO, !HAVE_GETADDRINFO]:  Merged common code.
(deactivate_process): Handle pending non-blocking connect.
(wait_reading_process_input): Poll for status of non-blocking
connects.  Exec sentinel directly when connect succeeds.
(status_notify): Don't read process output if not yet connected.
2002-02-28 23:53:59 +00:00
Eli Zaretskii
fbb70ad9e6 (send_process): Set src_multibyte to 1 after the call
top setup_coding_system, not before the call.
2002-01-07 21:17:32 +00:00
Richard M. Stallman
8a2a6032da Test GNU_LINUX, not LINUX. 2001-12-11 22:20:20 +00:00
Paul Eggert
351e611fa8 (create_process): Use HAVE_WORKING_VFORK, not HAVE_VFORK. 2001-12-07 05:52:35 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Pavel Janík
3ecdf10095 (Fstart_process): Add usage to doc-string. 2001-11-02 07:01:10 +00:00
Pavel Janík
996fee11d7 Don't define max.
(create_process): Remove unused variable `buffer'.
2001-10-24 06:30:19 +00:00
Pavel Janík
fdb82f9337 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-20 20:56:10 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Pavel Janík
e2ba787b86 (process-inherit-coding-system-flag, get-buffer-process): Do not confuse
make-docfile with doc strings in comment.
2001-10-15 14:55:28 +00:00
Stefan Monnier
c0ec53ad99 Update calls to openp. 2001-10-12 03:37:43 +00:00
Gerd Moellmann
452294c2bf (send_process): Disable composition if from_byte < 0.
From Kenichi Handa <handa@etl.go.jp>.
2001-09-25 08:21:22 +00:00
Gerd Moellmann
4e6277d8de (sigchld_handler) [LINUX]: Don't return from
the signal handler at the end of the loop.
2001-09-24 09:18:19 +00:00
Gerd Moellmann
3fed8ad5b9 (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
since this function can be called during GC.
2001-09-20 11:44:26 +00:00
Gerd Moellmann
99c78ce82d (read_process_output): Don't call signal_after_change
and update_compositions after insert_from_string_before_markers.
2001-05-16 16:05:20 +00:00
Gerd Moellmann
c88164fe6b (wait_reading_process_input): Call
record_asynch_buffer_change only if a timer really changed
buffers.
2001-04-25 15:12:49 +00:00
Eli Zaretskii
78c1afb681 (wait_reading_process_input) [!subprocesses]: Don't
reference waiting_for_user_input_p, it's not defined in the branch
without async subprocesses support.
2001-04-21 19:52:11 +00:00
Gerd Moellmann
a2fab450ed (wait_reading_process_input): Call
record_asynch_buffer_change after running timers, to make
read_key_sequence aware of buffer changes from under it.
2001-04-19 12:47:59 +00:00
Gerd Moellmann
989521fdbc (Fset_process_window_size): Fix a typo. 2001-03-08 11:32:17 +00:00
Gerd Moellmann
471f86b9a3 (Fset_process_filter): Don't crash if the input
file descriptor of PROCESS is closed.
(Fset_process_window_size): Likewise.
2001-03-07 12:55:29 +00:00
Gerd Moellmann
98423852fc (make_process): Use allocate_process. 2001-02-28 13:29:03 +00:00
Gerd Moellmann
3007ebfbc7 Call redisplay_preserve_echo_area with additional arg. 2001-01-16 12:42:22 +00:00
Gerd Moellmann
9baacf7602 (wait_reading_process_input): Check for pending
input when running timers.
2000-12-18 10:53:51 +00:00
Kenichi Handa
dd97db0618 (read_process_output): Don't run a filter if the code
decoder produces nothing but carryover.
2000-12-18 00:39:59 +00:00