Package com.sun.akuma

Interface CLibrary

All Superinterfaces:
com.sun.jna.Library

public interface CLibrary extends com.sun.jna.Library
GNU C library.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     

    Nested classes/interfaces inherited from interface com.sun.jna.Library

    com.sun.jna.Library.Handler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CLibrary
     

    Fields inherited from interface com.sun.jna.Library

    OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
    execv(String file, com.sun.jna.StringArray args)
     
    int
     
    fopen(String fileName, String mode)
     
    int
     
    int
    fread(com.sun.jna.Pointer buf, int size, int count, CLibrary.FILE file)
     
    int
    fseek(CLibrary.FILE file, long offset, int whence)
     
    long
     
    int
     
    int
     
    int
    kill(int pid, int signum)
     
    void
     
    int
    readlink(String filename, com.sun.jna.Memory buffer, com.sun.jna.NativeLong size)
    Read a symlink.
    int
    setenv(String name, String value)
     
    int
    setgid(short newgid)
     
    int
     
    int
    setuid(short newuid)
     
    strerror(int errno)
     
    int
    sysctl(int[] mib, int nameLen, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, com.sun.jna.ptr.IntByReference newlen)
     
    int
    sysctlbyname(String name, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, com.sun.jna.ptr.IntByReference newlen)
     
    int
    sysctlnametomib(String name, com.sun.jna.Pointer mibp, com.sun.jna.ptr.IntByReference size)
     
    int
    umask(int mask)
     
    int
     
  • Field Details

  • Method Details

    • fork

      int fork()
    • kill

      int kill(int pid, int signum)
    • setsid

      int setsid()
    • setuid

      int setuid(short newuid)
    • setgid

      int setgid(short newgid)
    • umask

      int umask(int mask)
    • getpid

      int getpid()
    • getppid

      int getppid()
    • chdir

      int chdir(String dir)
    • execv

      int execv(String file, com.sun.jna.StringArray args)
    • setenv

      int setenv(String name, String value)
    • unsetenv

      int unsetenv(String name)
    • perror

      void perror(String msg)
    • strerror

      String strerror(int errno)
    • sysctlbyname

      int sysctlbyname(String name, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, com.sun.jna.ptr.IntByReference newlen)
    • sysctl

      int sysctl(int[] mib, int nameLen, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, com.sun.jna.ptr.IntByReference newlen)
    • sysctlnametomib

      int sysctlnametomib(String name, com.sun.jna.Pointer mibp, com.sun.jna.ptr.IntByReference size)
    • fopen

      CLibrary.FILE fopen(String fileName, String mode)
    • fseek

      int fseek(CLibrary.FILE file, long offset, int whence)
    • ftell

      long ftell(CLibrary.FILE file)
    • fread

      int fread(com.sun.jna.Pointer buf, int size, int count, CLibrary.FILE file)
    • fclose

      int fclose(CLibrary.FILE file)
    • readlink

      int readlink(String filename, com.sun.jna.Memory buffer, com.sun.jna.NativeLong size)
      Read a symlink. The name will be copied into the specified memory, and returns the number of bytes copied. The string is not null-terminated.
      Returns:
      if the return value equals size, the caller needs to retry with a bigger buffer. If -1, error.