summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/pty.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-10 10:40:21 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-11 09:08:06 +0200
commit0dc303f09dbb3a8e681c899f9452fa1731adf8e0 (patch)
tree8f4d83ad089a59d5d644feb6662be52354b01e33 /cpukit/include/rtems/pty.h
parenttelnetd: Allocate the server context (diff)
downloadrtems-0dc303f09dbb3a8e681c899f9452fa1731adf8e0.tar.bz2
telnetd: Create sessions at start
Update #3543.
Diffstat (limited to 'cpukit/include/rtems/pty.h')
-rw-r--r--cpukit/include/rtems/pty.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/include/rtems/pty.h b/cpukit/include/rtems/pty.h
index d8f886d76a..94b66d63c4 100644
--- a/cpukit/include/rtems/pty.h
+++ b/cpukit/include/rtems/pty.h
@@ -34,7 +34,16 @@ typedef struct {
char name[sizeof("/dev/pty18446744073709551615")];
} rtems_pty_context;
-char *telnet_get_pty(rtems_pty_context *ctx, int socket);
+const char *rtems_pty_initialize(rtems_pty_context *pty, uintptr_t unique);
+
+RTEMS_INLINE_ROUTINE const char *rtems_pty_get_path(const rtems_pty_context *pty)
+{
+ return pty->name;
+}
+
+void rtems_pty_close_socket(rtems_pty_context *pty);
+
+void rtems_pty_set_socket(rtems_pty_context *pty, int socket);
#ifdef __cplusplus
}