weston/shared
Derek Foreman 5ef6bd7eee
os: Check for EINTR on ftruncate()
The man page indicates that ftruncate() can set errno to EINTR, so test
for this.

I have not actually been able to provoke an EINTR error from ftruncate()
in testing though.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-03-24 21:02:30 +01:00
..
cairo-util.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
cairo-util.h share/cairo-util: Use wl_pointer_button_state enum directly 2016-09-24 11:52:56 +02:00
config-parser.c config-parser: Export weston_config_next_section 2017-02-21 12:55:15 -08:00
config-parser.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
file-util.c shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
file-util.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
frame.c share/cairo-util: Use wl_pointer_button_state enum directly 2016-09-24 11:52:56 +02:00
helpers.h shared/helpers.h: fix a typo in a comment 2017-01-03 11:59:08 +00:00
image-loader.c shared/image: Silence maybe-uninitialized warning 2016-08-15 16:31:00 +02:00
image-loader.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
matrix.c shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
matrix.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
option-parser.c Switch to use safe_strtoint instead of strtol 2016-08-06 18:19:22 -07:00
os-compatibility.c os: Check for EINTR on ftruncate() 2017-03-24 21:02:30 +01:00
os-compatibility.h log: Open log file CLOEXEC so child processes don't get the fd 2015-07-16 19:28:36 -07:00
platform.h shared/platform.h: introduce weston_platform_destroy_egl_surface() 2016-11-21 16:07:05 +00:00
string-helpers.h string-helpers.h: Fix usage on musl libc 2016-09-24 11:55:58 +02:00
timespec-util.h timespec: Add timespec subtraction helpers 2017-03-13 14:20:06 +02:00
weston-egl-ext.h Move weston-egl-ext.h to shared 2017-01-30 16:45:19 +00:00
xalloc.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
xalloc.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
zalloc.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00