]> git.eshelyaron.com Git - emacs.git/commitdiff
(EMACS_GETPGRP): New macro hides argument passing to
authorRichard M. Stallman <rms@gnu.org>
Wed, 10 Nov 1993 20:03:25 +0000 (20:03 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 10 Nov 1993 20:03:25 +0000 (20:03 +0000)
system getpgrp.  Reinstate some semblance of control over this
macros behaviour by paying attention to GETPGRP_NO_ARG.

src/systty.h

index 67bf3bf240d937a564f1fa2a5c3c7bfc49c1c59d..5a166b2fd5dfb48dad32a5696388bd6e5ea498bd 100644 (file)
@@ -271,6 +271,19 @@ static struct sensemode {
 
 #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 */
 \f
 /* Manipulate a TTY's input/output processing parameters.  */