From: Vlad-Andrei BĂDOIU Date: Wed, 18 Mar 2020 01:09:30 +0000 (+0200) Subject: Add ptsname, ttyname_r and cfmakeraw stubs X-Git-Tag: RELEASE-0.5~10 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=47edd54f6a280782d2984469b0b1759617c47b29;p=unikraft%2Flibs%2Fnewlib.git Add ptsname, ttyname_r and cfmakeraw stubs Signed-off-by: Vlad-Andrei BĂDOIU Reviewed-by: Felipe Huici --- diff --git a/pty.c b/pty.c index 07346de..52a91ca 100644 --- 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) +{ + +}