mesa/src/util
Eric Engestrom 0e5ea7a363 util: introduce os_dupfd_cloexec() helper
Adapted from wayland's wl_os_dupfd_cloexec().

Suggested-by: Kristian H. Kristensen <hoegsberg@google.com>
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>
2020-06-18 02:09:56 +00:00
..
format meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
sha1
tests util/tests: initialize variable 2020-04-16 14:48:40 +00:00
xmlpool radv: add new drirc option radv_enable_mrt_output_nan_fixup 2020-06-12 14:43:31 +02:00
00-mesa-defaults.conf radv: enable radv_enable_mrt_output_nan_fixup for RAGE 2 2020-06-12 14:43:58 +02:00
Android.mk android: Fix u_format_table.c being generated twice 2019-12-31 14:06:02 +01:00
anon_file.c
anon_file.h
bigmath.h
bitscan.c
bitscan.h
bitset.h util: add BITSET_LAST_BIT() helper 2020-06-03 10:34:22 +00:00
bitset_test.cpp
blob.c util: stop including files from mesa/main 2020-03-27 21:00:09 +00:00
blob.h util/blob: Add overwrite function for uint8 2020-03-20 17:25:25 +00:00
blob_test.c
build_id.c
build_id.h
compiler.h Move compiler.h and imports.h/c from src/mesa/main into src/util 2020-03-27 21:00:09 +00:00
crc32.c
crc32.h
dag.c
dag.h
debug.c util: stop including files from mesa/main 2020-03-27 21:00:09 +00:00
debug.h
detect_os.h
disk_cache.c util: stop including files from mesa/main 2020-03-27 21:00:09 +00:00
disk_cache.h util/disk_cache: add fallback for disk_cache_get_function_identifier 2020-06-11 06:05:28 +10:00
double.c
double.h
fast_idiv_by_const.c
fast_idiv_by_const.h
fast_urem_by_const.h
format_r11g11b10f.h
format_rgb9e5.h
format_srgb.h
format_srgb.py util: initialize float-array with float-literals 2020-01-14 12:00:27 +01:00
futex.h util: enable futex usage on BSDs after 7dc2f47882 2020-06-16 21:44:35 +00:00
half_float.c
half_float.h glsl: Add ir_constant constructor for fp16 2020-03-09 16:31:08 +00:00
hash_table.c util/hash_table: replace fnv1a hash function with xxhash 2020-05-25 19:41:09 +00:00
hash_table.h util: delete fnv1a hash function 2020-05-25 19:41:09 +00:00
list.h util/list: Add list_foreach_entry_from_safe 2020-05-13 23:36:44 +00:00
macros.h util: Add SATURATE macro 2020-05-26 22:31:31 +00:00
Makefile.sources util: delete fnv1a hash function 2020-05-25 19:41:09 +00:00
merge_driinfo.py gallium: change comments to remove 'state tracker' 2020-05-13 13:47:27 -04:00
mesa-sha1.c
mesa-sha1.h
mesa-sha1_test.c
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
os_file.c util: introduce os_dupfd_cloexec() helper 2020-06-18 02:09:56 +00:00
os_file.h util: introduce os_dupfd_cloexec() helper 2020-06-18 02:09:56 +00:00
os_memory.h util/os_memory: never use os_memory_debug.h 2020-05-07 13:34:30 +00:00
os_memory_aligned.h util: Add an aligned realloc function 2020-04-21 11:09:03 -07:00
os_memory_debug.h util: move debug_memory_{begin,end} to os_memory_debug.h 2020-02-24 23:07:57 +00:00
os_memory_stdc.h util: Add an aligned realloc function 2020-04-21 11:09:03 -07:00
os_misc.c
os_misc.h
os_socket.c util/os_socket: Add socket related functions. 2019-12-13 20:53:44 +00:00
os_socket.h util/os_socket: fix header unavailable on windows 2020-02-04 17:33:49 +00:00
os_time.c
os_time.h
process_test.c Fix util/process test on Cygwin 2020-04-15 21:10:11 +00:00
ralloc.c util/ralloc: fix ralloc alignment on Win64 2020-04-21 21:56:21 +00:00
ralloc.h
rand_xor.c util/rand_xor: extend the urandom path to all non-Windows platforms 2020-05-16 12:05:37 +00:00
rand_xor.h util/rand_xor: make it clear that {,s_}rand_xorshift128plus take *exactly 2* uint64_t 2020-05-16 12:05:37 +00:00
rb_tree.c
rb_tree.h
rb_tree_test.c
register_allocate.c util/ra: Add [de]serialization support 2020-05-13 23:36:44 +00:00
register_allocate.h util/ra: Add [de]serialization support 2020-05-13 23:36:44 +00:00
rgtc.c
rgtc.h
roundeven_test.c
rounding.h replace IROUND with util functions 2020-04-21 11:09:03 -07:00
SConscript
set.c Mark a few static inline helpers with ASSERTED 2020-02-19 18:34:33 +00:00
set.h
simple_list.h
simple_mtx.h util: enable futex usage on BSDs after 7dc2f47882 2020-06-16 21:44:35 +00:00
slab.c
slab.h
softfloat.c src/util: Remove out-of-range comparison 2020-05-26 12:46:18 -07:00
softfloat.h
sparse_array.c util/sparse_free_list: manipulate node pointers using atomic primitives 2020-04-18 12:18:03 +00:00
sparse_array.h util/sparse_array: Stash the node level in the node pointer 2020-03-20 15:31:10 -05:00
string_buffer.c
string_buffer.h
strndup.h
strtod.c
strtod.h
texcompress_rgtc_tmp.h
timespec.h
u_atomic.c
u_atomic.h util/atomic: fix return type of p_atomic_add_return() fallback 2020-01-22 21:42:52 +00:00
u_atomic_test.c
u_cpu_detect.c util: don't include p_defines.h and u_pointer.h from gallium 2020-03-27 21:00:10 +00:00
u_cpu_detect.h
u_debug.c
u_debug.h util: don't include p_defines.h and u_pointer.h from gallium 2020-03-27 21:00:10 +00:00
u_debug_memory.c util: move debug_memory_{begin,end} to os_memory_debug.h 2020-02-24 23:07:57 +00:00
u_drm.h
u_dynarray.h
u_endian.h
u_math.c
u_math.h util: Add SATURATE macro 2020-05-26 22:31:31 +00:00
u_memory.h util: Add an aligned realloc function 2020-04-21 11:09:03 -07:00
u_memset.h gallium/llvmpipe: add an optimised 32-bit memset 2020-04-01 20:58:23 +00:00
u_mm.c util: don't include p_defines.h and u_pointer.h from gallium 2020-03-27 21:00:10 +00:00
u_mm.h
u_process.c util/u_process: Add util_get_process_exec_path for macOS. 2020-03-25 14:38:03 -07:00
u_process.h util/u_process: add util_get_process_exec_path 2020-03-24 08:30:34 +01:00
u_queue.c Linux: Change minimum priority threads from SCHED_IDLE to nice 19 SCHED_BATCH. 2020-05-08 10:14:40 +00:00
u_queue.h util: enable futex usage on BSDs after 7dc2f47882 2020-06-16 21:44:35 +00:00
u_string.h move windows strtok_r define to u_string 2020-04-21 11:09:03 -07:00
u_thread.h util: Do not fail to build on unknown pthread_setname_np 2020-01-22 22:39:57 +00:00
u_vector.c
u_vector.h util/vector: Fix u_vector_foreach when head rolls over 2020-01-17 22:21:00 +00:00
vma.c util/vma: Add a debug print helper 2020-05-13 23:36:44 +00:00
vma.h util/vma: Add a debug print helper 2020-05-13 23:36:44 +00:00
xmlconfig.c util/xmlconfig: fix sha1 comparison code 2020-04-03 11:44:00 +02:00
xmlconfig.h
xmlpool.h
xxhash.h util: import xxhash 2020-01-23 17:06:57 +00:00