changeset 4959:afa76fe24878

(EMACS_GETPGRP): New macro hides argument passing to system getpgrp. Reinstate some semblance of control over this macros behaviour by paying attention to GETPGRP_NO_ARG.
author Richard M. Stallman <rms@gnu.org>
date Wed, 10 Nov 1993 20:03:25 +0000
parents 8d58e388e71b
children 617153da1136
files src/systty.h
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/systty.h	Wed Nov 10 20:02:50 1993 +0000
+++ b/src/systty.h	Wed Nov 10 20:03:25 1993 +0000
@@ -271,6 +271,19 @@
 
 #endif
 
+/* EMACS_GETPGRP (arg) returns the process group of the terminal.  */
+
+#if defined (USG) && !defined (GETPGRP_NEEDS_ARG)
+#  if !defined (GETPGRP_NO_ARG)
+#    define GETPGRP_NO_ARG
+#  endif
+#endif
+
+#if defined (GETPGRP_NO_ARG)
+#  define EMACS_GETPGRP(x) getpgrp()
+#else
+#  define EMACS_GETPGRP(x) getpgrp(x)
+#endif /* !GETPGRP_NO_ARG */
 
 /* Manipulate a TTY's input/output processing parameters.  */