diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-10-25 14:19:45 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-10-25 14:19:45 +0000 |
commit | 7906167926e8dc3c312191c19d9bbae5d56b82ce (patch) | |
tree | deb1263f0368855c727556d2502e7d8c7f4f984d /cpukit/telnetd/pty.h | |
parent | Make many functions static. (diff) | |
download | rtems-7906167926e8dc3c312191c19d9bbae5d56b82ce.tar.bz2 |
2005-10-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* telnetd/icmds.c: Rename register_icmds to
_rtems_telnet_register_icmds. Make main_* functions static.
* telnetd/pty.c: Make many functions static.
Rename rtems_telnetd_maximum_ptys to rtems_pty_maximum_ptys.
* telnetd/pty.h: Reflect changes above.
Rename get_pty to rtems_pty_get. New header guards.
* telnetd/telnetd.c: Reflect changes above.
* telnetd/telnetd.h: New header guards.
Diffstat (limited to 'cpukit/telnetd/pty.h')
-rw-r--r-- | cpukit/telnetd/pty.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/cpukit/telnetd/pty.h b/cpukit/telnetd/pty.h index 5d27ddb9d9..7445f604a3 100644 --- a/cpukit/telnetd/pty.h +++ b/cpukit/telnetd/pty.h @@ -11,8 +11,8 @@ * $Id$ */ -#ifndef __PTY_H -#define __PTY_H +#ifndef _RTEMS_PTY_H +#define _RTEMS_PTY_H #ifdef __cplusplus extern "C" { @@ -20,7 +20,18 @@ extern "C" { #include <rtems.h> -char * get_pty(int socket); +/* Number of ptys to setup */ +extern size_t rtems_pty_maximum_ptys; + +/* Return the devname for a free pty slot. + * If no slot available (socket>=0) + * then the socket argument is closed + */ +char * rtems_pty_get(int socket); + + +/* OBSOLETE */ +#define get_pty rtems_pty_get rtems_device_driver pty_initialize( rtems_device_major_number major, |