]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Add ptsname, ttyname_r and cfmakeraw stubs
authorVlad-Andrei BĂDOIU <vlad_andrei.badoiu@stud.acs.upb.ro>
Wed, 18 Mar 2020 01:09:30 +0000 (03:09 +0200)
committerFelipe Huici <felipe.huici@neclab.eu>
Wed, 18 Mar 2020 10:18:00 +0000 (11:18 +0100)
Signed-off-by: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
pty.c

diff --git a/pty.c b/pty.c
index 07346de9958f4762f98219819b9dfa64143856fc..52a91ca80ea5baf4e21f86d1ab016b2a6a5b31f2 100644 (file)
--- a/pty.c
+++ b/pty.c
@@ -55,3 +55,20 @@ pid_t forkpty(int *amaster __unused, char *name __unused,
        errno = ENOENT;
        return -1;
 }
+
+char *ptsname(int fd __unused)
+{
+       errno = ENOTTY;
+       return NULL;
+}
+
+int ttyname_r(int fd __unused, char *buf __unused, size_t buflen __unused)
+{
+       errno = ENOTTY;
+       return -1;
+}
+
+void cfmakeraw(struct termios *termios_p)
+{
+
+}