revert between 56095 -> 55830 in arch
[AROS.git] / workbench / network / stacks / AROSTCP / libkvm / kvm_open.c
blob70dc7e5165ed14a3b3fdde2fdcfd401cc026331d
1 #include <exec/types.h>
2 #include <kvm.h>
3 #include <stdio.h>
4 #include "kvm_errors.h"
6 kvm_t *kvm_open(const char *execfile, const char *corefile, const char *swapfile, int flags, const char *errstr)
8 char errbuf[32];
9 kvm_t *res;
11 res = kvm_openfiles(execfile, corefile, swapfile, flags, errbuf);
12 if (!res && errstr) {
13 fprintf (stderr, "%s: %s\n", errstr, errbuf);
14 fflush (stderr);
16 return res;