1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef NSTACKX_COMMON_HEADER_H
17 #define NSTACKX_COMMON_HEADER_H
18 
19 #include "sys_common_header.h"
20 
21 #include <sys/types.h>
22 #include <sys/stat.h>
23 #include <fcntl.h>
24 
25 // C standard library header files
26 #include <errno.h>
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <stdint.h>
30 #include <stdbool.h>
31 #include <stdarg.h>
32 #include <string.h>
33 #include <time.h>
34 
35 #define PIPE_OUT 0
36 #define PIPE_IN 1
37 #define PIPE_FD_NUM 2
38 
39 #define BYTE_BITS_NUM 8
40 #define TYPE_BITS_NUM(_type) (sizeof(_type) * BYTE_BITS_NUM)
41 
42 #endif // NSTACKX_COMMON_HEADER_H
43