diff options
| author | jolsa@redhat.com <jolsa@redhat.com> | 2011-06-20 16:14:11 +0200 |
|---|---|---|
| committer | Jiri Olsa <Jiri Olsa jolsa@redhat.com> | 2012-01-11 19:55:00 +0100 |
| commit | 98081e0b14253bc0635624f400719c3d325e5734 (patch) | |
| tree | ac662c8ac0e19de02b3f3b2526a244e3d17d7c4a /src/sysdeps | |
| parent | 97f80d2e5d6f984a71c870748bc9c51f40dd0839 (diff) | |
| download | latrace-98081e0b14253bc0635624f400719c3d325e5734.tar.gz latrace-98081e0b14253bc0635624f400719c3d325e5734.tar.xz latrace-98081e0b14253bc0635624f400719c3d325e5734.zip | |
error simulation: library part
Diffstat (limited to 'src/sysdeps')
| -rw-r--r-- | src/sysdeps/i686/error.c | 15 | ||||
| -rw-r--r-- | src/sysdeps/x86_64/error.c | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/sysdeps/i686/error.c b/src/sysdeps/i686/error.c new file mode 100644 index 0000000..fd675a5 --- /dev/null +++ b/src/sysdeps/i686/error.c @@ -0,0 +1,15 @@ + +#include <strings.h> + +#include "config.h" + +int lt_error_set_retval(struct lt_config_audit *cfg, + unsigned long ret, La_retval *outregs) +{ + bzero(outregs, sizeof(*outregs)); + + outregs->lrv_edx = 0; + outregs->lrv_eax = (uint32_t) ret; + + return 0; +} diff --git a/src/sysdeps/x86_64/error.c b/src/sysdeps/x86_64/error.c new file mode 100644 index 0000000..36784cd --- /dev/null +++ b/src/sysdeps/x86_64/error.c @@ -0,0 +1,15 @@ + +#include <strings.h> + +#include "config.h" + +int lt_error_set_retval(struct lt_config_audit *cfg, + unsigned long ret, La_retval *outregs) +{ + bzero(outregs, sizeof(*outregs)); + + outregs->lrv_rdx = 0; + outregs->lrv_rax = (uint32_t) ret; + + return 0; +} |
