Changeset 43784ac


Ignore:
Timestamp:
Jun 15, 2021, 5:00:28 PM (4 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
jacob/cs343-translation, master, new-ast-unique-expr
Children:
5e2ed05
Parents:
45fde9f
Message:

Changed libcfathread to consistently define _GNU_SOURCE

Files:
14 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/io_uring.h

    r45fde9f r43784ac  
    11extern "C" {
    2         #ifndef _GNU_SOURCE         /* See feature_test_macros(7) */
    3         #define _GNU_SOURCE         /* See feature_test_macros(7) */
    4         #endif
    52        #include <errno.h>
    63        #include <stdio.h>
  • libcfa/prelude/defines.hfa.in

    r45fde9f r43784ac  
    171171#undef CFA_HAVE_LINUX_IO_URING_H
    172172
     173/* Defined if librseq support is present when compiling libcfathread. */
     174#undef CFA_HAVE_LINUX_LIBRSEQ
     175
     176/* Defined if rseq support is present when compiling libcfathread. */
     177#undef CFA_HAVE_LINUX_RSEQ_H
     178
    173179/* Defined if openat2 support is present when compiling libcfathread. */
    174180#undef CFA_HAVE_OPENAT2
     
    205211#undef HAVE_LINUX_IO_URING_H
    206212
     213/* Define to 1 if you have the <linux/rseq.h> header file. */
     214#undef HAVE_LINUX_RSEQ_H
     215
    207216/* Define to 1 if you have the <memory.h> header file. */
    208217#undef HAVE_MEMORY_H
  • libcfa/src/bits/signal.hfa

    r45fde9f r43784ac  
    2020
    2121#include <errno.h>
    22 #define __USE_GNU
    2322#include <signal.h>
    24 #undef __USE_GNU
    2523#include <stdlib.h>
    2624#include <string.h>
  • libcfa/src/concurrency/coroutine.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
     17#define _GNU_SOURCE
    1718
    1819#include "coroutine.hfa"
  • libcfa/src/concurrency/io.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
     17#define _GNU_SOURCE
    1718
    1819#if defined(__CFA_DEBUG__)
     
    2324
    2425#if defined(CFA_HAVE_LINUX_IO_URING_H)
    25         #define _GNU_SOURCE         /* See feature_test_macros(7) */
    2626        #include <errno.h>
    2727        #include <signal.h>
  • libcfa/src/concurrency/io/setup.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
    17 #define _GNU_SOURCE         /* See feature_test_macros(7) */
     17#define _GNU_SOURCE
    1818
    1919#if defined(__CFA_DEBUG__)
  • libcfa/src/concurrency/kernel.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
     17#define _GNU_SOURCE
     18
    1719// #define __CFA_DEBUG_PRINT_RUNTIME_CORE__
    1820
  • libcfa/src/concurrency/kernel/startup.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
     17#define _GNU_SOURCE
    1718
    1819// C Includes
     
    336337        register_tls( proc );
    337338
     339        #if defined(CFA_HAVE_LINUX_LIBRSEQ)
     340                rseq_register_current_thread();
     341        #endif
     342
    338343        // SKULLDUGGERY: We want to create a context for the processor coroutine
    339344        // which is needed for the 2-step context switch. However, there is no reason
  • libcfa/src/concurrency/locks.cfa

    r45fde9f r43784ac  
    1616
    1717#define __cforall_thread__
     18#define _GNU_SOURCE
    1819
    1920#include "locks.hfa"
  • libcfa/src/concurrency/monitor.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
     17#define _GNU_SOURCE
    1718
    1819#include "monitor.hfa"
  • libcfa/src/concurrency/mutex.cfa

    r45fde9f r43784ac  
    1717
    1818#define __cforall_thread__
     19#define _GNU_SOURCE
    1920
    2021#include "mutex.hfa"
  • libcfa/src/concurrency/preemption.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
     17#define _GNU_SOURCE
     18
    1719// #define __CFA_DEBUG_PRINT_PREEMPTION__
    1820
  • libcfa/src/concurrency/ready_queue.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
     17#define _GNU_SOURCE
     18
    1719// #define __CFA_DEBUG_PRINT_READY_QUEUE__
    1820
     
    2426#include "kernel_private.hfa"
    2527
    26 #define _GNU_SOURCE
    2728#include "stdlib.hfa"
    2829#include "math.hfa"
  • libcfa/src/concurrency/thread.cfa

    r45fde9f r43784ac  
    1515
    1616#define __cforall_thread__
     17#define _GNU_SOURCE
    1718
    1819#include "thread.hfa"
Note: See TracChangeset for help on using the changeset viewer.