13#ifndef LLVM_SUPPORT_ZOSSUPPORT_H
14#define LLVM_SUPPORT_ZOSSUPPORT_H
17#include <sys/resource.h>
22inline char *strsignal(
int sig) {
24 sprintf(msg,
"%d", sig);
30inline pid_t wait4(pid_t pid,
int *wstatus,
int options,
31 struct rusage *rusage) {
32 pid_t
Result = waitpid(pid, wstatus, options);
33 int GetrusageRC = getrusage(RUSAGE_CHILDREN, rusage);
34 assert(!GetrusageRC &&
"Must have valid measure of the resources!");
40inline std::size_t strnlen(
const char *S, std::size_t MaxLen) {
41 const char *PtrToNullChar =
42 static_cast<const char *
>(std::memchr(S,
'\0', MaxLen));
43 return PtrToNullChar ? PtrToNullChar - S : MaxLen;
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())