aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix whitespace to follow coding guidelines.Juanma Barranquero2010-07-071-11/+11
| |
* | Convert function definitions and declarations to standard C.Dan Nicolaescu2010-07-051-3/+3
| | | | | | | | | | | | | | | | | | * src/vm-limit.c (memory_warnings): * src/keyboard.c (modify_event_symbol): * src/floatfns.c (rounding_driver, ceiling2, floor2, truncate2) (round2, emacs_rint): * src/process.c (send_process, old_sigpipe): Convert function definitions and declarations to standard C.
* | Convert most remaining function definitions to standard C.Juanma Barranquero2010-07-051-106/+50
| | | | | | | | | | | | | | | | * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c, * xdisp.c: Convert function definitions to standard C. * cm.c (cmputc): Arg C is now int, not char. * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
* | Remove __P and P_ from .c and .m files and definition of P_Jan D2010-07-021-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp.h: * atimer.h: Remove define for P_. * alloc.c: Remove __P and P_ from .c and .m files. * atimer.c: * buffer.c: * callint.c: * category.c: * charset.c: * chartab.c: * cm.c: * coding.c: * composite.c: * data.c: * dired.c: * dispnew.c: * doc.c: * editfns.c: * emacs.c: * eval.c: * fileio.c: * filelock.c: * fns.c: * font.c: * fontset.c: * frame.c: * ftfont.c: * ftxfont.c: * gmalloc.c: * gtkutil.c: * image.c: * indent.c: * intervals.c: * keyboard.c: * keymap.c: * lread.c: * marker.c: * menu.c: * minibuf.c: * print.c: * process.c: * scroll.c: * search.c: * sound.c: * strftime.c: * syntax.c: * sysdep.c: * term.c: * terminal.c: * textprop.c: * unexalpha.c: * w32console.c: * w32fns.c: * w32font.c: * w32menu.c: * w32term.c: * w32uniscribe.c: * window.c: * xdisp.c: * xfaces.c: * xfns.c: * xfont.c: * xftfont.c: * xmenu.c: * xselect.c: * xterm.c: Likewise. * ebrowse.c: Remove P_ and __P. * etags.c: * movemail.c: * pop.c: * update-game-score.c: Likewise.
* | Avoid erroneous syscallsAndreas Schwab2010-07-011-3/+6
| | | | | | | | | | | | * process.c (create_process): Avoid using invalid file descriptors. * callproc.c (child_setup): Avoid closing a file descriptor twice.
* | Merge from emacs-23Andreas Schwab2010-06-101-1/+3
|\ \ | |/
| * * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4Andreas Schwab2010-06-041-1/+3
| | | | | | | | address.
* | * process.c (Fmake_network_process): Set :host to nil if it's not used.Stefan Monnier2010-05-241-11/+16
| | | | | | | | Suggested by Masatake YAMATO <yamato@redhat.com>.
* | Remove POSIX_SIGNALS.Dan Nicolaescu2010-05-031-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * s/usg5-4.h (POSIX_SIGNALS): * s/netbsd.h (POSIX_SIGNALS): * s/msdos.h (POSIX_SIGNALS): * s/ms-w32.h (POSIX_SIGNALS): * s/hpux11.h (POSIX_SIGNALS): * s/gnu.h (POSIX_SIGNALS): * s/gnu-linux.h (POSIX_SIGNALS): * s/freebsd.h (POSIX_SIGNALS): * s/darwin.h (POSIX_SIGNALS): * s/cygwin.h (POSIX_SIGNALS): * s/aix4-2.h (POSIX_SIGNALS): Remove definition. * s/unixware.h: * s/sol2-6.h: Remove comments on POSIX_SIGNALS. * process.c (create_process): * syssignal.h: * sysdep.c (wait_for_termination, init_signals): * process.c (create_process): * msdos.c: POSIX_SIGNALS is always defined on all platforms, remove all code that assumes the contrary.
* | Don't burp if process sentinel/filter kills the current buffer.Stefan Monnier2010-04-291-2/+2
| | | | | | | | | | | | | | * process.c (read_process_output, exec_sentinel): Don't burp if the sentinel/filter kills the current buffer. Fixes: debbugs:6060
* | Try to solve the problem of spurious EOF chars in long lines of textStefan Monnier2010-04-121-33/+4
| | | | | | | | | | | | | | | | | | | | sent to interactive subprocesses. * sysdep.c (child_setup_tty): Do not enable ICANON any more. (system_process_attributes): Remove unused var `ttotal'. * process.c (send_process): Don't bother breaking long line with EOF chars when talking to ttys any more. (wait_reading_process_output): Output a warning when called in such a way that it could block without being interruptible.
* | * process.c (status_notify): Remove unused var `ro'.Stefan Monnier2010-04-121-3/+1
| |
* | * process.c (exec_sentinel): Preserve current-buffer.Stefan Monnier2010-04-111-0/+5
| |
* | (read_process_output): Move the save-current-buffer toStefan Monnier2010-04-111-21/+16
| | | | | | | | apply to both the filter and the non-filter branches.
* | Remove extern errno declarations.Dan Nicolaescu2010-04-011-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xterm.c: * xrdb.c: * w32term.c: * unexec.c: * unexaix.c: * sysdep.c: * process.c: * lread.c: * keyboard.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c (main): * ecrt0.c: * dispnew.c: * callproc.c: * buffer.c: Remove errno extern declarations. * s/netbsd.h (NEED_ERRNO): Remove. * movemail.c: * etags.c: * emacsclient.c: Remove extern errno declarations.
* | Clean up BSD_SYSTEM use.Dan Nicolaescu2010-03-311-2/+2
| | | | | | | | | | | | | | | | | | * xterm.c: * process.c: * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard for including <sys/ioctl.h>. * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this code is only used for MSDOS.
* | * process.c (Fmake_network_process): Don't apply Bug#5173 fix for Windows.Chong Yidong2010-03-261-13/+22
| |
* | Don't call turn_on_atimers around `connect' (Bug#5723).YAMAMOTO Mitsuharu2010-03-251-14/+0
| |
* | Call `select' for interrupted `connect' rather than creating new socket ↵Helmut Eller2010-03-251-5/+32
| | | | | | | | (Bug#5173).
* | Remove dead code dealing with POSIX_SIGNALS.Dan Nicolaescu2010-03-221-38/+7
|/ | | | | | | | | | | | | * atimer.c (set_alarm): Remove dead code, all USG systems define POSIX_SIGNALS. * data.c (arith_error): Likewise. * keyboard.c (input_available_signal, handle_user_signal) (interrupt_signal): Likewise. * process.c (sigchld_handler): Likewise. (create_process): Remove if 0 code. Remove HPUX conditional when !defined (POSIX_SIGNALS), it cannot be true. * syssignal.h: Remove USG5_4 and USG conditionals when !POSIX_SIGNALS, they cannot be true.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* process.c: Fix typo in comment.Juanma Barranquero2009-12-291-1/+1
|
* (Fmake_network_process): Fix up the tests forStefan Monnier2009-12-031-4/+4
| | | | "connectionless socket", so they DTRT for seqpacket sockets as well.
* (Qseqpacket): New symbol.Stefan Monnier2009-12-031-3/+17
| | | | | | | (HAVE_SEQPACKET): New macro. (Fmake_network_process): Accept new :type `seqpacket'. (init_process): Add `seqpacket' feature when applicable. (syms_of_process): Initialize Qseqpacket.
* Use a select wrapper around the GLib event loop, thus taking into account GLibJan Djärv2009-11-211-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | timeouts and event sources. This simplifies Gtk+-code a lot, and is needed for handling GConf death/restart. * xterm.c: #include xgselect.h. (x_initialize): Call xgselect_initialize. * xsettings.c (something_changedCB): C++ comments => C comments. (init_gconf): Do not deal with any GLib file descriptors, xg_select does that now. * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer) (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback) (scroll_bar_button_cb): Remove. (create_menus): C++ comments => C comments. Don't bind grab-notify event. (xg_create_scroll_bar): Don't bind button-press-event and button-release-event. * process.c: Include xgselect.h if defined (USE_GTK) || defined (HAVE_GCONF). (wait_reading_process_output): Call xg_select for the same condition. * xgselect.c (xg_select): New function to better integrate with GLib/Gtk event handling. Needed if GConf daemon dies/restarts. * xgselect.h: New file, declare xg_select, xgselect_initialize. * Makefile.in (XOBJ): Add xgselect.o.
* * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): RemoveAndreas Schwab2009-11-211-1/+1
| | | | | | | ignored second argument. All callers changed. * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR) (RE_STRING_CHAR_AND_LENGTH): Likewise. * xdisp.c (string_char_and_length): Likewise.
* * process.c (ifflag_def): Make flag_sym constant.Dan Nicolaescu2009-11-111-3/+3
| | | | | | | | | | | | | | | | | | (Fnetwork_interface_info): Use a constant pointer. (ifflag_table): * xfns.c (cursor_bits): * xdisp.c (power_letter): * termcap.c (speeds, esctab): * sysdep.c (baud_convert): * keyboard.c (lispy_accent_codes, modifier_names): * image.c (xbm_format, xpm_format, pbm_format, png_format) (jpeg_format, tiff_format, gif_format, svg_format) (interlace_start, interlace_increment, gs_format): * gtkutil.c (separator_names): * fringe.c (swap_nibble): * fns.c (base64_value_to_char, base64_char_to_value): * fileio.c (make_temp_name_tbl): * coding.c (suffixes): Make constant.
* Bug #4574. Common code for file/font dialog. Handle timers with glib-timers.Jan Djärv2009-11-101-1/+0
| | | | | | | | | | | | | | | | | | | | | * keyboard.h: Declare timer_check. * keyboard.c (timer_check_2): New function that does what the old timer_check did. (timer_check): Call timer_check_2 until -1 or a non-zero time is returned, i.e. don't return -1 with timers pending. * process.c: Remove extern declaration of timer_check. * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout even if timer_check returned -1. * gtkutil.c (xg_dialog_response_cb): data is now a struct xg_dialog_data (pop_down_dialog): Destroy widget (if any), cancel timer and unref the event loop. (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574). (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574). Destroy the dialog after xg_dialog_run.
* * xterm.c (syms_of_xterm):Dan Nicolaescu2009-11-061-115/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
* * process.c (socket_options): Make it const.Dan Nicolaescu2009-11-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Update prototypes. (DEFUN, EXFUN): Support for prototypes is now required. (intern_c_string): New prototype. (struct Lisp_Subr): Make symbol_name constant. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant. * character.h (DEFSYM): Use intern_c_string.
* * process.c (create_pty): Remove conditionals for no longerDan Nicolaescu2009-10-191-2/+2
| | | | supported systems: UNIPLUS and RTU.
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* (list_processes_1): Use long format in printf, and cast argument.Adrian Robert2009-10-131-1/+1
|
* *** empty log message ***Nick Roberts2009-08-301-1/+1
|
* (wait_reading_process_output): Keep the descriptorNick Roberts2009-08-301-4/+9
| | | | | when pty is used by a non-child process, e.g., in I/O buffer of GDB this allows inferior to be restarted.
* (send_process): Use encode_coding_object instead ofKenichi Handa2009-08-271-1/+2
| | | | | encode_coding_string to perform eol-conversion even if the string is unibyte.
* * process.c (status_notify): Don't perform redisplay.Chong Yidong2009-08-171-9/+13
| | | | | | | (Fdelete_process, list_processes_1, process_send_signal): Expliticly perform redisplay. (wait_reading_process_output): Always check process status, but don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
* (create_pty): Fix last change.Eli Zaretskii2009-08-141-1/+6
|
* (create_pty): New function.Nick Roberts2009-08-131-68/+158
| | | | | | | (Fstart_process): Use it to allow Emacs to just associate a pty with the buffer. See associated change in gdb-mi.el. (list_processes_1): Deal with no program name. (start_process_unwind): Use pid == -2 to mean no process.
* (Fset_process_query_on_exit_flag): Mention killingJuri Linkov2009-07-181-1/+1
| | | | a buffer in docstring.
* Simplify last change.Andreas Schwab2009-06-281-11/+6
|
* (send_process): Keep decoded string in a localAndreas Schwab2009-06-281-5/+7
| | | | variable and protect it from GC. (Bug#3521)
* (status_message): Pass Faset index argument as a lisp object, so as to workKen Raeburn2009-06-201-1/+1
| | | | with USE_LISP_UNION_TYPE.
* (status_message): Fix previous change. Be sure toKenichi Handa2009-06-151-5/+14
| | | | decode a localized string.
* * process.c (status_message): Fix handling of multibyte signalChong Yidong2009-06-091-1/+3
| | | | string (Bug#3499).
* (read_process_output): Make sure the current buffer isAndreas Schwab2009-05-021-2/+3
| | | | always restored.
* (create_process): Clean up merger residues of 2008-07-17 change.YAMAMOTO Mitsuharu2009-04-291-8/+0
|
* * fns.c (Flocale_info): Protect vector from GC during decoding.Andreas Schwab2009-04-281-18/+32
| | | | | * process.c (Fstart_process): Protect argv strings from GC during encoding.
* Rename `system-process-attributes' to `process-attributes'Miles Bader2009-02-231-10/+8
| | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1553
* (send_process): Properly relocate pointer into dataAndreas Schwab2009-02-101-2/+6
| | | | when using encoded data.