Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapper functions are not completed #4

Open
mssun opened this issue Apr 2, 2018 · 0 comments
Open

Wrapper functions are not completed #4

mssun opened this issue Apr 2, 2018 · 0 comments

Comments

@mssun
Copy link

mssun commented Apr 2, 2018

For example, from man tty_ioctl:

  Controlling terminal
       TIOCSCTTY int arg
              Make the given terminal the controlling terminal of the calling process.  The calling process must be a session leader and not have a controlling terminal already.  For this case, arg should be specified as zero.
              If this terminal is already the controlling terminal of a different session group, then the ioctl fails with EPERM, unless the caller has the CAP_SYS_ADMIN capability and arg equals 1, in  which  case  the  terminal  is
              stolen, and all processes that had it as controlling terminal lose it.
       TIOCNOTTY void
              If the given terminal was the controlling terminal of the calling process, give up this controlling terminal.  If the process was session leader, then send SIGHUP and SIGCONT to the foreground process group and all pro‐
              cesses in the current session lose their controlling terminal.
   Process group and session ID
       TIOCGPGRP pid_t *argp
              When successful, equivalent to *argp = tcgetpgrp(fd).
              Get the process group ID of the foreground process group on this terminal.
       TIOCSPGRP const pid_t *argp
              Equivalent to tcsetpgrp(fd, *argp).
              Set the foreground process group ID of this terminal.
       TIOCGSID  pid_t *argp
              Get the session ID of the given terminal.  This will fail with ENOTTY in case the terminal is not a master pseudoterminal and not our controlling terminal.  Strange.

tiocsctty(), tiocnotty(), tiocgpgrp(), etc. are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant