1 /* 2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without modification, 6 * are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, this list of 9 * conditions and the following disclaimer. 10 * 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 12 * of conditions and the following disclaimer in the documentation and/or other materials 13 * provided with the distribution. 14 * 15 * 3. Neither the name of the copyright holder nor the names of its contributors may be used 16 * to endorse or promote products derived from this software without specific prior written 17 * permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 21 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 #ifndef IT_TEST_SIGNAL_H 32 #define IT_TEST_SIGNAL_H 33 34 #include "osTest.h" 35 #include "sys/resource.h" 36 #include <fcntl.h> 37 38 #define RED_FLAG 6 39 40 extern void ItPosixSignal001(void); 41 extern void ItPosixSignal002(void); 42 extern void ItPosixSignal003(void); 43 extern void ItPosixSignal004(void); 44 extern void ItPosixSignal005(void); 45 extern void ItPosixSignal006(void); 46 extern void ItPosixSignal007(void); 47 extern void ItPosixSignal008(void); 48 extern void ItPosixSignal009(void); 49 extern void ItPosixSignal010(void); 50 extern void ItPosixSignal011(void); 51 extern void ItPosixSignal012(void); 52 extern void ItPosixSignal013(void); 53 extern void ItPosixSignal014(void); 54 extern void ItPosixSignal015(void); 55 extern void ItPosixSignal016(void); 56 extern void ItPosixSignal017(void); 57 extern void ItPosixSignal018(void); 58 extern void ItPosixSignal019(void); 59 extern void ItPosixSignal020(void); 60 extern void ItPosixSignal021(void); 61 extern void ItPosixSignal022(void); 62 extern void ItPosixSignal023(void); 63 extern void ItPosixSignal024(void); 64 extern void ItPosixSignal025(void); 65 66 extern void ItPosixSignal026(void); 67 extern void ItPosixSignal027(void); 68 extern void ItPosixSignal028(void); 69 extern void ItPosixSignal029(void); 70 extern void ItPosixSignal030(void); 71 extern void ItPosixSignal031(void); 72 extern void ItPosixSignal032(void); 73 extern void ItPosixSignal033(void); 74 extern void ItPosixSignal034(void); 75 extern void ItPosixSignal035(void); 76 extern void ItPosixSignal036(void); 77 extern void ItPosixSignal037(void); 78 extern void ItPosixSignal038(void); 79 extern void ItPosixSignal039(void); 80 extern void ItPosixSignal040(void); 81 extern void ItPosixSignal041(void); 82 extern void ItPosixSignal042(void); 83 84 extern void ItPosixSigset001(void); 85 extern void ItPosixSigset002(void); 86 extern void ItPosixPipe001(void); 87 extern void ItPosixPipe002(void); 88 extern void ItPosixPipe003(void); 89 extern void ItPosixPipe004(void); 90 extern void ItPosixPipe005(void); 91 extern void ItPosixPipe006(void); 92 extern void ItPosixMkfifo001(void); 93 extern void ItPosixMkfifo002(void); 94 extern void ItIpcFdClr001(void); 95 extern void ItIpcFdIsset001(void); 96 extern void ItIpcFdSet001(void); 97 extern void ItIpcFdZero001(void); 98 extern void ItIpcMkfifo002(void); 99 extern void ItIpcMkfifo003(void); 100 extern void ItIpcPipe002(void); 101 extern void ItIpcPipe003(void); 102 extern void ItIpcPipe004(void); 103 extern void ItIpcPipe005(void); 104 extern void ItIpcSigaction001(void); 105 extern void ItIpcSigpause001(void); 106 extern void ItIpcSigpromask001(void); 107 extern int kill(pid_t pid, int sig); 108 109 #endif 110