gtk2/gdk
Ray Strode bb2ca3b94d wayland: fix error handling for memfd_create
We currently use syscall() directly to invoke memfd_create,
since the function isn't available in libc headers yet.

The code, though, mishandles how errors are passed from syscall().
It assumes syscall returns the error code directly (but negative),
when in fact, syscall() uses errno.

Also, the code fails to retry on EINTR.

This commit moves the handling of memfd create to a helper function,
and changes the code to use errno and handle EINTR.

https://bugzilla.gnome.org/show_bug.cgi?id=766341
2016-06-16 12:00:24 -04:00
..
broadway Make gdk_event_get_pointer_emulated public 2016-05-10 15:16:45 -04:00
deprecated gdkcolor.h: Use GDK_DEPRECATED_IN_3_14_FOR() throughout 2015-04-17 11:16:30 -05:00
mir Make gdk_event_get_pointer_emulated public 2016-05-10 15:16:45 -04:00
quartz Make gdk_event_get_pointer_emulated public 2016-05-10 15:16:45 -04:00
resources/glsl gl: Use a uniform to flip R and B colors on GLES 2016-04-25 14:33:36 +01:00
wayland wayland: fix error handling for memfd_create 2016-06-16 12:00:24 -04:00
win32 GDK W32: Fix dragging AeroSnap application 2016-06-05 09:00:40 +00:00
x11 x11: Mark trackpoints as GDK_SOURCE_TRACKPOINT 2016-06-01 09:31:18 -04:00
COPYING
fallback-c89.c
gdk-autocleanup.h gdk: Add support for g_autoptr() 2015-02-02 09:28:22 +01:00
gdk-private.c gdk: Make debug-updates a per-display setting 2014-11-10 15:23:14 -05:00
gdk-private.h gdk: Make debug-updates a per-display setting 2014-11-10 15:23:14 -05:00
gdk.c gdk: Ensure resources registration happens once 2016-04-26 10:36:37 +01:00
gdk.h Add GdkDrawingContext 2016-06-09 17:45:40 +01:00
gdkapplaunchcontext.c docs: replace all <examples> with markdown headings 2014-02-04 16:58:54 -05:00
gdkapplaunchcontext.h
gdkapplaunchcontextprivate.h
gdkcairo.c gdkcairo: Bail if surface is in error 2015-02-25 01:55:28 +01:00
gdkcairo.h gdk: Deprecate gdk_cairo_create() 2016-06-09 17:45:40 +01:00
gdkconfig.h.win32 Clean up the pre-configured gdkconfig.h.win32 2013-05-28 13:04:37 +08:00
gdkconfig.h.win32_broadway Add Visual Studio Build Support for Broadway 2013-08-02 11:20:19 +08:00
gdkcursor.c Update cursor docs 2016-05-17 14:16:39 -04:00
gdkcursor.h Update docs 2015-05-08 13:34:25 -04:00
gdkcursorprivate.h gdk: Add gdk_cursor_get_surface() 2013-08-07 13:34:10 +02:00
gdkdeprecated.c docs: use Returns: consistently 2014-02-19 18:56:05 -05:00
gdkdevice.c gdk: Add a private getter for GdkDevice::input-mode 2016-04-30 20:52:23 -04:00
gdkdevice.h gdk: Add GDK_SOURCE_TRACKPOINT 2016-06-01 09:31:17 -04:00
gdkdevicemanager.c Move GdkDeviceManager to deprecated section 2016-04-03 23:41:20 -04:00
gdkdevicemanager.h gdk: Deprecate GdkDeviceManager and gdk_device_grab/ungrab() 2015-12-15 00:40:21 +01:00
gdkdevicemanagerprivate.h
gdkdeviceprivate.h gdk: Add a private getter for GdkDevice::input-mode 2016-04-30 20:52:23 -04:00
gdkdevicetool.c Move GdkDeviceTool into its own files 2016-04-09 15:48:34 -04:00
gdkdevicetool.h Move GdkDeviceTool into its own files 2016-04-09 15:48:34 -04:00
gdkdevicetoolprivate.h Move GdkDeviceTool into its own files 2016-04-09 15:48:34 -04:00
gdkdisplay.c Silence a compiler warning 2016-05-26 12:46:54 +01:00
gdkdisplay.h gdk: Fix parameter name mismatch 2016-05-08 15:34:28 +02:00
gdkdisplaymanager.c gdk: Add a way to show included backends 2016-02-18 22:03:12 -05:00
gdkdisplaymanager.h
gdkdisplaymanagerprivate.h
gdkdisplayprivate.h display: Add vfunc for get_monitor_at_window 2016-05-18 19:07:27 +02:00
gdkdnd.c gdk/dnd: Don't use default display when getting cursor 2016-04-26 23:03:24 +08:00
gdkdnd.h gdk: Add GdkDragCancelReason enum as argument to GdkDragContext::cancel 2016-02-15 18:35:51 +01:00
gdkdndprivate.h gdk/dnd: Don't use default display when getting cursor 2016-04-26 23:03:24 +08:00
gdkdrawingcontext.c gdk: Unset the DrawingContext <-> cairo_t link on dispose 2016-06-12 18:55:34 +01:00
gdkdrawingcontext.h Add GdkDrawingContext 2016-06-09 17:45:40 +01:00
gdkdrawingcontextprivate.h Add GdkDrawingContext 2016-06-09 17:45:40 +01:00
gdkenumtypes.c.template
gdkenumtypes.h.template Fix some oversights with header guards 2014-12-08 19:31:56 -05:00
gdkevents.c Forgotten rename 2016-05-10 15:32:25 -04:00
gdkevents.h Make gdk_event_get_pointer_emulated public 2016-05-10 15:16:45 -04:00
gdkframeclock.c Trivial whitespace fix 2016-04-30 21:06:38 -04:00
gdkframeclock.h Fix some oversights with header guards 2014-12-08 19:31:56 -05:00
gdkframeclockidle.c frame-clock: avoid g_signal_emit_by_name() 2016-04-18 15:33:53 -07:00
gdkframeclockidle.h GdkFrameClockIdle: Add a missing declaration 2014-09-05 20:44:22 -04:00
gdkframeclockprivate.h frametimings: reuse previous frame timing in common case 2016-04-26 09:06:07 -04:00
gdkframetimings.c frametimings: reuse previous frame timing in common case 2016-04-26 09:06:07 -04:00
gdkframetimings.h Fix some oversights with header guards 2014-12-08 19:31:56 -05:00
gdkgl.c gl: Use a uniform to flip R and B colors on GLES 2016-04-25 14:33:36 +01:00
gdkglcontext.c gl: Add a realize() fallback 2016-05-23 08:34:17 +01:00
gdkglcontext.h gl: Add 'use-es' flag 2016-04-25 12:29:36 +01:00
gdkglcontextprivate.h gl: Use a uniform to flip R and B colors on GLES 2016-04-25 14:33:36 +01:00
gdkglobals.c Add GDK_GL env var and GdkGLFlags 2014-11-06 12:24:43 +01:00
gdkinternals.h gdk: Try harder at tracking drawing contexts 2016-06-12 17:27:44 +01:00
gdkintl.h
gdkkeynames.c
gdkkeys.c Clarify docs a bit 2016-04-15 22:22:48 -04:00
gdkkeys.h gdkkeys: Add support to _get_scroll_lock_state() 2015-04-27 20:07:52 -03:00
gdkkeysprivate.h gdkkeys: Add support to _get_scroll_lock_state() 2015-04-27 20:07:52 -03:00
gdkkeysyms-compat.h
gdkkeysyms-update.pl gdkkeysyms-update: Remove workarounds for old bugs 2013-07-17 16:40:05 -04:00
gdkkeysyms.h
gdkkeyuni.c W32: Fix for commit 1f74f12d9, re-enabling decimal separator key 2016-02-26 17:24:32 +00:00
gdkmain.h Make global GDK libgtk_only functions more private 2014-11-08 00:20:15 -05:00
gdkmarshalers.list
gdkmonitor.c GdkMonitor: Fix refresh-rate property 2016-05-02 12:42:13 -04:00
gdkmonitor.h gdk: Fix parameter name mismatch 2016-05-08 15:34:28 +02:00
gdkmonitorprivate.h Add GdkMonitor 2016-04-27 23:18:16 -04:00
gdkoffscreenwindow.c gdkoffscreenwindow: use embedder to derive surfaces & scale factor 2015-12-03 21:47:29 +00:00
gdkpango.c Add docs for new API 2016-04-18 11:46:58 -04:00
gdkpango.h Add gdk_pango_context_get_for_display 2016-04-18 07:04:44 -04:00
gdkpixbuf-drawable.c Fix the fix to the last commit 2015-12-16 12:42:27 +00:00
gdkpixbuf.h
gdkprivate.h Make gdk_event_get_pointer_emulated public 2016-05-10 15:16:45 -04:00
gdkproperty.c Trivial formatting fix 2014-08-30 00:53:21 -04:00
gdkproperty.h
gdkrectangle.c Clarify docs for gdk_rectangle_union 2016-01-20 13:44:34 -05:00
gdkrectangle.h gdk: Add gdk_rectangle_equal() 2015-10-03 22:26:27 -04:00
gdkrgba.c Revert "Add missing (out) annotation to gdk_rgba_parse" 2016-02-02 15:08:10 +00:00
gdkrgba.h
gdkscreen.c screen: Implement old monitor apis generically 2016-04-27 23:18:16 -04:00
gdkscreen.h Revert "Introduce API to get the preferred visual" 2014-02-10 22:15:28 -05:00
gdkscreenprivate.h Handle resolution changes in the GDK backend code 2014-07-13 15:35:23 -04:00
gdkseat.c gdk: Add GdkSeat::tool-added/removed signals 2016-04-06 15:43:29 +02:00
gdkseat.h GdkSeat: Add G_BEGIN_DECLS and G_END_DECLS 2015-12-22 10:33:41 +01:00
gdkseatdefault.c Move GdkDeviceTool into its own files 2016-04-09 15:48:34 -04:00
gdkseatdefaultprivate.h GdkSeatDefault: Add functions to add/remove tools 2016-04-06 15:43:29 +02:00
gdkseatprivate.h gdk: Add GdkSeat::tool-added/removed signals 2016-04-06 15:43:29 +02:00
gdkselection.c gdk: assorted introspection and documentation fixes 2014-05-19 11:47:59 -07:00
gdkselection.h Drop GDK_MULTIHEAD_SAFE 2014-06-11 21:55:15 -04:00
gdktestutils.h
gdkthreads.h
gdktypes.h gdktypes: Update docs for GDK_GRAB_FAILED 2016-06-03 00:44:45 -04:00
gdkversionmacros.h.in Add version macros for 3.22 2016-03-26 14:08:10 -04:00
gdkvisual.c Deprecate gdk_visual_get_colormap_size 2016-03-26 15:15:28 -04:00
gdkvisual.h Deprecate gdk_visual_get_colormap_size 2016-03-26 15:15:28 -04:00
gdkvisualprivate.h gdk: calculate pixel color shift and precision lazily 2016-02-27 12:27:54 +01:00
gdkwindow.c gdk: Try harder at tracking drawing contexts 2016-06-12 17:27:44 +01:00
gdkwindow.h Deprecate the gdk_window_begin/end_paint family of functions 2016-06-09 17:45:40 +01:00
gdkwindowimpl.c gdkwindow: Provide a default implementation of process_updates_recurse 2014-06-22 10:20:50 -04:00
gdkwindowimpl.h Add GdkDrawingContext 2016-06-09 17:45:40 +01:00
gdkx.h
gen-keyname-table.pl
keyname-table.h docs: use proper quotations instead of '*' 2014-02-07 14:22:39 -05:00
keynames-translate.txt Add AudioMicMute 2013-07-17 17:52:19 -04:00
keynames.txt Fix key "Page_Down" identified as "Next" 2013-10-24 18:48:33 -04:00
Makefile.am Add GdkDrawingContext 2016-06-09 17:45:40 +01:00
makefile.msc