Index: trunk/minix/lib/util/Makedepend-ack
===================================================================
--- trunk/minix/lib/util/Makedepend-ack	(revision 9)
+++ 	(revision )
@@ -1,4 +1,0 @@
-depend-ack:
-	rm .depend-ack
-	touch .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' openpty.c | sed -e 's:^\(.\):../obj-ack//./util/\1:' >> .depend-ack
Index: trunk/minix/lib/util/Makedepend-gnu
===================================================================
--- trunk/minix/lib/util/Makedepend-gnu	(revision 9)
+++ 	(revision )
@@ -1,4 +1,0 @@
-depend-gnu:
-	rm .depend-gnu
-	touch .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' openpty.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./util/\1:' >> .depend-gnu
Index: trunk/minix/lib/util/Makefile
===================================================================
--- trunk/minix/lib/util/Makefile	(revision 9)
+++ 	(revision )
@@ -1,52 +1,0 @@
-#Generated from ./util/Makefile.in
-all: all-ack
-
-all-ack:
-all-gnu:
-
-makefiles: Makefile
-Makedepend-ack Makedepend-gnu: 
-	sh ../generate.sh ./util ../obj-ack/ ../obj-gnu
-
-Makefile: Makefile.in Makedepend-ack Makedepend-gnu
-	sh ../generate.sh ./util ../obj-ack/ ../obj-gnu
-	@echo
-	@echo *Attention*
-	@echo Makefile is regenerated... rerun command to see changes
-	@echo *Attention*
-	@echo
-
-depend: depend-ack
-all-ack: ../obj-ack//libutil.a
-
-../obj-ack//libutil.a: ../obj-ack//libutil.a(openpty.o)
-
-../obj-ack//libutil.a:
-	ar cr ../obj-ack//libutil.a ../obj-ack//./util/*.o
-	rm ../obj-ack//./util/*.o
-
-../obj-ack//libutil.a(openpty.o): openpty.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./util/openpty.o openpty.c
-
-all-gnu: ../obj-gnu/libutil.a
-
-../obj-gnu/libutil.a: ../obj-gnu/./util/openpty.o
-
-../obj-gnu/libutil.a:
-	gar cr ../obj-gnu/libutil.a $?
-
-../obj-gnu/./util/openpty.o: openpty.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./util/openpty.o openpty.c
-
-
-
-
-clean::
-	rm -f ../obj-ack//./util/*
-	rm -f ../obj-gnu/./util/*
-
-include Makedepend-ack
-include .depend-ack
-
-include Makedepend-gnu
-include .depend-gnu
Index: trunk/minix/lib/util/Makefile.in
===================================================================
--- trunk/minix/lib/util/Makefile.in	(revision 9)
+++ 	(revision )
@@ -1,9 +1,0 @@
-# Makefile for lib/util.
-
-CFLAGS="-O -D_MINIX -D_POSIX_SOURCE"
-
-LIBRARIES=libutil
-
-libutil_FILES=openpty.c
-
-TYPE=both
Index: trunk/minix/lib/util/openpty.c
===================================================================
--- trunk/minix/lib/util/openpty.c	(revision 9)
+++ 	(revision )
@@ -1,82 +1,0 @@
-/*
- * openpty() tries to open a pty; applications won't have to
- * duplicate this code all the time (or change it if the system
- * pty interface changes).
- *
- * First version by Ben Gras <beng@few.vu.nl>,
- * Initially heavily based on telnetd/pty.c
- * by Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>.
- *
- */
-#include <libutil.h>
-#include <termios.h>
-#include <fcntl.h>
-#include <grp.h>
-#include <string.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/ioc_tty.h>
-
-#define DEV_DIR		"/dev"
-
-/*
- * Allocate a PTY, by trying to open one repeatedly.
- */
-int openpty(int *amaster, int *aslave, char *name,
-	struct termios *termp, struct winsize *winp)
-{
-  char buff[128], temp[128];
-  register int i, j;
-  int pty_fd = -1, gr;
-  static char tty_name[128];
-  struct group *ttygroup;
-  gid_t tty_gid = 0;
-
-  if(!amaster || !aslave) {
-  	errno = EINVAL;
-  	return -1;
-  }
-
-  for(i = 'p'; i < 'w'; i++) {
-	j = 0;
-	do {
-		sprintf(buff, "%s/pty%c%c",
-			DEV_DIR, i, (j < 10) ? j + '0' : j + 'a' - 10);
-
-		if((*amaster = open(buff, O_RDWR)) >= 0) {
-		  sprintf(tty_name, "%s/tty%c%c", DEV_DIR,
-			i, (j < 10) ? j + '0' : j + 'a' - 10);
-		  if((*aslave = open(tty_name, O_RDWR)) >= 0)
-		  	break;
-		}
-		close(*amaster);
-
-		j++;
-		if (j == 16) break;
-	} while(1);
-
-	/* Did we find one? */
-	if (j < 16) break;
-  }
-  if (*amaster < 0) { errno = ENOENT; return(-1); }
-
-  setgrent();
-  ttygroup = getgrnam("tty");
-  endgrent();
-  if(ttygroup) tty_gid = ttygroup->gr_gid;
-
-  if(name) strcpy(name, tty_name);
-
-  /* Ignore errors on these. */
-  chown(tty_name, getuid(), tty_gid);
-  chmod(tty_name, 0620);	/* -rw--w---- */
-  if(termp) tcsetattr(*aslave, TCSAFLUSH, termp);
-  if(winp) ioctl(*aslave, TIOCSWINSZ, winp);
-
-  return(0);
-}
-
