summaryrefslogtreecommitdiff
path: root/src/process.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* (wait_reading_process_output): Use process_pending_signals.Chong Yidong2009-01-291-6/+1
|
* * dbusbind.c (Fdbus_register_signal):Juanma Barranquero2009-01-181-1/+1
| | | | | * process.c (conv_sockaddr_to_lisp): * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
* (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)Eli Zaretskii2009-01-031-3/+74
| | | | | | | | | (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime) (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs) (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime) [!subprocesses]: Define. (syms_of_process) [!subprocesses]: Intern and staticpro them. (Flist_system_processes, Fsystem_process_attributes) [!subprocesses]: Call list_system_processes and system_process_attributes instead of returning Qnil.
* (top level) <Qtime, Qctime>: New variables.Eli Zaretskii2009-01-021-1/+9
| | | | | (syms_of_process): staticpro them. (Fsystem_process_attributes): Add their documentation to the doc string.
* (conv_sockaddr_to_lisp): Add workaround forAndreas Schwab2009-01-011-32/+41
| | | | getsockname bug on BSD.
* * process.c: (Flist_system_processes):Dan Nicolaescu2008-12-191-2/+2
| | | | | (Fsystem_process_attributes): Undo previous change, these functions are duplicated for the benefit of #ifndef subprocesses.
* * process.c: (Flist_system_processes):Dan Nicolaescu2008-12-191-2/+2
| | | | | (Fsystem_process_attributes): Fix strange CVS problem, return the correct value.
* Reorganize implementation of Flist_system_processes andDan Nicolaescu2008-12-191-437/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fsystem_process_attributes. No functional changes. * process.c: Don't #include pwd.h, grp.h and limits.h. (Flist_system_processes): Just call list_system_processes. (Fsystem_process_attributes): Just call system_process_attributes. (procfs_list_system_processes, time_from_jiffies) (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR) (procfs_get_total_memory, procfs_system_process_attributes): Move ... * sysdep.c: ... here. Include pwd.h, grp.h and limits.h. (list_system_processes): Rename from procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS. Provide a do nothing implementation. (system_process_attributes): Rename from procfs_list_system_processes. (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR) (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX. * w32.c (list_system_processes): Rename from w32_list_system_processes. (system_process_attributes): Rename from w32_system_process_attributes. * s/gnu-linux.h (LISTPROC, PROCATTR): Remove. * process.h (w32_list_system_processes) (w32_system_process_attributes): Remove. (list_system_processes, system_process_attributes): New prototypes. * config.nt (LISTPROC, PROCATTR): Remove.
* Include <limits.h>.Dan Nicolaescu2008-12-161-0/+4
|
* * process.c (Fsystem_process_attributes, syms_of_process):Juanma Barranquero2008-12-111-4/+4
| | | | | Fix typo in name of Ssystem_process_attributes. Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
* (procfs_system_process_attributes): If `nread' has a negative value, assignEli Zaretskii2008-12-051-1/+9
| | | | zero to it.
* (procfs_system_process_attributes): Don't use cmd, cmdsize, and q withoutEli Zaretskii2008-12-051-3/+8
| | | | initializing them first.
* (procfs_system_process_attributes): Multiply `pcpu' by 100, so it's inEli Zaretskii2008-10-021-1/+3
| | | | percents as advertised.
* (Faccept_process_output): Fix doc-string.Martin Rudalics2008-10-021-5/+5
|
* (procfs_system_process_attributes): Fix last change.Eli Zaretskii2008-09-191-1/+1
|
* (procfs_system_process_attributes): Fix cmdline in case /proc/PID/cmdlineEli Zaretskii2008-09-191-10/+10
| | | | is empty.
* (Fsystem_process_attributes): Doc fix.Roland Winkler2008-09-071-3/+3
|
* (Fsystem_process_attributes): Doc fix.Roland Winkler2008-09-061-3/+3
|
* (procfs_system_process_attributes): Fix portabilityAndreas Schwab2008-08-231-14/+21
| | | | problems.
* [!subprocesses]: Define QCname.Eli Zaretskii2008-08-231-1/+3
| | | | (syms_of_process): Intern and staticpro it.