comparison src/m/iris4d.h @ 3782:5b61a650f347

Changes for correct pgrp behavior from Bob Glickstein <bobg@zindigo.z-code.com>: * m/iris4d.h (LIB_STANDARD): Do include -lbsd here. * s/irix4-0.h (USE_IRIX_BSDPGRP): #define this. (GETPGRP_NO_ARG): Don't #define this. * callproc.c [USE_IRIX_BSDPGRP] (Fcall_process): Call BSDsetpgrp instead of plain setpgrp. [USE_IRIX_BSDPGRP] (child_setup): Same. * emacs.c [GETPGRP_NO_ARG] (main, shut_down_emacs): CPP clauses deleted; this flag isn't needed anymore. [USE_IRIX_BSDPGRP] (main, shut_down_emacs): Call BSDsetpgrp and BSDgetpgrp instead of plain setpgrp and getpgrp. * process.c [USE_IRIX_BSDPGRP] (create_process): Don't call setpgrp before opening the tty. Call BSDsetpgrp instead of setpgrp, after opening the tty. * sysdep.c [USE_IRIX_BSDPGRP] (sys_suspend, narrow_foreground_group, widen_foreground_group): Call BSDgetpgrp and BSDsetpgrp instead of getpgrp and setpgrp.
author Jim Blandy <jimb@redhat.com>
date Wed, 16 Jun 1993 23:49:54 +0000
parents c7f7ef5da2f8
children 52d398035be7
comparison
equal deleted inserted replaced
3781:6c05414356bc 3782:5b61a650f347
141 in which crt1.o and crt1.n should be used. */ 141 in which crt1.o and crt1.n should be used. */
142 #define HAVE_CRTN 142 #define HAVE_CRTN
143 143
144 /* When you *do* link with -lbsd, you *still* get System V getpgrp, unless: 144 /* When you *do* link with -lbsd, you *still* get System V getpgrp, unless:
145 you define _BSD_COMPAT, -or- you call `BSDgetpgrp' explicitly. 145 you define _BSD_COMPAT, -or- you call `BSDgetpgrp' explicitly.
146 Emacs does neither, so it gets SysV getpgrp which wants no arguments. */ 146 Emacs does the latter. */
147 147
148 #ifdef HAVE_CRTN 148 #ifdef HAVE_CRTN
149 /* Must define START-FILES so that the linker can find /usr/lib/crt0.o. */ 149 /* Must define START-FILES so that the linker can find /usr/lib/crt0.o. */
150 #define START_FILES pre-crt0.o /usr/lib/crt1.o 150 #define START_FILES pre-crt0.o /usr/lib/crt1.o
151 #define LIB_STANDARD -lbsd -lc /usr/lib/crtn.o 151 #define LIB_STANDARD -lbsd -lc /usr/lib/crtn.o