• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_IO_H
32 #define _IT_TEST_IO_H
33 
34 #include "osTest.h"
35 #include "stdio.h"
36 #include "stdlib.h"
37 #include "unistd.h"
38 #include "string.h"
39 #include "termios.h"
40 #include "sys/types.h"
41 #include "sys/stat.h"
42 #include "fcntl.h"
43 #include "locale.h"
44 #include "wctype.h"
45 #include "wchar.h"
46 #include "stdarg.h"
47 #include "semaphore.h"
48 #include "ftw.h"
49 #include "aio.h"
50 #include "shadow.h"
51 #include "pty.h"
52 #include "dirent.h"
53 #include "poll.h"
54 #include "grp.h"
55 #include "pwd.h"
56 #include "sys/uio.h"
57 #include "syslog.h"
58 #include "sys/epoll.h"
59 
60 extern int CloseRmAllFile(int fd[], char filePathName[][50], int cnt);
61 extern char *g_ioTestPath;
62 
63 extern VOID ItTestIo001(VOID);
64 extern VOID ItTestIo002(VOID);
65 extern VOID ItTestIo003(VOID);
66 extern VOID ItTestIo004(VOID);
67 extern VOID ItTestIo005(VOID);
68 extern VOID ItTestIo006(VOID);
69 extern VOID ItTestIo007(VOID);
70 extern VOID ItTestIo008(VOID);
71 extern VOID ItTestIo009(VOID);
72 extern VOID ItTestIo010(VOID);
73 extern VOID ItTestIo011(VOID);
74 extern VOID ItTestIo012(VOID);
75 extern VOID ItTestIo013(VOID);
76 
77 extern VOID ItLocaleFreelocale001(void);
78 extern VOID ItLocaleLocaleconv001(void);
79 extern VOID ItStdioFputws001(void);
80 extern VOID ItStdioFwprintf001(void);
81 extern VOID ItStdioFtruncate001(void);
82 extern VOID ItStdioFtw001(void);
83 extern VOID ItStdlibOpenpty001(void);
84 extern VOID ItStdlibPtsname001(void);
85 extern VOID ItStdioGetcUnlocked001(void);
86 extern VOID ItStdioGetcharUnlocked001(void);
87 extern VOID ItStdioGetw001(void);
88 extern VOID ItStdioGetwchar001(void);
89 extern VOID ItStdioLioListio001(void); // linux erro
90 extern VOID ItStdioMblen001(void);
91 extern VOID ItStdioMbrlen001(void);
92 extern VOID ItStdioMbstowcs001(void);
93 extern VOID ItStdioMbsnrtowcs001(void);
94 extern VOID ItStdioPutcUnlocked001(void);
95 extern VOID ItStdioPutcharUnlocked001(void);
96 extern VOID ItStdioPutgrent001(void);
97 extern VOID ItStdioPutpwent001(void);
98 extern VOID ItStdioPutspent001(void);
99 extern VOID ItStdioPutwc001(void);
100 extern VOID ItStdioPutwchar001(void);
101 extern VOID ItStdioReadv001(void);
102 extern VOID ItStdioRindex001(void);
103 extern VOID ItStdioSelect002(void);
104 extern VOID ItStdioSetgrent001(void);
105 extern VOID ItStdioSetlogmask001(void);
106 extern VOID ItStdioSetmntent001(void);
107 extern VOID ItStdlibGcvt001(void);
108 extern VOID ItStdlibOpenpty001(void);
109 extern VOID ItStdlibPoll001(void);
110 extern VOID ItStdlibPoll002(void);
111 extern VOID ItStdlibPoll003(void);
112 extern VOID ItStdlibPtsname001(void);
113 extern VOID IT_STDIO_HASMNTOPT_001(void);
114 extern VOID IO_TEST_NGETTEXT_001(void);
115 extern VOID IO_TEST_EPOLL_001(void);
116 extern VOID IO_TEST_LOCALE_001(void);
117 extern VOID IO_TEST_LOCALE_002(void);
118 extern VOID IO_TEST_CONFSTR_001(void);
119 extern VOID IO_TEST_NL_LANGINFO_001(VOID);
120 extern VOID IO_TEST_STRCASECMP_L_001(VOID);
121 extern VOID IO_TEST_STRCASECMP_L_002(VOID);
122 extern VOID IO_TEST_STRNCASECMP_L_001(VOID);
123 extern VOID IO_TEST_STRNCASECMP_L_002(VOID);
124 extern VOID IO_TEST_DUPLOCALE_001(void);
125 extern VOID IO_TEST_NL_LANGINFO_l_001(VOID);
126 extern VOID IO_TEST_DNGETTEXT_001(VOID);
127 extern VOID IO_TEST_DNGETTEXT_002(VOID);
128 extern VOID IO_TEST_DCNGETTEXT_001(VOID);
129 extern VOID IO_TEST_DCNGETTEXT_002(VOID);
130 extern VOID IO_TEST_DCGETTEXT_001(VOID);
131 extern VOID IO_TEST_DCGETTEXT_002(VOID);
132 extern VOID IO_TEST_GETTEXT_001(VOID);
133 extern VOID IO_TEST_PSELECT_001(void);
134 extern VOID IO_TEST_PSELECT_002(void);
135 extern VOID IO_TEST_STRFMON_L_001(VOID);
136 extern VOID IO_TEST_STRFMON_L_002(VOID);
137 extern VOID IO_TEST_PPOLL_001(VOID);
138 extern VOID IO_TEST_PPOLL_002(VOID);
139 extern VOID IO_TEST_PPOLL_003(VOID);
140 extern VOID IO_TEST_EPOLL_001(VOID);
141 extern VOID IO_TEST_EPOLL_002(VOID);
142 
143 #endif
144