Mercurial > hg > xemacs-beta
comparison src/systty.h @ 167:85ec50267440 r20-3b10
Import from CVS: tag r20-3b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:45:46 +0200 |
parents | 0132846995bd |
children | 2d532a89d707 |
comparison
equal
deleted
inserted
replaced
166:7a77eb660975 | 167:85ec50267440 |
---|---|
342 #define EMACS_GET_TTY_PROCESS_GROUP EMACS_GET_TTY_PGRP | 342 #define EMACS_GET_TTY_PROCESS_GROUP EMACS_GET_TTY_PGRP |
343 #define EMACS_SET_TTY_PROCESS_GROUP EMACS_SET_TTY_PGRP | 343 #define EMACS_SET_TTY_PROCESS_GROUP EMACS_SET_TTY_PGRP |
344 | 344 |
345 /* EMACS_GETPGRP (arg) returns the process group of the terminal. */ | 345 /* EMACS_GETPGRP (arg) returns the process group of the terminal. */ |
346 | 346 |
347 /* USG systems have always used the no-arg form of getpgrp(). | |
348 POSIX also calls for this, and thus some newer BSD systems | |
349 have this change. Older BSD systems have an argument. | |
350 It would be nice to autodetect this, but there's unfortunately | |
351 no general way. */ | |
352 | |
353 /* The above comment is crap, because AC_FUNC_GETPGRP provides just | |
354 such a way - mrb. */ | |
355 | |
356 #if 0 /* mrb */ | |
357 /* XEmacs backwards-compatibility */ | |
358 #ifdef GETPGRP_NEEDS_ARG | |
359 # undef GETPGRP_NO_ARG | |
360 #else | |
361 # ifdef GETPGRP_NO_ARG | |
362 # undef GETPGRP_NEEDS_ARG | |
363 # endif | |
364 #endif | |
365 | |
366 #if defined (USG) && !defined (GETPGRP_NEEDS_ARG) | |
367 # if !defined (GETPGRP_NO_ARG) | |
368 # define GETPGRP_NO_ARG | |
369 # endif | |
370 #endif | |
371 #endif /* 0 */ | |
372 | |
373 #ifdef GETPGRP_VOID | 347 #ifdef GETPGRP_VOID |
374 #define EMACS_GETPGRP(x) getpgrp() | 348 #define EMACS_GETPGRP(x) getpgrp() |
375 #else | 349 #else |
376 #define EMACS_GETPGRP(x) getpgrp(x) | 350 #define EMACS_GETPGRP(x) getpgrp(x) |
377 #endif /* GETPGRP_VOID */ | 351 #endif /* GETPGRP_VOID */ |