Package jnr.posix

Interface LibC

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

public interface LibC
  • Method Details

    • 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)
    • getrlimit

      int getrlimit(int resource, RLimit rlim)
    • getrlimit

      int getrlimit(int resource, jnr.ffi.Pointer rlim)
    • setrlimit

      int setrlimit(int resource, RLimit rlim)
    • setrlimit

      int setrlimit(int resource, jnr.ffi.Pointer rlim)
    • kill

      int kill(int pid, int signal)
    • kill

      int kill(long pid, int signal)
    • dup

      int dup(int fd)
    • dup2

      int dup2(int oldFd, int newFd)
    • fcntl

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

      int fcntl(int fd, int fnctl, jnr.ffi.Pointer arg)
    • fcntl

      int fcntl(int fd, int fnctl)
    • fcntl

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

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

      int access(CharSequence path, int amode)
    • getdtablesize

      int getdtablesize()
    • signal

      long signal(int sig, LibC.LibCSignalHandler handler)
    • raise

      int raise(int raise)
    • 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)
    • readlink

      int readlink(CharSequence path, byte[] buffer, int len)
    • readlink

      int readlink(CharSequence path, jnr.ffi.Pointer bufPtr, int bufsize)
    • 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)
    • utimes

      int utimes(String path, jnr.ffi.Pointer times)
    • futimes

      int futimes(int fd, Timeval[] times)
    • lutimes

      int lutimes(CharSequence path, Timeval[] times)
    • utimensat

      int utimensat(int dirfd, String path, Timespec[] times, int flag)
    • utimensat

      int utimensat(int dirfd, String path, jnr.ffi.Pointer times, int flag)
    • futimens

      int futimens(int fd, Timespec[] times)
    • futimens

      int futimens(int fd, jnr.ffi.Pointer 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

      long read(int fd, byte[] dst, long len)
    • write

      long write(int fd, byte[] src, long len)
    • read

      long read(int fd, ByteBuffer dst, long len)
    • write

      long write(int fd, ByteBuffer src, long len)
    • pread

      long pread(int fd, byte[] dst, long len, long offset)
    • pwrite

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

      long pread(int fd, ByteBuffer dst, long len, long offset)
    • pwrite

      long pwrite(int fd, ByteBuffer src, long len, long offset)
    • read

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

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

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

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

      int pread(int fd, byte[] dst, int len, int offset)
    • pwrite

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

      int pread(int fd, ByteBuffer dst, int len, int offset)
    • pwrite

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

      long 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)
    • confstr

      int confstr(jnr.constants.platform.Confstr name, ByteBuffer buf, int len)
    • fpathconf

      int fpathconf(int fd, jnr.constants.platform.Pathconf name)
    • times

      long times(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)
    • truncate

      int truncate(CharSequence path, long length)
    • ftruncate

      int ftruncate(int fd, long offset)
    • rename

      int rename(CharSequence oldName, CharSequence newName)
    • getcwd

      long getcwd(byte[] cwd, int len)
    • gethostname

      int gethostname(ByteBuffer buffer, 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)
    • setsockopt

      int setsockopt(int s, int level, int optname, ByteBuffer optval, int optlen)
    • getsockopt

      int getsockopt(int s, int level, int optname, ByteBuffer optval, jnr.ffi.byref.IntByReference optlen)
    • environ

      jnr.ffi.Variable<Long> environ()
    • syscall

      int syscall(int number)
    • syscall

      int syscall(int number, int arg1)
    • syscall

      int syscall(int number, int arg1, int arg2)
    • syscall

      int syscall(int number, int arg1, int arg2, int arg3)
    • daemon

      int daemon(int nochdir, int noclose)
    • getgroups

      int getgroups(int size, int[] groups)
    • nl_langinfo

      String nl_langinfo(int item)
    • setlocale

      String setlocale(int category, String locale)
    • strerror

      String strerror(int errno)
    • gettimeofday

      int gettimeofday(Timeval tv, long alwaysNull)