PTY: Added PTY IOCTL command definitions. Add support for TIOCGPTN. LIB: Implement ptsname() and ptsname_r()

This commit is contained in:
Gregory Nutt
2016-07-15 08:33:47 -06:00
parent bcbe9806d2
commit 6139860c0b
6 changed files with 230 additions and 10 deletions
+12
View File
@@ -207,6 +207,18 @@ struct mallinfo mallinfo(void);
int mallinfo(FAR struct mallinfo *info);
#endif
/* Pseudo-Terminals */
#ifdef CONFIG_PSEUDOTERM_SUSV1
FAR char *ptsname(int fd);
int ptsname_r(int fd, FAR char *buf, size_t buflen);
#if 0 /* Not implemented */
int grantpt(int fd);
int unlockpt(int fd);
#endif
#endif
/* Arithmetic */
int abs(int j);