SunOS 4.1 & KSH-88d (
Doug Kingston
dpk at morgan.com
Thu Jun 7 05:35:57 AEST 1990
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-
More information about the Comp.sys.sun
mailing list