diff options
| author | Richard M. Stallman | 1993-11-10 20:03:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-10 20:03:25 +0000 |
| commit | 727b007cb25859b82c6b62fdb02bd0d104851a1d (patch) | |
| tree | d307f5f1532ba046615865fe9ed02abc4a745954 /src | |
| parent | e89a2cd50ea314d9479cf688655a304258670449 (diff) | |
| download | emacs-727b007cb25859b82c6b62fdb02bd0d104851a1d.tar.gz emacs-727b007cb25859b82c6b62fdb02bd0d104851a1d.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/systty.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/systty.h b/src/systty.h index 67bf3bf240d..5a166b2fd5d 100644 --- a/src/systty.h +++ b/src/systty.h | |||
| @@ -271,6 +271,19 @@ static struct sensemode { | |||
| 271 | 271 | ||
| 272 | #endif | 272 | #endif |
| 273 | 273 | ||
| 274 | /* EMACS_GETPGRP (arg) returns the process group of the terminal. */ | ||
| 275 | |||
| 276 | #if defined (USG) && !defined (GETPGRP_NEEDS_ARG) | ||
| 277 | # if !defined (GETPGRP_NO_ARG) | ||
| 278 | # define GETPGRP_NO_ARG | ||
| 279 | # endif | ||
| 280 | #endif | ||
| 281 | |||
| 282 | #if defined (GETPGRP_NO_ARG) | ||
| 283 | # define EMACS_GETPGRP(x) getpgrp() | ||
| 284 | #else | ||
| 285 | # define EMACS_GETPGRP(x) getpgrp(x) | ||
| 286 | #endif /* !GETPGRP_NO_ARG */ | ||
| 274 | 287 | ||
| 275 | /* Manipulate a TTY's input/output processing parameters. */ | 288 | /* Manipulate a TTY's input/output processing parameters. */ |
| 276 | 289 | ||