| java.lang.Object org.w3c.util.Unix
Unix | public class Unix (Code) | | Native methods to do some UNIX specific system calls.
This class can be used on UNIX variants to access some specific system
calls.
|
Method Summary | |
public void | chroot(String root) Change the process root, using chroot system call. | public int | getGID(String gname) Get the group identifier for that group. | public int | getUID(String uname) Get the user identifier for that user. | public static synchronized Unix | getUnix() Get the UNIX system call manger. | public boolean | isResolved() | public void | setGID(int gid) Set the group id for the running process. | public void | setUID(int uid) Set the user id for the running process. |
chroot | public void chroot(String root) throws UnixException(Code) | | Change the process root, using chroot system call.
Parameters: root - The new root for the process. exception: UnixException - If failed. |
getGID | public int getGID(String gname)(Code) | | Get the group identifier for that group.
The group identifier, or -1 if not found. |
getUID | public int getUID(String uname)(Code) | | Get the user identifier for that user.
The user's identifier, or -1 if user was notfound. |
getUnix | public static synchronized Unix getUnix()(Code) | | Get the UNIX system call manger.
An instance of this class, suitable to call UNIX systemcalls. |
isResolved | public boolean isResolved()(Code) | | Can I perform UNIX system calls through that instance ?
A boolean, true if these system calls areallowed, false otherwise. |
setGID | public void setGID(int gid) throws UnixException(Code) | | Set the group id for the running process.
Parameters: gid - The new user identifier for the process. exception: UnixException - If failed. |
setUID | public void setUID(int uid) throws UnixException(Code) | | Set the user id for the running process.
Parameters: uid - The new user identifier for the process. exception: UnixException - If failed. |
|
|