Interface LinuxCLibrary

All Superinterfaces:
NativeLibrary

public non-sealed interface LinuxCLibrary extends NativeLibrary
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Corresponds to struct sock_filter
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    fallocate(int fd, int mode, long offset, long length)
     
     
    int
    prctl(int option, long arg2, long arg3, long arg4, long arg5)
    maps to prctl(2)
    long
    syscall(long number, int operation, int flags, long address)
    used to call seccomp(2), its too new...
  • Method Details

    • newSockFProg

    • prctl

      int prctl(int option, long arg2, long arg3, long arg4, long arg5)
      maps to prctl(2)
    • syscall

      long syscall(long number, int operation, int flags, long address)
      used to call seccomp(2), its too new... this is the only way, DON'T use it on some other architecture unless you know wtf you are doing
    • fallocate

      int fallocate(int fd, int mode, long offset, long length)