Re: close-on-exec

2015-02-26 Thread Emil Velikov
On 25/02/15 22:27, Alan Coopersmith wrote: On 02/25/15 01:24 PM, Thomas Klausner wrote: I don't know what the proper way to do this portably, but this is the diff we currently have in NetBSD's xsrc for xsm to close file descriptors on exec. I see that glibc added fopen's e flag for 2.7 (in

Re: [PATCH] damage: Only track extents where possible

2015-02-26 Thread Adam Jackson
On Wed, 2015-02-25 at 18:01 +, Chris Wilson wrote: For external Damage, we need only track sufficient information to satisfy the DamageReportLevel. That is if the Client only wishes to hear that the Damage is now non-empty or if the extents change, we only need to track the extents of the

[PATCH xserver] config: Support multiple 'Files' sections

2015-02-26 Thread Michał Górny
Support reading multiple 'Files' sections in configuration, concatenating the resulting paths. This makes it possible to add ModulePaths and FontPaths within xorg.conf.d/ files without interfering with user-provided xorg.conf. Gentoo needs this to support using replacement xorg modules provided by

Re: [PATCH xf86-input-libinput 1/2] Split out property init into helper functions

2015-02-26 Thread Hans de Goede
Hi, On 26-02-15 08:07, Peter Hutterer wrote: Makes the code less messy. Only functional change is that if one property fails to initialize we'll now continue with the others. Previously the first failed property would prevent any other property init. Signed-off-by: Peter Hutterer

Re: close-on-exec

2015-02-26 Thread Thomas Klausner
On Wed, Feb 25, 2015 at 02:27:30PM -0800, Alan Coopersmith wrote: Solaris has the ancient support for setting the FD_CLOEXEC flag via fcntl() in all versions, and the more recent support for the O_CLOEXEC flag to open() in Solaris 11 and later, but does not yet support the e flag to fopen().

Generated Code : swapcheck_shape.h

2015-02-26 Thread chris
/* * This file generated automatically from shape.xml by gen_swap_check.py. * Edit at your peril. */ /** * @defgroup XCB_Shape_API XCB Shape API * @brief Shape XCB Protocol Implementation. * @{ **/ #ifndef __SHAPE_H #define __SHAPE_H #include swapcheck_xproto.h #ifdef __cplusplus extern

Generated Code: swapcheck_xproto.h

2015-02-26 Thread chris
/* * This file generated automatically from xproto.xml by gen_swap_check.py. * Edit at your peril. */ /** * @defgroup XCB__API XCB API * @brief XCB Protocol Implementation. * @{ **/ #ifndef __XPROTO_H #define __XPROTO_H #include xorg/misc.h #include X11/X.h #include X11/Xproto.h

Generated Code (Re: [OPW] Generated swapping and size-checking code integration)

2015-02-26 Thread Christian Linhart
Hi all, Since Asalle is sick since a while, I post here the generated code from one of the last revisions of Asalle's repository, so that we can discuss the generated code here, ( The latest revision of her repo has a make-issue, so I took the generated code from a workspace that I have built on

Generated Code: swapcheck_shape.c

2015-02-26 Thread chris
/* * This file generated automatically from shape.xml by gen_swap_check.py. * Edit at your peril. */ #include swapcheck_xproto.h #include swapcheck_shape.h #include stdlib.h #include assert.h #include stddef.h /* for offsetof() */ #include errno.h #define ALIGNOF(type) offsetof(struct { char

Re: [PATCH] damage: Only track extents where possible

2015-02-26 Thread Chris Wilson
On Thu, Feb 26, 2015 at 02:58:45PM -0500, Adam Jackson wrote: On Wed, 2015-02-25 at 18:01 +, Chris Wilson wrote: For external Damage, we need only track sufficient information to satisfy the DamageReportLevel. That is if the Client only wishes to hear that the Damage is now non-empty or

Re: close-on-exec

2015-02-26 Thread Alan Coopersmith
On 02/26/15 08:04 AM, Emil Velikov wrote: On 25/02/15 22:27, Alan Coopersmith wrote: I'm not sure what more we can do. I have no idea how to write a configure check to test for fopen(..., e) support either.) Something like the following should be ok, but I haven't tested it.

Re: close-on-exec

2015-02-26 Thread Emil Velikov
On 27 February 2015 at 01:02, Alan Coopersmith alan.coopersm...@oracle.com wrote: On 02/26/15 08:04 AM, Emil Velikov wrote: On 25/02/15 22:27, Alan Coopersmith wrote: I'm not sure what more we can do. I have no idea how to write a configure check to test for fopen(..., e) support either.)