1 /* 2 * Copyright (C) 2024 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 IM_BASE_TYPE_H 17 #define IM_BASE_TYPE_H 18 19 #include <math.h> 20 #include <errno.h> 21 #include <stdio.h> 22 #include <stdarg.h> 23 #include <stdlib.h> 24 #include <string.h> 25 #include <time.h> 26 #include <sys/types.h> 27 #include <sys/stat.h> 28 #include <fcntl.h> 29 #include <unistd.h> 30 #include <dirent.h> 31 #include <sys/socket.h> 32 #include <sys/select.h> 33 #include <sys/time.h> 34 #include <sys/mman.h> 35 #include <sys/sysinfo.h> 36 #include <netinet/in.h> 37 #include <arpa/inet.h> 38 #include <netdb.h> 39 #include <pthread.h> 40 #include <semaphore.h> 41 #include <libgen.h> 42 #include <dlfcn.h> 43 #include <signal.h> 44 #include <memory> 45 #include <limits> 46 #include <locale> 47 #include <atomic> 48 #include <string> 49 #include <list> 50 #include <queue> 51 #include <deque> 52 #include <set> 53 #include <map> 54 #include <vector> 55 #include <mutex> 56 #include <unordered_map> 57 #include <iterator> 58 #include <algorithm> 59 #include <thread> 60 #include <istream> 61 #include <ostream> 62 #include <fstream> 63 64 #include "securec.h" 65 66 #ifdef __LP64__ 67 #define INT64 long int 68 #define UINT64 unsigned long int 69 #else 70 #define INT64 long long int 71 #define UINT64 unsigned long long int 72 #endif 73 #endif // IM_BASE_TYPE_H