Interface OptimizeMojo.CLibrary

All Superinterfaces:
com.sun.jna.Library
Enclosing class:
OptimizeMojo

public static interface OptimizeMojo.CLibrary extends com.sun.jna.Library
C library interface for getting user IDs.

This interface uses JNA (Java Native Access) to call native C functions.

Since:
0.6.0
  • Nested Class Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    Instance of the C library.

    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
    Get the effective user ID of the calling process.
    int
    Get the user ID of the calling process.
  • Field Details

    • INSTANCE

      static final OptimizeMojo.CLibrary INSTANCE
      Instance of the C library.

      This is used to access native methods.

  • Method Details

    • getuid

      int getuid()
      Get the user ID of the calling process.
      Returns:
      The user ID
    • geteuid

      int geteuid()
      Get the effective user ID of the calling process.
      Returns:
      The effective user ID