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

499 commits

Author SHA1 Message Date
Kenichi Handa
8d4e7254fc (send_process_object_unwind): New function.
(send_process_object): New function.
(Fprocess_send_region): Call send_process_object.
(Fprocess_send_string): Likewise.
2007-02-23 03:44:37 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
Eli Zaretskii
d30fe7798a (Fdelete_process, Fprocess_id, sigchld_handler): Copy PID into EMACS_INT
to avoid GCC warnings.
2007-01-13 21:58:23 +00:00
Kim F. Storm
d7e344cda1 Fix typo in comment. 2006-12-27 21:46:25 +00:00
Kim F. Storm
324e68ba20 (Qsignal): Declare here.
(syms_of_process): Intern or staticpro it.
2006-12-19 15:37:34 +00:00
Eli Zaretskii
648f6edf03 (Fsignal_process): Doc fix. Use XFLOAT_DATA to extract the process ID from
a Lisp float.
2006-12-09 22:00:18 +00:00
Kim F. Storm
ec0f21f465 (parse_signal): Use xstricmp instead of strcasecmp.
(Fsignal_process): Don't use strncasecmp.
2006-12-07 11:12:21 +00:00
Kim F. Storm
59324b1dbc (parse_signal): Rename macro from handle_signal.
(Fsignal_process): Also accept lower-case variants of signal
names (to align with signal names generated by Emacs itself).
2006-12-04 15:21:39 +00:00
Kim F. Storm
d19c0a1c88 (Qsignal): Declare extern.
(syms_of_process): Don't intern/staticpro them here.

(read_process_output): Abort if carryover < 0.
2006-12-04 12:26:50 +00:00
Juanma Barranquero
d4e83d5c6c (syms_of_process) <delete-exited-processes>: Doc fix. 2006-11-12 22:32:14 +00:00
Kim F. Storm
1eed3bdcee (list_processes_1): Run sentinels before removing dead
processes.  Also remove `closed' network connections.
2006-10-03 09:14:40 +00:00
Richard M. Stallman
84af9896c3 (inhibit_sentinels): New variable.
(exec_sentinel): Test inhibit_sentinels.
(init_process): Initialize it.
2006-09-08 12:08:54 +00:00
Chong Yidong
42ec1561cf * process.c: Reapply 2006-08-01 change. 2006-08-05 01:38:42 +00:00
Chong Yidong
d634a67054 * process.c: Revert last change. 2006-08-03 15:19:20 +00:00
Kim F. Storm
2beb96f9cc (wait_reading_process_output_unwind): New function.
Restores waiting_for_user_input_p to saved value.
(wait_reading_process_output): Unwind protect waiting_for_user_input_p
instead of save/restore old value on stack.
2006-08-01 00:13:08 +00:00
Chong Yidong
7157b8fe89 Doc fix. 2006-07-10 18:51:42 +00:00
Kim F. Storm
a5cfdda8ad 2006-06-01 Michaël Cadilhac <michael.cadilhac@lrde.org>
(deleted_pid_list): New variable to store the pids
of deleted processes.  Declare it only if SIGCHLD is defined.
(init_process): Initialize it.
(syms_of_process): Staticpro it.
(Fdelete_process): Add pid of the deleted process to it.  Check after
the addition and before the kill if the process is already stopped,
in which case it is deleted from the list and not killed.
(sigchld_handler): Define it only if SIGCHLD is.  Search the process
that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
Original idea by Stefan Monnier.
2006-06-01 14:08:25 +00:00
Kim F. Storm
e1e541bdf1 (select_wrapper): Add wrapper around select to work around
"incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
select called from wait_reading_process_output.
2006-05-31 08:58:02 +00:00
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