1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00
Commit graph

408 commits

Author SHA1 Message Date
Kenichi Handa
e430e5baa0 (read_process_output): Return the actually read bytes
instead of the result of decoding.
2003-07-31 01:24:44 +00:00
Richard M. Stallman
2601f59e10 (wait_reading_process_input): Don't signal SIGIO in batch mode. 2003-06-22 00:04:49 +00:00
Stefan Monnier
26d7389d54 (allocate_pty): Revert part of the previous patch.
(Faccept_process_output): Simplify.
2003-06-04 23:21:11 +00:00
Stefan Monnier
34967d0ff4 (allocate_pty): Remove `unused var stb' and
`cp might be used uninitialized' warnings.
2003-05-25 17:43:20 +00:00
David Kastrup
4771444172 (read_process_output): Back out change from 2003-03-09. 2003-05-17 20:03:22 +00:00
David Kastrup
9e25126f0b (read_process_output): We have allocated enough space
for readmax and carryover, so actually use the alloted space.
2003-03-09 22:48:08 +00:00
Jan Djärv
1678225877 Removed subtty, workaround for when TIOCSIGSEND fails. 2003-02-21 18:13:53 +00:00
Juanma Barranquero
19310311a7 (wait_reading_process_input): Use POLL_INTERRUPTED_SYS_CALL, not
POLLING_PROBLEM_IN_SELECT.
2003-02-21 08:05:55 +00:00
Kenichi Handa
20f1ef2e3a (setup_process_coding_systems): If the process's
in/out descriptor is -1, do nothing.
2003-02-20 01:54:27 +00:00
Kim F. Storm
7392e23cf9 Doc fixes.
(syms_of_process): Add `:' prefix to QCfilter_multibyte.
2003-02-10 13:51:59 +00:00
Kenichi Handa
03f0441359 (QCfilter_multibyte): New variable.
(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.
2003-02-10 07:58:29 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Kim F. Storm
3452df9e69 (set-process-filter): Document unibyte/multibyte-ness of string argument. 2003-01-16 12:59:18 +00:00
Kim F. Storm
26a086c6a4 (Fset_process_plist): Fixed return value. 2003-01-14 13:36:14 +00:00
Kim F. Storm
faa7db081a Reworked 2003-01-12 change -- call a plist a plist!
(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.
2003-01-14 09:55:50 +00:00
Kim F. Storm
ac4a75846b (QCvars): New variable.
(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.
2003-01-12 20:24:06 +00:00
Kim F. Storm
365aee8238 (Fset_process_contact): New function.
(syms_of_process): defsubr it.
(make-network-process): Update doc.
2003-01-10 22:24:41 +00:00
Kim F. Storm
21bd170dde (Fmake_network_process): Convert new port number
to host byte order for `:service t' case.  From Mario Lang.
2003-01-08 22:16:12 +00:00
Kim F. Storm
0dccee41bd (format-network-address): Added optional OMIT-PORT arg. Callers changed. 2003-01-08 15:35:03 +00:00
Kim F. Storm
2185db0450 (server_accept_connection): Fixed recording of new
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.
2003-01-08 10:38:06 +00:00
Dave Love
1fc84d77bb (_GNU_SOURCE): Don't define. 2002-11-18 15:40:28 +00:00
Kim F. Storm
9a9e711ed3 (Fformat_network_address): Removed unused locals p, cp, and i. 2002-11-07 23:18:45 +00:00
Richard M. Stallman
454fd6b4ef (wait_reading_process_input):
Test POLLING_PROBLEM_IN_SELECT, not hpux.
Avoid initialization for auto Lisp_Object var.
2002-11-06 05:01:46 +00:00
Stefan Monnier
8d2ff84085 (Fformat_network_address): Fix int/Lisp_Object mixup. 2002-10-31 16:22:07 +00:00
Dave Love
e62cab61d5 Include sys/wait.h.
[HAVE_PTY_H]; Include pty.h.
2002-10-30 19:16:32 +00:00
Kim F. Storm
cdd5ea86db (Fsignal_process): Allow PROCESS to be specified by
name in addition to pid (as integer or string).
2002-10-28 23:18:50 +00:00
Kim F. Storm
991234f01a (Fformat_network_address): New function.
(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.
2002-10-24 08:03:41 +00:00
Kim F. Storm
9e9a579219 (make-network-process): Doc fix (there is no network-server-log-function hook). 2002-09-18 19:30:26 +00:00
Richard M. Stallman
75eb23f13f (wait_reading_process_input, both versions):
Before calling turn_on_atimers, call stop_polling.
2002-09-12 03:27:40 +00:00
Richard M. Stallman
ed30cf85d7 (Fstart_process): Remove /: from program name. 2002-08-24 03:16:03 +00:00
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