jnr.posix
Interface LibC

All Known Subinterfaces:
AixLibC, LinuxLibC, SolarisLibC, UnixLibC, WindowsLibC

public interface LibC


Nested Class Summary
static interface LibC.LibCSignalHandler
           
 
Method Summary
 int chdir(CharSequence path)
           
 int chmod(CharSequence filename, int mode)
           
 int chown(CharSequence filename, int user, int group)
           
 int close(int fd)
           
 int dup(int fd)
           
 int dup2(int oldFd, int newFd)
           
 int endgrent()
           
 int endpwent()
           
 int execv(CharSequence path, CharSequence... argv)
           
 int execve(CharSequence path, CharSequence[] argv, CharSequence[] envp)
           
 int fchmod(int fd, int mode)
           
 int fchown(int fd, int user, int group)
           
 int fcntl(int fd, int fnctl)
           
 int fcntl(int fd, int fnctl, int... arg)
          Deprecated. 
 int fcntl(int fd, int fnctl, int arg)
           
 int fdatasync(int fd)
           
 int flock(int fd, int mode)
           
 int fork()
           
 int fstat(int fd, FileStat stat)
           
 int fstat64(int fd, FileStat stat)
           
 int fsync(int fd)
           
 int ftruncate(int fd, long offset)
           
 int futimes(int fd, Timeval[] times)
           
 long getcwd(byte[] cwd, int len)
           
 int getdtablesize()
           
 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 lseek(int fd, long offset, int whence)
           
 int lstat(CharSequence path, FileStat stat)
           
 int lstat64(CharSequence path, FileStat stat)
           
 int mkdir(CharSequence path, int mode)
           
 int open(CharSequence path, int flags, int perm)
           
 int pipe(int[] fds)
           
 int pread(int fd, byte[] src, int len, int offset)
           
 int pread(int fd, ByteBuffer src, int len, int offset)
           
 int pwrite(int fd, byte[] src, int len, int offset)
           
 int pwrite(int fd, ByteBuffer src, int len, int offset)
           
 int read(int fd, byte[] dst, int len)
           
 int read(int fd, ByteBuffer dst, int len)
           
 int readlink(CharSequence oldpath, ByteBuffer buffer, int len)
           
 int recvmsg(int socket, MsgHdr message, int flags)
           
 int rmdir(CharSequence path)
           
 int sendmsg(int socket, MsgHdr message, int flags)
           
 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)
           
 long signal(int sig, LibC.LibCSignalHandler handler)
           
 int socketpair(int domain, int type, int protocol, int[] fds)
           
 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 unlink(CharSequence path)
           
 int unsetenv(CharSequence envName)
           
 int utimes(CharSequence path, Timeval[] times)
           
 int wait(int[] status)
           
 int waitpid(long pid, int[] status, int options)
           
 int write(int fd, byte[] src, int len)
           
 int write(int fd, ByteBuffer src, int len)
           
 

Method Detail

chmod

int chmod(CharSequence filename,
          int mode)

fchmod

int fchmod(int fd,
           int mode)

chown

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

fchown

int fchown(int fd,
           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)

dup

int dup(int fd)

dup2

int dup2(int oldFd,
         int newFd)

fcntl

int fcntl(int fd,
          int fnctl,
          int arg)

fcntl

int fcntl(int fd,
          int fnctl)

fcntl

@Deprecated
int fcntl(int fd,
                     int fnctl,
                     int... arg)
Deprecated. 


getdtablesize

int getdtablesize()

signal

long signal(int sig,
            LibC.LibCSignalHandler handler)

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)

rmdir

int rmdir(CharSequence path)

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)

futimes

int futimes(int fd,
            Timeval[] times)

fork

int fork()

waitpid

int waitpid(long 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)

read

int read(int fd,
         byte[] dst,
         int len)

write

int write(int fd,
          byte[] src,
          int len)

pread

int pread(int fd,
          ByteBuffer src,
          int len,
          int offset)

pread

int pread(int fd,
          byte[] src,
          int len,
          int offset)

pwrite

int pwrite(int fd,
           ByteBuffer src,
           int len,
           int offset)

pwrite

int pwrite(int fd,
           byte[] src,
           int len,
           int offset)

lseek

int lseek(int fd,
          long offset,
          int whence)

close

int close(int fd)

execv

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

execve

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

chdir

int chdir(CharSequence path)

sysconf

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

times

long times(jnr.posix.NativeTimes tms)

flock

int flock(int fd,
          int mode)

unlink

int unlink(CharSequence path)

open

int open(CharSequence path,
         int flags,
         int perm)

pipe

int pipe(int[] fds)

ftruncate

int ftruncate(int fd,
              long offset)

getcwd

long getcwd(byte[] cwd,
            int len)

fsync

int fsync(int fd)

fdatasync

int fdatasync(int fd)

socketpair

int socketpair(int domain,
               int type,
               int protocol,
               int[] fds)

sendmsg

int sendmsg(int socket,
            MsgHdr message,
            int flags)

recvmsg

int recvmsg(int socket,
            MsgHdr message,
            int flags)


Copyright © 2014. All Rights Reserved.