OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
tools
/
perf
/
trace
/
beauty
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:16 AM
rwxr-xr-x
📄
drm_ioctl.sh
551 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
kcmp_type.sh
249 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
kvm_ioctl.sh
435 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
madvise_behavior.sh
326 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
perf_ioctl.sh
361 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
pkey_alloc_access_rights.sh
358 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
prctl_option.sh
573 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
sndrv_ctl_ioctl.sh
288 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
sndrv_pcm_ioctl.sh
288 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
vhost_virtio_ioctl.sh
722 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
Editing: madvise_behavior.sh
Close
#!/bin/sh header_dir=$1 printf "static const char *madvise_advices[] = {\n" regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+MADV_([[:alnum:]_]+)[[:space:]]+([[:digit:]]+)[[:space:]]*.*' egrep $regex ${header_dir}/mman-common.h | \ sed -r "s/$regex/\2 \1/g" | \ sort -n | xargs printf "\t[%s] = \"%s\",\n" printf "};\n"