diff --git a/.github/workflows/systems.yml b/.github/workflows/systems.yml
index 9581f822daf..40ff225be55 100644
--- a/.github/workflows/systems.yml
+++ b/.github/workflows/systems.yml
@@ -37,6 +37,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: bytedeco/javacpp-presets/.github/actions/deploy-ubuntu@actions
+ macosx-arm64:
+ runs-on: macos-14
+ steps:
+ - uses: bytedeco/javacpp-presets/.github/actions/deploy-macosx@actions
macosx-x86_64:
runs-on: macos-13
steps:
@@ -51,7 +55,7 @@ jobs:
- uses: bytedeco/javacpp-presets/.github/actions/deploy-windows@actions
redeploy:
# needs: [linux-armhf, linux-arm64, linux-ppc64le, linux-x86, linux-x86_64, macosx-x86_64, windows-x86, windows-x86_64]
- needs: [linux-arm64, linux-x86_64, macosx-x86_64, windows-x86_64]
+ needs: [linux-arm64, linux-x86_64, macosx-arm64, macosx-x86_64, windows-x86_64]
runs-on: ubuntu-22.04
steps:
- uses: bytedeco/javacpp-presets/.github/actions/redeploy@actions
diff --git a/pom.xml b/pom.xml
index a0bdd9a26ec..4d92ef64a86 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1472,6 +1472,7 @@
tesseract
pytorch
sentencepiece
+ systems
diff --git a/systems/platform/pom.xml b/systems/platform/pom.xml
index 2d2df30ccd8..e673c01507c 100644
--- a/systems/platform/pom.xml
+++ b/systems/platform/pom.xml
@@ -60,6 +60,12 @@
+
+ ${project.groupId}
+ ${javacpp.moduleId}
+ ${project.version}
+ ${javacpp.platform.macosx-arm64}
+
${project.groupId}
${javacpp.moduleId}
@@ -90,7 +96,7 @@
- ${javacpp.moduleId}.jar ${javacpp.moduleId}-linux-x86.jar ${javacpp.moduleId}-linux-x86_64.jar ${javacpp.moduleId}-linux-armhf.jar ${javacpp.moduleId}-linux-arm64.jar ${javacpp.moduleId}-linux-ppc64le.jar ${javacpp.moduleId}-macosx-x86_64.jar ${javacpp.moduleId}-windows-x86.jar ${javacpp.moduleId}-windows-x86_64.jar
+ ${javacpp.moduleId}.jar ${javacpp.moduleId}-linux-x86.jar ${javacpp.moduleId}-linux-x86_64.jar ${javacpp.moduleId}-linux-armhf.jar ${javacpp.moduleId}-linux-arm64.jar ${javacpp.moduleId}-linux-ppc64le.jar ${javacpp.moduleId}-macosx-arm64.jar ${javacpp.moduleId}-macosx-x86_64.jar ${javacpp.moduleId}-windows-x86.jar ${javacpp.moduleId}-windows-x86_64.jar
@@ -140,6 +146,7 @@
// requires static org.bytedeco.${javacpp.moduleId}.linux.armhf;
requires static org.bytedeco.${javacpp.moduleId}.linux.arm64;
// requires static org.bytedeco.${javacpp.moduleId}.linux.ppc64le;
+ requires static org.bytedeco.${javacpp.moduleId}.macosx.arm64;
requires static org.bytedeco.${javacpp.moduleId}.macosx.x86_64;
// requires static org.bytedeco.${javacpp.moduleId}.windows.x86;
requires static org.bytedeco.${javacpp.moduleId}.windows.x86_64;
diff --git a/systems/pom.xml b/systems/pom.xml
index 956aa0fa8b8..8bc7d7aa683 100644
--- a/systems/pom.xml
+++ b/systems/pom.xml
@@ -45,6 +45,19 @@
+
+ javacpp-parser
+ generate-sources
+
+ parse
+
+
+
+ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/
+ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/
+
+
+
javacpp-compiler
process-classes
diff --git a/systems/src/gen/java/org/bytedeco/systems/global/linux.java b/systems/src/gen/java/org/bytedeco/systems/global/linux.java
index 42c139e4409..a96024531d8 100644
--- a/systems/src/gen/java/org/bytedeco/systems/global/linux.java
+++ b/systems/src/gen/java/org/bytedeco/systems/global/linux.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.global;
@@ -16,7 +16,7 @@ public class linux extends org.bytedeco.systems.presets.linux {
// Parsed from cpuid.h
/*
- * Copyright (C) 2007-2019 Free Software Foundation, Inc.
+ * Copyright (C) 2007-2021 Free Software Foundation, Inc.
*
* This file is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -38,6 +38,14 @@ public class linux extends org.bytedeco.systems.presets.linux {
* .
*/
+// #ifndef _CPUID_H_INCLUDED
+// #define _CPUID_H_INCLUDED
+
+/* %eax */
+public static final int bit_AVXVNNI = (1 << 4);
+public static final int bit_AVX512BF16 = (1 << 5);
+public static final int bit_HRESET = (1 << 22);
+
/* %ecx */
public static final int bit_SSE3 = (1 << 0);
public static final int bit_PCLMUL = (1 << 1);
@@ -127,26 +135,42 @@ public class linux extends org.bytedeco.systems.presets.linux {
public static final int bit_RDPID = (1 << 22);
public static final int bit_MOVDIRI = (1 << 27);
public static final int bit_MOVDIR64B = (1 << 28);
+public static final int bit_ENQCMD = (1 << 29);
public static final int bit_CLDEMOTE = (1 << 25);
+public static final int bit_KL = (1 << 23);
/* %edx */
public static final int bit_AVX5124VNNIW = (1 << 2);
public static final int bit_AVX5124FMAPS = (1 << 3);
+public static final int bit_AVX512VP2INTERSECT = (1 << 8);
public static final int bit_IBT = (1 << 20);
+public static final int bit_UINTR = (1 << 5);
public static final int bit_PCONFIG = (1 << 18);
-/* XFEATURE_ENABLED_MASK register bits (%eax == 13, %ecx == 0) */
+public static final int bit_SERIALIZE = (1 << 14);
+public static final int bit_TSXLDTRK = (1 << 16);
+public static final int bit_AMX_BF16 = (1 << 22);
+public static final int bit_AMX_TILE = (1 << 24);
+public static final int bit_AMX_INT8 = (1 << 25);
+
+/* XFEATURE_ENABLED_MASK register bits (%eax == 0xd, %ecx == 0) */
public static final int bit_BNDREGS = (1 << 3);
public static final int bit_BNDCSR = (1 << 4);
-/* Extended State Enumeration Sub-leaf (%eax == 13, %ecx == 1) */
+/* Extended State Enumeration Sub-leaf (%eax == 0xd, %ecx == 1) */
public static final int bit_XSAVEOPT = (1 << 0);
public static final int bit_XSAVEC = (1 << 1);
public static final int bit_XSAVES = (1 << 3);
-/* PT sub leaf (%eax == 14, %ecx == 0) */
+/* PT sub leaf (%eax == 0x14, %ecx == 0) */
/* %ebx */
public static final int bit_PTWRITE = (1 << 4);
+/* Keylocker leaf (%eax == 0x19) */
+/* %ebx */
+public static final int bit_AESKLE = ( 1<<0 );
+public static final int bit_WIDEKL = ( 1<<2 );
+
+
/* Signatures for different CPU implementations as returned in uses
of cpuid with level 0. */
public static final int signature_AMD_ebx = 0x68747541;
@@ -251,11 +275,17 @@ public static native int __get_cpuid_count(@Cast("unsigned int") int __leaf, @Ca
@Cast("unsigned int*") int[] __eax, @Cast("unsigned int*") int[] __ebx,
@Cast("unsigned int*") int[] __ecx, @Cast("unsigned int*") int[] __edx);
+public static native void __cpuidex(IntPointer __cpuid_info, int __leaf, int __subleaf);
+public static native void __cpuidex(IntBuffer __cpuid_info, int __leaf, int __subleaf);
+public static native void __cpuidex(int[] __cpuid_info, int __leaf, int __subleaf);
+
+// #endif /* _CPUID_H_INCLUDED */
+
// Parsed from dlfcn.h
/* User functions for run-time dynamic loading.
- Copyright (C) 1995-2020 Free Software Foundation, Inc.
+ Copyright (C) 1995-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -284,6 +314,8 @@ public static native int __get_cpuid_count(@Cast("unsigned int") int __leaf, @Ca
// #ifdef __USE_GNU
+// #include
+
/* If the first argument of `dlsym' or `dlvsym' is set to RTLD_NEXT
the run-time address of the symbol called NAME in the next shared
object is returned. The "next" relation is defined by the order
@@ -298,7 +330,7 @@ public static native int __get_cpuid_count(@Cast("unsigned int") int __leaf, @Ca
public static final Pointer RTLD_DEFAULT = RTLD_DEFAULT();
-/* Type for namespace indeces. */
+/* Type for namespace indices. */
/* Special namespace ID values. */
public static final int LM_ID_BASE = 0; /* Initial namespace. */
@@ -420,6 +452,14 @@ public static native int dlinfo(Pointer __handle,
// Targeting ../linux/Dl_serinfo.java
+// Targeting ../linux/dl_find_object.java
+
+
+
+/* If ADDRESS is found in an object, fill in *RESULT and return 0.
+ Otherwise, return -1. */
+public static native int _dl_find_object(Pointer __address, dl_find_object __result);
+
// #endif /* __USE_GNU */
@@ -428,7 +468,7 @@ public static native int dlinfo(Pointer __handle,
// Parsed from nl_types.h
-/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -484,9 +524,8 @@ public static native int dlinfo(Pointer __handle,
// Parsed from bits/types/__locale_t.h
/* Definition of struct __locale_struct and __locale_t.
- Copyright (C) 1997-2020 Free Software Foundation, Inc.
+ Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
- Contributed by Ulrich Drepper , 1997.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -514,7 +553,7 @@ public static native int dlinfo(Pointer __handle,
// Parsed from bits/types/locale_t.h
/* Definition of locale_t.
- Copyright (C) 2017-2020 Free Software Foundation, Inc.
+ Copyright (C) 2017-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -542,7 +581,7 @@ public static native int dlinfo(Pointer __handle,
// Parsed from bits/locale.h
/* Definition of locale category symbol values.
- Copyright (C) 2001-2020 Free Software Foundation, Inc.
+ Copyright (C) 2001-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -586,7 +625,7 @@ public static native int dlinfo(Pointer __handle,
// Parsed from langinfo.h
/* Access to locale-dependent parameters.
- Copyright (C) 1995-2020 Free Software Foundation, Inc.
+ Copyright (C) 1995-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1289,7 +1328,7 @@ public static native int dlinfo(Pointer __handle,
// Parsed from locale.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1453,6 +1492,7 @@ public static native locale_t newlocale(int __category_mask, String __locale,
// #include
// #include
+// #include
// Targeting ../linux/timespec.java
@@ -1489,7 +1529,7 @@ public static native locale_t newlocale(int __category_mask, String __locale,
// Parsed from bits/types/struct_iovec.h
/* Define struct iovec.
- Copyright (C) 1996-2020 Free Software Foundation, Inc.
+ Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1520,7 +1560,7 @@ public static native locale_t newlocale(int __category_mask, String __locale,
// Parsed from sys/uio.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1666,7 +1706,7 @@ public static native locale_t newlocale(int __category_mask, String __locale,
// Parsed from bits/sockaddr.h
/* Definition of struct sockaddr_* common members and sizes, generic version.
- Copyright (C) 1995-2020 Free Software Foundation, Inc.
+ Copyright (C) 1995-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1712,7 +1752,7 @@ public static native locale_t newlocale(int __category_mask, String __locale,
// Parsed from bits/socket_type.h
/* Define enum __socket_type for generic Linux.
- Copyright (C) 1991-2020 Free Software Foundation, Inc.
+ Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1770,7 +1810,7 @@ public static native locale_t newlocale(int __category_mask, String __locale,
// Parsed from bits/socket.h
/* System-specific socket constants and types. Linux version.
- Copyright (C) 1991-2020 Free Software Foundation, Inc.
+ Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1856,7 +1896,8 @@ public static native locale_t newlocale(int __category_mask, String __locale,
public static final int PF_QIPCRTR = 42; /* Qualcomm IPC Router. */
public static final int PF_SMC = 43; /* SMC sockets. */
public static final int PF_XDP = 44; /* XDP sockets. */
-public static final int PF_MAX = 45; /* For now.. */
+public static final int PF_MCTP = 45; /* Management component transport protocol. */
+public static final int PF_MAX = 46; /* For now.. */
/* Address families. */
public static final int AF_UNSPEC = PF_UNSPEC;
@@ -1907,6 +1948,7 @@ public static native locale_t newlocale(int __category_mask, String __locale,
public static final int AF_QIPCRTR = PF_QIPCRTR;
public static final int AF_SMC = PF_SMC;
public static final int AF_XDP = PF_XDP;
+public static final int AF_MCTP = PF_MCTP;
public static final int AF_MAX = PF_MAX;
/* Socket level values. Others are defined in the appropriate headers.
@@ -2066,7 +2108,7 @@ public static native cmsghdr __cmsg_nxthdr(msghdr __mhdr,
// Parsed from sys/socket.h
/* Declarations of socket constants, types, and functions.
- Copyright (C) 1991-2020 Free Software Foundation, Inc.
+ Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -2218,8 +2260,11 @@ public static native int getpeername(int __fd, sockaddr __addr,
This function is a cancellation point and therefore not marked with
__THROW. */
+// #ifndef __USE_TIME_BITS64
public static native @Cast("ssize_t") long sendmsg(int __fd, @Const msghdr __message,
int __flags);
+// #else
+// #endif
// #ifdef __USE_GNU
/* Send a VLEN messages as described by VMESSAGES to socket FD.
@@ -2227,16 +2272,22 @@ public static native int getpeername(int __fd, sockaddr __addr,
This function is a cancellation point and therefore not marked with
__THROW. */
+// # ifndef __USE_TIME_BITS64
public static native int sendmmsg(int __fd, mmsghdr __vmessages,
@Cast("unsigned int") int __vlen, int __flags);
-// #endif
+// # else
+// # endif /* __USE_TIME_BITS64 */
+// #endif /* __USE_GNU */
/* Receive a message as described by MESSAGE from socket FD.
Returns the number of bytes read or -1 for errors.
This function is a cancellation point and therefore not marked with
__THROW. */
+// #ifndef __USE_TIME_BITS64
public static native @Cast("ssize_t") long recvmsg(int __fd, msghdr __message, int __flags);
+// #else
+// #endif
// #ifdef __USE_GNU
/* Receive up to VLEN messages as described by VMESSAGES from socket FD.
@@ -2244,15 +2295,19 @@ public static native int sendmmsg(int __fd, mmsghdr __vmessages,
This function is a cancellation point and therefore not marked with
__THROW. */
+// # ifndef __USE_TIME_BITS64
public static native int recvmmsg(int __fd, mmsghdr __vmessages,
@Cast("unsigned int") int __vlen, int __flags,
timespec __tmo);
+// # else
+// # endif
// #endif
/* Put the current value for socket FD's option OPTNAME at protocol level LEVEL
into OPTVAL (which is *OPTLEN bytes long), and set *OPTLEN to the value's
actual length. Returns 0 on success, -1 for errors. */
+// #ifndef __USE_TIME_BITS64
public static native int getsockopt(int __fd, int __level, int __optname,
Pointer __optval,
@Cast("socklen_t*") IntPointer __optlen);
@@ -2262,12 +2317,17 @@ public static native int getsockopt(int __fd, int __level, int __optname,
public static native int getsockopt(int __fd, int __level, int __optname,
Pointer __optval,
@Cast("socklen_t*") int[] __optlen);
+// #else
+// #endif
/* Set socket FD's option OPTNAME at protocol level LEVEL
to *OPTVAL (which is OPTLEN bytes long).
Returns 0 on success, -1 for errors. */
+// #ifndef __USE_TIME_BITS64
public static native int setsockopt(int __fd, int __level, int __optname,
@Const Pointer __optval, @Cast("socklen_t") int __optlen);
+// #else
+// #endif
/* Prepare to accept connections on socket FD.
@@ -2508,7 +2568,7 @@ public static native int accept4(int __fd, sockaddr __addr,
// Parsed from bits/errno.h
/* Error constants. Linux specific version.
- Copyright (C) 1996-2020 Free Software Foundation, Inc.
+ Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -2559,7 +2619,7 @@ public static native int accept4(int __fd, sockaddr __addr,
// Parsed from errno.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -2615,7 +2675,7 @@ public static native int accept4(int __fd, sockaddr __addr,
// Parsed from string.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -2676,6 +2736,21 @@ public static native Pointer memccpy(Pointer __dest, @Const Pointer __src,
/* Compare N bytes of S1 and S2. */
public static native int memcmp(@Const Pointer __s1, @Const Pointer __s2, @Cast("size_t") long __n);
+/* Compare N bytes of S1 and S2. Return zero if S1 and S2 are equal.
+ Return some non-zero value otherwise.
+
+ Essentially __memcmpeq has the exact same semantics as memcmp
+ except the return value is less constrained. memcmp is always a
+ correct implementation of __memcmpeq. As well !!memcmp, -memcmp,
+ or bcmp are correct implementations.
+
+ __memcmpeq is meant to be used by compilers when memcmp return is
+ only used for its bolean value.
+
+ __memcmpeq is declared only for use by compilers. Programs should
+ continue to use memcmp. */
+public static native int __memcmpeq(@Const Pointer __s1, @Const Pointer __s2, @Cast("size_t") long __n);
+
/* Search N bytes of S for C. */
// #ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
public static native Pointer memchr(Pointer __s, int __c, @Cast("size_t") long __n);
@@ -3010,6 +3085,13 @@ public static native Pointer mempcpy(Pointer __dest,
public static native @Cast("char*") ByteBuffer strerror_r(int __errnum, @Cast("char*") ByteBuffer __buf, @Cast("size_t") long __buflen);
public static native @Cast("char*") byte[] strerror_r(int __errnum, @Cast("char*") byte[] __buf, @Cast("size_t") long __buflen);
// # endif
+
+// # ifdef __USE_GNU
+/* Return a string describing the meaning of tthe error in ERR. */
+public static native @Cast("const char*") BytePointer strerrordesc_np(int __err);
+/* Return a string with the error name in ERR. */
+public static native @Cast("const char*") BytePointer strerrorname_np(int __err);
+// # endif
// #endif
// #ifdef __USE_XOPEN2K8
@@ -3046,6 +3128,14 @@ public static native Pointer mempcpy(Pointer __dest,
/* Return a string describing the meaning of the signal number in SIG. */
public static native @Cast("char*") BytePointer strsignal(int __sig);
+// # ifdef __USE_GNU
+/* Return an abbreviation string for the signal number SIG. */
+public static native @Cast("const char*") BytePointer sigabbrev_np(int __sig);
+/* Return a string describing the meaning of the signal number in SIG,
+ the result is not translated. */
+public static native @Cast("const char*") BytePointer sigdescr_np(int __sig);
+// # endif
+
/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
public static native @Cast("char*") BytePointer __stpcpy(@Cast("char*") BytePointer __dest, @Cast("const char*") BytePointer __src);
public static native @Cast("char*") ByteBuffer __stpcpy(@Cast("char*") ByteBuffer __dest, String __src);
@@ -3128,7 +3218,8 @@ public static native Pointer mempcpy(Pointer __dest,
// Parsed from stdlib.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
+ Copyright The GNU Toolchain Authors.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -3652,7 +3743,7 @@ public static native float strtof_l(String __nptr,
`initstate' and `setstate' functions are those from BSD Unices.
The `rand' and `srand' functions are required by the ANSI standard.
We provide both interfaces to the same random number generator. */
-/* Return a random long integer between 0 and RAND_MAX inclusive. */
+/* Return a random long integer between 0 and 2^31-1 inclusive. */
public static native long random();
/* Seed the random number generator with the given number. */
@@ -3827,6 +3918,9 @@ public static native int lcong48_r(@Cast("unsigned short int*") short[] __param,
between objects pointed by the old and new pointers. */
public static native Pointer realloc(Pointer __ptr, @Cast("size_t") long __size);
+/* Free a block allocated by `malloc', `realloc' or `calloc'. */
+public static native @Name("free") void _free(Pointer __ptr);
+
// #ifdef __USE_MISC
/* Re-allocate the previously allocated block in PTR, making the new
block large enough for NMEMB elements of SIZE bytes each. */
@@ -3834,10 +3928,9 @@ public static native int lcong48_r(@Cast("unsigned short int*") short[] __param,
the same pointer that was passed to it, aliasing needs to be allowed
between objects pointed by the old and new pointers. */
public static native Pointer reallocarray(Pointer __ptr, @Cast("size_t") long __nmemb, @Cast("size_t") long __size);
-// #endif
-/* Free a block allocated by `malloc', `realloc' or `calloc'. */
-public static native @Name("free") void _free(Pointer __ptr);
+/* Add reallocarray as its own deallocator. */
+// #endif
// #ifdef __USE_MISC
// # include
@@ -4249,7 +4342,6 @@ public static native int mbtowc(@Cast("wchar_t*") IntPointer __pwc,
public static native @Cast("size_t") long wcstombs(@Cast("char*") byte[] __s,
@Cast("const wchar_t*") IntPointer __pwcs, @Cast("size_t") long __n);
-
// #ifdef __USE_MISC
/* Determine whether the string value of RESPONSE matches the affirmation
or negative response expression as specified by the LC_MESSAGES category
@@ -4339,7 +4431,9 @@ NELEM elements of LOADAVG. Return the number written (never more than
// #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
// # include
// #endif
-// #ifdef __LDBL_COMPAT
+
+// #include
+// #if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
// # include
// #endif
@@ -4349,7 +4443,7 @@ NELEM elements of LOADAVG. Return the number written (never more than
// Parsed from bits/time.h
/* System-dependent timing definitions. Linux version.
- Copyright (C) 1996-2020 Free Software Foundation, Inc.
+ Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -4425,6 +4519,9 @@ NELEM elements of LOADAVG. Return the number written (never more than
/* Tune a POSIX clock. */
public static native int clock_adjtime(@Cast("__clockid_t") int __clock_id, @Cast("timex*") Pointer __utx);
+// #ifdef __USE_TIME_BITS64
+// #endif
+
// #endif /* use GNU */
// #endif /* bits/time.h */
@@ -4432,7 +4529,7 @@ NELEM elements of LOADAVG. Return the number written (never more than
// Parsed from sys/time.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -4486,10 +4583,14 @@ NELEM elements of LOADAVG. Return the number written (never more than
use localtime etc. instead.
This function itself is semi-obsolete;
most callers should use time or clock_gettime instead. */
+// #ifndef __USE_TIME_BITS64
public static native int gettimeofday(timeval __tv,
Pointer __tz);
+// #else
+// #endif
// #ifdef __USE_MISC
+// # ifndef __USE_TIME_BITS64
/* Set the current time of day and timezone information.
This call is restricted to the super-user.
Setting the timezone in this way is obsolete, but we don't yet
@@ -4504,6 +4605,8 @@ public static native int settimeofday(@Const timeval __tv,
This call is restricted to the super-user. */
public static native int adjtime(@Const timeval __delta,
timeval __olddelta);
+// # else
+// # endif
// #endif
@@ -4530,6 +4633,7 @@ public static native int adjtime(@Const timeval __delta,
// #else
// #endif
+// #ifndef __USE_TIME_BITS64
/* Set *VALUE to the current setting of timer WHICH.
Return 0 on success, -1 on errors. */
public static native int getitimer(@Cast("__itimer_which_t") int __which,
@@ -4548,16 +4652,23 @@ public static native int setitimer(@Cast("__itimer_which_t") int __which,
public static native int utimes(@Cast("const char*") BytePointer __file, @Const timeval __tvp);
public static native int utimes(String __file, @Const timeval __tvp);
+// #else
+// #endif
+
// #ifdef __USE_MISC
+// # ifndef __USE_TIME_BITS64
/* Same as `utimes', but does not follow symbolic links. */
public static native int lutimes(@Cast("const char*") BytePointer __file, @Const timeval __tvp);
public static native int lutimes(String __file, @Const timeval __tvp);
/* Same as `utimes', but takes an open file descriptor instead of a name. */
public static native int futimes(int __fd, @Const timeval __tvp);
+// # else
+// # endif
// #endif
// #ifdef __USE_GNU
+// # ifndef __USE_TIME_BITS64
/* Change the access time of FILE relative to FD to TVP[0] and the
modification time of FILE to TVP[1]. If TVP is a null pointer, use
the current time instead. Returns 0 on success, -1 on errors. */
@@ -4565,6 +4676,8 @@ public static native int futimesat(int __fd, @Cast("const char*") BytePointer __
@Const timeval __tvp);
public static native int futimesat(int __fd, String __file,
@Const timeval __tvp);
+// # else
+// # endif
// #endif
@@ -4603,7 +4716,7 @@ public static native int futimesat(int __fd, String __file,
// Parsed from time.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -4675,6 +4788,7 @@ public static native int futimesat(int __fd, String __file,
The result / CLOCKS_PER_SEC is program time in seconds. */
public static native @Cast("clock_t") long clock();
+// #ifndef __USE_TIME_BITS64
/* Return the current time and put it in *TIMER if TIMER is not NULL. */
public static native @ByVal @Cast("time_t*") Pointer time(@Cast("time_t*") Pointer __timer);
@@ -4683,7 +4797,8 @@ public static native int futimesat(int __fd, String __file,
/* Return the `time_t' representation of TP and normalize TP. */
public static native @ByVal @Cast("time_t*") Pointer mktime(tm __tp);
-
+// #else
+// #endif
/* Format TP into S according to FORMAT.
Write no more than MAXSIZE characters and return the number
@@ -4756,6 +4871,7 @@ public static native int futimesat(int __fd, String __file,
// #endif
+// #ifndef __USE_TIME_BITS64
/* Return the `struct tm' representation of *TIMER
in Universal Coordinated Time (aka Greenwich Mean Time). */
public static native tm gmtime(@Cast("const time_t*") Pointer __timer);
@@ -4764,7 +4880,12 @@ in Universal Coordinated Time (aka Greenwich Mean Time). */
of *TIMER in the local timezone. */
public static native tm localtime(@Cast("const time_t*") Pointer __timer);
+// #else
+// #endif
+
+
// #if defined __USE_POSIX || __GLIBC_USE (ISOC2X)
+// # ifndef __USE_TIME_BITS64
/* Return the `struct tm' representation of *TIMER in UTC,
using *TP to store the result. */
public static native tm gmtime_r(@Cast("const time_t*") Pointer __timer,
@@ -4774,6 +4895,8 @@ public static native tm gmtime_r(@Cast("const time_t*") Pointer __timer,
using *TP to store the result. */
public static native tm localtime_r(@Cast("const time_t*") Pointer __timer,
tm __tp);
+// # else
+// # endif
// #endif /* POSIX || C2X */
/* Return a string of the form "Day Mon dd hh:mm:ss yyyy\n"
@@ -4781,9 +4904,12 @@ public static native tm localtime_r(@Cast("const time_t*") Pointer __timer,
public static native @Cast("char*") BytePointer asctime(@Const tm __tp);
/* Equivalent to `asctime (localtime (timer))'. */
+// #ifndef __USE_TIME_BITS64
public static native @Cast("char*") BytePointer ctime(@Cast("const time_t*") Pointer __timer);
+// #else
+// #endif
-// #if defined __USE_POSIX || __GLIBC_USE (ISOC2X)
+// #ifdef __USE_POSIX
/* Reentrant versions of the above functions. */
/* Return in BUF a string of the form "Day Mon dd hh:mm:ss yyyy\n"
@@ -4796,13 +4922,17 @@ public static native tm localtime_r(@Cast("const time_t*") Pointer __timer,
@Cast("char*") byte[] __buf);
/* Equivalent to `asctime_r (localtime_r (timer, *TMP*), buf)'. */
+// #ifndef __USE_TIME_BITS64
public static native @Cast("char*") BytePointer ctime_r(@Cast("const time_t*") Pointer __timer,
@Cast("char*") BytePointer __buf);
public static native @Cast("char*") ByteBuffer ctime_r(@Cast("const time_t*") Pointer __timer,
@Cast("char*") ByteBuffer __buf);
public static native @Cast("char*") byte[] ctime_r(@Cast("const time_t*") Pointer __timer,
@Cast("char*") byte[] __buf);
-// #endif /* POSIX || C2X */
+// #else
+// #endif
+
+// #endif /* POSIX */
/* Defined in localtime.c. */
@@ -4838,11 +4968,13 @@ public static native tm localtime_r(@Cast("const time_t*") Pointer __timer,
/* Miscellaneous functions many Unices inherited from the public domain
localtime package. These are included only for compatibility. */
+// #ifndef __USE_TIME_BITS64
/* Like `mktime', but for TP represents Universal Time, not local time. */
public static native @ByVal @Cast("time_t*") Pointer timegm(tm __tp);
-
/* Another name for `mktime'. */
public static native @ByVal @Cast("time_t*") Pointer timelocal(tm __tp);
+// #else
+// #endif
/* Return the number of days in YEAR. */
public static native int dysize(int __year);
@@ -4850,6 +4982,7 @@ public static native tm localtime_r(@Cast("const time_t*") Pointer __timer,
// #ifdef __USE_POSIX199309
+// # ifndef __USE_TIME_BITS64
/* Pause execution for a number of nanoseconds.
This function is a cancellation point and therefore not marked with
@@ -4857,7 +4990,6 @@ public static native tm localtime_r(@Cast("const time_t*") Pointer __timer,
public static native int nanosleep(@Const timespec __requested_time,
timespec __remaining);
-
/* Get resolution of clock CLOCK_ID. */
public static native int clock_getres(@Cast("clockid_t") int __clock_id, timespec __res);
@@ -4866,15 +4998,21 @@ public static native int nanosleep(@Const timespec __requested_time,
/* Set clock CLOCK_ID to value TP. */
public static native int clock_settime(@Cast("clockid_t") int __clock_id, @Const timespec __tp);
+// # else
+// # endif
+
// # ifdef __USE_XOPEN2K
/* High-resolution sleep with the specified clock.
This function is a cancellation point and therefore not marked with
__THROW. */
+// # ifndef __USE_TIME_BITS64
public static native int clock_nanosleep(@Cast("clockid_t") int __clock_id, int __flags,
@Const timespec __req,
timespec __rem);
+// # else
+// # endif
/* Return clock ID for CPU-time clock. */
public static native int clock_getcpuclockid(@Cast("pid_t") int __pid, @Cast("clockid_t*") IntPointer __clock_id);
@@ -4892,12 +5030,15 @@ public static native int timer_create(@Cast("clockid_t") int __clock_id,
public static native int timer_delete(@Cast("timer_t") long __timerid);
/* Set timer TIMERID to VALUE, returning old value in OVALUE. */
+// # ifndef __USE_TIME_BITS64
public static native int timer_settime(@Cast("timer_t") long __timerid, int __flags,
@Const itimerspec __value,
itimerspec __ovalue);
/* Get current value of timer TIMERID and store it in VALUE. */
public static native int timer_gettime(@Cast("timer_t") long __timerid, itimerspec __value);
+// # else
+// # endif
/* Get expiration overrun for timer TIMERID. */
public static native int timer_getoverrun(@Cast("timer_t") long __timerid);
@@ -4905,8 +5046,20 @@ public static native int timer_settime(@Cast("timer_t") long __timerid, int __fl
// #ifdef __USE_ISOC11
+// # ifndef __USE_TIME_BITS64
/* Set TS to calendar time based in time base BASE. */
public static native int timespec_get(timespec __ts, int __base);
+// # else
+// # endif
+// #endif
+
+
+// #if __GLIBC_USE (ISOC2X)
+// # ifndef __USE_TIME_BITS64
+/* Set TS to resolution of time base BASE. */
+public static native int timespec_getres(timespec __ts, int __base);
+// # else
+// # endif
// #endif
@@ -4957,7 +5110,7 @@ public static native int getdate_r(String __string,
// Parsed from utime.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -4993,17 +5146,21 @@ public static native int getdate_r(String __string,
/* Set the access and modification times of FILE to those given in
*FILE_TIMES. If FILE_TIMES is NULL, set them to the current time. */
+// #ifndef __USE_TIME_BITS64
public static native int utime(@Cast("const char*") BytePointer __file,
@Const utimbuf __file_times);
public static native int utime(String __file,
@Const utimbuf __file_times);
+// #else
+// #endif
+
// #endif /* utime.h */
// Parsed from bits/stat.h
-/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -5027,30 +5184,7 @@ public static native int utime(String __file,
// #ifndef _BITS_STAT_H
public static final int _BITS_STAT_H = 1;
-/* Versions of the `struct stat' data structure. */
-// #ifndef __x86_64__
-// #else
-public static final int _STAT_VER_KERNEL = 0;
-public static final int _STAT_VER_LINUX = 1;
-
-/* x86-64 versions of the `xmknod' interface. */
-public static final int _MKNOD_VER_LINUX = 0;
-// #endif
-
-public static final int _STAT_VER = _STAT_VER_LINUX;
-// Targeting ../linux/stat.java
-
-
-// Targeting ../linux/stat64.java
-
-
-// #endif
-
-/* Tell code we have these members. */
-// #define _STATBUF_ST_BLKSIZE
-// #define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-// #define _STATBUF_ST_NSEC
+// #include
/* Encoding of the file mode. */
@@ -5090,7 +5224,7 @@ public static native int utime(String __file,
// Parsed from sys/stat.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -5291,11 +5425,14 @@ public static native int stat(String __file,
// #else
// #endif
// #ifdef __USE_LARGEFILE64
+// # ifndef __USE_TIME_BITS64
public static native int stat64(@Cast("const char*") BytePointer __file,
stat64 __buf);
public static native int stat64(String __file,
stat64 __buf);
public static native int fstat64(int __fd, stat64 __buf);
+// # else
+// # endif
// #endif
// #ifdef __USE_ATFILE
@@ -5311,10 +5448,13 @@ public static native int fstatat(int __fd, String __file,
// # endif
// # ifdef __USE_LARGEFILE64
+// # ifndef __USE_TIME_BITS64
public static native int fstatat64(int __fd, @Cast("const char*") BytePointer __file,
stat64 __buf, int __flag);
public static native int fstatat64(int __fd, String __file,
stat64 __buf, int __flag);
+// # else
+// # endif
// # endif
// #endif
@@ -5329,10 +5469,13 @@ public static native int lstat(String __file,
// # else
// # endif
// # ifdef __USE_LARGEFILE64
+// # ifndef __USE_TIME_BITS64
public static native int lstat64(@Cast("const char*") BytePointer __file,
stat64 __buf);
public static native int lstat64(String __file,
stat64 __buf);
+// # else
+// # endif
// # endif
// #endif
@@ -5418,6 +5561,7 @@ public static native int mknodat(int __fd, String __path, @Cast("__mode_t") int
// #endif
// #ifdef __USE_ATFILE
+// # ifndef __USE_TIME_BITS64
/* Set file access and modification times relative to directory file
descriptor. */
public static native int utimensat(int __fd, @Cast("const char*") BytePointer __path,
@@ -5426,91 +5570,29 @@ public static native int utimensat(int __fd, @Cast("const char*") BytePointer __
public static native int utimensat(int __fd, String __path,
@Const timespec __times,
int __flags);
+// # else
+// # endif
// #endif
// #ifdef __USE_XOPEN2K8
+// # ifndef __USE_TIME_BITS64
/* Set file access and modification times of the file associated with FD. */
public static native int futimens(int __fd, @Const timespec __times);
-// #endif
-
-/* To allow the `struct stat' structure and the file type `mode_t'
- bits to vary without changing shared library major version number,
- the `stat' family of functions and `mknod' are in fact inline
- wrappers around calls to `xstat', `fxstat', `lxstat', and `xmknod',
- which all take a leading version-number argument designating the
- data structure and bits used. defines _STAT_VER with
- the version number corresponding to `struct stat' as defined in
- that file; and _MKNOD_VER with the version number corresponding to
- the S_IF* macros defined therein. It is arranged that when not
- inlined these function are always statically linked; that way a
- dynamically-linked executable always encodes the version number
- corresponding to the data structures it uses, so the `x' functions
- in the shared library can adapt without needing to recompile all
- callers. */
-
-// #ifndef _STAT_VER
-// #endif
-// #ifndef _MKNOD_VER
-public static final int _MKNOD_VER = 0;
-// #endif
-
-/* Wrappers for stat and mknod system calls. */
-// #ifndef __USE_FILE_OFFSET64
-public static native int __fxstat(int __ver, int __fildes, stat __stat_buf);
-public static native int __xstat(int __ver, @Cast("const char*") BytePointer __filename,
- stat __stat_buf);
-public static native int __xstat(int __ver, String __filename,
- stat __stat_buf);
-public static native int __lxstat(int __ver, @Cast("const char*") BytePointer __filename,
- stat __stat_buf);
-public static native int __lxstat(int __ver, String __filename,
- stat __stat_buf);
-public static native int __fxstatat(int __ver, int __fildes, @Cast("const char*") BytePointer __filename,
- stat __stat_buf, int __flag);
-public static native int __fxstatat(int __ver, int __fildes, String __filename,
- stat __stat_buf, int __flag);
-// #else
-// #endif
-// #ifdef __USE_LARGEFILE64
-public static native int __fxstat64(int __ver, int __fildes, stat64 __stat_buf);
-public static native int __xstat64(int __ver, @Cast("const char*") BytePointer __filename,
- stat64 __stat_buf);
-public static native int __xstat64(int __ver, String __filename,
- stat64 __stat_buf);
-public static native int __lxstat64(int __ver, @Cast("const char*") BytePointer __filename,
- stat64 __stat_buf);
-public static native int __lxstat64(int __ver, String __filename,
- stat64 __stat_buf);
-public static native int __fxstatat64(int __ver, int __fildes, @Cast("const char*") BytePointer __filename,
- stat64 __stat_buf, int __flag);
-public static native int __fxstatat64(int __ver, int __fildes, String __filename,
- stat64 __stat_buf, int __flag);
-// #endif
-public static native int __xmknod(int __ver, @Cast("const char*") BytePointer __path, @Cast("__mode_t") int __mode,
- @Cast("__dev_t*") SizeTPointer __dev);
-public static native int __xmknod(int __ver, String __path, @Cast("__mode_t") int __mode,
- @Cast("__dev_t*") SizeTPointer __dev);
-
-public static native int __xmknodat(int __ver, int __fd, @Cast("const char*") BytePointer __path,
- @Cast("__mode_t") int __mode, @Cast("__dev_t*") SizeTPointer __dev);
-public static native int __xmknodat(int __ver, int __fd, String __path,
- @Cast("__mode_t") int __mode, @Cast("__dev_t*") SizeTPointer __dev);
+// # else
+// # endif
+// #endif
// #ifdef __USE_GNU
// # include
// #endif
-// #ifdef __USE_EXTERN_INLINES
-
-// #endif
-
// #endif /* sys/stat.h */
// Parsed from fcntl.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -5621,12 +5703,15 @@ public static native int __xmknodat(int __ver, int __fd, String __path,
This function is a cancellation point and therefore not marked with
__THROW. */
-// #ifndef __USE_FILE_OFFSET64
+// #ifndef __USE_TIME_BITS64
+// # ifndef __USE_FILE_OFFSET64
public static native int fcntl(int __fd, int __cmd);
-// #else
-// #endif
-// #ifdef __USE_LARGEFILE64
+// # else
+// # endif
+// # ifdef __USE_LARGEFILE64
public static native int fcntl64(int __fd, int __cmd);
+// # endif
+// #else /* __USE_TIME_BITS64 */
// #endif
/* Open FILE and return a new file descriptor for it, or -1 on error.
@@ -5745,7 +5830,7 @@ public static native int posix_fadvise64(int __fd, @Cast("off64_t") long __offse
// Parsed from sys/file.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -5798,7 +5883,7 @@ public static native int posix_fadvise64(int __fd, @Cast("off64_t") long __offse
// Parsed from grp.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -6061,7 +6146,7 @@ public static native int getgrouplist(String __user, @Cast("__gid_t") int __grou
// Parsed from pwd.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -6361,7 +6446,7 @@ public static native int fgetpwent_r(@Cast("FILE*") Pointer __stream,
// Parsed from bits/types/__sigval_t.h
/* Define __sigval_t.
- Copyright (C) 1997-2020 Free Software Foundation, Inc.
+ Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -6411,7 +6496,7 @@ public static native int fgetpwent_r(@Cast("FILE*") Pointer __stream,
// Parsed from bits/types/stack_t.h
/* Define stack_t. Linux version.
- Copyright (C) 1998-2020 Free Software Foundation, Inc.
+ Copyright (C) 1998-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -6440,73 +6525,10 @@ public static native int fgetpwent_r(@Cast("FILE*") Pointer __stream,
// #endif
-// Parsed from bits/signum.h
-
-/* Signal number definitions. Linux version.
- Copyright (C) 1995-2020 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-// #ifndef _BITS_SIGNUM_H
-public static final int _BITS_SIGNUM_H = 1;
-
-// #ifndef _SIGNAL_H
-// #error "Never include directly; use instead."
-// #endif
-
-// #include
-
-/* Adjustments and additions to the signal number constants for
- most Linux systems. */
-
-public static final int SIGSTKFLT = 16; /* Stack fault (obsolete). */
-public static final int SIGPWR = 30; /* Power failure imminent. */
-
-// #undef SIGBUS
-public static final int SIGBUS = 7;
-// #undef SIGUSR1
-public static final int SIGUSR1 = 10;
-// #undef SIGUSR2
-public static final int SIGUSR2 = 12;
-// #undef SIGCHLD
-public static final int SIGCHLD = 17;
-// #undef SIGCONT
-public static final int SIGCONT = 18;
-// #undef SIGSTOP
-public static final int SIGSTOP = 19;
-// #undef SIGTSTP
-public static final int SIGTSTP = 20;
-// #undef SIGURG
-public static final int SIGURG = 23;
-// #undef SIGPOLL
-public static native @MemberGetter int SIGPOLL();
-public static final int SIGPOLL = SIGPOLL();
-// #undef SIGSYS
-public static final int SIGSYS = 31;
-
-// #undef __SIGRTMAX
-public static final int __SIGRTMAX = 64;
-
-// #endif /* included. */
-
-
// Parsed from bits/sigaction.h
/* The proper definitions for Linux's sigaction.
- Copyright (C) 1993-2020 Free Software Foundation, Inc.
+ Copyright (C) 1993-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -6565,7 +6587,7 @@ public static native int fgetpwent_r(@Cast("FILE*") Pointer __stream,
// Parsed from bits/sigcontext.h
-/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -6610,7 +6632,7 @@ public static native int fgetpwent_r(@Cast("FILE*") Pointer __stream,
// Parsed from bits/sigstack.h
/* sigstack, sigaltstack definitions.
- Copyright (C) 1998-2020 Free Software Foundation, Inc.
+ Copyright (C) 1998-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -6645,7 +6667,7 @@ public static native int fgetpwent_r(@Cast("FILE*") Pointer __stream,
// Parsed from signal.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -6775,7 +6797,9 @@ only for compatibility. A single word (`int') is not guaranteed to be
simply do not work in many situations. Use `sigprocmask' instead. */
/* Compute mask for signal SIG. */
-// # define sigmask(sig) ((int)(1 << ((sig) - 1)))
+// # define sigmask(sig)
+// __glibc_macro_warning ("sigmask is deprecated")
+// ((int)(1 << ((sig) - 1)))
/* Block signals in MASK, returning the old mask. */
@@ -6876,9 +6900,12 @@ public static native int sigwaitinfo(@Const sigset_t __set,
This function is a cancellation point and therefore not marked with
__THROW. */
+// # ifndef __USE_TIME_BITS64
public static native int sigtimedwait(@Const sigset_t __set,
siginfo_t __info,
@Const timespec __timeout);
+// # else
+// # endif
/* Send signal SIG to the process PID. Associate data in VAL with the
signal. */
@@ -6889,14 +6916,6 @@ public static native int sigtimedwait(@Const sigset_t __set,
// #ifdef __USE_MISC
-/* Names of the signals. This variable exists only for compatibility.
- Use `strsignal' instead (see ). */
-@MemberGetter public static native @Cast("const char*") BytePointer _sys_siglist(int i);
-@MemberGetter public static native @Cast("const char*const*") PointerPointer _sys_siglist();
-@MemberGetter public static native @Cast("const char*") BytePointer sys_siglist(int i);
-@MemberGetter public static native @Cast("const char*const*") PointerPointer sys_siglist();
-
-
/* Get machine-dependent `struct sigcontext' and signal subcodes. */
// # include
@@ -6924,6 +6943,7 @@ public static native int sigtimedwait(@Const sigset_t __set,
public static native int siginterrupt(int __sig, int __interrupt);
// # include
+// # include
// # include
/* Alternate signal handler stack interface.
@@ -6991,7 +7011,7 @@ public static native int sigaltstack(@Const stack_t __ss,
/* Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993
scheduling interface.
- Copyright (C) 1996-2020 Free Software Foundation, Inc.
+ Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -7110,7 +7130,7 @@ public static native int sigaltstack(@Const stack_t __ss,
// Parsed from bits/types/struct_sched_param.h
/* Sched parameter structure. Generic version.
- Copyright (C) 1996-2020 Free Software Foundation, Inc.
+ Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -7138,7 +7158,7 @@ public static native int sigaltstack(@Const stack_t __ss,
// Parsed from sys/ucontext.h
-/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -7253,7 +7273,7 @@ public static native int sigaltstack(@Const stack_t __ss,
// Parsed from ucontext.h
-/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -7310,7 +7330,7 @@ public static native void makecontext(ucontext_t __ucp, __func __func,
/* Definitions of constants and data structure for POSIX 1003.1b-1993
scheduling interface.
- Copyright (C) 1996-2020 Free Software Foundation, Inc.
+ Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -7411,7 +7431,7 @@ public static native int clone(__fn_Pointer __fn, Pointer __child_stack,
// Parsed from sched.h
/* Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface.
- Copyright (C) 1996-2020 Free Software Foundation, Inc.
+ Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -7481,8 +7501,10 @@ public static native int sched_setscheduler(@Cast("__pid_t") int __pid, int __po
public static native int sched_get_priority_min(int __algorithm);
/* Get the SCHED_RR interval for the named process. */
+// #ifndef __USE_TIME_BITS64
public static native int sched_rr_get_interval(@Cast("__pid_t") int __pid, timespec __t);
-
+// #else
+// #endif
// #ifdef __USE_GNU
/* Access macros for `cpu_set'. */
@@ -7539,7 +7561,7 @@ public static native int sched_getaffinity(@Cast("__pid_t") int __pid, @Cast("si
// Parsed from spawn.h
/* Definitions for POSIX spawn interface.
- Copyright (C) 2000-2020 Free Software Foundation, Inc.
+ Copyright (C) 2000-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -7730,7 +7752,6 @@ public static native int posix_spawnattr_getschedparam(@Const posix_spawnattr_t
public static native int posix_spawnattr_setschedparam(posix_spawnattr_t __attr,
@Const sched_param __schedparam);
-
/* Initialize data structure for file attribute for `spawn' call. */
public static native int posix_spawn_file_actions_init(posix_spawn_file_actions_t __file_actions);
@@ -7770,6 +7791,17 @@ public static native int posix_spawn_file_actions_addchdir_np(posix_spawn_file_a
be open when the file action is executed. */
public static native int posix_spawn_file_actions_addfchdir_np(posix_spawn_file_actions_t arg0,
int __fd);
+
+/* Add an action to close all file descriptor greater than or equal to FROM
+ during spawn. This affects the subsequent file actions. */
+public static native int posix_spawn_file_actions_addclosefrom_np(posix_spawn_file_actions_t arg0,
+ int __from);
+
+/* Add an action to set the process group of the forground process group
+ associated with the terminal TCFD. */
+public static native int posix_spawn_file_actions_addtcsetpgrp_np(posix_spawn_file_actions_t arg0,
+ int __tcfd);
+
// #endif
// #endif /* spawn.h */
@@ -7778,7 +7810,7 @@ public static native int posix_spawn_file_actions_addfchdir_np(posix_spawn_file_
// Parsed from bits/posix_opt.h
/* Define POSIX options for Linux.
- Copyright (C) 1996-2020 Free Software Foundation, Inc.
+ Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -7976,7 +8008,7 @@ License, or (at your option) any later version.
// Parsed from bits/confname.h
/* `sysconf', `pathconf', and `confstr' NAME values. Generic version.
- Copyright (C) 1993-2020 Free Software Foundation, Inc.
+ Copyright (C) 1993-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -8502,9 +8534,15 @@ License, or (at your option) any later version.
_SC_THREAD_ROBUST_PRIO_INHERIT = _SC_LEVEL1_ICACHE_SIZE + 50 + 12,
// #define _SC_THREAD_ROBUST_PRIO_INHERIT _SC_THREAD_ROBUST_PRIO_INHERIT
- _SC_THREAD_ROBUST_PRIO_PROTECT = _SC_LEVEL1_ICACHE_SIZE + 50 + 13;
+ _SC_THREAD_ROBUST_PRIO_PROTECT = _SC_LEVEL1_ICACHE_SIZE + 50 + 13,
// #define _SC_THREAD_ROBUST_PRIO_PROTECT _SC_THREAD_ROBUST_PRIO_PROTECT
+ _SC_MINSIGSTKSZ = _SC_LEVEL1_ICACHE_SIZE + 50 + 14,
+// #define _SC_MINSIGSTKSZ _SC_MINSIGSTKSZ
+
+ _SC_SIGSTKSZ = _SC_LEVEL1_ICACHE_SIZE + 50 + 15;
+// #define _SC_SIGSTKSZ _SC_SIGSTKSZ
+
/* Values for the NAME argument to `confstr'. */
/** enum */
public static final int
@@ -8655,7 +8693,7 @@ License, or (at your option) any later version.
// Parsed from unistd.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -8930,6 +8968,22 @@ License, or (at your option) any later version.
/* An alias for `euidaccess', used by some other systems. */
public static native int eaccess(@Cast("const char*") BytePointer __name, int __type);
public static native int eaccess(String __name, int __type);
+
+/* Execute program relative to a directory file descriptor. */
+public static native int execveat(int __fd, @Cast("const char*") BytePointer __path, @Cast("char*const*") PointerPointer __argv,
+ @Cast("char*const*") PointerPointer __envp, int __flags);
+public static native int execveat(int __fd, @Cast("const char*") BytePointer __path, @Cast("char*const*") @ByPtrPtr BytePointer __argv,
+ @Cast("char*const*") @ByPtrPtr BytePointer __envp, int __flags);
+public static native int execveat(int __fd, String __path, @Cast("char*const*") @ByPtrPtr ByteBuffer __argv,
+ @Cast("char*const*") @ByPtrPtr ByteBuffer __envp, int __flags);
+public static native int execveat(int __fd, @Cast("const char*") BytePointer __path, @Cast("char*const*") @ByPtrPtr byte[] __argv,
+ @Cast("char*const*") @ByPtrPtr byte[] __envp, int __flags);
+public static native int execveat(int __fd, String __path, @Cast("char*const*") @ByPtrPtr BytePointer __argv,
+ @Cast("char*const*") @ByPtrPtr BytePointer __envp, int __flags);
+public static native int execveat(int __fd, @Cast("const char*") BytePointer __path, @Cast("char*const*") @ByPtrPtr ByteBuffer __argv,
+ @Cast("char*const*") @ByPtrPtr ByteBuffer __envp, int __flags);
+public static native int execveat(int __fd, String __path, @Cast("char*const*") @ByPtrPtr byte[] __argv,
+ @Cast("char*const*") @ByPtrPtr byte[] __envp, int __flags);
// #endif
// #ifdef __USE_ATFILE
@@ -8973,6 +9027,12 @@ or the end of the file (if WHENCE is SEEK_END).
__THROW. */
public static native @Name("close") int _close(int __fd);
+// #ifdef __USE_MISC
+/* Close all open file descriptors greater than or equal to LOWFD.
+ Negative LOWFD is clamped to 0. */
+public static native void closefrom(int __lowfd);
+// #endif
+
/* Read NBYTES into BUF from FD. Return the
number read, -1 for errors or 0 for EOF.
@@ -9004,6 +9064,7 @@ or the end of the file (if WHENCE is SEEK_END).
__THROW. */
public static native @Cast("ssize_t") long pwrite(int __fd, @Const Pointer __buf, @Cast("size_t") long __n,
@Cast("__off_t") long __offset);
+
// # else
// # endif
@@ -9344,7 +9405,6 @@ public static native int execvpe(String __file, @Cast("char*const*") @ByPtrPtr b
public static native int getgroups(int __size, @Cast("__gid_t*") IntPointer __list);
public static native int getgroups(int __size, @Cast("__gid_t*") IntBuffer __list);
public static native int getgroups(int __size, @Cast("__gid_t*") int[] __list);
-
// #ifdef __USE_GNU
/* Return nonzero iff the calling process is in group GID. */
public static native int group_member(@Cast("__gid_t") int __gid);
@@ -9421,6 +9481,13 @@ public static native int execvpe(String __file, @Cast("char*const*") @ByPtrPtr b
public static native @Cast("__pid_t") int vfork();
// #endif /* Use misc or XPG < 7. */
+// #ifdef __USE_GNU
+/* This is similar to fork, however it does not run the atfork handlers
+ neither reinitialize any internal locks in multithread case.
+ Different than fork, _Fork is async-signal-safe. */
+public static native @Cast("__pid_t") int _Fork();
+// #endif
+
/* Return the pathname of the terminal FD is open on, or NULL on errors.
The returned storage is good only until the next call to this function. */
@@ -9475,6 +9542,7 @@ public static native int linkat(int __fromfd, String __from, int __tofd,
@Cast("char*") ByteBuffer __buf, @Cast("size_t") long __len);
public static native @Cast("ssize_t") long readlink(String __path,
@Cast("char*") byte[] __buf, @Cast("size_t") long __len);
+
// #endif /* Use POSIX.1-2001. */
// #ifdef __USE_ATFILE
@@ -9582,7 +9650,6 @@ arguments in ARGV (ARGC of them, minus the program name) for
public static native int setdomainname(@Cast("const char*") BytePointer __name, @Cast("size_t") long __len);
public static native int setdomainname(String __name, @Cast("size_t") long __len);
-
/* Revoke access permissions to all processes currently communicating
with the control terminal, and then send a SIGHUP signal to the process
group of the control terminal. */
@@ -9839,6 +9906,16 @@ public static native int pthread_atfork(__prepare __prepare,
public static native int getentropy(Pointer __buffer, @Cast("size_t") long __length);
// #endif
+// #ifdef __USE_GNU
+/* Close all file descriptors in the range FD up to MAX_FD. The flag FLAGS
+ are define by the CLOSE_RANGE prefix. This function behaves like close
+ on the range and gaps where the file descriptor is invalid or errors
+ encountered while closing file descriptors are ignored. Returns 0 on
+ successor or -1 for failure (and sets errno accordingly). */
+public static native int close_range(@Cast("unsigned int") int __fd, @Cast("unsigned int") int __max_fd,
+ int __flags);
+// #endif
+
/* Define some macros helping to catch buffer overflows. */
// #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
// # include
@@ -9853,7 +9930,7 @@ public static native int pthread_atfork(__prepare __prepare,
// Parsed from sys/poll.h
/* Compatibility definitions for System V `poll' interface.
- Copyright (C) 1994-2020 Free Software Foundation, Inc.
+ Copyright (C) 1994-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -9909,6 +9986,9 @@ public static native int pthread_atfork(__prepare __prepare,
public static native int ppoll(pollfd __fds, @Cast("nfds_t") long __nfds,
@Const timespec __timeout,
@Const sigset_t __ss);
+
+// # ifdef __USE_TIME_BITS64
+// # endif
// #endif
/* Define some inlines helping to catch common problems. */
@@ -9921,7 +10001,7 @@ public static native int ppoll(pollfd __fds, @Cast("nfds_t") long __nfds,
// Parsed from sys/reboot.h
-/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -9976,7 +10056,7 @@ public static native int ppoll(pollfd __fds, @Cast("nfds_t") long __nfds,
// Parsed from bits/resource.h
/* Bit values & structures for resource limits. Linux version.
- Copyright (C) 1994-2020 Free Software Foundation, Inc.
+ Copyright (C) 1994-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10083,7 +10163,7 @@ public static native int ppoll(pollfd __fds, @Cast("nfds_t") long __nfds,
__RLIMIT_RTPRIO = 14;
public static final int RLIMIT_RTPRIO = __RLIMIT_RTPRIO;
- /* Maximum CPU time in µs that a process scheduled under a real-time
+ /* Maximum CPU time in microseconds that a process scheduled under a real-time
scheduling policy may consume without making a blocking system
call before being forcibly descheduled. */
public static final int
@@ -10182,7 +10262,7 @@ public static native int prlimit64(@Cast("__pid_t") int __pid, @Cast("__rlimit_r
// Parsed from sys/resource.h
-/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10248,6 +10328,9 @@ public static native int setrlimit64(@Cast("__rlimit_resource_t") int __resource
and put it in *USAGE. Returns 0 for success, -1 for failure. */
public static native int getrusage(@Cast("__rusage_who_t") int __who, rusage __usage);
+// #ifdef __USE_TIME_BITS64
+// #endif
+
/* Return the highest priority of any process specified by WHICH and WHO
(see above); if WHO is zero, the current process, process group, or user
(as specified by WHO) is used. A lower priority number means higher
@@ -10264,7 +10347,7 @@ priority. Priorities range from PRIO_MIN to PRIO_MAX (above). */
// Parsed from bits/waitflags.h
/* Definitions of flag bits for `waitpid' et al.
- Copyright (C) 1992-2020 Free Software Foundation, Inc.
+ Copyright (C) 1992-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10303,29 +10386,10 @@ priority. Priorities range from PRIO_MIN to PRIO_MAX (above). */
public static final int __WALL = 0x40000000; /* Wait for any child. */
public static final int __WCLONE = 0x80000000; /* Wait for cloned process. */
-/* The following values are used by the `waitid' function. */
-// #if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-// # ifndef __ENUM_IDTYPE_T
-public static final int __ENUM_IDTYPE_T = 1;
-
-/* The Linux kernel defines these bare, rather than an enum,
- which causes a conflict if the include order is reversed. */
-// # undef P_ALL
-// # undef P_PID
-// # undef P_PGID
-
-/** enum idtype_t */
-public static final int
- P_ALL = 0, /* Wait for any child. */
- P_PID = 1, /* Wait for specified process. */
- P_PGID = 2; /* Wait for members of process group. */
-// # endif
-// #endif
-
// Parsed from sys/wait.h
-/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10391,6 +10455,16 @@ priority. Priorities range from PRIO_MIN to PRIO_MAX (above). */
// # define W_STOPCODE(sig) __W_STOPCODE (sig)
// #endif
+/* The following values are used by the `waitid' function. */
+// #if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
+/** enum idtype_t */
+public static final int
+ P_ALL = 0, /* Wait for any child. */
+ P_PID = 1, /* Wait for specified process. */
+ P_PGID = 2; /* Wait for members of process group. */
+// #endif
+
+
/* Wait for a child to die. When one does, put its status in *STAT_LOC
and return its process ID. For errors, return (pid_t) -1.
@@ -10454,15 +10528,19 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
nil, store information about the child's resource usage there. If the
WUNTRACED bit is set in OPTIONS, return status for stopped children;
otherwise don't. */
+// # ifndef __USE_TIME_BITS64
public static native @Cast("__pid_t") int wait3(IntPointer __stat_loc, int __options,
rusage __usage);
public static native @Cast("__pid_t") int wait3(IntBuffer __stat_loc, int __options,
rusage __usage);
public static native @Cast("__pid_t") int wait3(int[] __stat_loc, int __options,
rusage __usage);
+// # else
+// # endif
// #endif
// #ifdef __USE_MISC
+// # ifndef __USE_TIME_BITS64
/* PID is like waitpid. Other args are like wait3. */
public static native @Cast("__pid_t") int wait4(@Cast("__pid_t") int __pid, IntPointer __stat_loc, int __options,
rusage __usage);
@@ -10470,16 +10548,61 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
rusage __usage);
public static native @Cast("__pid_t") int wait4(@Cast("__pid_t") int __pid, int[] __stat_loc, int __options,
rusage __usage);
+// # else
+// # endif
// #endif /* Use misc. */
// #endif /* sys/wait.h */
+// Parsed from bits/struct_stat.h
+
+/* Definition for struct stat.
+ Copyright (C) 2020-2022 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library. If not, see
+ . */
+
+// #if !defined _SYS_STAT_H && !defined _FCNTL_H
+// # error "Never include directly; use instead."
+// #endif
+
+// #ifndef _BITS_STRUCT_STAT_H
+public static final int _BITS_STRUCT_STAT_H = 1;
+// Targeting ../linux/stat.java
+
+
+// Targeting ../linux/stat64.java
+
+
+// #endif
+
+/* Tell code we have these members. */
+// #define _STATBUF_ST_BLKSIZE
+// #define _STATBUF_ST_RDEV
+/* Nanosecond resolution time values are supported. */
+// #define _STATBUF_ST_NSEC
+
+// #endif /* _BITS_STRUCT_STAT_H */
+
+
// Parsed from bits/ipc-perm.h
/* struct ipc_perm definition.
- Copyright (C) 2019-2020 Free Software Foundation, Inc.
+ Copyright (C) 2019-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10505,7 +10628,7 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
// Parsed from bits/ipc.h
-/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10549,7 +10672,7 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
// Parsed from sys/ipc.h
-/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10600,7 +10723,7 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
// Parsed from bits/shm.h
-/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10624,7 +10747,6 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
// #include
// #include
// #include
-// #include
/* Permission flag for shmget. */
public static final int SHM_R = 0400; /* or S_IRUGO from */
@@ -10642,18 +10764,8 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
/* Type to count number of attaches. */
-// #if __SHM_PAD_BEFORE_TIME
-// # define __SHM_PAD_TIME(NAME, RES)
-// unsigned long int __glibc_reserved ## RES; __time_t NAME
-// #elif __SHM_PAD_AFTER_TIME
-// # define __SHM_PAD_TIME(NAME, RES)
-// __time_t NAME; unsigned long int __glibc_reserved ## RES
-// #else
-// # define __SHM_PAD_TIME(NAME, RES)
-// __time_t NAME
-// Targeting ../linux/shmid_ds.java
-
-
+// #include
+// #include
// #ifdef __USE_MISC
@@ -10678,9 +10790,36 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
+// Parsed from bits/types/struct_shmid_ds.h
+
+/* Generic implementation of the shared memory struct shmid_ds.
+ Copyright (C) 2020-2022 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+// #ifndef _SYS_SHM_H
+// # error "Never include directly; use instead."
+// Targeting ../linux/shmid_ds.java
+
+
+
+
// Parsed from sys/shm.h
-/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -10725,7 +10864,10 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
facility. The definition is found in XPG4.2. */
/* Shared memory control operation. */
+// #ifndef __USE_TIME_BITS64
public static native int shmctl(int __shmid, int __cmd, shmid_ds __buf);
+// #else
+// #endif
/* Get shared memory segment. */
public static native int shmget(@Cast("key_t") int __key, @Cast("size_t") long __size, int __shmflg);
@@ -10769,7 +10911,7 @@ public static native int waitid(@Cast("idtype_t") int __idtype, @Cast("__id_t")
// Parsed from sys/sysinfo.h
-/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/Dl_info.java b/systems/src/gen/java/org/bytedeco/systems/linux/Dl_info.java
index 758d67e2b20..da8949898c2 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/Dl_info.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/Dl_info.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/Dl_serinfo.java b/systems/src/gen/java/org/bytedeco/systems/linux/Dl_serinfo.java
index 26ab52b8b1d..73af6e3fee5 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/Dl_serinfo.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/Dl_serinfo.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/Dl_serpath.java b/systems/src/gen/java/org/bytedeco/systems/linux/Dl_serpath.java
index 2286508cbcc..0b3bf67064d 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/Dl_serpath.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/Dl_serpath.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__child.java b/systems/src/gen/java/org/bytedeco/systems/linux/__child.java
index 6e2895bf042..7e0ff0d0a11 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__child.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__child.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__compar_d_fn_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/__compar_d_fn_t.java
index bf9f71c8b5e..8857d103371 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__compar_d_fn_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__compar_d_fn_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__compar_fn_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/__compar_fn_t.java
index 97fbaef027f..c450f469f45 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__compar_fn_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__compar_fn_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__fn_Pointer.java b/systems/src/gen/java/org/bytedeco/systems/linux/__fn_Pointer.java
index 94ff8ea2fae..ca07e9360a1 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__fn_Pointer.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__fn_Pointer.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__func.java b/systems/src/gen/java/org/bytedeco/systems/linux/__func.java
index 21adf2d25af..64759323145 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__func.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__func.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__func_int_Pointer.java b/systems/src/gen/java/org/bytedeco/systems/linux/__func_int_Pointer.java
index 32744b2db4c..ede88381b9e 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__func_int_Pointer.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__func_int_Pointer.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__parent.java b/systems/src/gen/java/org/bytedeco/systems/linux/__parent.java
index 3b94c8dd037..3d9ec383cc0 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__parent.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__parent.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__prepare.java b/systems/src/gen/java/org/bytedeco/systems/linux/__prepare.java
index 9cc2299d0d6..fbb913edbb3 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__prepare.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__prepare.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/__sighandler_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/__sighandler_t.java
index 5b1b0cb502e..eb30deeb19d 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/__sighandler_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/__sighandler_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/cmsghdr.java b/systems/src/gen/java/org/bytedeco/systems/linux/cmsghdr.java
index 92e6202894f..fe0dd5fa15d 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/cmsghdr.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/cmsghdr.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/cpu_set_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/cpu_set_t.java
index 119561e7a3d..1e8c7cff2af 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/cpu_set_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/cpu_set_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/div_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/div_t.java
index 5e41d9b6dbe..55094dd2dce 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/div_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/div_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/dl_find_object.java b/systems/src/gen/java/org/bytedeco/systems/linux/dl_find_object.java
new file mode 100644
index 00000000000..2e675ade94b
--- /dev/null
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/dl_find_object.java
@@ -0,0 +1,43 @@
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
+
+package org.bytedeco.systems.linux;
+
+import java.nio.*;
+import org.bytedeco.javacpp.*;
+import org.bytedeco.javacpp.annotation.*;
+
+import static org.bytedeco.javacpp.presets.javacpp.*;
+
+import static org.bytedeco.systems.global.linux.*;
+
+
+@Properties(inherit = org.bytedeco.systems.presets.linux.class)
+public class dl_find_object extends Pointer {
+ static { Loader.load(); }
+ /** Default native constructor. */
+ public dl_find_object() { super((Pointer)null); allocate(); }
+ /** Native array allocator. Access with {@link Pointer#position(long)}. */
+ public dl_find_object(long size) { super((Pointer)null); allocateArray(size); }
+ /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
+ public dl_find_object(Pointer p) { super(p); }
+ private native void allocate();
+ private native void allocateArray(long size);
+ @Override public dl_find_object position(long position) {
+ return (dl_find_object)super.position(position);
+ }
+ @Override public dl_find_object getPointer(long i) {
+ return new dl_find_object((Pointer)this).offsetAddress(i);
+ }
+
+ public native @Cast("unsigned long long int") long dlfo_flags(); public native dl_find_object dlfo_flags(long setter);
+ public native Pointer dlfo_map_start(); public native dl_find_object dlfo_map_start(Pointer setter); /* Beginning of mapping containing address. */
+ public native Pointer dlfo_map_end(); public native dl_find_object dlfo_map_end(Pointer setter); /* End of mapping. */
+ public native @Cast("link_map*") Pointer dlfo_link_map(); public native dl_find_object dlfo_link_map(Pointer setter);
+ public native Pointer dlfo_eh_frame(); public native dl_find_object dlfo_eh_frame(Pointer setter); /* Exception handling data of the object. */
+// # if DLFO_STRUCT_HAS_EH_DBASE
+// # endif
+// # if DLFO_STRUCT_HAS_EH_COUNT
+// # endif
+ public native @Cast("unsigned long long int") long __dflo_reserved(int i); public native dl_find_object __dflo_reserved(int i, long setter);
+ @MemberGetter public native @Cast("unsigned long long int*") LongPointer __dflo_reserved();
+}
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/drand48_data.java b/systems/src/gen/java/org/bytedeco/systems/linux/drand48_data.java
index 712ac8f6136..161c0f89620 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/drand48_data.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/drand48_data.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/group.java b/systems/src/gen/java/org/bytedeco/systems/linux/group.java
index 0a3ea062c37..53eaa7eca9b 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/group.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/group.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/iovec.java b/systems/src/gen/java/org/bytedeco/systems/linux/iovec.java
index a222b0cfaae..c1b2ea69e6c 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/iovec.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/iovec.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/ipc_perm.java b/systems/src/gen/java/org/bytedeco/systems/linux/ipc_perm.java
index 55a9d7c55c6..9eb510838ab 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/ipc_perm.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/ipc_perm.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/itimerspec.java b/systems/src/gen/java/org/bytedeco/systems/linux/itimerspec.java
index 13a563fcf32..897cada1ebb 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/itimerspec.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/itimerspec.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/itimerval.java b/systems/src/gen/java/org/bytedeco/systems/linux/itimerval.java
index 19e154738af..8f243e991b7 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/itimerval.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/itimerval.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/lconv.java b/systems/src/gen/java/org/bytedeco/systems/linux/lconv.java
index 2d65809bb4e..4bb2ff34bb5 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/lconv.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/lconv.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/ldiv_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/ldiv_t.java
index fe16ba3333c..4c30c102652 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/ldiv_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/ldiv_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/linger.java b/systems/src/gen/java/org/bytedeco/systems/linux/linger.java
index 281f684b486..5e9170fcb0b 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/linger.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/linger.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/lldiv_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/lldiv_t.java
index 2de514847fd..39ea4e10e6c 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/lldiv_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/lldiv_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/locale_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/locale_t.java
index e51be7a4071..05f69be1286 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/locale_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/locale_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/mcontext_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/mcontext_t.java
index 3e5708e9647..71c433391db 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/mcontext_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/mcontext_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/mmsghdr.java b/systems/src/gen/java/org/bytedeco/systems/linux/mmsghdr.java
index 30ec2e08b5a..293ee7967c4 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/mmsghdr.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/mmsghdr.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/msghdr.java b/systems/src/gen/java/org/bytedeco/systems/linux/msghdr.java
index 77cc795e4e6..d9654e89af6 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/msghdr.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/msghdr.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/nl_catd.java b/systems/src/gen/java/org/bytedeco/systems/linux/nl_catd.java
index 7c8ee2cd340..21bb8e9e98d 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/nl_catd.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/nl_catd.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/osockaddr.java b/systems/src/gen/java/org/bytedeco/systems/linux/osockaddr.java
deleted file mode 100644
index ec049c3923d..00000000000
--- a/systems/src/gen/java/org/bytedeco/systems/linux/osockaddr.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
-
-package org.bytedeco.systems.linux;
-
-import java.nio.*;
-import org.bytedeco.javacpp.*;
-import org.bytedeco.javacpp.annotation.*;
-
-import static org.bytedeco.javacpp.presets.javacpp.*;
-
-import static org.bytedeco.systems.global.linux.*;
-
-
-// #ifdef __USE_BSD
-/* This is the 4.3 BSD `struct sockaddr' format, which is used as wire
- format in the grotty old 4.3 `talk' protocol. */
-@Properties(inherit = org.bytedeco.systems.presets.linux.class)
-public class osockaddr extends Pointer {
- static { Loader.load(); }
- /** Default native constructor. */
- public osockaddr() { super((Pointer)null); allocate(); }
- /** Native array allocator. Access with {@link Pointer#position(long)}. */
- public osockaddr(long size) { super((Pointer)null); allocateArray(size); }
- /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
- public osockaddr(Pointer p) { super(p); }
- private native void allocate();
- private native void allocateArray(long size);
- @Override public osockaddr position(long position) {
- return (osockaddr)super.position(position);
- }
- @Override public osockaddr getPointer(long i) {
- return new osockaddr((Pointer)this).offsetAddress(i);
- }
-
- public native @Cast("unsigned short int") short sa_family(); public native osockaddr sa_family(short setter);
- public native @Cast("unsigned char") byte sa_data(int i); public native osockaddr sa_data(int i, byte setter);
- @MemberGetter public native @Cast("unsigned char*") BytePointer sa_data();
- }
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/passwd.java b/systems/src/gen/java/org/bytedeco/systems/linux/passwd.java
index 50ed1b62e3f..0192e2dbcdb 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/passwd.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/passwd.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/pollfd.java b/systems/src/gen/java/org/bytedeco/systems/linux/pollfd.java
index ecb0c0e32eb..da39b49025a 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/pollfd.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/pollfd.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/posix_spawn_file_actions_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/posix_spawn_file_actions_t.java
index a9631cebc5b..7a6f7f46479 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/posix_spawn_file_actions_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/posix_spawn_file_actions_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/posix_spawnattr_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/posix_spawnattr_t.java
index f68b8537846..3497865f646 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/posix_spawnattr_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/posix_spawnattr_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/pthread_attr_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/pthread_attr_t.java
deleted file mode 100644
index 584da01a54a..00000000000
--- a/systems/src/gen/java/org/bytedeco/systems/linux/pthread_attr_t.java
+++ /dev/null
@@ -1,24 +0,0 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
-
-package org.bytedeco.systems.linux;
-
-import java.nio.*;
-import org.bytedeco.javacpp.*;
-import org.bytedeco.javacpp.annotation.*;
-
-import static org.bytedeco.javacpp.presets.javacpp.*;
-
-import static org.bytedeco.systems.global.linux.*;
-
-// # else
-// # endif
-
-/* Forward declaration. */
-// # ifndef __have_pthread_attr_t
-@Opaque @Properties(inherit = org.bytedeco.systems.presets.linux.class)
-public class pthread_attr_t extends Pointer {
- /** Empty constructor. Calls {@code super((Pointer)null)}. */
- public pthread_attr_t() { super((Pointer)null); }
- /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
- public pthread_attr_t(Pointer p) { super(p); }
-}
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/random_data.java b/systems/src/gen/java/org/bytedeco/systems/linux/random_data.java
index 5695e2a38df..4a1aef7fae3 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/random_data.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/random_data.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/rlimit.java b/systems/src/gen/java/org/bytedeco/systems/linux/rlimit.java
index 48079aa94b7..e75fb0be911 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/rlimit.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/rlimit.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/rlimit64.java b/systems/src/gen/java/org/bytedeco/systems/linux/rlimit64.java
index dd93cee4771..57d74417534 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/rlimit64.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/rlimit64.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/rusage.java b/systems/src/gen/java/org/bytedeco/systems/linux/rusage.java
index 5a35746d04d..0776d7e8e3a 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/rusage.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/rusage.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sched_param.java b/systems/src/gen/java/org/bytedeco/systems/linux/sched_param.java
index 9169198e853..2f03e7f03ee 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sched_param.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/sched_param.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/shm_info.java b/systems/src/gen/java/org/bytedeco/systems/linux/shm_info.java
index cf580d99783..3dbe71fc531 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/shm_info.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/shm_info.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/shmid_ds.java b/systems/src/gen/java/org/bytedeco/systems/linux/shmid_ds.java
index 5b7f18ed697..a3f5f183fc2 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/shmid_ds.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/shmid_ds.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
@@ -31,16 +31,19 @@ public class shmid_ds extends Pointer {
return new shmid_ds((Pointer)this).offsetAddress(i);
}
+// #ifdef __USE_TIME_BITS64
+// #else
public native @ByRef ipc_perm shm_perm(); public native shmid_ds shm_perm(ipc_perm setter); /* operation permission struct */
-// #if !__SHM_SEGSZ_AFTER_TIME
public native @Cast("size_t") long shm_segsz(); public native shmid_ds shm_segsz(long setter); /* size of segment in bytes */
-// #endif public native @Cast("__time_t") long shm_atime(); public native shmid_ds shm_atime(long setter); /* time of last shmat() */ public native @Cast("__time_t") long shm_dtime(); public native shmid_ds shm_dtime(long setter); /* time of last shmdt() */ public native @Cast("__time_t") long shm_ctime(); public native shmid_ds shm_ctime(long setter); /* time of last change by shmctl() */
-// #if __SHM_PAD_BETWEEN_TIME_AND_SEGSZ
-// #endif
-// #if __SHM_SEGSZ_AFTER_TIME /* size of segment in bytes */
-// #endif
+// # if __TIMESIZE == 32
+// # else
+ public native @Cast("__time_t") long shm_atime(); public native shmid_ds shm_atime(long setter); /* time of last shmat() */
+ public native @Cast("__time_t") long shm_dtime(); public native shmid_ds shm_dtime(long setter); /* time of last shmdt() */
+ public native @Cast("__time_t") long shm_ctime(); public native shmid_ds shm_ctime(long setter); /* time of last change by shmctl() */
+// # endif
public native @Cast("__pid_t") int shm_cpid(); public native shmid_ds shm_cpid(int setter); /* pid of creator */
public native @Cast("__pid_t") int shm_lpid(); public native shmid_ds shm_lpid(int setter); /* pid of last shmop */
public native @Cast("shmatt_t") long shm_nattch(); public native shmid_ds shm_nattch(long setter); /* number of current attaches */
public native @Cast("__syscall_ulong_t") long __glibc_reserved6(); public native shmid_ds __glibc_reserved6(long setter);
+// #endif
}
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/shminfo.java b/systems/src/gen/java/org/bytedeco/systems/linux/shminfo.java
index 2b72ca23409..927a116147f 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/shminfo.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/shminfo.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sigaction.java b/systems/src/gen/java/org/bytedeco/systems/linux/sigaction.java
index 5ea7e2e19b3..e601b54bd5f 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sigaction.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/sigaction.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sigevent_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/sigevent_t.java
index 30fbea61fe2..aaaa9fbbeab 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sigevent_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/sigevent_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/siginfo_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/siginfo_t.java
index 784fdaedee6..9f13c52857b 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/siginfo_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/siginfo_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sigset_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/sigset_t.java
index 93ae8f4b7f4..03aff171193 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sigset_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/sigset_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sigstack.java b/systems/src/gen/java/org/bytedeco/systems/linux/sigstack.java
deleted file mode 100644
index a52701de10a..00000000000
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sigstack.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
-
-package org.bytedeco.systems.linux;
-
-import java.nio.*;
-import org.bytedeco.javacpp.*;
-import org.bytedeco.javacpp.annotation.*;
-
-import static org.bytedeco.javacpp.presets.javacpp.*;
-
-import static org.bytedeco.systems.global.linux.*;
-
-// #endif
-
-
-/* Structure describing a signal stack (obsolete). */
-@Name("struct sigstack") @Properties(inherit = org.bytedeco.systems.presets.linux.class)
-public class sigstack extends Pointer {
- static { Loader.load(); }
- /** Default native constructor. */
- public sigstack() { super((Pointer)null); allocate(); }
- /** Native array allocator. Access with {@link Pointer#position(long)}. */
- public sigstack(long size) { super((Pointer)null); allocateArray(size); }
- /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
- public sigstack(Pointer p) { super(p); }
- private native void allocate();
- private native void allocateArray(long size);
- @Override public sigstack position(long position) {
- return (sigstack)super.position(position);
- }
- @Override public sigstack getPointer(long i) {
- return new sigstack((Pointer)this).offsetAddress(i);
- }
-
- public native Pointer ss_sp(); public native sigstack ss_sp(Pointer setter); /* Signal stack pointer. */
- public native int ss_onstack(); public native sigstack ss_onstack(int setter); /* Nonzero if executing on this stack. */
- }
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sigval.java b/systems/src/gen/java/org/bytedeco/systems/linux/sigval.java
index fbe01b99c2b..08efbefc6c0 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sigval.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/sigval.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sockaddr.java b/systems/src/gen/java/org/bytedeco/systems/linux/sockaddr.java
index 400e0f1808d..a3dc8c7e790 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sockaddr.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/sockaddr.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sockaddr_storage.java b/systems/src/gen/java/org/bytedeco/systems/linux/sockaddr_storage.java
index f19defdf09b..9bfe0489c70 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sockaddr_storage.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/sockaddr_storage.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/stack_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/stack_t.java
index d099c3a5ec3..1bed0a81ac6 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/stack_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/stack_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/stat.java b/systems/src/gen/java/org/bytedeco/systems/linux/stat.java
index 701b76713f8..d8beae79b8c 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/stat.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/stat.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
@@ -29,36 +29,38 @@ public class stat extends Pointer {
return new stat((Pointer)this).offsetAddress(i);
}
+// #ifdef __USE_TIME_BITS64
+// #else
public native @Cast("__dev_t") long st_dev(); public native stat st_dev(long setter); /* Device. */
-// #ifndef __x86_64__
-// #endif
-// #if defined __x86_64__ || !defined __USE_FILE_OFFSET64
+// # ifndef __x86_64__
+// # endif
+// # if defined __x86_64__ || !defined __USE_FILE_OFFSET64
public native @Cast("__ino_t") long st_ino(); public native stat st_ino(long setter); /* File serial number. */
-// #else
-// #endif
-// #ifndef __x86_64__
-// #else
+// # else
+// # endif
+// # ifndef __x86_64__
+// # else
public native @Cast("__nlink_t") long st_nlink(); public native stat st_nlink(long setter); /* Link count. */
public native @Cast("__mode_t") int st_mode(); public native stat st_mode(int setter); /* File mode. */
-// #endif
+// # endif
public native @Cast("__uid_t") int st_uid(); public native stat st_uid(int setter); /* User ID of the file's owner. */
public native @Cast("__gid_t") int st_gid(); public native stat st_gid(int setter); /* Group ID of the file's group.*/
-// #ifdef __x86_64__
+// # ifdef __x86_64__
public native int __pad0(); public native stat __pad0(int setter);
-// #endif
+// # endif
public native @Cast("__dev_t") long st_rdev(); public native stat st_rdev(long setter); /* Device number, if device. */
-// #ifndef __x86_64__
-// #endif
-// #if defined __x86_64__ || !defined __USE_FILE_OFFSET64
+// # ifndef __x86_64__
+// # endif
+// # if defined __x86_64__ || !defined __USE_FILE_OFFSET64
public native @Cast("__off_t") long st_size(); public native stat st_size(long setter); /* Size of file, in bytes. */
-// #else
-// #endif
+// # else
+// # endif
public native @Cast("__blksize_t") long st_blksize(); public native stat st_blksize(long setter); /* Optimal block size for I/O. */
-// #if defined __x86_64__ || !defined __USE_FILE_OFFSET64
+// # if defined __x86_64__ || !defined __USE_FILE_OFFSET64
public native @Cast("__blkcnt_t") long st_blocks(); public native stat st_blocks(long setter); /* Number 512-byte blocks allocated. */
-// #else /* Number 512-byte blocks allocated. */
-// #endif
-// #ifdef __USE_XOPEN2K8
+// # else /* Number 512-byte blocks allocated. */
+// # endif
+// # ifdef __USE_XOPEN2K8
/* Nanosecond resolution timestamps are stored in a format
equivalent to 'struct timespec'. This is the type used
whenever possible but the Unix namespace rules do not allow the
@@ -68,11 +70,15 @@ public class stat extends Pointer {
public native @ByRef timespec st_atim(); public native stat st_atim(timespec setter); /* Time of last access. */
public native @ByRef timespec st_mtim(); public native stat st_mtim(timespec setter); /* Time of last modification. */
public native @ByRef timespec st_ctim(); public native stat st_ctim(timespec setter); /* Time of last status change. */
-// #else
-// #endif
-// #ifdef __x86_64__
+// # define st_atime st_atim.tv_sec /* Backward compatibility. */
+// # define st_mtime st_mtim.tv_sec
+// # define st_ctime st_ctim.tv_sec
+// # else
+// # endif
+// # ifdef __x86_64__
public native @Cast("__syscall_slong_t") long __glibc_reserved(int i); public native stat __glibc_reserved(int i, long setter);
@MemberGetter public native @Cast("__syscall_slong_t*") SizeTPointer __glibc_reserved();
-// #else
-// #endif
+// # else
+// # endif
+// #endif /* __USE_TIME_BITS64 */
}
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/stat64.java b/systems/src/gen/java/org/bytedeco/systems/linux/stat64.java
index dc808209ceb..28614a9ee03 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/stat64.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/stat64.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
@@ -31,24 +31,26 @@ public class stat64 extends Pointer {
return new stat64((Pointer)this).offsetAddress(i);
}
+// # ifdef __USE_TIME_BITS64
+// # else
public native @Cast("__dev_t") long st_dev(); public native stat64 st_dev(long setter); /* Device. */
-// # ifdef __x86_64__
+// # ifdef __x86_64__
public native @Cast("__ino64_t") long st_ino(); public native stat64 st_ino(long setter); /* File serial number. */
public native @Cast("__nlink_t") long st_nlink(); public native stat64 st_nlink(long setter); /* Link count. */
public native @Cast("__mode_t") int st_mode(); public native stat64 st_mode(int setter); /* File mode. */
-// # else
-// # endif
+// # else
+// # endif
public native @Cast("__uid_t") int st_uid(); public native stat64 st_uid(int setter); /* User ID of the file's owner. */
public native @Cast("__gid_t") int st_gid(); public native stat64 st_gid(int setter); /* Group ID of the file's group.*/
-// # ifdef __x86_64__
+// # ifdef __x86_64__
public native int __pad0(); public native stat64 __pad0(int setter);
public native @Cast("__dev_t") long st_rdev(); public native stat64 st_rdev(long setter); /* Device number, if device. */
public native @Cast("__off_t") long st_size(); public native stat64 st_size(long setter); /* Size of file, in bytes. */
-// # else
-// # endif
+// # else
+// # endif
public native @Cast("__blksize_t") long st_blksize(); public native stat64 st_blksize(long setter); /* Optimal block size for I/O. */
public native @Cast("__blkcnt64_t") long st_blocks(); public native stat64 st_blocks(long setter); /* Nr. 512-byte blocks allocated. */
-// # ifdef __USE_XOPEN2K8
+// # ifdef __USE_XOPEN2K8
/* Nanosecond resolution timestamps are stored in a format
equivalent to 'struct timespec'. This is the type used
whenever possible but the Unix namespace rules do not allow the
@@ -58,11 +60,12 @@ public class stat64 extends Pointer {
public native @ByRef timespec st_atim(); public native stat64 st_atim(timespec setter); /* Time of last access. */
public native @ByRef timespec st_mtim(); public native stat64 st_mtim(timespec setter); /* Time of last modification. */
public native @ByRef timespec st_ctim(); public native stat64 st_ctim(timespec setter); /* Time of last status change. */
-// # else
-// # endif
-// # ifdef __x86_64__
+// # else
+// # endif
+// # ifdef __x86_64__
public native @Cast("__syscall_slong_t") long __glibc_reserved(int i); public native stat64 __glibc_reserved(int i, long setter);
@MemberGetter public native @Cast("__syscall_slong_t*") SizeTPointer __glibc_reserved();
-// # else
-// # endif
+// # else
+// # endif
+// # endif /* __USE_TIME_BITS64 */
}
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/sysinfo.java b/systems/src/gen/java/org/bytedeco/systems/linux/sysinfo.java
index 513eb13095a..8f4cf327450 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/sysinfo.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/sysinfo.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/timespec.java b/systems/src/gen/java/org/bytedeco/systems/linux/timespec.java
index 8257eff1e3f..200ca18e4c8 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/timespec.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/timespec.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
@@ -31,10 +31,13 @@ public class timespec extends Pointer {
return new timespec((Pointer)this).offsetAddress(i);
}
+// #ifdef __USE_TIME_BITS64
+// #else
public native @Cast("__time_t") long tv_sec(); public native timespec tv_sec(long setter); /* Seconds. */
+// #endif
// #if __WORDSIZE == 64
// || (defined __SYSCALL_WORDSIZE && __SYSCALL_WORDSIZE == 64)
-// || __TIMESIZE == 32
+// || (__TIMESIZE == 32 && !defined __USE_TIME_BITS64)
public native @Cast("__syscall_slong_t") long tv_nsec(); public native timespec tv_nsec(long setter); /* Nanoseconds. */
// #else
// # if __BYTE_ORDER == __BIG_ENDIAN
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/timeval.java b/systems/src/gen/java/org/bytedeco/systems/linux/timeval.java
index f55604e655a..779201dc846 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/timeval.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/timeval.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
@@ -31,6 +31,9 @@ public class timeval extends Pointer {
return new timeval((Pointer)this).offsetAddress(i);
}
+// #ifdef __USE_TIME_BITS64
+// #else
public native @Cast("__time_t") long tv_sec(); public native timeval tv_sec(long setter); /* Seconds. */
public native @Cast("__suseconds_t") long tv_usec(); public native timeval tv_usec(long setter); /* Microseconds. */
+// #endif
}
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/timezone.java b/systems/src/gen/java/org/bytedeco/systems/linux/timezone.java
index 99fb3654f64..73d6880e059 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/timezone.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/timezone.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/tm.java b/systems/src/gen/java/org/bytedeco/systems/linux/tm.java
index b8b22399e6d..7b03051a724 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/tm.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/tm.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/ucontext_t.java b/systems/src/gen/java/org/bytedeco/systems/linux/ucontext_t.java
index e29db7a5e96..890699e1ab1 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/ucontext_t.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/ucontext_t.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/ucred.java b/systems/src/gen/java/org/bytedeco/systems/linux/ucred.java
index a89c3d29a46..bb8d84f75f6 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/ucred.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/ucred.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
diff --git a/systems/src/gen/java/org/bytedeco/systems/linux/utimbuf.java b/systems/src/gen/java/org/bytedeco/systems/linux/utimbuf.java
index 53897b93ea3..9a09c5a8aeb 100644
--- a/systems/src/gen/java/org/bytedeco/systems/linux/utimbuf.java
+++ b/systems/src/gen/java/org/bytedeco/systems/linux/utimbuf.java
@@ -1,4 +1,4 @@
-// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE
+// Targeted by JavaCPP version 1.5.12-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.systems.linux;
@@ -31,6 +31,9 @@ public class utimbuf extends Pointer {
return new utimbuf((Pointer)this).offsetAddress(i);
}
+// #ifdef __USE_TIME_BITS64
+// #else
public native @Cast("__time_t") long actime(); public native utimbuf actime(long setter); /* Access time. */
public native @Cast("__time_t") long modtime(); public native utimbuf modtime(long setter); /* Modification time. */
+// #endif
}
diff --git a/systems/src/main/java/org/bytedeco/systems/presets/linux.java b/systems/src/main/java/org/bytedeco/systems/presets/linux.java
index 598ee6951e1..e9822e5bd7c 100644
--- a/systems/src/main/java/org/bytedeco/systems/presets/linux.java
+++ b/systems/src/main/java/org/bytedeco/systems/presets/linux.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2017-2022 Samuel Audet, Eduardo Gonzalez
+ * Copyright (C) 2017-2024 Samuel Audet, Eduardo Gonzalez
*
* Licensed either under the Apache License, Version 2.0, or (at your option)
* under the terms of the GNU General Public License as published by
@@ -128,8 +128,9 @@ public void map(InfoMap infoMap) {
"defined __USE_XOPEN2K && !defined __USE_GNU",
"defined __GNUC__ && __GNUC__ >= 2 && defined __USE_EXTERN_INLINES",
"defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8",
+ "DLFO_STRUCT_HAS_EH_DBASE", "DLFO_STRUCT_HAS_EH_COUNT", "_LINUX_KERNEL_H",
"__GNUC_PREREQ (3, 0)", "__SI_CLOCK_T", "__TIMESIZE == 32",
- "__USE_EXTERN_INLINES", "__USE_FILE_OFFSET64", "_LINUX_KERNEL_H",
+ "__USE_EXTERN_INLINES", "__USE_FILE_OFFSET64", "__USE_TIME_BITS64",
"__HAVE_FLOAT16", "__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)",
"__HAVE_FLOAT32", "__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)",
"__HAVE_FLOAT64", "__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)",
@@ -168,7 +169,7 @@ public void map(InfoMap infoMap) {
.put(new Info("off64_t", "rlim64_t", "__off64_t", "__rlim64_t", "__blkcnt64_t", "greg_t", "__ino64_t", "__u64", "__uint64_t")
.cast().valueTypes("long").pointerTypes("LongPointer", "LongBuffer", "long[]"))
- .put(new Info("__locale_data", "module", "sigcontext", "__spawn_action", "timex", "pt_regs",
+ .put(new Info("link_map", "__locale_data", "module", "sigcontext", "__spawn_action", "timex", "pt_regs",
"_fpreg", "_fpstate", "_fpxreg", "_libc_fpstate", "_libc_fpxreg", "_libc_xmmreg", "_xmmreg").cast().pointerTypes("Pointer"))
.put(new Info("__timezone_ptr_t").cast().pointerTypes("timezone"))
.put(new Info("gregset_t", "fpregset_t").cppTypes("void* const"))
diff --git a/systems/src/main/java/org/bytedeco/systems/presets/macosx.java b/systems/src/main/java/org/bytedeco/systems/presets/macosx.java
index c3a24db123c..e78cc94412b 100644
--- a/systems/src/main/java/org/bytedeco/systems/presets/macosx.java
+++ b/systems/src/main/java/org/bytedeco/systems/presets/macosx.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2017-2022 Samuel Audet, Eduardo Gonzalez
+ * Copyright (C) 2017-2024 Samuel Audet, Eduardo Gonzalez
*
* Licensed either under the Apache License, Version 2.0, or (at your option)
* under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@
*
* @author Samuel Audet
*/
-@Properties(inherit = javacpp.class, value = {@Platform(value = "macosx-x86", define = "__STDC_WANT_LIB_EXT1__ 1",
+@Properties(inherit = javacpp.class, value = {@Platform(value = "macosx", define = "__STDC_WANT_LIB_EXT1__ 1",
include = {"cpuid.h", "dlfcn.h", "nl_types.h", "_xlocale.h", "xlocale.h", "_locale.h", "langinfo.h", "locale.h",
"sys/uio.h", "sys/_types/_iovec_t.h", "sys/socket.h", "sys/errno.h", "string.h", "stdlib.h", /*"sys/types.h",*/
"sys/_types/_timespec.h", "sys/_types/_timeval.h", "sys/time.h", "time.h", "utime.h",
@@ -46,9 +46,7 @@
"sched.h", "mach/machine.h", "spawn.h", "sys/_types/_seek_set.h", "sys/unistd.h", "unistd.h",
"sys/poll.h", "sys/reboot.h", "sys/resource.h", "sys/sysctl.h", "sys/wait.h",
"sys/_types/_uid_t.h", "sys/_types/_gid_t.h", "sys/_types/_mode_t.h", "sys/_types/_key_t.h", "sys/ipc.h",
- "sys/_types/_pid_t.h", "sys/_types/_time_t.h", "sys/_types/_size_t.h", "sys/shm.h"},
- includepath = {"/usr/include/", "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/",
- "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/"})},
+ "sys/_types/_pid_t.h", "sys/_types/_time_t.h", "sys/_types/_size_t.h", "sys/shm.h"})},
target = "org.bytedeco.systems.macosx", global = "org.bytedeco.systems.global.macosx")
@NoException
public class macosx implements BuildEnabled, InfoMapper {