summaryrefslogtreecommitdiff
path: root/src/arch-x86_64.c
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2012-03-08 12:17:34 -0500
committerPaul Moore <pmoore@redhat.com>2012-03-09 11:50:46 -0500
commit8e419238824258bf32a5ac20f3767083430a6688 (patch)
tree09760891c7efc5e01c3557b864b5666b489a1ab4 /src/arch-x86_64.c
parent332a076749106fb642c2faf14f7c4a3326737b5f (diff)
downloadlibseccomp-8e419238824258bf32a5ac20f3767083430a6688.tar.gz
arch: make SCMP_ARG_MAX an arch dependent value
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/arch-x86_64.c')
-rw-r--r--src/arch-x86_64.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arch-x86_64.c b/src/arch-x86_64.c
index 89131ea..bf72cd0 100644
--- a/src/arch-x86_64.c
+++ b/src/arch-x86_64.c
@@ -25,6 +25,19 @@
#include "arch-x86_64.h"
/**
+ * Determine the maximum number of syscall arguments
+ * @param arch the architecture definition
+ *
+ * Determine the maximum number of syscall arguments for the given architecture.
+ * Returns the number of arguments on success, negative values on failure.
+ *
+ */
+int x86_64_arg_count_max(const struct arch_def *arch)
+{
+ return 6;
+}
+
+/**
* Determine the argument offset for the lower 32 bits
* @param arch the architecture definition
* @param arg the argument number