Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require C11 #12660

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Require C11 #12660

wants to merge 6 commits into from

Commits on Sep 10, 2024

  1. Require C11

    Error out if the compiler does not support C11.
    
    Also removes support for `__thread` since we now rely on C11 `_Thread_local`.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal authored and wenduwan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    9289662 View commit details
    Browse the repository at this point in the history
  2. Replace typeof() with size_t in loop header

    All uses of the `PREPARE_REQUESTS_WITH_NO_FREE` macro map to size_t.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal authored and wenduwan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    7166f62 View commit details
    Browse the repository at this point in the history
  3. Add feature test macro _POSIX_C_SOURCE to enable fileno()

    Flex prior to 2.6.6 uses fileno() but does not define the needed
    feature test macros.
    See westes/flex#263 for details.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal authored and wenduwan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    3c271b7 View commit details
    Browse the repository at this point in the history
  4. Add feature test macro to enable pthread_mutexattr_settype()

    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal authored and wenduwan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    412cb74 View commit details
    Browse the repository at this point in the history
  5. Enable nanosleep with _POSIX_C_SOURCE

    Move calls to nanosleep out of headers and add the feature test macro
    _POSIX_C_SOURCE to enable its use. This should not cause
    any significant overheads.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal authored and wenduwan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    83c2101 View commit details
    Browse the repository at this point in the history
  6. Reduce_local test: Add feature test macros

    Needed for strsep(), posix_memalign(), and getopt().
    
    Also fix the min/max macros. There is no need to cache the variables
    as these macros are used without producing side-effects.
    
    Signed-off-by: Joseph Schuchart <[email protected]>
    devreal authored and wenduwan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    13e8ddb View commit details
    Browse the repository at this point in the history