1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

481 commits

Author SHA1 Message Date
Kenichi Handa
6b62b48dbd (setup_process_coding_systems): Use system_eol_type
for encoding if eol_type is not yet decided.
(read_process_output): Likewise.
(send_process): Likewise.
2006-05-08 05:19:42 +00:00
Richard M. Stallman
9d1a8e5da1 (conv_lisp_to_sockaddr): Fix previous change. 2006-04-13 01:08:27 +00:00
Richard M. Stallman
27448380dc (Fprocess_send_eof): Abort if fail to open null device. 2006-04-12 15:01:37 +00:00
Richard M. Stallman
6bf890d76a (conv_lisp_to_sockaddr): If FAMILY unknown, just return. 2006-04-12 15:00:32 +00:00
Stefan Monnier
6bfd98e75d * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
`raw_status_high', and `raw_status_low' with plain integers, and move
them to the end of the structure.

* alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
pseudovector's size field so only the Lisp_Object fields get GC'd.

* process.c (update_status, make_process, Fdelete_process)
(Fprocess_status, list_processes_1, start_process_unwind)
(create_process, Fmake_network_process, server_accept_connection)
(wait_reading_process_output, send_process, Fprocess_running_child_p)
(process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
(sigchld_handler, status_notify): Adjust to new non-Lisp fields for
`pid' and `raw_status'.
(Fprocess_id, Fsignal_process): Same, and additionally use floats when
representing PIDs that are larger than most-positive-fixnum.
2006-04-08 15:07:35 +00:00
Kim F. Storm
5088da42b6 (Faccept_process_output): Fix to comply with lisp reference.
Change arg "timeout" to "seconds" and allow both integer and float value.
Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
rather than microseconds.  Fix doc string accordingly.
2006-03-22 22:33:35 +00:00
Romain Francoise
635a349655 (Vprocess_adaptive_read_buffering): Doc fix. 2006-03-11 14:42:17 +00:00
Stefan Monnier
f523e0c3c5 (Fmake_network_process): Init the process's mark. 2006-02-25 16:49:00 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
YAMAMOTO Mitsuharu
2026418cf3 [HAVE_INTTYPES_H]: Include inttypes.h.
(ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
(Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
macro.  Also try member ifr_addr when getting netmask.
2006-01-12 08:16:12 +00:00
Kim F. Storm
87b6ca8d4e (Fmake_network_process): Use AF_INET instead of
AF_UNSPEC when AF_INET6	is not defined.
2006-01-05 09:24:11 +00:00
Eli Zaretskii
805b043931 [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support for w32. 2006-01-04 17:52:40 +00:00
Kim F. Storm
e1652a8612 Add IPv6 support.
(Qipv4, Qipv6): New vars.
(syms_of_process): Intern and staticpro them.
(Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
with or without port number.  Handle 4 element vector as IPv4 address
without port number.
(conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
(conv_lisp_to_sockaddr): Handle IPv6 addresses.
(Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
request that address family only.  :family nil or omitted means to
determine address family from the specified :host and :service.
(server_accept_connection): Handle IPv6 addresses.
(init_process): Add (:family ipv4) and (:family ipv6) sub-features.
(ifflag_table): Add missing OpenBSD IFF_ flags.
2006-01-04 00:16:54 +00:00
Andreas Schwab
82a800588d (Fnetwork_interface_info): Correctly terminate the
loop over ifflag_table.
2005-12-30 11:03:41 +00:00
Kim F. Storm
675984ede6 (Fsignal_process): Recognize signal names with and
without SIG prefix, e.g. SIGHUP and HUP.
2005-11-08 21:38:37 +00:00
Dan Nicolaescu
fa8459a34e * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct
type.
* xterm.c (handle_one_xevent, handle_one_xevent): Likewise.

* unexelf.c (fatal): Fix prototype.

* term.c (fatal): Implement using varargs.

* regex.c (re_char): Move typedef ...
* regex.h (re_char): ... here.
(re_iswctype, re_wctype, re_set_whitespace_regexp): New
prototypes.

* emacs.c (malloc_set_state): Fix return type.
(endif): Fix type.

* lisp.h (fatal): Add argument types.

* dispextern.h (fatal): Delete prototype.

* systime.h: (make_time): Prototype moved from ...
* editfns.c (make_time): ... here.

* editfns.c: Move systime.h include after lisp.h.
* dired.c:
* xsmfns.c:
* process.c: Likewise.

* alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
Add parameter types.
(__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
(emacs_blocked_free): Change definition to match __free_hook.
(emacs_blocked_malloc): Change definition to match __malloc_hook.
(emacs_blocked_realloc): Change definition to match
__realloc_hook.
2005-09-30 22:38:16 +00:00
Dan Nicolaescu
43f15d4afe * xlwmenu.c (find_next_selectable):
(find_prev_selectable): Add missing parameter
declarations.

* xfaces.c (lookup_derived_face): Add parameter type.

* xdisp.c (cursor_row_fully_visible_p): Add parameter type.

* marker.c (verify_bytepos): Add parameter type.

* process.c (get_operating_system_release): Move prototype ...

* systime.h (get_operating_system_release): ... here.

* xterm.c (set_vertical_scroll_bar): Move prototype ...

* xterm.h: ... here.

* fns.c (internal_equal, seed_random): Fix prototypes.
(internal_equal): Add missing parameter.
2005-09-27 18:48:59 +00:00
YAMAMOTO Mitsuharu
21375f1e33 (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
Setup slave tty options before forking.
2005-09-21 08:03:30 +00:00
Kim F. Storm
ff6daed304 (deactivate_process, status_notify, read_process_output)
(update_status, status_convert, decode_status, allocate_pty)
(make_process, remove_process, list_processes_1)
(create_process_1, unwind_request_sigio, read_process_output)
(send_process, keyboard_bit_set): Declare static.
(Fdelete_process): Simplify.  Pass process to status_notify, so we
don't try to read output from it.
(status_notify): New arg deleting_process--don't try to read
output from that process.
2005-08-15 08:44:53 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Juanma Barranquero
a9a73d6c0b (Fstop_process, Fcontinue_process): Follow error conventions. 2005-06-23 16:13:54 +00:00
Juanma Barranquero
d22426e187 (Fmake_network_process): Fix spellings. 2005-06-21 13:30:39 +00:00
Juanma Barranquero
2de35a2582 (syms_of_process) [ADAPTIVE_READ_BUFFERING]: Fix spellings in docstrings. 2005-06-10 14:19:26 +00:00
Kim F. Storm
89f2614d96 * composite.c (compose_chars_in_text):
* eval.c (do_autoload):
* macmenu.c (set_frame_menubar):
* process.c (read_process_output, exec_sentinel):
* xmenu.c (set_frame_menubar):
* xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
* w32menu.c (set_frame_menubar):
Use record_unwind_save_match_data.
Rename restore_match_data to restore_search_regs.
2005-06-08 22:33:36 +00:00
Richard M. Stallman
01836ccef0 (Fstart_process): Don't touch command_channel_p slot. 2005-06-08 15:18:10 +00:00
Kim F. Storm
db853b7a75 Improve commentary for adaptive read buffering. 2005-06-07 13:19:25 +00:00
Andreas Schwab
41c4895cd7 (send_process): Move misplaced volatile. 2005-05-22 09:49:43 +00:00
Andreas Schwab
edceb51cbc (send_process): Remove misplaced volatile. 2005-05-22 09:35:04 +00:00
Eli Zaretskii
0ff692700b (send_process): Restore the SIGPIPE handler if we catch a SIGPIPE. 2005-05-21 11:58:49 +00:00
Richard M. Stallman
c8f440050a (send_process_trap): Unblock SIGPIPE.
(send_process): Reset SIGPIPE handler before reporting error.
2005-05-14 14:06:33 +00:00
Stefan Monnier
c1120f9404 (Vfile_name_coding_system, Vdefault_file_name_coding_system):
Remove unused declarations.
2005-03-24 19:14:05 +00:00
YAMAMOTO Mitsuharu
ecc175e254 (init_process): Change #ifdef DARWIN' to #if defined (DARWIN) ||
defined (MAC_OSX)'
2005-03-16 08:09:28 +00:00
Steven Tamm
d9e7c62260 * s/darwin.h: Removed PTY_ITERATION from here.
(DARWIN): Defined.
* process.c (init_process): Default process-connection-type to
	nil on darwin 6 or less, t if it is 7 or higher.  This way the
	broken pty behavior is still allowed on darwin 6 for interactive
	processes for people that know what they are doing.
2005-01-22 15:54:04 +00:00
Richard M. Stallman
ec2258fa88 (list_processes_1): Set undo_list instead of calling Fbuffer_undo_list. 2004-12-27 16:06:43 +00:00
Jan Djärv
333f1b6f78 * syssignal.h: Declare main_thread.
(SIGNAL_THREAD_CHECK): New macro.

* keyboard.c (input_available_signal): Move thread checking code
to macro SIGNAL_THREAD_CHECK and call that macro.
(interrupt_signal): Call SIGNAL_THREAD_CHECK.

* alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.

* emacs.c: Define main_thread.
(main): Initialize main_thread.
(handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
(memory_warning_signal): Call SIGNAL_THREAD_CHECK.

* floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.

* dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.

* sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.

* process.c (send_process_trap, sigchld_handler): Call
SIGNAL_THREAD_CHECK.

* data.c (arith_error): Call SIGNAL_THREAD_CHECK.

* atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
2004-12-15 21:40:41 +00:00
Kim F. Storm
eb943af045 (Fmake_network_process): Remove unused var 'retry'. 2004-11-09 11:15:46 +00:00
Kim F. Storm
4e9dd03b8c (Fmake_network_process): Remove kludge for interrupted
connects on BSD.  If connect is interrupted, just close socket and
start over rather than sleeping and retry with same socket.
2004-11-09 09:40:37 +00:00
Kim F. Storm
bad49fc7c2 (connect_wait_mask, num_pending_connects): Only
declare and use them if NON_BLOCKING_CONNECT is defined.
(IF_NON_BLOCKING_CONNECT): New helper macro.
(wait_reading_process_output): Only declare and use local vars
Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
(init_process): Initialize them if NON_BLOCKING_CONNECT defined.
2004-11-01 11:04:37 +00:00
Kenichi Handa
9de36315db (send_process): Be sure to free composition data. 2004-09-29 23:43:48 +00:00
Richard M. Stallman
f1c206fcfb (process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]:
If there's no char for this signal, drop through and use system calls.
2004-08-22 17:45:36 +00:00
Kim F. Storm
214d60691b (wait_reading_process_output): Rename from
wait_reading_process_input.  All uses changed.
(wait_reading_process_output_1): Rename from
wait_reading_process_input_1.  All uses changed.
2004-08-20 10:33:25 +00:00
Kim F. Storm
b89a415ab1 * process.c (wait_reading_process_input): Clean up.
Add wait_for_cell, wait_proc, and just_wait_proc args
to avoid overloading `read_kbd' and `do_display' args.
Change read_kbd arg to int.  All callers changed.
2004-08-19 13:57:17 +00:00
Kim F. Storm
ca4313d5ab (process_send_signal): Use CDISABLE. 2004-08-19 10:08:00 +00:00
Kim F. Storm
107ed38d4b (Faccept_process_output): Add arg JUST-THIS-ONE;
forward to wait_reading_process_input via DO_DISPLAY arg.
(wait_reading_process_input): If DO_DISPLAY < 0 for a process
object, only process output from that process; also inhibit
running timers if DO_DISPLAY==-2.
2004-08-17 22:24:29 +00:00
Kim F. Storm
be16bf871e (process_send_signal): Fix last change--use
_POSIX_VDISABLE instead of CVDISABLE when available.
2004-08-17 21:59:07 +00:00
Richard M. Stallman
7f916a363e (process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
Do nothing if the character is CVDISABLE.
2004-08-16 22:57:26 +00:00
Kim F. Storm
39b1da208b (read_process_output): Use whole read buffer.
Don't trigger adaptive read buffering on errors.
2004-08-01 23:10:06 +00:00
Steven Tamm
e082ac9deb Fixes for Ctrl-G support on carbon, replacing old timeout based polling
with alarm based polling.
mac.c (sys_select): Redo sys_select to use alarm-based
polling instead of 1 sec timeouts (like solaris).
macterm.c (x_make_frame_visible): Comment in polling on
frame creation.
keyboard.c: Undef SIGIO on Carbon
atimer.c (alarm_signal_handler): Call alarm handlers after
scheduling.
eval.c (Feval): Remove quit_char test
process.c (wait_reading_process_input): Remove clearing
stdin for select call on process input
2004-07-19 04:42:43 +00:00
Richard M. Stallman
04391069ec Comment change. 2004-06-13 22:37:07 +00:00