#include #include #include #include // SR remove warning because pthread_self is unknown #include "returncode.h" void returncode(char* s, int status) { printf("returncode/status : %d\n", status); printf("returncode/thread : %lx\n", (long)pthread_self()); printf("returncode/errno : %x\n", errno); printf("returncode/message : %s\n", s); exit(0); }