[PATCH] D82282: [AIX] Implement wait4

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 22 10:47:05 PDT 2020


hubert.reinterpretcast commandeered this revision.
hubert.reinterpretcast edited reviewers, added: sepavloff; removed: hubert.reinterpretcast.
hubert.reinterpretcast marked an inline comment as done.
hubert.reinterpretcast added inline comments.


================
Comment at: llvm/lib/Support/Unix/Program.inc:333
+#if defined(_AIX) && !defined(wait4)
+extern pid_t kwaitpid(int *stat_loc, pid_t pid, int options,
+                      struct rusage *ru_loc, siginfo_t *infop);
----------------
sepavloff wrote:
> hubert.reinterpretcast wrote:
> > I asked around and the `kwaitpid` interface may be subject to change.
> > 
> > I was told that `wait4` is actually available (just not listed in the documentation), and I was able to find the symbol in the system libc. Declaring the signature below with `extern "C"` should be enough.
> > 
> > If you prefer, I will put that fix in. Please let me know; thanks.
> > 
> Yes, please. I don't have access to AIX and cannot check patch.
Got it; working on it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82282/new/

https://reviews.llvm.org/D82282





More information about the llvm-commits mailing list