1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
Commit graph

416 commits

Author SHA1 Message Date
Kenichi Handa
2d0f37d68c (send_process): Delete unused temp_buf. 2003-09-27 00:25:40 +00:00
Kim F. Storm
151ec9e26f (set_socket_option): Fix :bindtodevice option.
(Fset_network_process_option): Update process contact list when
setting option succeeds.
(Fmake_network_process): Doc fix.
2003-09-23 21:57:51 +00:00
Dave Love
559c53b384 (Fnetwork_interface_info): Use
HAVE_STRUCT_IFREQ... macros.
2003-09-23 12:40:39 +00:00
Dave Love
e128399941 (Fnetwork_interface_info): Fix type error.
(Fnetwork_interface_list): Doc fix.
(read_process_output, read_process_output): Delete unused var.
2003-09-18 10:40:04 +00:00
Kim F. Storm
b8c7fd71a2 (Fnetwork_interface_list, Fnetwork_interface_info):
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.
2003-09-17 21:32:35 +00:00
Kim F. Storm
2ccf3102d2 (Fset_process_sentinel): Add sentinel to childp plist
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.
2003-09-16 23:05:24 +00:00
Kim F. Storm
161933c7a7 [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
(Fnetwork_interface_list, Fget_network_interface_info): New defuns.
(syms_of_process): Defsubr them.
2003-09-13 23:34:33 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
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