patch-2.1.115 linux/include/linux/devpts_fs.h

Next file: linux/include/linux/kbd_kern.h
Previous file: linux/include/linux/cyclades.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.114/linux/include/linux/devpts_fs.h linux/include/linux/devpts_fs.h
@@ -21,23 +21,28 @@
 
 #include <linux/config.h>
 #include <linux/kdev_t.h>
+#include <linux/tty.h>
 
 #ifdef CONFIG_DEVPTS_FS
 
 void devpts_pty_new(int, kdev_t);
 void devpts_pty_kill(int);
+#define unix98_max_ptys               NR_PTYS * UNIX98_NR_MAJORS;
 
 #elif defined(CONFIG_DEVPTS_FS_MODULE)
 
 #ifdef BUILDING_PTY_C
 void (*devpts_upcall_new)(int,kdev_t) = NULL;
 void (*devpts_upcall_kill)(int)       = NULL;
+unsigned int unix98_max_ptys          = NR_PTYS * UNIX98_NR_MAJORS;
 
 EXPORT_SYMBOL(devpts_upcall_new);
 EXPORT_SYMBOL(devpts_upcall_kill);
+EXPORT_SYMBOL(unix98_max_ptys);
 #else
 extern void (*devpts_upcall_new)(int,kdev_t);
 extern void (*devpts_upcall_kill)(int);
+extern unsigned int unix98_max_ptys;
 #endif
 
 #ifndef BUILDING_DEVPTS

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov