jnr.posix
Interface LibC

All Known Subinterfaces:
LinuxLibC, SolarisLibC, WindowsLibC

public interface LibC


Method Summary
 int chmod(CharSequence filename, int mode)
           
 int chown(CharSequence filename, int user, int group)
           
 int close(int fd)
           
 int endgrent()
           
 int endpwent()
           
 int execv(CharSequence path, CharSequence... argv)
           
 int execve(CharSequence path, CharSequence[] argv, CharSequence[] envp)
           
 int fork()
           
 int fstat(int fd, FileStat stat)
           
 int fstat64(int fd, FileStat stat)
           
 int getegid()
           
 String getenv(CharSequence envName)
           
 int geteuid()
           
 int getgid()
           
 NativeGroup getgrent()
           
 NativeGroup getgrgid(int which)
           
 NativeGroup getgrnam(CharSequence which)
           
 String getlogin()
           
 int getpgid()
           
 int getpgid(int pid)
           
 int getpgrp()
           
 int getpid()
           
 int getppid()
           
 int getpriority(int which, int who)
           
 NativePasswd getpwent()
           
 NativePasswd getpwnam(CharSequence which)
           
 NativePasswd getpwuid(int which)
           
 int getuid()
           
 int isatty(int fd)
           
 int kill(int pid, int signal)
           
 int lchmod(CharSequence filename, int mode)
           
 int lchown(CharSequence filename, int user, int group)
           
 int link(CharSequence oldpath, CharSequence newpath)
           
 int lstat(CharSequence path, FileStat stat)
           
 int lstat64(CharSequence path, FileStat stat)
           
 int mkdir(CharSequence path, int mode)
           
 int posix_spawn_file_actions_addclose(jnr.ffi.Pointer fileActions, int filedes)
           
 int posix_spawn_file_actions_adddup2(jnr.ffi.Pointer fileActions, int filedes, int newfiledes)
           
 int posix_spawn_file_actions_addopen(jnr.ffi.Pointer fileActions, int filedes, CharSequence path, int oflag, int mode)
           
 int posix_spawn_file_actions_destroy(jnr.ffi.Pointer fileActions)
           
 int posix_spawn_file_actions_init(jnr.ffi.Pointer fileActions)
           
 int posix_spawn(jnr.ffi.byref.IntByReference pid, CharSequence path, jnr.ffi.Pointer fileActions, jnr.ffi.Pointer attr, CharSequence[] argv, CharSequence[] envp)
           
 int posix_spawnattr_destroy(jnr.ffi.Pointer attr)
           
 int posix_spawnattr_getflags(jnr.ffi.Pointer attr, jnr.ffi.byref.ShortByReference flags)
           
 int posix_spawnattr_init(jnr.ffi.Pointer attr)
           
 int posix_spawnattr_setflags(jnr.ffi.Pointer attr, short flags)
           
 int posix_spawnp(jnr.ffi.byref.IntByReference pid, CharSequence path, jnr.ffi.Pointer fileActions, jnr.ffi.Pointer attr, CharSequence[] argv, CharSequence[] envp)
           
 int read(int fd, ByteBuffer dst, int len)
           
 int readlink(CharSequence oldpath, ByteBuffer buffer, int len)
           
 int setegid(int egid)
           
 int setenv(CharSequence envName, CharSequence envValue, int overwrite)
           
 int seteuid(int euid)
           
 int setgid(int gid)
           
 int setgrent()
           
 int setpgid(int pid, int pgid)
           
 int setpgrp(int pid, int pgrp)
           
 int setpriority(int which, int who, int prio)
           
 int setpwent()
           
 int setsid()
           
 int setuid(int uid)
           
 int stat(CharSequence path, FileStat stat)
           
 int stat64(CharSequence path, FileStat stat)
           
 int symlink(CharSequence oldpath, CharSequence newpath)
           
 long sysconf(jnr.constants.platform.Sysconf name)
           
 long times(jnr.posix.NativeTimes tms)
           
 int umask(int mask)
           
 int unsetenv(CharSequence envName)
           
 int utimes(CharSequence path, Timeval[] times)
           
 int wait(int[] status)
           
 int waitpid(int pid, int[] status, int options)
           
 int write(int fd, ByteBuffer src, int len)
           
 

Method Detail

chmod

int chmod(CharSequence filename,
          int mode)

chown

int chown(CharSequence filename,
          int user,
          int group)

fstat

int fstat(int fd,
          FileStat stat)

fstat64

int fstat64(int fd,
            FileStat stat)

getenv

String getenv(CharSequence envName)

getegid

int getegid()

setegid

int setegid(int egid)

geteuid

int geteuid()

seteuid

int seteuid(int euid)

getgid

int getgid()

getlogin

String getlogin()

setgid

int setgid(int gid)

getpgid

int getpgid()

getpgid

int getpgid(int pid)

setpgid

int setpgid(int pid,
            int pgid)

getpgrp

int getpgrp()

setpgrp

int setpgrp(int pid,
            int pgrp)

getppid

int getppid()

getpid

int getpid()

getpwent

NativePasswd getpwent()

getpwuid

NativePasswd getpwuid(int which)

getpwnam

NativePasswd getpwnam(CharSequence which)

getgrent

NativeGroup getgrent()

getgrgid

NativeGroup getgrgid(int which)

getgrnam

NativeGroup getgrnam(CharSequence which)

setpwent

int setpwent()

endpwent

int endpwent()

setgrent

int setgrent()

endgrent

int endgrent()

getuid

int getuid()

setsid

int setsid()

setuid

int setuid(int uid)

kill

int kill(int pid,
         int signal)

lchmod

int lchmod(CharSequence filename,
           int mode)

lchown

int lchown(CharSequence filename,
           int user,
           int group)

link

int link(CharSequence oldpath,
         CharSequence newpath)

lstat

int lstat(CharSequence path,
          FileStat stat)

lstat64

int lstat64(CharSequence path,
            FileStat stat)

mkdir

int mkdir(CharSequence path,
          int mode)

stat

int stat(CharSequence path,
         FileStat stat)

stat64

int stat64(CharSequence path,
           FileStat stat)

symlink

int symlink(CharSequence oldpath,
            CharSequence newpath)

readlink

int readlink(CharSequence oldpath,
             ByteBuffer buffer,
             int len)

setenv

int setenv(CharSequence envName,
           CharSequence envValue,
           int overwrite)

umask

int umask(int mask)

unsetenv

int unsetenv(CharSequence envName)

utimes

int utimes(CharSequence path,
           Timeval[] times)

fork

int fork()

waitpid

int waitpid(int pid,
            int[] status,
            int options)

wait

int wait(int[] status)

getpriority

int getpriority(int which,
                int who)

setpriority

int setpriority(int which,
                int who,
                int prio)

isatty

int isatty(int fd)

read

int read(int fd,
         ByteBuffer dst,
         int len)

write

int write(int fd,
          ByteBuffer src,
          int len)

close

int close(int fd)

execv

int execv(CharSequence path,
          CharSequence... argv)

execve

int execve(CharSequence path,
           CharSequence[] argv,
           CharSequence[] envp)

posix_spawn

int posix_spawn(jnr.ffi.byref.IntByReference pid,
                CharSequence path,
                jnr.ffi.Pointer fileActions,
                jnr.ffi.Pointer attr,
                CharSequence[] argv,
                CharSequence[] envp)

posix_spawnp

int posix_spawnp(jnr.ffi.byref.IntByReference pid,
                 CharSequence path,
                 jnr.ffi.Pointer fileActions,
                 jnr.ffi.Pointer attr,
                 CharSequence[] argv,
                 CharSequence[] envp)

posix_spawn_file_actions_init

int posix_spawn_file_actions_init(jnr.ffi.Pointer fileActions)

posix_spawn_file_actions_destroy

int posix_spawn_file_actions_destroy(jnr.ffi.Pointer fileActions)

posix_spawn_file_actions_addclose

int posix_spawn_file_actions_addclose(jnr.ffi.Pointer fileActions,
                                      int filedes)

posix_spawn_file_actions_addopen

int posix_spawn_file_actions_addopen(jnr.ffi.Pointer fileActions,
                                     int filedes,
                                     CharSequence path,
                                     int oflag,
                                     int mode)

posix_spawn_file_actions_adddup2

int posix_spawn_file_actions_adddup2(jnr.ffi.Pointer fileActions,
                                     int filedes,
                                     int newfiledes)

posix_spawnattr_init

int posix_spawnattr_init(jnr.ffi.Pointer attr)

posix_spawnattr_destroy

int posix_spawnattr_destroy(jnr.ffi.Pointer attr)

posix_spawnattr_setflags

int posix_spawnattr_setflags(jnr.ffi.Pointer attr,
                             short flags)

posix_spawnattr_getflags

int posix_spawnattr_getflags(jnr.ffi.Pointer attr,
                             jnr.ffi.byref.ShortByReference flags)

sysconf

long sysconf(jnr.constants.platform.Sysconf name)

times

long times(jnr.posix.NativeTimes tms)


Copyright © 2012. All Rights Reserved.