mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 18:27:56 +08:00
libc/pty: Make ptsname[_r] support PSEUDOTERM_BSD config too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I82a60ded48ea3437bd5f2b4fe328294d7077b040
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
468e08c1b4
commit
bf733f7213
+1
-4
@@ -211,12 +211,9 @@ int posix_memalign(FAR void **, size_t, size_t);
|
||||
|
||||
/* Pseudo-Terminals */
|
||||
|
||||
#ifdef CONFIG_PSEUDOTERM_SUSV1
|
||||
#ifdef CONFIG_PSEUDOTERM
|
||||
FAR char *ptsname(int fd);
|
||||
int ptsname_r(int fd, FAR char *buf, size_t buflen);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PSEUDOTERM
|
||||
int unlockpt(int fd);
|
||||
|
||||
/* int grantpt(int fd); Not implemented */
|
||||
|
||||
Reference in New Issue
Block a user