Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
devpts_fs.h
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 2k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /* -*- linux-c -*- --------------------------------------------------------- *
- *
- * linux/include/linux/devpts_fs.h
- *
- * Copyright 1998 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.
- *
- * ------------------------------------------------------------------------- */
- /*
- * Prototypes for the pty driver <-> devpts filesystem interface. Most
- * of this is really just a hack so we can exclude it or build it as a
- * module, and probably should go away eventually.
- */
- #ifndef _LINUX_DEVPTS_FS_H
- #define _LINUX_DEVPTS_FS_H 1
- #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
- static inline void
- devpts_pty_new(int line, kdev_t device)
- {
- if ( devpts_upcall_new )
- return devpts_upcall_new(line,device);
- }
- static inline void
- devpts_pty_kill(int line)
- {
- if ( devpts_upcall_kill )
- return devpts_upcall_kill(line);
- }
- #endif
- #else /* No /dev/pts filesystem at all */
- static inline void
- devpts_pty_new(int line, kdev_t device) { }
- static inline void
- devpts_pty_kill(int line) { }
- #endif
- #endif /* _LINUX_DEVPTS_FS_H */