This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 2badabfb6754fca1aec7186671f0fa7cdf5c2a5a Author: guoshichao <guoshic...@xiaomi.com> AuthorDate: Wed Dec 11 09:44:39 2024 +0800 signal: add include/sys/signal.h to the signal Signed-off-by: guoshichao <guoshic...@xiaomi.com> --- include/signal.h | 4 ++++ include/sys/signal.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/include/signal.h b/include/signal.h index 2fdd72d8a5..b63d77aa99 100644 --- a/include/signal.h +++ b/include/signal.h @@ -172,6 +172,8 @@ #define SIGSYS 31 +#define SIGIOT SIGABRT + /* sigprocmask() "how" definitions. * Only one of the following can be specified: */ @@ -435,6 +437,8 @@ typedef struct size_t ss_size; } stack_t; +typedef CODE void (*sig_t)(int); + /**************************************************************************** * Public Function Prototypes ****************************************************************************/ diff --git a/include/sys/signal.h b/include/sys/signal.h new file mode 100644 index 0000000000..dcd0a643ad --- /dev/null +++ b/include/sys/signal.h @@ -0,0 +1,44 @@ +/**************************************************************************** + * include/sys/signal.h + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +#ifndef __INCLUDE_SYS_SIGNAL_H +#define __INCLUDE_SYS_SIGNAL_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include <signal.h> + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Public Type Definitions + ****************************************************************************/ + +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +#endif /* __INCLUDE_SYS_VFS_H */