Interface FreeBsdLibc

All Superinterfaces:
CLibrary, LibCAPI, Library, Reboot, Resource

public interface FreeBsdLibc extends CLibrary
C library. This class should be considered non-API as it may be removed if/when its code is incorporated into the JNA project.
  • Field Details

  • Method Details

    • getutxent

      Reads a line from the current file position in the utmp file. It returns a pointer to a structure containing the fields of the line.

      Not thread safe

      Returns:
      a FreeBsdLibc.FreeBsdUtmpx on success, and NULL on failure (which includes the "record not found" case)
    • thr_self

      int thr_self(NativeLongByReference id)
      Stores the system-wide thread identifier for the current kernel-scheduled thread in the variable pointed by the argument id.
      Parameters:
      id - The thread identifier is an integer in the range from PID_MAX + 2 (100001) to INT_MAX. The thread identifier is guaranteed to be unique at any given time, for each running thread in the system.
      Returns:
      If successful, returns zero, otherwise -1 is returned, and errno is set to indicate the error.