yumkam@gmail.com (Yuriy M. Kaminskiy) writes: > Ruediger Meier writes: > >> From: Ruediger Meier >> [...] > `O_CREAT`, etc; most notable, `O_CLOEXEC`; however, if `O_CLOEXEC` is missing > on system, "c.h" defines it as 0, so it is silently ignored on those > systems, instead of being emulated; so, whenever it matters, callers > must call **both** `open(O_CLOEXEC)` and `fcntl(F_SETFD,FD_CLOEXEC)`]). ... something like attached below. In some cases it is maybe unnecessary, but better safe than sorry.