Path: utzoo!attcan!uunet!snorkelwacker!usc!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!rice!sun-spots-request From: dpk@morgan.com (Doug Kingston) Newsgroups: comp.sys.sun Subject: SunOS 4.1 & KSH-88d ( Keywords: Source Message-ID: <8635@brazos.Rice.edu> Date: 6 Jun 90 19:35:57 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 53 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 203, message 8 I believe that I have found the necessary changes to make KSH-88d compile an run on SunOS 4.1. My only question at this point is whether we should be doing a setsid system call on SunOS 4.1. Here are the changes: a) in install/pgroup.c, change both occurences of "#ifdef getpgrp" to "#ifdef setpgrp". b) modify install/config to accomodate the changes in the header files (ANSI style function prototypes and setpgid support). *** install/config.old Wed Jun 6 15:31:39 1990 --- install/config Wed Jun 6 14:08:28 1990 *************** *** 170,184 **** else echo "#define sigrelease(s)" echo "#define sig_begin()" fi ! if $CC $Install/wait3.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null ! then echo "#define waitpid(a,b,c) wait3(b,c,0)" ! elif $CC -Dwaitpid $Install/wait3.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null then : else echo "#define waitpid(a,b,c) wait(b)" echo "#define WAIT1ARG 1" fi if $CC -Dgetpgrp=getpgid -Dsetpgrp=setpgid $Install/pgroup.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null then : elif $CC -Dgetpgrp=getpgrp2 -Dsetpgrp=setpgrp2 $Install/pgroup.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null then echo "#define setpgid(a,b) setpgrp2(a,b)" echo "#define getpgid(a) getpgrp2(a)" --- 170,186 ---- else echo "#define sigrelease(s)" echo "#define sig_begin()" fi ! if $CC -Dwaitpid $Install/wait3.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null then : + elif $CC $Install/wait3.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null + then echo "#define waitpid(a,b,c) wait3(b,c,0)" else echo "#define waitpid(a,b,c) wait(b)" echo "#define WAIT1ARG 1" fi if $CC -Dgetpgrp=getpgid -Dsetpgrp=setpgid $Install/pgroup.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null then : + elif $CC -Dsetpgrp=setpgid $Install/pgroup.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null + then echo "#define getpgid(a) getpgrp(a)" elif $CC -Dgetpgrp=getpgrp2 -Dsetpgrp=setpgrp2 $Install/pgroup.c $LIB > /dev/null 2>&1 && ./a.out 2> /dev/null then echo "#define setpgid(a,b) setpgrp2(a,b)" echo "#define getpgid(a) getpgrp2(a)" Cheers, -Doug-