]> err.no Git - linux-2.6/blobdiff - include/linux/devpts_fs.h
USB: add Cypress c67x00 OTG controller core driver
[linux-2.6] / include / linux / devpts_fs.h
index b672ddc007357bc2cd5395d34e6102f6870315a6..154769cad3f31c7207b3113ec5e00753a4684ee2 100644 (file)
@@ -17,6 +17,8 @@
 
 #ifdef CONFIG_UNIX98_PTYS
 
+int devpts_new_index(void);
+void devpts_kill_index(int idx);
 int devpts_pty_new(struct tty_struct *tty);      /* mknod in devpts */
 struct tty_struct *devpts_get_tty(int number);  /* get tty structure */
 void devpts_pty_kill(int number);               /* unlink */
@@ -24,6 +26,8 @@ void devpts_pty_kill(int number);              /* unlink */
 #else
 
 /* Dummy stubs in the no-pty case */
+static inline int devpts_new_index(void) { return -EINVAL; }
+static inline void devpts_kill_index(int idx) { }
 static inline int devpts_pty_new(struct tty_struct *tty) { return -EINVAL; }
 static inline struct tty_struct *devpts_get_tty(int number) { return NULL; }
 static inline void devpts_pty_kill(int number) { }