They were disabled because we were including linux/signal.h from our signal.h. Linux's signal.h is not designed to be included from user programs as it causes a lot of non-standard name pollution. Also, it is not self-contained. This change defines types and macros relevant for signal related syscalls within libc's headers and removes inclusion of Linux headers. This patch enables the funtions only for x86_64. They will be enabled for aarch64 also in a follow up patch after testing. Reviewed By: abrachet, lntue Differential Revision: https://reviews.llvm.org/D134567
22 lines
591 B
Modula-2
22 lines
591 B
Modula-2
//===-- C standard library header signal.h --------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_SIGNAL_H
|
|
#define LLVM_LIBC_SIGNAL_H
|
|
|
|
#include <__llvm-libc-common.h>
|
|
|
|
#define __need_size_t
|
|
#include <stddef.h>
|
|
|
|
#include <llvm-libc-macros/signal-macros.h>
|
|
|
|
%%public_api()
|
|
|
|
#endif // LLVM_LIBC_SIGNAL_H
|