Changeset d3a518c


Ignore:
Timestamp:
Aug 6, 2020, 3:34:41 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
6c144d8
Parents:
97c3159
Message:

Added auto header templates to fix warning on arm

Location:
libcfa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/configure.ac

    r97c3159 rd3a518c  
    131131#io_uring 5.5 uses enum values
    132132#io_uring 5.6 and later uses probes
     133
     134AH_TEMPLATE([CFA_HAVE_LINUX_IO_URING_H],[Defined if io_uring support is present when compiling libcfathread.])
     135AH_TEMPLATE([CFA_HAVE_IORING_OP_NOP],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_NOP.])
     136AH_TEMPLATE([CFA_HAVE_IORING_OP_READV],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_READV.])
     137AH_TEMPLATE([CFA_HAVE_IORING_OP_WRITEV],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_WRITEV.])
     138AH_TEMPLATE([CFA_HAVE_IORING_OP_FSYNC],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_FSYNC.])
     139AH_TEMPLATE([CFA_HAVE_IORING_OP_READ_FIXED],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_READ_FIXED.])
     140AH_TEMPLATE([CFA_HAVE_IORING_OP_WRITE_FIXED],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_WRITE_FIXED.])
     141AH_TEMPLATE([CFA_HAVE_IORING_OP_POLL_ADD],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_POLL_ADD.])
     142AH_TEMPLATE([CFA_HAVE_IORING_OP_POLL_REMOVE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_POLL_REMOVE.])
     143AH_TEMPLATE([CFA_HAVE_IORING_OP_SYNC_FILE_RANGE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_SYNC_FILE_RANGE.])
     144AH_TEMPLATE([CFA_HAVE_IORING_OP_SENDMSG],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_SENDMSG.])
     145AH_TEMPLATE([CFA_HAVE_IORING_OP_RECVMSG],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_RECVMSG.])
     146AH_TEMPLATE([CFA_HAVE_IORING_OP_TIMEOUT],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_TIMEOUT.])
     147AH_TEMPLATE([CFA_HAVE_IORING_OP_TIMEOUT_REMOVE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_TIMEOUT_REMOVE.])
     148AH_TEMPLATE([CFA_HAVE_IORING_OP_ACCEPT],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_ACCEPT.])
     149AH_TEMPLATE([CFA_HAVE_IORING_OP_ASYNC_CANCEL],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_ASYNC_CANCEL.])
     150AH_TEMPLATE([CFA_HAVE_IORING_OP_LINK_TIMEOUT],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_LINK_TIMEOUT.])
     151AH_TEMPLATE([CFA_HAVE_IORING_OP_CONNECT],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_CONNECT.])
     152AH_TEMPLATE([CFA_HAVE_IORING_OP_FALLOCATE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_FALLOCATE.])
     153AH_TEMPLATE([CFA_HAVE_IORING_OP_OPENAT],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_OPENAT.])
     154AH_TEMPLATE([CFA_HAVE_IORING_OP_CLOSE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_CLOSE.])
     155AH_TEMPLATE([CFA_HAVE_IORING_OP_FILES_UPDATE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_FILES_UPDATE.])
     156AH_TEMPLATE([CFA_HAVE_IORING_OP_STATX],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_STATX.])
     157AH_TEMPLATE([CFA_HAVE_IORING_OP_READ],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_READ.])
     158AH_TEMPLATE([CFA_HAVE_IORING_OP_WRITE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_WRITE.])
     159AH_TEMPLATE([CFA_HAVE_IORING_OP_FADVISE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_FADVISE.])
     160AH_TEMPLATE([CFA_HAVE_IORING_OP_MADVISE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_MADVISE.])
     161AH_TEMPLATE([CFA_HAVE_IORING_OP_SEND],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_SEND.])
     162AH_TEMPLATE([CFA_HAVE_IORING_OP_RECV],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_RECV.])
     163AH_TEMPLATE([CFA_HAVE_IORING_OP_OPENAT2],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_OPENAT2.])
     164AH_TEMPLATE([CFA_HAVE_IORING_OP_EPOLL_CTL],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_EPOLL_CTL.])
     165AH_TEMPLATE([CFA_HAVE_IORING_OP_SPLICE],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_SPLICE.])
     166AH_TEMPLATE([CFA_HAVE_IORING_OP_PROVIDE_BUFFERS],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_PROVIDE_BUFFERS.])
     167AH_TEMPLATE([CFA_HAVE_IORING_OP_REMOVE_BUFFER],[Defined if io_uring support is present when compiling libcfathread and supports the operation IORING_OP_REMOVE_BUFFER.])
     168AH_TEMPLATE([CFA_HAVE_IOSQE_FIXED_FILE],[Defined if io_uring support is present when compiling libcfathread and supports the flag FIXED_FILE.])
     169AH_TEMPLATE([CFA_HAVE_IOSQE_IO_DRAIN],[Defined if io_uring support is present when compiling libcfathread and supports the flag IO_DRAIN.])
     170AH_TEMPLATE([CFA_HAVE_IOSQE_ASYNC],[Defined if io_uring support is present when compiling libcfathread and supports the flag ASYNC.])
     171AH_TEMPLATE([CFA_HAVE_IOSQE_IO_LINK],[Defined if io_uring support is present when compiling libcfathread and supports the flag IO_LINK.])
     172AH_TEMPLATE([CFA_HAVE_IOSQE_IO_HARDLINK],[Defined if io_uring support is present when compiling libcfathread and supports the flag IO_HARDLINK.])
     173AH_TEMPLATE([CFA_HAVE_SPLICE_F_FD_IN_FIXED],[Defined if io_uring support is present when compiling libcfathread and supports the flag SPLICE_F_FD_IN_FIXED.])
     174AH_TEMPLATE([HAVE_PREADV2],[Defined if preadv2 support is present when compiling libcfathread.])
     175AH_TEMPLATE([HAVE_PWRITEV2],[Defined if pwritev2 support is present when compiling libcfathread.])
     176AH_TEMPLATE([__CFA_NO_STATISTICS__],[Defined if libcfathread was compiled without support for statistics.])
     177
    133178define(ioring_ops, [IORING_OP_NOP,IORING_OP_READV,IORING_OP_WRITEV,IORING_OP_FSYNC,IORING_OP_READ_FIXED,IORING_OP_WRITE_FIXED,IORING_OP_POLL_ADD,IORING_OP_POLL_REMOVE,IORING_OP_SYNC_FILE_RANGE,IORING_OP_SENDMSG,IORING_OP_RECVMSG,IORING_OP_TIMEOUT,IORING_OP_TIMEOUT_REMOVE,IORING_OP_ACCEPT,IORING_OP_ASYNC_CANCEL,IORING_OP_LINK_TIMEOUT,IORING_OP_CONNECT,IORING_OP_FALLOCATE,IORING_OP_OPENAT,IORING_OP_CLOSE,IORING_OP_FILES_UPDATE,IORING_OP_STATX,IORING_OP_READ,IORING_OP_WRITE,IORING_OP_FADVISE,IORING_OP_MADVISE,IORING_OP_SEND,IORING_OP_RECV,IORING_OP_OPENAT2,IORING_OP_EPOLL_CTL,IORING_OP_SPLICE,IORING_OP_PROVIDE_BUFFERS,IORING_OP_REMOVE_BUFFER])
    134179define(ioring_flags, [IOSQE_FIXED_FILE,IOSQE_IO_DRAIN,IOSQE_ASYNC,IOSQE_IO_LINK,IOSQE_IO_HARDLINK,SPLICE_F_FD_IN_FIXED])
  • libcfa/prelude/defines.hfa.in

    r97c3159 rd3a518c  
    1414//
    1515
     16//-----------------------------------------------------------------------
     17// Global Support
     18/* Defined if io_uring support is present when compiling libcfathread. */
    1619#undef CFA_HAVE_LINUX_IO_URING_H
    1720
     21//-----------------------------------------------------------------------
     22// Operations
     23/* Defined if io_uring support is present when compiling libcfathread and
     24   supports the operation IORING_OP_NOP. */
    1825#undef CFA_HAVE_IORING_OP_NOP
     26
     27/* Defined if io_uring support is present when compiling libcfathread and
     28   supports the operation IORING_OP_READV. */
    1929#undef CFA_HAVE_IORING_OP_READV
     30
     31/* Defined if io_uring support is present when compiling libcfathread and
     32   supports the operation IORING_OP_WRITEV. */
    2033#undef CFA_HAVE_IORING_OP_WRITEV
     34
     35/* Defined if io_uring support is present when compiling libcfathread and
     36   supports the operation IORING_OP_FSYNC. */
    2137#undef CFA_HAVE_IORING_OP_FSYNC
     38
     39/* Defined if io_uring support is present when compiling libcfathread and
     40   supports the operation IORING_OP_READ_FIXED. */
    2241#undef CFA_HAVE_IORING_OP_READ_FIXED
     42
     43/* Defined if io_uring support is present when compiling libcfathread and
     44   supports the operation IORING_OP_WRITE_FIXED. */
    2345#undef CFA_HAVE_IORING_OP_WRITE_FIXED
     46
     47/* Defined if io_uring support is present when compiling libcfathread and
     48   supports the operation IORING_OP_POLL_ADD. */
    2449#undef CFA_HAVE_IORING_OP_POLL_ADD
     50
     51/* Defined if io_uring support is present when compiling libcfathread and
     52   supports the operation IORING_OP_POLL_REMOVE. */
    2553#undef CFA_HAVE_IORING_OP_POLL_REMOVE
     54
     55/* Defined if io_uring support is present when compiling libcfathread and
     56   supports the operation IORING_OP_SYNC_FILE_RANGE. */
    2657#undef CFA_HAVE_IORING_OP_SYNC_FILE_RANGE
     58
     59/* Defined if io_uring support is present when compiling libcfathread and
     60   supports the operation IORING_OP_SENDMSG. */
    2761#undef CFA_HAVE_IORING_OP_SENDMSG
     62
     63/* Defined if io_uring support is present when compiling libcfathread and
     64   supports the operation IORING_OP_RECVMSG. */
    2865#undef CFA_HAVE_IORING_OP_RECVMSG
     66
     67/* Defined if io_uring support is present when compiling libcfathread and
     68   supports the operation IORING_OP_TIMEOUT. */
    2969#undef CFA_HAVE_IORING_OP_TIMEOUT
     70
     71/* Defined if io_uring support is present when compiling libcfathread and
     72   supports the operation IORING_OP_TIMEOUT_REMOVE. */
    3073#undef CFA_HAVE_IORING_OP_TIMEOUT_REMOVE
     74
     75/* Defined if io_uring support is present when compiling libcfathread and
     76   supports the operation IORING_OP_ACCEPT. */
    3177#undef CFA_HAVE_IORING_OP_ACCEPT
     78
     79/* Defined if io_uring support is present when compiling libcfathread and
     80   supports the operation IORING_OP_ASYNC_CANCEL. */
    3281#undef CFA_HAVE_IORING_OP_ASYNC_CANCEL
     82
     83/* Defined if io_uring support is present when compiling libcfathread and
     84   supports the operation IORING_OP_LINK_TIMEOUT. */
    3385#undef CFA_HAVE_IORING_OP_LINK_TIMEOUT
     86
     87/* Defined if io_uring support is present when compiling libcfathread and
     88   supports the operation IORING_OP_CONNECT. */
    3489#undef CFA_HAVE_IORING_OP_CONNECT
     90
     91/* Defined if io_uring support is present when compiling libcfathread and
     92   supports the operation IORING_OP_FALLOCATE. */
    3593#undef CFA_HAVE_IORING_OP_FALLOCATE
     94
     95/* Defined if io_uring support is present when compiling libcfathread and
     96   supports the operation IORING_OP_OPENAT. */
    3697#undef CFA_HAVE_IORING_OP_OPENAT
     98
     99/* Defined if io_uring support is present when compiling libcfathread and
     100   supports the operation IORING_OP_CLOSE. */
    37101#undef CFA_HAVE_IORING_OP_CLOSE
     102
     103/* Defined if io_uring support is present when compiling libcfathread and
     104   supports the operation IORING_OP_FILES_UPDATE. */
    38105#undef CFA_HAVE_IORING_OP_FILES_UPDATE
     106
     107/* Defined if io_uring support is present when compiling libcfathread and
     108   supports the operation IORING_OP_STATX. */
    39109#undef CFA_HAVE_IORING_OP_STATX
     110
     111/* Defined if io_uring support is present when compiling libcfathread and
     112   supports the operation IORING_OP_READ. */
    40113#undef CFA_HAVE_IORING_OP_READ
     114
     115/* Defined if io_uring support is present when compiling libcfathread and
     116   supports the operation IORING_OP_WRITE. */
    41117#undef CFA_HAVE_IORING_OP_WRITE
     118
     119/* Defined if io_uring support is present when compiling libcfathread and
     120   supports the operation IORING_OP_FADVISE. */
    42121#undef CFA_HAVE_IORING_OP_FADVISE
     122
     123/* Defined if io_uring support is present when compiling libcfathread and
     124   supports the operation IORING_OP_MADVISE. */
    43125#undef CFA_HAVE_IORING_OP_MADVISE
     126
     127/* Defined if io_uring support is present when compiling libcfathread and
     128   supports the operation IORING_OP_SEND. */
    44129#undef CFA_HAVE_IORING_OP_SEND
     130
     131/* Defined if io_uring support is present when compiling libcfathread and
     132   supports the operation IORING_OP_RECV. */
    45133#undef CFA_HAVE_IORING_OP_RECV
     134
     135/* Defined if io_uring support is present when compiling libcfathread and
     136   supports the operation IORING_OP_OPENAT2. */
    46137#undef CFA_HAVE_IORING_OP_OPENAT2
     138
     139/* Defined if io_uring support is present when compiling libcfathread and
     140   supports the operation IORING_OP_EPOLL_CTL. */
    47141#undef CFA_HAVE_IORING_OP_EPOLL_CTL
     142
     143/* Defined if io_uring support is present when compiling libcfathread and
     144   supports the operation IORING_OP_SPLICE. */
    48145#undef CFA_HAVE_IORING_OP_SPLICE
     146
     147/* Defined if io_uring support is present when compiling libcfathread and
     148   supports the operation IORING_OP_PROVIDE_BUFFERS. */
    49149#undef CFA_HAVE_IORING_OP_PROVIDE_BUFFERS
     150
     151/* Defined if io_uring support is present when compiling libcfathread and
     152   supports the operation IORING_OP_REMOVE_BUFFER. */
    50153#undef CFA_HAVE_IORING_OP_REMOVE_BUFFER
    51154
     155//-----------------------------------------------------------------------
     156// Flags
     157/* Defined if io_uring support is present when compiling libcfathread and
     158   supports the flag FIXED_FILE. */
    52159#undef CFA_HAVE_IOSQE_FIXED_FILE
     160
     161/* Defined if io_uring support is present when compiling libcfathread and
     162   supports the flag IO_DRAIN. */
    53163#undef CFA_HAVE_IOSQE_IO_DRAIN
     164
     165/* Defined if io_uring support is present when compiling libcfathread and
     166   supports the flag ASYNC. */
    54167#undef CFA_HAVE_IOSQE_ASYNC
     168
     169/* Defined if io_uring support is present when compiling libcfathread and
     170   supports the flag IO_LINK. */
    55171#undef CFA_HAVE_IOSQE_IO_LINK
     172
     173/* Defined if io_uring support is present when compiling libcfathread and
     174   supports the flag IO_HARDLINK. */
    56175#undef CFA_HAVE_IOSQE_IO_HARDLINK
     176
     177/* Defined if io_uring support is present when compiling libcfathread and
     178   supports the flag SPLICE_F_FD_IN_FIXED. */
    57179#undef CFA_HAVE_SPLICE_F_FD_IN_FIXED
    58180
     181//-----------------------------------------------------------------------
     182// Other calls
     183/* Define to 1 if you have the `preadv2' function. */
    59184#undef HAVE_PREADV2
     185
     186/* Define to 1 if you have the `pwritev2' function. */
    60187#undef HAVE_PWRITEV2
    61188
     189//-----------------------------------------------------------------------
     190// Statistics
     191/* Defined if libcfathread was compiled without support for statistics. */
    62192#undef __CFA_NO_STATISTICS__
Note: See TracChangeset for help on using the changeset viewer.