/* -*- linux-c -*- --------------------------------------------------------- * * * linux/include/linux/devpts_fs.h * * Copyright 1998-2004 H. Peter Anvin -- All Rights Reserved * * This file is part of the Linux kernel and is made available under * the terms of the GNU General Public License, version 2, or at your * option, any later version, incorporated herein by reference. * * ------------------------------------------------------------------------- */#ifndef _LINUX_DEVPTS_FS_H#define _LINUX_DEVPTS_FS_H#include <linux/errno.h>#ifdef CONFIG_UNIX98_PTYSintdevpts_pty_new(structtty_struct*tty);/* mknod in devpts */structtty_struct*devpts_get_tty(intnumber);/* get tty structure */voiddevpts_pty_kill(intnumber);/* unlink */#else/* Dummy stubs in the no-pty case */staticinlineintdevpts_pty_new(structtty_struct*tty){return-EINVAL;}staticinlinestructtty_struct*devpts_get_tty(intnumber){returnNULL;}staticinlinevoiddevpts_pty_kill(intnumber){}#endif#endif /* _LINUX_DEVPTS_FS_H */