+void ptsstop __P((struct tty *, int));
+
+/*
+ * Establish n (or default if n is 1) ptys in the system.
+ *
+ * XXX cdevsw & pstat require the array `pty[]' to be an array
+ */
+void
+ptyattach(n)
+ int n;
+{
+#ifdef notyet
+ char *mem;
+ register u_long ntb;
+#define DEFAULT_NPTY 32
+
+ /* maybe should allow 0 => none? */
+ if (n <= 1)
+ n = DEFAULT_NPTY;
+ ntb = n * sizeof(struct tty);
+ mem = malloc(ntb + ALIGNBYTES + n * sizeof(struct pt_ioctl),
+ M_DEVBUF, M_WAITOK);
+ pt_tty = (struct tty *)mem;
+ mem = (char *)ALIGN(mem + ntb);
+ pt_ioctl = (struct pt_ioctl *)mem;
+ npty = n;
+#endif
+}
+