Implement osdep_get_name and osdep_get_cwd for AIX, from J Raynor.

This commit is contained in:
Nicholas Marriott
2015-07-15 08:46:35 +01:00
parent 5ffb869e1a
commit 8c96e2a6d9
2 changed files with 63 additions and 5 deletions

View File

@@ -40,6 +40,10 @@ forkpty(int *master, unused char *name, struct termios *tio, struct winsize *ws)
if ((path = ttyname(*master)) == NULL)
goto out;
if (name != NULL)
strlcpy(name, path, TTY_NAME_MAX);
if ((slave = open(path, O_RDWR|O_NOCTTY)) == -1)
goto out;