Class Errno



  • public class Errno
    extends java.lang.Object
    Native bindings to errno.h.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int E2BIG
      Argument list too long
      static int EACCES
      Permission denied
      static int EAGAIN
      No more processes or not enough memory or maximum nesting level reached
      static int EBADF
      Bad file number
      static int EBUSY
      Device or resource busy
      static int ECHILD
      No spawned processes
      static int EDEADLK
      Resource deadlock would occur
      static int EDEADLOCK
      Same as EDEADLK for compatibility with older Microsoft C versions
      static int EDOM
      Math argument
      static int EEXIST
      File exists
      static int EFAULT
      Bad address
      static int EFBIG
      File too large
      static int EILSEQ
      Illegal byte sequence
      static int EINTR
      Interrupted function
      static int EINVAL
      Invalid argument
      static int EIO
      I/O error
      static int EISDIR
      Is a directory
      static int EMFILE
      Too many open files
      static int EMLINK
      Too many links
      static int ENAMETOOLONG
      Filename too long
      static int ENFILE
      Too many files open in system
      static int ENODEV
      No such device
      static int ENOENT
      No such file or directory
      static int ENOEXEC
      Exec format error
      static int ENOLCK
      No locks available
      static int ENOMEM
      Not enough memory
      static int ENOSPC
      No space left on device
      static int ENOSYS
      Function not supported
      static int ENOTDIR
      Not a directory
      static int ENOTEMPTY
      Directory not empty
      static int ENOTTY
      Inappropriate I/O control operation
      static int ENXIO
      No such device or address
      static int EPERM
      Operation not permitted
      static int EPIPE
      Broken pipe
      static int ERANGE
      Result too large
      static int EROFS
      Read-only file system
      static int ESPIPE
      Invalid seek
      static int ESRCH
      No such process
      static int EXDEV
      Cross-device link
      static int STRUNCATE
      String was truncated
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static int errno()
      Returns the integer variable errno, which is set by system calls and some library functions in the event of an error to indicate what went wrong.
      static int getErrno()
      Returns the integer variable errno, which is set by system calls and some library functions in the event of an error to indicate what went wrong.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • errno

        public static int errno()
        Returns the integer variable errno, which is set by system calls and some library functions in the event of an error to indicate what went wrong. Its value is significant only when the return value of the call indicated an error (i.e., -1 from most system calls; -1 or NULL from most library functions); a function that succeeds is allowed to change errno.

        LWJGL note: This function cannot be used after another JNI call to a function, because the last error resets before that call returns. For this reason, LWJGL stores the last error in thread-local storage, you can use Errno.getErrno() to access it.

      • getErrno

        public static int getErrno()
        Returns the integer variable errno, which is set by system calls and some library functions in the event of an error to indicate what went wrong. Its value is significant only when the return value of the call indicated an error (i.e., -1 from most system calls; -1 or NULL from most library functions); a function that succeeds is allowed to change errno.

        LWJGL note: This method has a meaningful value only after another LWJGL JNI call. It does not return errno from errno.h, but the thread-local error code stored by a previous JNI call.