Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
include /
[ HOME SHELL ]
Name
Size
Permission
Action
GL
[ DIR ]
drwxr-xr-x
ImageMagick-6
[ DIR ]
drwxr-xr-x
X11
[ DIR ]
drwxr-xr-x
apr-1
[ DIR ]
drwxr-xr-x
arpa
[ DIR ]
drwxr-xr-x
asm
[ DIR ]
drwxr-xr-x
asm-generic
[ DIR ]
drwxr-xr-x
bits
[ DIR ]
drwxr-xr-x
c++
[ DIR ]
drwxr-xr-x
curl
[ DIR ]
drwxr-xr-x
drm
[ DIR ]
drwxr-xr-x
editline
[ DIR ]
drwxr-xr-x
elfutils
[ DIR ]
drwxr-xr-x
enchant
[ DIR ]
drwxr-xr-x
et
[ DIR ]
drwxr-xr-x
freetype2
[ DIR ]
drwxr-xr-x
gdbm
[ DIR ]
drwxr-xr-x
ghostscript
[ DIR ]
drwxr-xr-x
gio-unix-2.0
[ DIR ]
drwxr-xr-x
glib-2.0
[ DIR ]
drwxr-xr-x
gnu
[ DIR ]
drwxr-xr-x
gssapi
[ DIR ]
drwxr-xr-x
gssrpc
[ DIR ]
drwxr-xr-x
ijs
[ DIR ]
drwxr-xr-x
imap
[ DIR ]
drwxr-xr-x
jasper
[ DIR ]
drwxr-xr-x
kadm5
[ DIR ]
drwxr-xr-x
krb5
[ DIR ]
drwxr-xr-x
layout
[ DIR ]
drwxr-xr-x
libdb
[ DIR ]
drwxr-xr-x
libdb4
[ DIR ]
drwxr-xr-x
libexslt
[ DIR ]
drwxr-xr-x
libltdl
[ DIR ]
drwxr-xr-x
libpng15
[ DIR ]
drwxr-xr-x
libpq
[ DIR ]
drwxr-xr-x
libxml2
[ DIR ]
drwxr-xr-x
libxslt
[ DIR ]
drwxr-xr-x
linux
[ DIR ]
drwxr-xr-x
lzma
[ DIR ]
drwxr-xr-x
misc
[ DIR ]
drwxr-xr-x
mtd
[ DIR ]
drwxr-xr-x
mutils
[ DIR ]
drwxr-xr-x
mysql
[ DIR ]
drwxr-xr-x
ncurses
[ DIR ]
drwxr-xr-x
ncursesw
[ DIR ]
drwxr-xr-x
net
[ DIR ]
drwxr-xr-x
net-snmp
[ DIR ]
drwxr-xr-x
netash
[ DIR ]
drwxr-xr-x
netatalk
[ DIR ]
drwxr-xr-x
netax25
[ DIR ]
drwxr-xr-x
neteconet
[ DIR ]
drwxr-xr-x
netinet
[ DIR ]
drwxr-xr-x
netipx
[ DIR ]
drwxr-xr-x
netiucv
[ DIR ]
drwxr-xr-x
netpacket
[ DIR ]
drwxr-xr-x
netrom
[ DIR ]
drwxr-xr-x
netrose
[ DIR ]
drwxr-xr-x
nfs
[ DIR ]
drwxr-xr-x
openssl
[ DIR ]
drwxr-xr-x
pgsql
[ DIR ]
drwxr-xr-x
protocols
[ DIR ]
drwxr-xr-x
pspell
[ DIR ]
drwxr-xr-x
python2.7
[ DIR ]
drwxr-xr-x
python3.6m
[ DIR ]
drwxr-xr-x
rdma
[ DIR ]
drwxr-xr-x
readline
[ DIR ]
drwxr-xr-x
rpc
[ DIR ]
drwxr-xr-x
rpcsvc
[ DIR ]
drwxr-xr-x
rpm
[ DIR ]
drwxr-xr-x
sasl
[ DIR ]
drwxr-xr-x
scsi
[ DIR ]
drwxr-xr-x
selinux
[ DIR ]
drwxr-xr-x
sensors
[ DIR ]
drwxr-xr-x
sepol
[ DIR ]
drwxr-xr-x
sodium
[ DIR ]
drwxr-xr-x
sound
[ DIR ]
drwxr-xr-x
sys
[ DIR ]
drwxr-xr-x
uapi
[ DIR ]
drwxr-xr-x
ucd-snmp
[ DIR ]
drwxr-xr-x
unicode
[ DIR ]
drwxr-xr-x
uuid
[ DIR ]
drwxr-xr-x
video
[ DIR ]
drwxr-xr-x
vpx
[ DIR ]
drwxr-xr-x
webp
[ DIR ]
drwxr-xr-x
xcb
[ DIR ]
drwxr-xr-x
xen
[ DIR ]
drwxr-xr-x
FlexLexer.h
6.07
KB
-rw-r--r--
_G_config.h
1.26
KB
-rw-r--r--
a.out.h
4.25
KB
-rw-r--r--
aio.h
7.27
KB
-rw-r--r--
aliases.h
2
KB
-rw-r--r--
alloca.h
1.19
KB
-rw-r--r--
ar.h
1.68
KB
-rw-r--r--
argon2.h
16.23
KB
-rw-r--r--
argp.h
24.75
KB
-rw-r--r--
argz.h
6.96
KB
-rw-r--r--
aspell.h
25.84
KB
-rw-r--r--
assert.h
3.52
KB
-rw-r--r--
buffio.h
3.38
KB
-rw-r--r--
byteswap.h
1.41
KB
-rw-r--r--
bzlib.h
6.1
KB
-rw-r--r--
com_err.h
2.07
KB
-rw-r--r--
complex.h
3.62
KB
-rw-r--r--
cpio.h
2.21
KB
-rw-r--r--
cpufreq.h
5.8
KB
-rw-r--r--
crypt.h
2.22
KB
-rw-r--r--
ctype.h
11.52
KB
-rw-r--r--
curses.h
93.19
KB
-rw-r--r--
cursesapp.h
6.62
KB
-rw-r--r--
cursesf.h
27.05
KB
-rw-r--r--
cursesm.h
19.09
KB
-rw-r--r--
cursesp.h
8.3
KB
-rw-r--r--
cursesw.h
48.24
KB
-rw-r--r--
cursslk.h
7.13
KB
-rw-r--r--
db.h
120.21
KB
-r--r--r--
db_185.h
5.84
KB
-r--r--r--
dbm.h
1.37
KB
-rw-r--r--
dirent.h
12.34
KB
-rw-r--r--
dlfcn.h
6.88
KB
-rw-r--r--
dwarf.h
30.07
KB
-rw-r--r--
ecpg_config.h
1.02
KB
-rw-r--r--
ecpg_config_x86_64.h
714
B
-rw-r--r--
ecpg_informix.h
2.69
KB
-rw-r--r--
ecpgerrno.h
2.48
KB
-rw-r--r--
ecpglib.h
2.54
KB
-rw-r--r--
ecpgtype.h
2.56
KB
-rw-r--r--
elf.h
141.01
KB
-rw-r--r--
endian.h
2.95
KB
-rw-r--r--
envz.h
2.82
KB
-rw-r--r--
err.h
2.18
KB
-rw-r--r--
errno.h
2.33
KB
-rw-r--r--
error.h
2.01
KB
-rw-r--r--
eti.h
2.82
KB
-rw-r--r--
etip.h
9.04
KB
-rw-r--r--
execinfo.h
1.5
KB
-rw-r--r--
expat.h
40.77
KB
-rw-r--r--
expat_external.h
3.29
KB
-rw-r--r--
fcntl.h
9.89
KB
-rw-r--r--
features.h
12.87
KB
-rw-r--r--
fenv.h
4.5
KB
-rw-r--r--
fmtmsg.h
3.18
KB
-rw-r--r--
fnmatch.h
2.27
KB
-rw-r--r--
form.h
17.56
KB
-rw-r--r--
fpu_control.h
3.5
KB
-rw-r--r--
fstab.h
3.04
KB
-rw-r--r--
fts.h
5.17
KB
-rw-r--r--
ftw.h
5.15
KB
-rw-r--r--
gconv.h
5.16
KB
-rw-r--r--
gcrypt-module.h
7.18
KB
-rw-r--r--
gcrypt.h
76.51
KB
-rw-r--r--
gdbm.h
5.75
KB
-rw-r--r--
gelf.h
11.05
KB
-rw-r--r--
getopt.h
6.53
KB
-rw-r--r--
glob.h
6.51
KB
-rw-r--r--
gmp-mparam-x86_64.h
11.25
KB
-rw-r--r--
gmp-mparam.h
2.42
KB
-rw-r--r--
gmp-x86_64.h
81.3
KB
-rw-r--r--
gmp.h
2.24
KB
-rw-r--r--
gmpxx.h
110.49
KB
-rw-r--r--
gnu-versions.h
2.29
KB
-rw-r--r--
gpg-error.h
23.66
KB
-rw-r--r--
grp.h
6.75
KB
-rw-r--r--
gshadow.h
4.43
KB
-rw-r--r--
gssapi.h
181
B
-rw-r--r--
histedit.h
8.98
KB
-rw-r--r--
iconv.h
1.83
KB
-rw-r--r--
ieee754.h
4.81
KB
-rw-r--r--
ifaddrs.h
2.77
KB
-rw-r--r--
inttypes.h
11.61
KB
-rw-r--r--
jconfig.h
1.7
KB
-rw-r--r--
jerror.h
14.4
KB
-rw-r--r--
jmorecfg.h
13.5
KB
-rw-r--r--
jpeglib.h
49.12
KB
-rw-r--r--
kdb.h
60.12
KB
-rw-r--r--
keyutils.h
7.08
KB
-rw-r--r--
krad.h
8.72
KB
-rw-r--r--
krb5.h
402
B
-rw-r--r--
langinfo.h
15.57
KB
-rw-r--r--
lastlog.h
126
B
-rw-r--r--
lber.h
14.95
KB
-rw-r--r--
lber_types.h
1.43
KB
-rw-r--r--
ldap.h
63.46
KB
-rw-r--r--
ldap_cdefs.h
9.24
KB
-rw-r--r--
ldap_features.h
1.77
KB
-rw-r--r--
ldap_schema.h
9.23
KB
-rw-r--r--
ldap_utf8.h
3.39
KB
-rw-r--r--
ldif.h
4.58
KB
-rw-r--r--
libelf.h
19.11
KB
-rw-r--r--
libgen.h
1.37
KB
-rw-r--r--
libintl.h
4.49
KB
-rw-r--r--
libio.h
16.87
KB
-rw-r--r--
libpq-events.h
2.16
KB
-rw-r--r--
libpq-fe.h
20.17
KB
-rw-r--r--
limits.h
4.42
KB
-rw-r--r--
link.h
6.99
KB
-rw-r--r--
locale.h
7.78
KB
-rw-r--r--
ltdl.h
5.58
KB
-rw-r--r--
lzma.h
9.51
KB
-rw-r--r--
malloc.h
6.44
KB
-rw-r--r--
math.h
15.7
KB
-rw-r--r--
mcheck.h
2.4
KB
-rw-r--r--
mcrypt.h
82
B
-rw-r--r--
memory.h
962
B
-rw-r--r--
menu.h
11.67
KB
-rw-r--r--
mntent.h
3.3
KB
-rw-r--r--
monetary.h
1.73
KB
-rw-r--r--
mqueue.h
3.7
KB
-rw-r--r--
nc_tparm.h
4.05
KB
-rw-r--r--
ncurses.h
93.19
KB
-rw-r--r--
ncurses_dll.h
3.83
KB
-rw-r--r--
ndbm.h
2.39
KB
-rw-r--r--
netdb.h
27.46
KB
-rw-r--r--
nl_types.h
1.73
KB
-rw-r--r--
nlist.h
1.56
KB
-rw-r--r--
nss.h
1.85
KB
-rw-r--r--
obstack.h
18.84
KB
-rw-r--r--
oniggnu.h
3.31
KB
-rw-r--r--
onigposix.h
5.77
KB
-rw-r--r--
oniguruma.h
43.69
KB
-rw-r--r--
panel.h
3.97
KB
-rw-r--r--
paths.h
2.91
KB
-rw-r--r--
pcre.h
29.73
KB
-rw-r--r--
pcre_scanner.h
6.45
KB
-rw-r--r--
pcre_stringpiece.h
6.11
KB
-rw-r--r--
pcrecpp.h
25.91
KB
-rw-r--r--
pcrecpparg.h
6.62
KB
-rw-r--r--
pcreposix.h
5.32
KB
-rw-r--r--
pg_config.h
1.01
KB
-rw-r--r--
pg_config_manual.h
9.36
KB
-rw-r--r--
pg_config_os.h
1.03
KB
-rw-r--r--
pg_config_x86_64.h
26.43
KB
-rw-r--r--
pgtypes_date.h
766
B
-rw-r--r--
pgtypes_error.h
530
B
-rw-r--r--
pgtypes_interval.h
1.12
KB
-rw-r--r--
pgtypes_numeric.h
2.17
KB
-rw-r--r--
pgtypes_timestamp.h
1010
B
-rw-r--r--
platform.h
14.01
KB
-rw-r--r--
png.h
113.36
KB
-rw-r--r--
pngconf.h
20.94
KB
-rw-r--r--
pnglibconf.h
6.3
KB
-rw-r--r--
poll.h
22
B
-rw-r--r--
popt.h
16.18
KB
-rw-r--r--
postgres_ext.h
1.74
KB
-rw-r--r--
printf.h
6.56
KB
-rw-r--r--
profile.h
11.87
KB
-rw-r--r--
pthread.h
39.95
KB
-rw-r--r--
pty.h
1.51
KB
-rw-r--r--
pwd.h
5.87
KB
-rw-r--r--
re_comp.h
957
B
-rw-r--r--
recode.h
3.96
KB
-rw-r--r--
recodext.h
25.59
KB
-rw-r--r--
regex.h
21.58
KB
-rw-r--r--
regexp.h
6.89
KB
-rw-r--r--
resolv.h
14.67
KB
-rw-r--r--
sched.h
4.55
KB
-rw-r--r--
search.h
5.11
KB
-rw-r--r--
semaphore.h
2.36
KB
-rw-r--r--
setjmp.h
3.97
KB
-rw-r--r--
sgtty.h
1.33
KB
-rw-r--r--
shadow.h
5.1
KB
-rw-r--r--
signal.h
13.3
KB
-rw-r--r--
slapi-plugin.h
37.45
KB
-rw-r--r--
sodium.h
2.47
KB
-rw-r--r--
spawn.h
6.53
KB
-rw-r--r--
sql3types.h
834
B
-rw-r--r--
sqlca.h
1.25
KB
-rw-r--r--
sqlda-compat.h
1.55
KB
-rw-r--r--
sqlda-native.h
820
B
-rw-r--r--
sqlda.h
315
B
-rw-r--r--
sqlite3.h
340.45
KB
-rw-r--r--
sqlite3ext.h
25.37
KB
-rw-r--r--
stab.h
264
B
-rw-r--r--
stdc-predef.h
1.59
KB
-rw-r--r--
stdint.h
7.94
KB
-rw-r--r--
stdio.h
30.9
KB
-rw-r--r--
stdio_ext.h
2.74
KB
-rw-r--r--
stdlib.h
33.23
KB
-rw-r--r--
string.h
21.75
KB
-rw-r--r--
strings.h
4.55
KB
-rw-r--r--
syscall.h
25
B
-rw-r--r--
sysexits.h
5.11
KB
-rw-r--r--
syslog.h
24
B
-rw-r--r--
tar.h
3.67
KB
-rw-r--r--
tcpd.h
11.48
KB
-rw-r--r--
term.h
38.63
KB
-rw-r--r--
term_entry.h
7.91
KB
-rw-r--r--
termcap.h
3.4
KB
-rw-r--r--
termio.h
214
B
-rw-r--r--
termios.h
3.52
KB
-rw-r--r--
tgmath.h
18.11
KB
-rw-r--r--
thread_db.h
15.65
KB
-rw-r--r--
tic.h
12.35
KB
-rw-r--r--
tidy.h
43.78
KB
-rw-r--r--
tidybuffio.h
3.38
KB
-rw-r--r--
tidyenum.h
28.54
KB
-rw-r--r--
tidyplatform.h
14.01
KB
-rw-r--r--
tiff.h
34.95
KB
-rw-r--r--
tiffconf-64.h
3.35
KB
-rw-r--r--
tiffconf.h
250
B
-rw-r--r--
tiffio.h
22.52
KB
-rw-r--r--
tiffio.hxx
1.66
KB
-rw-r--r--
tiffvers.h
410
B
-rw-r--r--
time.h
13.4
KB
-rw-r--r--
ttyent.h
2.44
KB
-rw-r--r--
uchar.h
2.42
KB
-rw-r--r--
ucontext.h
1.92
KB
-rw-r--r--
ulimit.h
1.55
KB
-rw-r--r--
unctrl.h
3.03
KB
-rw-r--r--
unistd.h
41.78
KB
-rw-r--r--
ustat.h
23
B
-rw-r--r--
utime.h
1.5
KB
-rw-r--r--
utmp.h
3.16
KB
-rw-r--r--
utmpx.h
4.02
KB
-rw-r--r--
values.h
1.92
KB
-rw-r--r--
verto-module.h
6.48
KB
-rw-r--r--
verto.h
18.57
KB
-rw-r--r--
wait.h
22
B
-rw-r--r--
wchar.h
31.37
KB
-rw-r--r--
wctype.h
10.89
KB
-rw-r--r--
wordexp.h
2.47
KB
-rw-r--r--
xlocale.h
1.66
KB
-rw-r--r--
zconf.h
14.92
KB
-rw-r--r--
zlib.h
84.68
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : platform.h
#ifndef __TIDY_PLATFORM_H__ #define __TIDY_PLATFORM_H__ /** @file tidyplatform.h - Platform specifics (c) 1998-2016 (W3C) MIT, ERCIM, Keio University See tidy.h for the copyright notice. This file is included by tidy.h, and need not be included sepearately. It sets a number of default defines, and a PLATFORM_NAME, and includes the most common system headers. */ #ifdef __cplusplus extern "C" { #endif /* Uncomment and edit one of the following #defines if you want to specify the config file at compile-time. */ /* #define TIDY_CONFIG_FILE "/etc/tidy_config.txt" */ /* original */ /* #define TIDY_CONFIG_FILE "/etc/tidyrc" */ /* #define TIDY_CONFIG_FILE "/etc/tidy.conf" */ /* Uncomment the following #define if you are on a system supporting the HOME environment variable. It enables tidy to find config files named ~/.tidyrc if the HTML_TIDY environment variable is not set. */ /* #define TIDY_USER_CONFIG_FILE "~/.tidyrc" */ /* Uncomment the following #define if your system supports the call getpwnam(). E.g. Unix and Linux. It enables tidy to find files named ~your/foo for use in the HTML_TIDY environment variable or CONFIG_FILE or USER_CONFIGFILE or on the command line: -config ~joebob/tidy.cfg Contributed by Todd Lewis. */ /* #define SUPPORT_GETPWNAM */ /* Enable/disable support for Big5 and Shift_JIS character encodings */ #ifndef SUPPORT_ASIAN_ENCODINGS #define SUPPORT_ASIAN_ENCODINGS 1 #endif /* Enable/disable support for UTF-16 character encodings */ #ifndef SUPPORT_UTF16_ENCODINGS #define SUPPORT_UTF16_ENCODINGS 1 #endif /* Enable/disable support for additional accessibility checks */ #ifndef SUPPORT_ACCESSIBILITY_CHECKS #define SUPPORT_ACCESSIBILITY_CHECKS 1 #endif /* Enable/disable support for additional languages */ #ifndef SUPPORT_LOCALIZATIONS #define SUPPORT_LOCALIZATIONS 1 #endif /* Convenience defines for Mac platforms */ #if defined(macintosh) /* Mac OS 6.x/7.x/8.x/9.x, with or without CarbonLib - MPW or Metrowerks 68K/PPC compilers */ #define MAC_OS_CLASSIC #ifndef PLATFORM_NAME #define PLATFORM_NAME "Mac OS" #endif /* needed for access() */ #if !defined(_POSIX) && !defined(NO_ACCESS_SUPPORT) #define NO_ACCESS_SUPPORT #endif #ifdef SUPPORT_GETPWNAM #undef SUPPORT_GETPWNAM #endif #elif defined(__APPLE__) && defined(__MACH__) /* Mac OS X (client) 10.x (or server 1.x/10.x) - gcc or Metrowerks MachO compilers */ #define MAC_OS_X #ifndef PLATFORM_NAME #define PLATFORM_NAME "Mac OS X" #endif #endif #if defined(MAC_OS_CLASSIC) || defined(MAC_OS_X) /* Any OS on Mac platform */ #define MAC_OS #define FILENAMES_CASE_SENSITIVE 0 #define strcasecmp strcmp #endif /* Convenience defines for BSD like platforms */ #if defined(__FreeBSD__) #define BSD_BASED_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "FreeBSD" #endif #elif defined(__NetBSD__) #define BSD_BASED_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "NetBSD" #endif #elif defined(__OpenBSD__) #define BSD_BASED_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "OpenBSD" #endif #elif defined(__DragonFly__) #define BSD_BASED_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "DragonFly" #endif #elif defined(__MINT__) #define BSD_BASED_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "FreeMiNT" #endif #elif defined(__bsdi__) #define BSD_BASED_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "BSD/OS" #endif #endif /* Convenience defines for Windows platforms */ #if defined(WINDOWS) || defined(_WIN32) #define WINDOWS_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "Windows" #endif #if defined(__MWERKS__) || defined(__MSL__) /* not available with Metrowerks Standard Library */ #ifdef SUPPORT_GETPWNAM #undef SUPPORT_GETPWNAM #endif /* needed for setmode() */ #if !defined(NO_SETMODE_SUPPORT) #define NO_SETMODE_SUPPORT #endif #define strcasecmp _stricmp #endif #if defined(__BORLANDC__) #define strcasecmp stricmp #endif #define FILENAMES_CASE_SENSITIVE 0 #define SUPPORT_POSIX_MAPPED_FILES 0 #endif /* Convenience defines for Linux platforms */ #if defined(linux) && defined(__alpha__) /* Linux on Alpha - gcc compiler */ #define LINUX_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "Linux/Alpha" #endif #elif defined(linux) && defined(__sparc__) /* Linux on Sparc - gcc compiler */ #define LINUX_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "Linux/Sparc" #endif #elif defined(linux) && (defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)) /* Linux on x86 - gcc compiler */ #define LINUX_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "Linux/x86" #endif #elif defined(linux) && defined(__powerpc__) /* Linux on PPC - gcc compiler */ #define LINUX_OS #if defined(__linux__) && defined(__powerpc__) /* #if #system(linux) */ /* MkLinux on PPC - gcc (egcs) compiler */ /* #define MAC_OS_MKLINUX */ #ifndef PLATFORM_NAME #define PLATFORM_NAME "MkLinux" #endif #else #ifndef PLATFORM_NAME #define PLATFORM_NAME "Linux/PPC" #endif #endif #elif defined(linux) || defined(__linux__) /* generic Linux */ #define LINUX_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "Linux" #endif #endif /* Convenience defines for Solaris platforms */ #if defined(sun) #define SOLARIS_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "Solaris" #endif #endif /* Convenience defines for HPUX + gcc platforms */ #if defined(__hpux) #define HPUX_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "HPUX" #endif #endif /* Convenience defines for RISCOS + gcc platforms */ #if defined(__riscos__) #define RISC_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "RISC OS" #endif #endif /* Convenience defines for OS/2 + icc/gcc platforms */ #if defined(__OS2__) || defined(__EMX__) #define OS2_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "OS/2" #endif #define FILENAMES_CASE_SENSITIVE 0 #define strcasecmp stricmp #endif /* Convenience defines for IRIX */ #if defined(__sgi) #define IRIX_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "SGI IRIX" #endif #endif /* Convenience defines for AIX */ #if defined(_AIX) #define AIX_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "IBM AIX" #endif #endif /* Convenience defines for BeOS platforms */ #if defined(__BEOS__) #define BE_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "BeOS" #endif #endif /* Convenience defines for Cygwin platforms */ #if defined(__CYGWIN__) #define CYGWIN_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "Cygwin" #endif #define FILENAMES_CASE_SENSITIVE 0 #endif /* Convenience defines for OpenVMS */ #if defined(__VMS) #define OPENVMS_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "OpenVMS" #endif #define FILENAMES_CASE_SENSITIVE 0 #endif /* Convenience defines for DEC Alpha OSF + gcc platforms */ #if defined(__osf__) #define OSF_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "DEC Alpha OSF" #endif #endif /* Convenience defines for ARM platforms */ #if defined(__arm) #define ARM_OS #if defined(forARM) && defined(__NEWTON_H) /* Using Newton C++ Tools ARMCpp compiler */ #define NEWTON_OS #ifndef PLATFORM_NAME #define PLATFORM_NAME "Newton" #endif #else #ifndef PLATFORM_NAME #define PLATFORM_NAME "ARM" #endif #endif #endif #include <ctype.h> #include <stdio.h> #include <setjmp.h> /* for longjmp on error exit */ #include <stdlib.h> #include <stdarg.h> /* may need <varargs.h> for Unix V */ #include <string.h> #include <assert.h> #ifdef NEEDS_MALLOC_H #include <malloc.h> #endif #ifdef SUPPORT_GETPWNAM #include <pwd.h> #endif #ifdef NEEDS_UNISTD_H #include <unistd.h> /* needed for unlink on some Unix systems */ #endif /* By default, use case-sensitive filename comparison. */ #ifndef FILENAMES_CASE_SENSITIVE #define FILENAMES_CASE_SENSITIVE 1 #endif /* Tidy preserves the last modified time for the files it cleans up. */ /* If your platform doesn't support <utime.h> and the utime() function, or <sys/futime> and the futime() function then set PRESERVE_FILE_TIMES to 0. If your platform doesn't support <sys/utime.h> and the futime() function, then set HAS_FUTIME to 0. If your platform supports <utime.h> and the utime() function requires the file to be closed first, then set UTIME_NEEDS_CLOSED_FILE to 1. */ /* Keep old PRESERVEFILETIMES define for compatibility */ #ifdef PRESERVEFILETIMES #undef PRESERVE_FILE_TIMES #define PRESERVE_FILE_TIMES PRESERVEFILETIMES #endif #ifndef PRESERVE_FILE_TIMES #if defined(RISC_OS) || defined(OPENVMS_OS) || defined(OSF_OS) #define PRESERVE_FILE_TIMES 0 #else #define PRESERVE_FILE_TIMES 1 #endif #endif #if PRESERVE_FILE_TIMES #ifndef HAS_FUTIME #if defined(CYGWIN_OS) || defined(BE_OS) || defined(OS2_OS) || defined(HPUX_OS) || defined(SOLARIS_OS) || defined(LINUX_OS) || defined(BSD_BASED_OS) || defined(MAC_OS) || defined(__MSL__) || defined(IRIX_OS) || defined(AIX_OS) || defined(__BORLANDC__) || defined(__GLIBC__) #define HAS_FUTIME 0 #else #define HAS_FUTIME 1 #endif #endif #ifndef UTIME_NEEDS_CLOSED_FILE #if defined(SOLARIS_OS) || defined(BSD_BASED_OS) || defined(MAC_OS) || defined(__MSL__) || defined(LINUX_OS) #define UTIME_NEEDS_CLOSED_FILE 1 #else #define UTIME_NEEDS_CLOSED_FILE 0 #endif #endif #if defined(MAC_OS_X) || (!defined(MAC_OS_CLASSIC) && !defined(__MSL__)) #include <sys/types.h> #include <sys/stat.h> #else #include <stat.h> #endif #if HAS_FUTIME #include <sys/utime.h> #else #include <utime.h> #endif /* HASFUTIME */ /* MS Windows needs _ prefix for Unix file functions. Not required by Metrowerks Standard Library (MSL). Tidy uses following for preserving the last modified time. WINDOWS automatically set by Win16 compilers. _WIN32 automatically set by Win32 compilers. */ #if defined(_WIN32) && !defined(__MSL__) && !defined(__BORLANDC__) #define futime _futime #define fstat _fstat #define utimbuf _utimbuf /* Windows seems to want utimbuf */ #define stat _stat #define utime _utime #define vsnprintf _vsnprintf #endif /* _WIN32 */ #endif /* PRESERVE_FILE_TIMES */ /* MS Windows needs _ prefix for Unix file functions. Not required by Metrowerks Standard Library (MSL). WINDOWS automatically set by Win16 compilers. _WIN32 automatically set by Win32 compilers. */ #if defined(_WIN32) && !defined(__MSL__) && !defined(__BORLANDC__) #if !(defined(__WATCOMC__) || defined(__MINGW32__)) #define fileno _fileno #define setmode _setmode #endif #define access _access #define strcasecmp _stricmp #ifndef va_copy #define va_copy(dest, src) (dest = src) #endif #if _MSC_VER > 1000 #pragma warning( disable : 4189 ) /* local variable is initialized but not referenced */ #pragma warning( disable : 4100 ) /* unreferenced formal parameter */ #pragma warning( disable : 4706 ) /* assignment within conditional expression */ #endif #if _MSC_VER > 1300 #pragma warning( disable : 4996 ) /* disable depreciation warning */ #endif #endif /* _WIN32 */ #if defined(_WIN32) #if (defined(_USRDLL) || defined(_WINDLL) || defined(BUILD_SHARED_LIB)) && !defined(TIDY_EXPORT) && !defined(TIDY_STATIC) #ifdef BUILDING_SHARED_LIB #define TIDY_EXPORT __declspec( dllexport ) #else #define TIDY_EXPORT __declspec( dllimport ) #endif #else #define TIDY_EXPORT extern #endif #ifndef TIDY_CALL #ifdef _WIN64 # define TIDY_CALL __fastcall #else # define TIDY_CALL __stdcall #endif #endif #endif /* _WIN32 */ /* hack for gnu sys/types.h file which defines uint and ulong */ #if defined(BE_OS) || defined(SOLARIS_OS) || defined(BSD_BASED_OS) || defined(OSF_OS) || defined(IRIX_OS) || defined(AIX_OS) #include <sys/types.h> #endif #if !defined(HPUX_OS) && !defined(CYGWIN_OS) && !defined(MAC_OS_X) && !defined(BE_OS) && !defined(SOLARIS_OS) && !defined(BSD_BASED_OS) && !defined(OSF_OS) && !defined(IRIX_OS) && !defined(AIX_OS) && !defined(LINUX_OS) # undef uint typedef unsigned int uint; #endif #if defined(HPUX_OS) || defined(CYGWIN_OS) || defined(MAC_OS) || defined(BSD_BASED_OS) || defined(_WIN32) # undef ulong typedef unsigned long ulong; #endif /* With GCC 4, __attribute__ ((visibility("default"))) can be used along compiling with tidylib with "-fvisibility=hidden". See http://gcc.gnu.org/wiki/Visibility and build/gmake/Makefile. */ /* #if defined(__GNUC__) && __GNUC__ >= 4 #define TIDY_EXPORT __attribute__ ((visibility("default"))) #endif */ #ifndef TIDY_EXPORT /* Define it away for most builds */ #define TIDY_EXPORT #endif #ifndef TIDY_STRUCT #define TIDY_STRUCT #endif typedef unsigned char byte; typedef uint tchar; /* single, full character */ typedef char tmbchar; /* single, possibly partial character */ #ifndef TMBSTR_DEFINED typedef tmbchar* tmbstr; /* pointer to buffer of possibly partial chars */ typedef const tmbchar* ctmbstr; /* Ditto, but const */ #define NULLSTR (tmbstr)"" #define TMBSTR_DEFINED #endif #ifndef TIDY_CALL #define TIDY_CALL #endif #if defined(__GNUC__) || defined(__INTEL_COMPILER) # define ARG_UNUSED(x) x __attribute__((unused)) #else # define ARG_UNUSED(x) x #endif /* HAS_VSNPRINTF triggers the use of "vsnprintf", which is safe related to buffer overflow. Therefore, we make it the default unless HAS_VSNPRINTF has been defined. */ #ifndef HAS_VSNPRINTF # define HAS_VSNPRINTF 1 #endif #ifndef SUPPORT_POSIX_MAPPED_FILES # define SUPPORT_POSIX_MAPPED_FILES 1 #endif /* bool is a reserved word in some but not all C++ compilers depending on age work around is to avoid bool altogether by introducing a new enum called Bool */ /* We could use the C99 definition where supported typedef _Bool Bool; #define no (_Bool)0 #define yes (_Bool)1 */ typedef enum { no, yes } Bool; /* for NULL pointers #define null ((const void*)0) extern void* null; */ #if defined(DMALLOC) #include "dmalloc.h" #endif /* Opaque data structure. * Cast to implementation type struct within lib. * This will reduce inter-dependencies/conflicts w/ application code. */ #if 1 #define opaque_type( typenam )\ struct _##typenam { int _opaque; };\ typedef struct _##typenam const * typenam #else #define opaque_type(typenam) typedef const void* typenam #endif /* Opaque data structure used to pass back ** and forth to keep current position in a ** list or other collection. */ opaque_type( TidyIterator ); #ifdef __cplusplus } /* extern "C" */ #endif #endif /* __TIDY_PLATFORM_H__ */ /* * local variables: * mode: c * indent-tabs-mode: nil * c-basic-offset: 4 * eval: (c-set-offset 'substatement-open 0) * end: */
Close