Re: [Xen-devel] [PATCH XEN v8 26/29] tools/libs/*: Use O_CLOEXEC on Linux and FreeBSD

2016-01-19 Thread Wei Liu
On Fri, Jan 15, 2016 at 01:23:05PM +, Ian Campbell wrote: > In some cases this replaces an FD_CLOEXEC dance, in others it is new. > > Linux has had O_CLOEXEC since 2.6.23 (October 2007), so we can rely on > it from Xen 4.7 I think. Some libc headers may still lack the > definition, so we take

[Xen-devel] [PATCH XEN v8 26/29] tools/libs/*: Use O_CLOEXEC on Linux and FreeBSD

2016-01-15 Thread Ian Campbell
In some cases this replaces an FD_CLOEXEC dance, in others it is new. Linux has had O_CLOEXEC since 2.6.23 (October 2007), so we can rely on it from Xen 4.7 I think. Some libc headers may still lack the definition, so we take care of that if need be by defining to 0 (on the premise that such an ol