@Override public int execve(String command, String[] argv, String[] env) { StringArray argvp = (argv == null) ? new StringArray(new String[] {command}) : new StringArray(argv); StringArray envp = (env == null) ? null : new StringArray(env); return m_Clib.execve(command, argvp, envp); }
@Override public int getWinSize(int fd, WinSize winSize) { int r; PtyHelpers.winsize ws = new PtyHelpers.winsize(); if ((r = m_Clib.ioctl(fd, new NativeLong(TIOCGWINSZ), ws)) < 0) { return r; } ws.update(winSize); return r; }
@Override public int setpgid(int pid, int pgid) { return m_Clib.setpgid(pid, pgid); }
@Override public void execv(String path, String[] argv) { StringArray argvp = (argv == null) ? new StringArray(new String[] {path}) : new StringArray(argv); m_Clib.execv(path, argvp); }
@Override public int setsid() { return m_Clib.setsid(); }
@Override public int fork() { return m_Clib.fork(); }
@Override public int setuid(int uid) { return m_Clib.setuid(uid); }
@Override public int login_tty(int fd) { return m_Clib.login_tty(fd); }
@Override public int unlockpt(int fd) { return m_Clib.unlockpt(fd); }
@Override public int grantpt(int fd) { return m_Clib.grantpt(fd); }
@Override public String strerror(int errno) { return m_Clib.strerror(errno); }
@Override public int sigprocmask( int how, com.sun.jna.ptr.IntByReference set, com.sun.jna.ptr.IntByReference oldset) { return m_Clib.sigprocmask(how, set, oldset); }
@Override public int waitpid(int pid, int[] stat, int options) { return m_Clib.waitpid(pid, stat, options); }
@Override public int setWinSize(int fd, WinSize winSize) { PtyHelpers.winsize ws = new PtyHelpers.winsize(winSize); return m_Clib.ioctl(fd, new NativeLong(TIOCSWINSZ), ws); }
@Override public int kill(int pid, int signal) { return m_Clib.kill(pid, signal); }
@Override public void dup2(int fds, int fileno) { m_Clib.dup2(fds, fileno); }
@Override public void unsetenv(String s) { m_Clib.unsetenv(s); }
@Override public int close(int fd) { return m_Clib.close(fd); }
@Override public void chdir(String dirpath) { m_Clib.chdir(dirpath); }
@Override public String ptsname(int fd) { return m_Clib.ptsname(fd); }
@Override public int getuid() { return m_Clib.getuid(); }
@Override public int killpg(int pid, int sig) { return m_Clib.killpg(pid, sig); }