Pty.foreign_sync


Description:

[ CCode ( has_construct_function = false ) ]
public Pty.foreign_sync (int fd, Cancellable? cancellable = null) throws Error

Creates a new Pty for the PTY master fd.

No entry will be made in the lastlog, utmp or wtmp system files.

Note that the newly created Pty will take ownership of fd and close it on finalize.

Parameters:

fd

a file descriptor to the PTY

cancellable

a Cancellable, or null

Returns:

a new Pty for fd, or null on error with error filled in




2022 vala-language.org