replace all F_DUPFD_CLOEXEC with os_dupfd_cloexec()
authorEric Engestrom <eric@engestrom.ch>
Thu, 4 Jun 2020 23:09:35 +0000 (01:09 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 02:09:56 +0000 (02:09 +0000)
commit4a8085d67ca7b41690edf22c410e4dc0a28e3187
tree40904aab7a15a75e3408b1cba8e2a8af8a7fc386
parent0e5ea7a36399815a2e39b72f3f0e3a75c44c062d
replace all F_DUPFD_CLOEXEC with os_dupfd_cloexec()

All squashed into a single commit because it shouldn't have any
behaviour change, except that it might work now on platforms where it
was broken because F_DUPFD_CLOEXEC is not supported but FD_CLOEXEC is.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5369>
19 files changed:
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/main/egldisplay.c
src/freedreno/vulkan/tu_fence.c
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
src/gallium/drivers/lima/lima_fence.c
src/gallium/drivers/vc4/vc4_fence.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
src/gallium/winsys/iris/drm/iris_drm_winsys.c
src/gallium/winsys/lima/drm/lima_drm_winsys.c
src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c
src/gallium/winsys/panfrost/drm/panfrost_drm_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
src/gallium/winsys/svga/drm/vmw_screen.c
src/gallium/winsys/tegra/drm/tegra_drm_winsys.c
src/gallium/winsys/v3d/drm/v3d_drm_winsys.c
src/gallium/winsys/vc4/drm/vc4_drm_winsys.c
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c