diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-11-28 14:58:01 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-11-30 09:53:36 +0100 |
commit | 13590ca98ac2fd4939b683adbfdd63392b559f3f (patch) | |
tree | 37a267d3ac4ca067fea1d2a1789c1a055ed7b707 /make_syscall_h.sh | |
parent | 890ac34c460fbb753bd4303b201d11aebd27a570 (diff) | |
download | unitd-13590ca98ac2fd4939b683adbfdd63392b559f3f.tar unitd-13590ca98ac2fd4939b683adbfdd63392b559f3f.zip |
Strip down procd to the necessary code, update copyright
Diffstat (limited to 'make_syscall_h.sh')
-rwxr-xr-x | make_syscall_h.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/make_syscall_h.sh b/make_syscall_h.sh deleted file mode 100755 index 3363bc7..0000000 --- a/make_syscall_h.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -# syscall reporting example for seccomp -# -# Copyright (c) 2012 The Chromium OS Authors <chromium-os-dev@chromium.org> -# Authors: -# Kees Cook <keescook@chromium.org> -# -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -CC=$1 -[ -n "$TARGET_CC_NOCACHE" ] && CC=$TARGET_CC_NOCACHE - -echo "#include <asm/unistd.h>" -echo "static const char *syscall_names[] = {" -echo "#include <sys/syscall.h>" | ${CC} -E -dM - | grep '^#define __NR_' | \ - LC_ALL=C sed -r -n -e 's/^\#define[ \t]+__NR_([a-z0-9_]+)[ \t]+([ ()+0-9a-zNR_Linux]+)(.*)/ [\2] = "\1",/p' -echo "};" |