|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.sys.FileDescriptor frysk.sys.PseudoTerminal
public class PseudoTerminal
Open a pty
Field Summary | |
---|---|
private File |
file
|
private String |
name
|
Fields inherited from class frysk.sys.FileDescriptor |
---|
err, in, out, RDONLY, RDWR, WRONLY |
Constructor Summary | |
---|---|
PseudoTerminal()
|
|
PseudoTerminal(boolean controllingTerminal)
Open a pseudo-terminal, a.k.a. |
Method Summary | |
---|---|
ProcessIdentifier |
addChild(String[] args)
Convenience method, adds a child process bound to this pseudo-terminal. |
ProcessIdentifier |
addDaemon(String[] args)
Convenience method, adds a daemon process bound to this pseudo-terminal. |
private static int |
child(String exe,
String[] args,
String name)
|
private static int |
daemon(String exe,
String[] args,
String name)
|
File |
getFile()
Return the path of the pseudo-terminal's slave. |
private static String |
getName(int fd)
Returns the pathname of corrsponding to the fd |
private static int |
open(boolean controllingTerminal)
Returns an open master fd for a pseudo-terminal. |
String |
toString()
|
Methods inherited from class frysk.sys.FileDescriptor |
---|
close, dup, finalize, getFd, getInputStream, getOutputStream, getSize, read, read, ready, ready, seekCurrent, seekEnd, seekSet, setSize, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final String name
private final File file
Constructor Detail |
---|
public PseudoTerminal(boolean controllingTerminal)
public PseudoTerminal()
Method Detail |
---|
private static String getName(int fd)
private static int open(boolean controllingTerminal)
public String toString()
toString
in class FileDescriptor
public File getFile()
public ProcessIdentifier addChild(String[] args)
private static int child(String exe, String[] args, String name)
public ProcessIdentifier addDaemon(String[] args)
private static int daemon(String exe, String[] args, String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |