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
/*
 * 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/>.
 */

S
os  
Shengliang Guan 已提交
16 17
#ifndef _TD_OS_H_
#define _TD_OS_H_
S
Shengliang Guan 已提交
18 19 20 21 22

#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
locale  
Shengliang Guan 已提交
62
#include "osLocale.h"
S
Shengliang Guan 已提交
63
#include "osLz4.h"
64
#include "osMath.h"
H
refact  
Hongze Cheng 已提交
65
#include "osMemory.h"
S
Shengliang Guan 已提交
66
#include "osRand.h"
67
#include "osSemaphore.h"
S
Shengliang Guan 已提交
68 69
#include "osSignal.h"
#include "osSleep.h"
70 71
#include "osSocket.h"
#include "osString.h"
S
Shengliang Guan 已提交
72 73
#include "osSysinfo.h"
#include "osSystem.h"
S
Shengliang Guan 已提交
74
#include "osThread.h"
S
Shengliang Guan 已提交
75 76
#include "osTime.h"
#include "osTimer.h"
S
Shengliang Guan 已提交
77
#include "osTimezone.h"
S
Shengliang Guan 已提交
78

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

#ifdef __cplusplus
}
#endif

S
os  
Shengliang Guan 已提交
85
#endif /*_TD_OS_H_*/