- java.lang.Object
-
- de.ibapl.jnhw.util.posix.Defines
-
public class Defines extends Object
get the defines with gcc: create an empty file c.c rungcc -dD -dI -E c.c > c.txtc.txt contains all macros. add an#include <headerFileName.h>to get the defines for that header.- Author:
- aploese
-
-
Field Summary
Fields Modifier and Type Field Description static IntDefine__aarch64__static IntDefine__alpha__static IntDefine__amd64__static IntDefine__APPLE__static IntDefine__arm__static IntDefine__ARM_ARCHstatic int__BIGGEST_ALIGNMENT__The biggest alignemnt used.static int__BYTE_ORDER__static IntDefine__FreeBSD__the major version at compile timestatic IntDefine__GLIBC__static IntDefine__GLIBC_MINOR__static IntDefine__GNU_LIBRARY__static IntDefine__i386__static IntDefine__i686__static IntDefine__ILP32__static IntDefine__linux__static IntDefine__LP64__static IntDefine__mips__static IntDefine__MIPS_ARCHstatic IntDefine__mips64static IntDefine__MIPSEB__static IntDefine__MIPSEL__static IntDefine__OpenBSD__static int__ORDER_BIG_ENDIAN__static int__ORDER_LITTLE_ENDIAN__static int__ORDER_PDP_ENDIAN__static IntDefine__powerpc__static IntDefine__powerpc64__static IntDefine__riscv__static IntDefine__s390__static IntDefine__s390x__static IntDefine__sh__static IntDefine__SH4__static int__SIZEOF_LONG__static int__SIZEOF_POINTER__static IntDefine__sparc__static IntDefine__sparc64__static IntDefine__TIMESIZEsize of time_t glibc bits/timesize.hstatic IntDefine__WORDSIZEIts defined at different places: glibc: bits/wordsize.h FreeBSD: sys/stdint.h but not at OpenBSD so we keep his here for the moment.static IntDefine__x86_64__static IntDefine_BSD_SOURCEstatic IntDefine_FILE_OFFSET_BITSmaybe defined in jnhw-posix.hstatic IntDefine_LARGEFILE_SOURCEmaybe defined in jnhw-posix.hstatic IntDefine_LARGEFILE64_SOURCEmaybe defined in jnhw-posix.h _LARGEFILE64_SOURCE was defined at native compile time.static IntDefine_POSIX_C_SOURCEmaybe defined in jnhw-posix.hstatic IntDefine_XOPEN_SOURCEmaybe defined in jnhw-posix.hstatic IntDefine_XOPEN_SOURCE_EXTENDEDmaybe defined in jnhw-posix.h
-
Constructor Summary
Constructors Constructor Description Defines()
-
-
-
Field Detail
-
_LARGEFILE_SOURCE
@Define public static final IntDefine _LARGEFILE_SOURCE
maybe defined in jnhw-posix.h
-
_LARGEFILE64_SOURCE
@Define public static final IntDefine _LARGEFILE64_SOURCE
maybe defined in jnhw-posix.h _LARGEFILE64_SOURCE was defined at native compile time. If _LARGEFILE64_SOURCE was defined then all largefile64 functions (i.e. open64, read64, fseek64, ...) are available. time of the native code.
-
__WORDSIZE
@Define public static final IntDefine __WORDSIZE
Its defined at different places: glibc: bits/wordsize.h FreeBSD: sys/stdint.h but not at OpenBSD so we keep his here for the moment. _POSIX_C_SOURCE
-
__SIZEOF_LONG__
@Define public static final int __SIZEOF_LONG__
-
__SIZEOF_POINTER__
@Define public static final int __SIZEOF_POINTER__
-
__BIGGEST_ALIGNMENT__
@Define public static final int __BIGGEST_ALIGNMENT__
The biggest alignemnt used. If sizeof(struct) is bigger than__BIGGEST_ALIGNMENT__use an address that is a multiple of__BIGGEST_ALIGNMENT__asbaseaddress.
-
__ORDER_LITTLE_ENDIAN__
@Define public static final int __ORDER_LITTLE_ENDIAN__
-
__ORDER_BIG_ENDIAN__
@Define public static final int __ORDER_BIG_ENDIAN__
-
__ORDER_PDP_ENDIAN__
@Define public static final int __ORDER_PDP_ENDIAN__
-
__BYTE_ORDER__
@Define public static final int __BYTE_ORDER__
-
_FILE_OFFSET_BITS
@Define public static final IntDefine _FILE_OFFSET_BITS
maybe defined in jnhw-posix.h
-
_XOPEN_SOURCE_EXTENDED
@Define public static final IntDefine _XOPEN_SOURCE_EXTENDED
maybe defined in jnhw-posix.h
-
-