Package org.lwjgl.system.libc
Class LibCErrno
- java.lang.Object
-
- org.lwjgl.system.libc.LibCErrno
-
public class LibCErrno extends java.lang.Object
Native bindings to errno.h.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
E2BIG
EACCES
EAGAIN
EBADF
EBUSY
ECHILD
EDEADLK
EDEADLOCK
EDOM
EEXIST
EFAULT
EFBIG
EILSEQ
EINTR
EINVAL
EIO
EISDIR
EMFILE
EMLINK
ENAMETOOLONG
ENFILE
ENODEV
ENOENT
ENOEXEC
ENOLCK
ENOMEM
ENOSPC
ENOSYS
ENOTDIR
ENOTEMPTY
ENOTTY
ENXIO
EPERM
EPIPE
ERANGE
EROFS
ESPIPE
ESRCH
EXDEV
STRUNCATEStandard error codes.
-
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, ENOENT, ESRCH, EINTR, EIO, ENXIO, E2BIG, ENOEXEC, EBADF, ECHILD, EAGAIN, ENOMEM, EACCES, EFAULT, EBUSY, EEXIST, EXDEV, ENODEV, ENOTDIR, EISDIR, EINVAL, ENFILE, EMFILE, ENOTTY, EFBIG, ENOSPC, ESPIPE, EROFS, EMLINK, EPIPE, EDOM, ERANGE, EDEADLK, EDEADLOCK, ENAMETOOLONG, ENOLCK, ENOSYS, ENOTEMPTY, EILSEQ, STRUNCATE
Standard error codes.Enum values:
EPERM
- Operation not permittedENOENT
- No such file or directoryESRCH
- No such processEINTR
- Interrupted functionEIO
- I/O errorENXIO
- No such device or addressE2BIG
- Argument list too longENOEXEC
- Exec format errorEBADF
- Bad file numberECHILD
- No spawned processesEAGAIN
- No more processes or not enough memory or maximum nesting level reachedENOMEM
- Not enough memoryEACCES
- Permission deniedEFAULT
- Bad addressEBUSY
- Device or resource busyEEXIST
- File existsEXDEV
- Cross-device linkENODEV
- No such deviceENOTDIR
- Not a directoryEISDIR
- Is a directoryEINVAL
- Invalid argumentENFILE
- Too many files open in systemEMFILE
- Too many open filesENOTTY
- Inappropriate I/O control operationEFBIG
- File too largeENOSPC
- No space left on deviceESPIPE
- Invalid seekEROFS
- Read-only file systemEMLINK
- Too many linksEPIPE
- Broken pipeEDOM
- Math argumentERANGE
- Result too largeEDEADLK
- Resource deadlock would occurEDEADLOCK
- Same as EDEADLK for compatibility with older Microsoft C versionsENAMETOOLONG
- Filename too longENOLCK
- No locks availableENOSYS
- Function not supportedENOTEMPTY
- Directory not emptyEILSEQ
- Illegal byte sequenceSTRUNCATE
- String was truncated
-
-
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
LibCErrno.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.
-
-