Package org.lwjgl.system.libc
Class Errno
- java.lang.Object
-
- org.lwjgl.system.libc.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 longstatic int
EACCES
Permission deniedstatic int
EAGAIN
No more processes or not enough memory or maximum nesting level reachedstatic int
EBADF
Bad file numberstatic int
EBUSY
Device or resource busystatic int
ECHILD
No spawned processesstatic int
EDEADLK
Resource deadlock would occurstatic int
EDEADLOCK
Same as EDEADLK for compatibility with older Microsoft C versionsstatic int
EDOM
Math argumentstatic int
EEXIST
File existsstatic int
EFAULT
Bad addressstatic int
EFBIG
File too largestatic int
EILSEQ
Illegal byte sequencestatic int
EINTR
Interrupted functionstatic int
EINVAL
Invalid argumentstatic int
EIO
I/O errorstatic int
EISDIR
Is a directorystatic int
EMFILE
Too many open filesstatic int
EMLINK
Too many linksstatic int
ENAMETOOLONG
Filename too longstatic int
ENFILE
Too many files open in systemstatic int
ENODEV
No such devicestatic int
ENOENT
No such file or directorystatic int
ENOEXEC
Exec format errorstatic int
ENOLCK
No locks availablestatic int
ENOMEM
Not enough memorystatic int
ENOSPC
No space left on devicestatic int
ENOSYS
Function not supportedstatic int
ENOTDIR
Not a directorystatic int
ENOTEMPTY
Directory not emptystatic int
ENOTTY
Inappropriate I/O control operationstatic int
ENXIO
No such device or addressstatic int
EPERM
Operation not permittedstatic int
EPIPE
Broken pipestatic int
ERANGE
Result too largestatic int
EROFS
Read-only file systemstatic int
ESPIPE
Invalid seekstatic int
ESRCH
No such processstatic int
EXDEV
Cross-device linkstatic 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 variableerrno
, 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 variableerrno
, which is set by system calls and some library functions in the event of an error to indicate what went wrong.
-
-
-
Field Detail
-
EPERM
public static final int EPERM
Operation not permitted- See Also:
- Constant Field Values
-
ENOENT
public static final int ENOENT
No such file or directory- See Also:
- Constant Field Values
-
ESRCH
public static final int ESRCH
No such process- See Also:
- Constant Field Values
-
EINTR
public static final int EINTR
Interrupted function- See Also:
- Constant Field Values
-
EIO
public static final int EIO
I/O error- See Also:
- Constant Field Values
-
ENXIO
public static final int ENXIO
No such device or address- See Also:
- Constant Field Values
-
E2BIG
public static final int E2BIG
Argument list too long- See Also:
- Constant Field Values
-
ENOEXEC
public static final int ENOEXEC
Exec format error- See Also:
- Constant Field Values
-
EBADF
public static final int EBADF
Bad file number- See Also:
- Constant Field Values
-
ECHILD
public static final int ECHILD
No spawned processes- See Also:
- Constant Field Values
-
EAGAIN
public static final int EAGAIN
No more processes or not enough memory or maximum nesting level reached- See Also:
- Constant Field Values
-
ENOMEM
public static final int ENOMEM
Not enough memory- See Also:
- Constant Field Values
-
EACCES
public static final int EACCES
Permission denied- See Also:
- Constant Field Values
-
EFAULT
public static final int EFAULT
Bad address- See Also:
- Constant Field Values
-
EBUSY
public static final int EBUSY
Device or resource busy- See Also:
- Constant Field Values
-
EEXIST
public static final int EEXIST
File exists- See Also:
- Constant Field Values
-
EXDEV
public static final int EXDEV
Cross-device link- See Also:
- Constant Field Values
-
ENODEV
public static final int ENODEV
No such device- See Also:
- Constant Field Values
-
ENOTDIR
public static final int ENOTDIR
Not a directory- See Also:
- Constant Field Values
-
EISDIR
public static final int EISDIR
Is a directory- See Also:
- Constant Field Values
-
EINVAL
public static final int EINVAL
Invalid argument- See Also:
- Constant Field Values
-
ENFILE
public static final int ENFILE
Too many files open in system- See Also:
- Constant Field Values
-
EMFILE
public static final int EMFILE
Too many open files- See Also:
- Constant Field Values
-
ENOTTY
public static final int ENOTTY
Inappropriate I/O control operation- See Also:
- Constant Field Values
-
EFBIG
public static final int EFBIG
File too large- See Also:
- Constant Field Values
-
ENOSPC
public static final int ENOSPC
No space left on device- See Also:
- Constant Field Values
-
ESPIPE
public static final int ESPIPE
Invalid seek- See Also:
- Constant Field Values
-
EROFS
public static final int EROFS
Read-only file system- See Also:
- Constant Field Values
-
EMLINK
public static final int EMLINK
Too many links- See Also:
- Constant Field Values
-
EPIPE
public static final int EPIPE
Broken pipe- See Also:
- Constant Field Values
-
EDOM
public static final int EDOM
Math argument- See Also:
- Constant Field Values
-
ERANGE
public static final int ERANGE
Result too large- See Also:
- Constant Field Values
-
EDEADLK
public static final int EDEADLK
Resource deadlock would occur- See Also:
- Constant Field Values
-
EDEADLOCK
public static final int EDEADLOCK
Same as EDEADLK for compatibility with older Microsoft C versions- See Also:
- Constant Field Values
-
ENAMETOOLONG
public static final int ENAMETOOLONG
Filename too long- See Also:
- Constant Field Values
-
ENOLCK
public static final int ENOLCK
No locks available- See Also:
- Constant Field Values
-
ENOSYS
public static final int ENOSYS
Function not supported- See Also:
- Constant Field Values
-
ENOTEMPTY
public static final int ENOTEMPTY
Directory not empty- See Also:
- Constant Field Values
-
EILSEQ
public static final int EILSEQ
Illegal byte sequence- See Also:
- Constant Field Values
-
STRUNCATE
public static final int STRUNCATE
String was truncated- See Also:
- Constant Field Values
-
-
Method Detail
-
errno
public static int errno()
Returns the integer variableerrno
, 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 orNULL
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 variableerrno
, 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 orNULL
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.
-
-