os.h 1.8 KB
Newer Older
S
Shengliang Guan 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*
 * Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
 *
 * This program is free software: you can use, redistribute, and/or modify
 * it under the terms of the GNU Affero General Public License, version 3
 * or later ("AGPL"), as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef TDENGINE_OS_H
#define TDENGINE_OS_H

#ifdef __cplusplus
extern "C" {
#endif

H
refact  
Hongze Cheng 已提交
23
#include <assert.h>
S
Shengliang Guan 已提交
24
#include <ctype.h>
dengyihao's avatar
dengyihao 已提交
25
#include <dirent.h>
26
#include <errno.h>
H
fix  
Hongze Cheng 已提交
27
#include <fcntl.h>
S
Shengliang Guan 已提交
28
#include <float.h>
29
#include <inttypes.h>
H
more  
Hongze Cheng 已提交
30
#include <limits.h>
S
Shengliang Guan 已提交
31 32
#include <locale.h>
#include <math.h>
H
fix  
Hongze Cheng 已提交
33
#include <regex.h>
dengyihao's avatar
dengyihao 已提交
34
#include <sched.h>
S
Shengliang Guan 已提交
35
#include <setjmp.h>
S
Shengliang Guan 已提交
36 37
#include <signal.h>
#include <stdarg.h>
H
refact  
Hongze Cheng 已提交
38
#include <stdbool.h>
S
Shengliang Guan 已提交
39
#include <stddef.h>
H
refact  
Hongze Cheng 已提交
40
#include <stdint.h>
H
refact  
Hongze Cheng 已提交
41
#include <stdio.h>
H
refact  
Hongze Cheng 已提交
42 43
#include <stdlib.h>
#include <string.h>
44
#include <sys/stat.h>
45
#include <sys/types.h>
dengyihao's avatar
dengyihao 已提交
46
#include <sys/utsname.h>
47
#include <unistd.h>
dengyihao's avatar
dengyihao 已提交
48 49
#include <wchar.h>
#include <wctype.h>
H
Hongze Cheng 已提交
50
#include <wordexp.h>
H
refact  
Hongze Cheng 已提交
51
#include <libgen.h>
dengyihao's avatar
dengyihao 已提交
52 53

#include <sys/mman.h>
H
Haojun Liao 已提交
54
#include <sys/prctl.h>
S
Shengliang Guan 已提交
55

H
refact  
Hongze Cheng 已提交
56 57
#include "osAtomic.h"
#include "osDef.h"
58
#include "osDir.h"
H
refact  
Hongze Cheng 已提交
59
#include "osEndian.h"
S
Shengliang Guan 已提交
60
#include "osEnv.h"
61
#include "osFile.h"
S
Shengliang Guan 已提交
62
#include "osLz4.h"
63
#include "osMath.h"
H
refact  
Hongze Cheng 已提交
64
#include "osMemory.h"
S
Shengliang Guan 已提交
65
#include "osRand.h"
66
#include "osSemaphore.h"
S
Shengliang Guan 已提交
67 68
#include "osSignal.h"
#include "osSleep.h"
69 70
#include "osSocket.h"
#include "osString.h"
S
Shengliang Guan 已提交
71 72
#include "osSysinfo.h"
#include "osSystem.h"
S
Shengliang Guan 已提交
73
#include "osThread.h"
S
Shengliang Guan 已提交
74 75
#include "osTime.h"
#include "osTimer.h"
S
Shengliang Guan 已提交
76

S
Shengliang Guan 已提交
77
void osInit();
S
Shengliang Guan 已提交
78 79 80 81 82 83

#ifdef __cplusplus
}
#endif

#endif