1. 05 Nov, 2012 1 commit
    • Paul Eggert's avatar
      Assume at least POSIX.1-1988 for getpgrp, setpgid, setsid. · dd0333b6
      Paul Eggert authored
      This removes code that has been obsolete since around 1990.
      * admin/CPP-DEFINES (HAVE_SETPGID, HAVE_SETSID, SETPGRP_RELEASES_CTTY):
      Remove; obsolete.
      * configure.ac (setpgid, setsid): Assume their existence.
      (AC_FUNC_GETPGRP, SETPGRP_RELEASES_CTTY): Remove; obsolete.
      * src/callproc.c (Fcall_process):
      * src/emacs.c (main):
      * src/process.c (create_process):
      * src/term.c (dissociate_if_controlling_tty):
      Assume setsid exists.
      * src/callproc.c (child_setup): Assume setpgid exists and behaves as
      per POSIX.1-1988 or later.
      * src/conf_post.h (setpgid) [!HAVE_SETPGID]: Remove.
      * src/emacs.c (shut_down_emacs):
      * src/sysdep.c (sys_suspend, init_foreground_group):
      Assume getpgrp behaves as per POSIX.1-1998 or later.
      * src/msdos.c (setpgrp): Remove.
      (tcgetpgrp, setpgid, setsid): New functions.
      * src/systty.h (EMACS_GETPGRP): Remove.  All callers now use getpgrp.
      * src/term.c (no_controlling_tty): Remove; unused.
      * src/w32proc.c (setpgrp): Remove.
      (setsid, tcgetpgrp): New functions.
      
      Fixes: debbugs:12800
      dd0333b6
  2. 04 Nov, 2012 1 commit
    • Paul Eggert's avatar
      Remove EMACS_OUTQSIZE+sleep hack. · 06b63c9b
      Paul Eggert authored
      * dispnew.c (update_frame_1): Remove hack for terminals slower
      than 2400 bps, which throttled Emacs by having it sleep.  This
      code hasn't worked since at least 2007, when the multi-tty stuff
      was added, and anyway those old terminals are long dead.
      * systty.h (EMACS_OUTQSIZE): Remove; unused.  The macro isn't used even
      without the dispnew.c change, as dispnew.c doesn't include systty.h.
      06b63c9b
  3. 13 Sep, 2012 1 commit
    • Paul Eggert's avatar
      Simplify SIGIO usage. · 4a4bbad2
      Paul Eggert authored
      The code that dealt with SIGIO was crufty and confusing, e.g., it
      played tricks like "#undef SIGIO" but these tricks were not used
      consistently.  Simplify mostly by not #undeffing standard symbols,
      e.g., use "defined USABLE_SIGIO" (our symbol, which we can define
      or not as we please) rather than "defined SIGIO" (standard symbol
      that we probably shouldn't #undef).
      * configure.ac (NO_TERMIO, BROKEN_FIONREAD, BROKEN_SIGAIO)
      (BROKEN_SIGPOLL, BROKEN_SIGPTY): Remove.
      (USABLE_FIONREAD, USABLE_SIGIO): New symbols.  All uses of
      'defined SIGIO' replaced with 'defined USABLE_SIGIO', with no need
      to #undef SIGIO now (which was error-prone).  Likewise, all uses
      of 'defined FIONREAD' replaced with 'defined USABLE_FIONREAD'.
      * src/admin/CPP_DEFINES (BROKEN_SIGAIO, BROKEN_SIGIO, BROKEN_SIGPOLL)
      (BROKEN_SIGPTY, NO_TERMIO): Remove.
      * src/conf_post.h [USG5_4]: Do not include <sys/wait.h> here.
      Modules that need it can include it.
      [USG5_4 && emacs]: Likewise, do not include the streams stuff here.
      * src/dispextern.h (ignore_sigio): New decl.
      * src/emacs.c (shut_down_emacs): Invoke unrequest_sigio
      unconditionally, since it's now a no-op if !USABLE_SIGIO.
      * src/emacs.c (shut_down_emacs):
      * src/keyboard.c (kbd_buffer_store_event_hold):
      Use ignore_sigio rather than invoking 'signal' directly.
      * src/keyboard.c (USABLE_FIONREAD && USG5_4): Include <sys/filio.h>,
      for FIONREAD.
      (FIONREAD, SIGIO): Do not #undef.
      (tty_read_avail_input): Use #error rather than a syntax error.
      * src/process.c [USG5_4]: Include <sys/stream.h> and <sys/stropts.h>,
      for I_PIPE, used by SETUP_SLAVE_PTY.
      (DATAGRAM_SOCKETS): Simplify defn, based on USABLE_FIONREAD.
      * src/sysdep.c (croak): Remove; no longer needed.  This bit of
      temporary code, with Fred N. Fish's comment that it's temporary,
      has been in Emacs since at least 1992!
      (init_sigio, reset_sigio, request_sigio, unrequest_sigio):
      Arrange for them to be no-ops in all cases when ! USABLE_SIGIO.
      * src/syssignal.h (croak): Remove decl.
      (SIGIO, SIGPOO, SIGAIO, SIGPTY): Do not #undef; that's too fragile.
      * src/systty.h [!NO_TERMIO]: Do not include <termio.h>; no longer needed
      now that we're termios-only.
      (FIONREAD, ASYNC) [BROKEN_FIONREAD]: Do not #undef.
      * src/term.c (dissociate_if_controlling_tty): Use #error rather than
      a run-time error.
      
      Fixes: debbugs:12408
      4a4bbad2
  4. 07 Sep, 2012 1 commit
    • Paul Eggert's avatar
      More signal-handler cleanup. · 1a4f1e9b
      Paul Eggert authored
      * configure.ac (FLOAT_CHECK_DOMAIN): Comment fix (Bug#12327).
      * src/floatfns.c: Comment fix.
      * src/lisp.h (force_auto_save_soon): Declare regardless of SIGDANGER.
      SIGDANGER might not be in scope so "#ifdef SIGDANGER" is not right,
      and anyway the declaration is harmless even if SIGDANGER is not defined.
      * src/syssignal.h (SIGIO): Also #undef if (! defined FIONREAD ||
      defined BROKEN_FIONREAD).  systty.h formerly did this, but other
      source files not surprisingly expected syssignal.h to define, or
      not define, SIGIO, and it's cleaner to do it that way, for consistency.
      Include <sys/ioctl.h>, for FIONREAD.
      * src/systty.h (SIGIO): Do not #undef here; it's now syssignal.h's job.
      This eliminates a problem whereby other files mysteriously had
      to include "syssignal.h" before including "systty.h" if they
      wanted to use "#ifdef SIGIO".
      1a4f1e9b
  5. 08 Aug, 2012 1 commit
  6. 11 Jan, 2012 1 commit
  7. 05 Jan, 2012 1 commit
  8. 14 Apr, 2011 1 commit
    • Paul Eggert's avatar
      * sysdep.c: Make symbols static if they're not exported. · 1fa53021
      Paul Eggert authored
      (emacs_get_tty, emacs_set_tty, old_fcntl_flags, old_fcntl_owner):
      Now static.
      (sigprocmask_set, full_mask): Remove; unused.
      (wait_debugging): Mark as visible.
      * syssignal.h (SIGFULLMASK, full_mask): Remove decls.
      * systty.h (emacs_get_tty, emacs_set_tty): Remove decls.
      1fa53021
  9. 14 Mar, 2011 1 commit
  10. 25 Jan, 2011 1 commit
  11. 09 Jan, 2011 1 commit
  12. 02 Jan, 2011 1 commit
  13. 23 Nov, 2010 1 commit
  14. 15 Nov, 2010 1 commit
    • Dan Nicolaescu's avatar
      Clean up src/systty.h macros. · 12e610e8
      Dan Nicolaescu authored
      * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
      (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
      definition in all uses.
      (EMACS_TTY_TABS_OK): Remove, it has a single user.
      * src/sysdep.c (discard_tty_input, child_setup_tty)
      (init_sys_modes, tabs_safe_p, reset_sys_modes):
      * src/emacs.c (shut_down_emacs):
      * src/callproc.c (child_setup):
      * src/term.c (dissociate_if_controlling_tty): Inline removed macros.
      12e610e8
  15. 22 Aug, 2010 1 commit
    • Dan Nicolaescu's avatar
      Simplify termio code. · a7ebc409
      Dan Nicolaescu authored
      All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
      HAVE_TERMIO code is obsolete.
      Replace HAVE_TERMIOS conditionals with !DOS_NT.
      * src/systty.h: Do not define HAVE_TCATTR.
      Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
      Do not define EMACS_HAVE_TTY_PGRP.  Only define
      EMACS_GET_TTY_PGRP for !DOS_NT.
      * src/sysdep.c: Include sysselect.h unconditionally.  Do not include
      sys/ioctl.h and termios.h, systty.h does it.  Use
      HAVE_SYS_UTSNAME_H instead of USG as an include guard.
      (init_baud_rate): Remove HAVE_TERMIO code.
      (child_setup_tty): Remove HAVE_TERMIO code.
      (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
      and HAVE_LTCHARS code.  Use !DOS_NT instead of HAVE_TCATTR.
      (new_ltchars, new_tchars): Remove, unused.
      (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
      code.  Remove special casing for __mips__, it was a no-op.  Remove
      HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
      (init_sys_modes): Remove HPUX special case.
      * src/process.c: Include stdlib.h unconditionally.  Do not include
      fcntl.h, systty.h does it.  Remove conditional code for
      HAVE_SERIAL, it is always true.
      (process_send_signal): Remove HAVE_TERMIOS conditional, it's
      always true when SIGNALS_VIA_CHARACTERS is true.
      (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
      !WINDOWSNT means HAVE_TERMIOS.
      (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
      conditional, which is true for all HAVE_TERMIOS systems.
      * src/keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
      instead of HAVE_TERMIOS.
      * src/emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
      EMACS_HAVE_TTY_PGRP.
      * src/callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
      non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
      anyway.
      a7ebc409
  16. 08 Jun, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove INCLUDED_FCNTL. · a99ebb40
      Dan Nicolaescu authored
      * xterm.c (INCLUDED_FCNTL):
      * callproc.c (INCLUDED_FCNTL):
      * alloc.c (INCLUDED_FCNTL):
      * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
      (emacs_get_tty, emacs_set_tty): Declare unconditionally.
      a99ebb40
  17. 06 May, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove NEED_BSDTTY and NEED_UNISTD_H. · 28823648
      Dan Nicolaescu authored
      * s/hpux10-20.h (NEED_BSDTTY): Remove.
      * s/aix4-2.h (NEED_UNISTD_H): Remove.
      * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
      <sys/ptyio.h> and <unistd.h>.
      28823648
  18. 13 Jan, 2010 1 commit
  19. 08 Jan, 2009 1 commit
  20. 01 Aug, 2008 1 commit
  21. 31 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      * bitmaps/README: · 7c2fb837
      Dan Nicolaescu authored
      * xfns.c:
      * termcap.c:
      * term.c:
      * syswait.h:
      * systty.h:
      * systime.h:
      * syssignal.h:
      * sysdep.c:
      * process.h:
      * process.c:
      * print.c:
      * ndir.h:
      * lread.c:
      * keyboard.c:
      * getpagesize.h:
      * floatfns.c:
      * fileio.c:
      * emacs.c:
      * doc.c:
      * dispnew.c:
      * dired.c:
      * data.c:
      * callproc.c:
      * buffer.c:
      * README:
      * Makefile.in:
      * s/template.h:
      * s/msdos.h:
      * m/vax.h: Remove VMS support.
      * s/vms.h:
      * vlimit.h:
      * uaf.h:
      * temacs.opt:
      * param.h:
      * ioctl.h: Remove file.
      
      * descrip.mms:
      * compile.com: Remove file.
      * Create.c: Remove VMS support.
      
      * message.el (Module):
      
      * gnus-start.el (Module):
      
      * gnus-registry.el (Module):
      
      * textmodes/texinfmt.el:
      * nxml/nxml-enc.el:
      * mail/feedmail.el:
      * international/mule.el:
      * international/latexenc.el:
      * emulation/viper-util.el:
      * emulation/viper-init.el:
      * emulation/viper-ex.el:
      * emacs-lisp/bytecomp.el:
      * version.el:
      * subr.el:
      * startup.el:
      * sort.el:
      * shadowfile.el:
      * recentf.el:
      * printing.el:
      * paths.el:
      * minibuffer.el:
      * ls-lisp.el:
      * loadup.el:
      * hippie-exp.el:
      * finder.el:
      * files.el:
      * ediff-util.el:
      * ediff-ptch.el:
      * ediff-init.el:
      * ediff-diff.el:
      * dired.el:
      * dired-aux.el:
      * cus-edit.el:
      * bindings.el:
      * arc-mode.el:
      * add-log.el: Remove VMS support.
      * obsolete/vmsproc.el:
      * obsolete/vms-pmail.el:
      * obsolete/vms-patch.el: Remove file.
      
      * etags.c:
      * emacsclient.c: Remove VMS support.
      
      * termcap.src: Remove file.
      * README:
      * PROBLEMS:
      * MACHINES: Remove VMS info.
      
      * ediff.texi: Remove VMS support.
      
      * os.texi:
      * intro.texi:
      * files.texi: Remove VMS support.
      
      * emacs.texi: Remove VMS support.
      
      * make-dist:
      * README: Remove VMS support.
      * vms: Remove directory.
      7c2fb837
  22. 30 Jul, 2008 1 commit
  23. 16 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      * systty.h: Remove code for Aix on 386, unsupported platform. · 132d0475
      Dan Nicolaescu authored
      * s/ms-w32.h: Remove boilerplate comments.
      (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
      
      * s/gnu-linux.h (TERM): Remove support.
      (HAVE_SYSVIPC): Remove, unused.
      (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
      for this system.
      
      * process.c: Remove support for IRIS, unused.
      Remove support for TERM, not relevant anymore.
      
      * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
      used with the definition.
      
      * s/aix4-2.h (static): Do not undef.
      
      * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
      only used on Aix.
      (HAVE_SYSVIPC): Remove, unused.
      
      * m/hp800.h (CANNOT_DUMP): Do not undef.
      
      * m/alpha.h: Fix comment.
      
      * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
      (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
      used by this configuration.
      * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
      * unexec.c: Remove code depending on HPUX and
      USG_SHARED_LIBRARIES, not used with this file.  Remove code
      depending on IRIS, unused.  Remove if 0-ed code.
      132d0475
  24. 13 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      * config.nt (HAVE_FACES): Remove, unused. · bdee2ef3
      Dan Nicolaescu authored
      * s/vms.h: Use __GNUC__ instead of _GNUC_.
      
      * m/macppc.h:
      * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
      
      * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
      (SPECIAL_EMACS_INT):
      * m/ia64.h (SPECIAL_EMACS_INT):
      * m/amdx86-64.h (SPECIAL_EMACS_INT):
      * s/gnu.h (NLIST_STRUCT):
      * aix4-2.h (X11R5_INHIBIT_I18N):
      * s/gnu-linux.h (LINUX):
      * s/msdos.h (HAVE_FACES):
      * s/ms-w32.h (HAVE_FACES): Don't define, unused.
      
      * systty.h:
      * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
      anymore.
      bdee2ef3
  25. 10 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      * src/fileio.c: · c5e7567d
      Dan Nicolaescu authored
      * src/sysdep.c
      * src/systty.h:
      * src/m/ibmrs6000.h:
      * src/m/iris4d.h:
      * src/s/aix4-2.h:
      * src/s/freebsd.h:
      * src/s/gnu-linux.h:
      * src/s/hpux10-20.h:
      * src/s/hpux11.h:
      * src/s/netbsd.h:
      * src/s/sol2-3.h:
      * src/s/sol2-4.h:
      * src/s/sol2.h:
      * src/s/usg5-4.h:
      * src/s/vms.h: Remove references to unused variables.
      c5e7567d
  26. 26 Jun, 2008 1 commit
    • Dan Nicolaescu's avatar
      * unexnext.c: · f2a77c3a
      Dan Nicolaescu authored
      * m/ews4800.h:
      * m/hp9000s300.h:
      * m/ibm370aix.h:
      * m/mips-siemens.h:
      * m/ncr386.h:
      * m/next.h:
      * m/pmax.h:
      * m/powerpcle.h:
      * m/tandem-s2.h:
      * s/386bsd.h:
      * s/bsd386.h:
      * s/bsd4-1.h:
      * s/bsd4-2.h:
      * s/bsdos2-1.h:
      * s/bsdos2.h:
      * s/bsdos3.h:
      * s/bsdos4.h:
      * s/nextstep.h:
      * s/ultrix4-3.h:
      * s/usg5-0.h:
      * s/usg5-2-2.h:
      * s/usg5-2.h:
      * s/usg5-4-3.h:
      * s/ux4800.h:
      * s/uxpds.h:
      * s/uxpv.h: Remove support for obsolete systems.
      * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
      Remove, insert contents in s/hpux-10.20.h
      * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
      Remove, insert contents in s/aix-4.2.h
      * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
      * s/bsd4-3.h: Rename to ..
      * s/bsd-common.h: ... this.
      * src/data.c:
      * src/doc.c:
      * src/ecrt0.c:
      * src/emacs.c:
      * src/fileio.c:
      * src/floatfns.c:
      * src/keyboard.c:
      * src/mem-limits.h:
      * src/print.c:
      * src/process.c:
      * src/sysdep.c:
      * src/syssignal.h:
      * src/systty.h:
      * src/syswait.h:
      * src/term.c:
      * src/unexec.c:
      * src/unexelf.c:
      * src/unexhp9k800.c:
      * src/m/hp800.h:
      * src/m/ibmrs6000.h:
      * src/m/mips.h:
      * src/m/vax.h:
      * src/s/darwin.h:
      * src/s/freebsd.h:
      * src/s/gnu.h:
      * src/s/ms-w32.h:
      * src/s/msdos.h:
      * src/s/netbsd.h:
      * src/s/template.h: Remove references to obsolete variables.
      
      * Makefile.in: Add dependencies for all unexec files.
      (admindir): Remove unused variable.
      (UNEXEC_SRC): Remove references.
      
      * config.nt: Remove reference to UNEXEC_SRC.
      
      * lwlib.c: Remove references to obsolete variables.
      
      * fakemail.c: Remove references to obsolete variables.
      
      * os.texi: Remove references to obsolete systems.
      
      * configure.in:
      * configure: Remove references to obsolete systems.
      f2a77c3a
  27. 15 May, 2008 1 commit
  28. 09 Feb, 2008 1 commit
    • Dan Nicolaescu's avatar
      * configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove code · 4624371d
      Dan Nicolaescu authored
      dealing with obsolete variables.
      
      * fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional.
      (main): Replace MAIL_PROGRAM_NAME with its value.
      
      * src/Makefile.in:
      * src/emacs.c:
      * src/gmalloc.c:
      * src/keyboard.c:
      * src/lisp.h:
      * src/m/ibm370aix.h:
      * src/process.c:
      * src/regex.c:
      * src/s/hpux.h:
      * src/sysdep.c:
      * src/sysselect.h:
      * src/systty.h:
      * src/unexec.c:
      * src/w32term.c:
      * src/xsmfns.c:
      * src/xterm.c: Remove code that deals with obsolete variables.
      
      * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
      
      * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
      nothing else needs it anymore.
      4624371d
  29. 13 Jan, 2008 1 commit
    • Dan Nicolaescu's avatar
      * movemail.c: · e39a993c
      Dan Nicolaescu authored
      * make-docfile.c: Remove reference to symbols defined by systems
      not supported anymore: MAC_OS8, XENIX and STRIDE.
      
      * (src/m/mips.h):
      * (src/m/intel386.h):
      * callproc.c:
      * config.in:
      * ecrt0.c:
      * emacs.c:
      * fileio.c:
      * frame.c:
      * getpagesize.h:
      * keyboard.c:
      * lread.c:
      * process.c:
      * puresize.h:
      * sysdep.c:
      * systty.h:
      * syswait.h:
      * unexec.c:
      * xdisp.c:
      * alloc.c: Remove code containing references to symbols defined by
      unsupported systems.
      e39a993c
  30. 08 Jan, 2008 1 commit
  31. 08 Aug, 2007 1 commit
  32. 25 Jul, 2007 1 commit
  33. 14 Jan, 2007 1 commit
  34. 06 Feb, 2006 1 commit
  35. 07 Aug, 2005 1 commit
  36. 04 Jul, 2005 1 commit
  37. 16 Apr, 2004 1 commit
  38. 08 Sep, 2003 1 commit
  39. 01 Sep, 2003 1 commit
  40. 04 Feb, 2003 1 commit