diff -urN apue/Make.defines apue_geg/Make.defines --- apue/Make.defines Thu Jan 1 01:00:00 1970 +++ apue_geg/Make.defines Wed Jul 17 18:21:36 2002 @@ -0,0 +1,21 @@ +# Common make definitions for SVR4 make. + +# Definitions required in all program directories to compile and link +# C programs. + +CC=cc +LDFLAGS=/tmp/libmisc.a +LDLIBS=$(LDFLAGS) +NOANSICOMPILE.c=$(CC) $(NOANSICFLAGS) $(CPPFLAGS) -c +LINK.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) + +# Common definitions + +CFLAGS = +CFLAGSO = -O + +LIB = /tmp/libmisc.a +# Our library that almost every program needs. + +TEMPFILES = core core.* *.o temp.* *.out typescript* +# Common temp files to delete from each directory. diff -urN apue/lib.svr4/ptyopen.c apue_geg/lib.svr4/ptyopen.c --- apue/lib.svr4/ptyopen.c Sat May 30 23:47:30 1992 +++ apue_geg/lib.svr4/ptyopen.c Wed Jul 17 18:18:33 2002 @@ -13,7 +13,7 @@ char *ptr; int fdm; - strcpy(pts_name, "/dev/ptmx"); /* in case open fails */ + strcpy(pts_name, "/dev/ptc"); /* in case open fails */ if ( (fdm = open(pts_name, O_RDWR)) < 0) return(-1); @@ -43,7 +43,7 @@ close(fdm); return(-5); } - if (ioctl(fds, I_PUSH, "ptem") < 0) { +/* if (ioctl(fds, I_PUSH, "ptem") < 0) { close(fdm); close(fds); return(-6); @@ -58,6 +58,6 @@ close(fds); return(-8); } - +*/ return(fds); }