Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
x2p /
Delete
Unzip
Name
Size
Permission
Date
Action
EXTERN.h
404
B
-r--r--r--
2014-12-27 11:49
INTERN.h
413
B
-r--r--r--
2014-12-27 11:49
Makefile
2.99
KB
-rw-r--r--
2016-10-10 17:34
Makefile.SH
4.07
KB
-r-xr-xr-x
2014-12-27 11:49
a2p
109.9
KB
-rwxr-xr-x
2016-10-10 17:41
a2p.c
136.21
KB
-r--r--r--
2014-12-27 11:49
a2p.h
8.48
KB
-r--r--r--
2014-12-27 11:49
a2p.o
121.44
KB
-rw-r--r--
2016-10-10 17:41
a2p.pod
5.93
KB
-r--r--r--
2014-12-27 11:49
a2p.y
10.02
KB
-r--r--r--
2014-12-27 11:49
a2py.c
25.38
KB
-r--r--r--
2014-12-27 11:49
find2perl
23.09
KB
-rwxr-xr-x
2016-10-10 17:41
find2perl.PL
24.25
KB
-r--r--r--
2014-12-27 11:49
hash.c
3.04
KB
-r--r--r--
2014-12-27 11:49
hash.h
1.24
KB
-r--r--r--
2014-12-27 11:49
hash.o
3.16
KB
-rw-r--r--
2016-10-10 17:41
makefile
11.88
KB
-rw-r--r--
2016-10-10 17:41
makefile.old
2.99
KB
-rw-r--r--
2016-10-10 17:41
psed
52.12
KB
-rwxr-xr-x
2016-10-10 17:41
s2p
52.12
KB
-rwxr-xr-x
2016-10-10 17:41
s2p.PL
53.93
KB
-r--r--r--
2014-12-27 11:49
str.c
5.88
KB
-r--r--r--
2014-12-27 11:49
str.h
1.33
KB
-r--r--r--
2014-12-27 11:49
str.o
4.92
KB
-rw-r--r--
2016-10-10 17:41
util.c
3.5
KB
-r--r--r--
2014-12-27 11:49
util.h
956
B
-r--r--r--
2014-12-27 11:49
util.o
3.94
KB
-rw-r--r--
2016-10-10 17:41
walk.c
47.51
KB
-r--r--r--
2014-12-27 11:49
walk.o
70.93
KB
-rw-r--r--
2016-10-10 17:41
Save
Rename
/* hash.c * * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002, * 2005 by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. */ #include <stdio.h> #include "EXTERN.h" #include "a2p.h" #include "util.h" #ifdef NETWARE char *savestr(char *str); #endif STR * hfetch(HASH *tb, char *key) { char *s; int i; int hash; HENT *entry; if (!tb) return NULL; for (s=key, i=0, hash = 0; /* while */ *s; s++, i++, hash *= 5) { hash += *s * coeff[i]; } entry = tb->tbl_array[hash & tb->tbl_max]; for (; entry; entry = entry->hent_next) { if (entry->hent_hash != hash) /* strings can't be equal */ continue; if (strNE(entry->hent_key,key)) /* is this it? */ continue; return entry->hent_val; } return NULL; } bool hstore(HASH *tb, char *key, STR *val) { char *s; int i; int hash; HENT *entry; HENT **oentry; if (!tb) return FALSE; for (s=key, i=0, hash = 0; /* while */ *s; s++, i++, hash *= 5) { hash += *s * coeff[i]; } oentry = &(tb->tbl_array[hash & tb->tbl_max]); i = 1; for (entry = *oentry; entry; i=0, entry = entry->hent_next) { if (entry->hent_hash != hash) /* strings can't be equal */ continue; if (strNE(entry->hent_key,key)) /* is this it? */ continue; /*NOSTRICT*/ safefree(entry->hent_val); entry->hent_val = val; return TRUE; } /*NOSTRICT*/ entry = (HENT*) safemalloc(sizeof(HENT)); entry->hent_key = savestr(key); entry->hent_val = val; entry->hent_hash = hash; entry->hent_next = *oentry; *oentry = entry; if (i) { /* initial entry? */ tb->tbl_fill++; if ((tb->tbl_fill * 100 / (tb->tbl_max + 1)) > FILLPCT) hsplit(tb); } return FALSE; } void hsplit(HASH *tb) { const int oldsize = tb->tbl_max + 1; int newsize = oldsize * 2; int i; HENT **a; HENT **b; HENT *entry; HENT **oentry; a = (HENT**) saferealloc((char*)tb->tbl_array, newsize * sizeof(HENT*)); memset(&a[oldsize], 0, oldsize * sizeof(HENT*)); /* zero second half */ tb->tbl_max = --newsize; tb->tbl_array = a; for (i=0; i<oldsize; i++,a++) { if (!*a) /* non-existent */ continue; b = a+oldsize; for (oentry = a, entry = *a; entry; entry = *oentry) { if ((entry->hent_hash & newsize) != i) { *oentry = entry->hent_next; entry->hent_next = *b; if (!*b) tb->tbl_fill++; *b = entry; continue; } else oentry = &entry->hent_next; } if (!*a) /* everything moved */ tb->tbl_fill--; } } HASH * hnew(void) { HASH *tb = (HASH*)safemalloc(sizeof(HASH)); tb->tbl_array = (HENT**) safemalloc(8 * sizeof(HENT*)); tb->tbl_fill = 0; tb->tbl_max = 7; hiterinit(tb); /* so each() will start off right */ memset(tb->tbl_array, 0, 8 * sizeof(HENT*)); return tb; } int hiterinit(HASH *tb) { tb->tbl_riter = -1; tb->tbl_eiter = (HENT*)NULL; return tb->tbl_fill; }