libc: Implement posix_openpt

specify here:
https://pubs.opengroup.org/onlinepubs/009695399/functions/posix_openpt.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-02-03 01:42:18 +08:00
committed by Alan Carvalho de Assis
parent ad3f16358e
commit 57c3fce583
2 changed files with 39 additions and 12 deletions
+1
View File
@@ -223,6 +223,7 @@ int posix_memalign(FAR void **, size_t, size_t);
/* Pseudo-Terminals */
#ifdef CONFIG_PSEUDOTERM
int posix_openpt(int oflag);
FAR char *ptsname(int fd);
int ptsname_r(int fd, FAR char *buf, size_t buflen);
int unlockpt(int fd);