Topic
  • No replies
JacksonVille
JacksonVille
1 Post

Pinned topic setting file-descriptor as controlling terminal

‏2012-04-16T07:26:14Z |
Hello,
I would like to write a piece of C code which would get a file descriptor of an already allocated pty and set it as the
controlling terminal of current process instead of the current one. in Linux this can be done using the login_tty() call, but my guess it has do be done using several functions in AIX. can someone please provide a code snippet which would do so?
Thanks
Jacks