efl/src/lib/eina
pierre lamot 6fd31ab552 eina: fix semaphore initialisation
This patch fix the semaphore initialisation on posix plateform

there was a preconditon test which returned the semaphore
uninitialised when count_init was 1, this caused the semaphore to
be unusable on OSX plateform. Furthermore, it seems that we need to
unlink the semaphore before its initialisation on OSX as there seems
to have some kind of persistence of the semaphore accross execution.

warning, this patch change the signification of the parametter
count_init on linux plateform, this parametter is now consistent on
every plateform, with the meaning of setting the initial count value
of the semaphore.

This used to be on linux 1 -> the semaphore is shared and initialised
at 1 and 0 -> the semaphore is not initialised, thus, by side effect
not shared and initialised at 0.

This patch set on linux plateform the semaphore as systematically
shared

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-05 16:38:06 +01:00
..
Eina.h eina: documentation enhance - add @brief tag 2014-10-27 09:08:47 +01:00
eina_abi.c eina: make eina_mempool_alignof a little bit faster. 2013-04-11 18:07:09 +09:00
eina_accessor.c eina: add eina_accessor_clone and update all Eina_Accessor to take advantage of it. 2014-02-25 18:04:47 -03:00
eina_accessor.h eina: enhance doxygen in eina_accessor.h 2014-10-27 09:10:18 +01:00
eina_alloca.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_array.c eina: fix Windows compilation due to a typo. 2014-02-25 18:34:24 -03:00
eina_array.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_benchmark.c eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_benchmark.h eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_binbuf.c
eina_binbuf.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_binbuf_template_c.x eina: add eina_{str,bin}buf_manage_read_only_new_length(). 2014-01-20 13:04:07 +09:00
eina_binshare.c efl: Unified eina critical manro to CRI. 2013-12-26 12:27:13 +09:00
eina_binshare.h eina: remove reference to API that never made it to a stable release. 2014-10-28 21:19:10 +01:00
eina_clist.h eina: enhance doxygen in eina_clist.h 2014-10-29 22:38:11 +01:00
eina_config.h.in eina_semaphore: OSX support 2014-10-27 09:11:23 +01:00
eina_convert.c eina: remove logically dead code. 2014-06-05 03:10:43 +02:00
eina_convert.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_counter.c eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_counter.h eina: enhance doxygen in eina_counter.h 2014-11-14 07:05:17 +01:00
eina_cow.c Revert "eina: work around current strange behavior seen in eina_cow." 2013-12-04 18:33:05 +09:00
eina_cow.h efl/eina: Update documentatin for Eina Lock 2014-03-25 17:30:43 +09:00
eina_cpu.c eina: detect page size in a portable way. 2013-11-10 09:25:16 +01:00
eina_cpu.h eina: Eina_Cpu / Eina_Thread API documentation 2014-10-20 18:17:14 +02:00
eina_error.c Eina: Check for errors after eina_tls_new 2014-10-22 15:52:46 +09:00
eina_error.h eina: enhance doxygen in eina_error.h 2014-10-28 21:20:39 +01:00
eina_file.c eina: win32 and linux version code are the same. Sharing code is better. 2014-07-14 15:46:54 +02:00
eina_file.h eina: enhance doxygen in eina_file.h 2014-10-30 08:49:03 +01:00
eina_file_common.c eina: fix valgrind invalid read of size in eina_file_path_sanitize. 2015-02-04 14:08:36 +01:00
eina_file_common.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_file_win32.c eina: open files in read-onnly for eina_file_open() on Windows 2014-10-03 11:05:38 +02:00
eina_fp.c
eina_fp.h eina: Eina_Cpu / Eina_Thread API documentation 2014-10-20 18:17:14 +02:00
eina_hamster.c
eina_hamster.h move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_hash.c eina_hash now has helper functions for managing lists inside hashes 2014-04-25 10:52:15 -04:00
eina_hash.h eina: add documentation for the tricky eina_hash_pointer_new 2014-08-21 13:47:59 +02:00
eina_inarray.c eina: let's check for returned value of realloc. 2014-06-05 03:20:56 +02:00
eina_inarray.h eina: add an example to demonstrate different eina insert and sort functions. 2014-12-22 15:09:59 +01:00
eina_inline_array.x efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_inline_clist.x move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_inline_cpu.x One ) too many. 2013-12-16 15:45:00 -02:00
eina_inline_f8p24.x move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_inline_f16p16.x move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_inline_f32p32.x eina_fp: Fix eina_f32p32_mul rounding issues 2013-05-17 17:15:27 +01:00
eina_inline_fp.x eina: add double_from/to and helper defines in f16p16 2013-09-24 12:20:27 +09:00
eina_inline_hash.x eina: fix eina_hash_int64 on Windows system. 2013-11-09 20:07:27 +09:00
eina_inline_inlist.x eina: add eina_inlist_first and eina_inlist_last 2013-04-09 12:03:05 +02:00
eina_inline_list.x eina: Eina_List API documentation 2014-10-20 18:13:57 +02:00
eina_inline_lock_barrier.x efl/eina: Update documentatin for Eina Lock 2014-03-25 17:30:43 +09:00
eina_inline_lock_posix.x eina: fix semaphore initialisation 2015-02-05 16:38:06 +01:00
eina_inline_lock_win32.x eina: forgotten return value. 2014-07-17 17:51:22 +02:00
eina_inline_log.x move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_inline_mempool.x eina document eina mempools' API. 2014-10-20 18:32:28 +02:00
eina_inline_private.h eina: Add a note about potential use of CLOCK_MONOTONIC 2014-10-23 11:12:00 +02:00
eina_inline_rbtree.x move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_inline_rectangle.x eina: Eina_Rectangle API documentation 2014-10-20 18:13:38 +02:00
eina_inline_str.x Eina streq: remove redundant code in eina_streq. 2014-12-16 09:23:43 +00:00
eina_inline_stringshare.x fix typo in stringshare_refplace doc 2013-02-01 12:57:44 +00:00
eina_inline_tiler.x move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_inline_trash.x eina: enhance doxgen for Eina_Trash 2014-10-31 09:25:51 +01:00
eina_inline_unicode.x efl: not sure of that one, but remove use of eina_safety_check in inline function. 2013-01-22 02:14:57 +00:00
eina_inline_ustringshare.x move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_inline_value.x eina: fix possible access to NULL. 2014-06-05 22:50:20 +02:00
eina_inline_value_util.x eina_value_util_type_offset: abs(unsigned int) is nonsense 2014-09-24 11:15:58 +02:00
eina_inlist.c eina: Eina_Inlist - remove obvious if() check. 2014-09-29 20:20:18 +02:00
eina_inlist.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_iterator.c efl: formatting 2013-06-20 13:28:18 +02:00
eina_iterator.h move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_lalloc.c
eina_lalloc.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_list.c eina: Eina_List - remove obvious if() check. 2014-09-29 20:20:17 +02:00
eina_list.h eina: Eina_Cpu / Eina_Thread API documentation 2014-10-20 18:17:14 +02:00
eina_lock.h eina: fix semaphore initialisation 2015-02-05 16:38:06 +01:00
eina_log.c eina: fix eina_log with journald. 2015-01-13 16:18:24 +01:00
eina_log.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_magic.c eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_magic.h eina: enhance doxygen in eina_magic.h 2014-10-31 09:28:07 +01:00
eina_main.c new eina api/object - eina thread queues 2014-07-15 20:39:13 +09:00
eina_main.h alpha1 release autofoo/build tree work to pass distcheck and actually work 2013-11-04 18:33:35 +09:00
eina_matrixsparse.c eina: fix typo in matrixsparce. 2014-06-05 22:18:59 +02:00
eina_matrixsparse.h eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_mempool.c setuid safeness - ensure if an app that is setuid doesn't do bad things 2014-01-08 19:46:23 +09:00
eina_mempool.h eina: enhance doxygen in eina_mempool.h 2014-10-30 08:47:36 +01:00
eina_mmap.c eina mmap safety handler - fix on systems without some sibgus types 2015-01-14 19:16:35 +09:00
eina_mmap.h efl: Created Eina group and added existing Eina groups to it. 2012-12-18 18:38:25 +00:00
eina_model.c efl: Unified eina critical manro to CRI. 2013-12-26 12:27:13 +09:00
eina_model.h eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_module.c eina : check whether the file exists or not, before memory allocation of Eina_Module 2014-09-30 16:46:52 +02:00
eina_module.h eina : check whether the file exists or not, before memory allocation of Eina_Module 2014-09-30 16:46:52 +02:00
eina_object.c efl: formatting 2013-06-20 13:28:18 +02:00
eina_object.h efl: Created Eina group and added existing Eina groups to it. 2012-12-18 18:38:25 +00:00
eina_prefix.c fix mingw build for setuid fix/checks 2014-01-08 22:06:41 +09:00
eina_prefix.h eina: enhance doxygen in eina_prefix.h 2014-10-31 09:24:39 +01:00
eina_private.h eina: add eina_log_timing. 2013-03-27 21:43:45 +09:00
eina_quadtree.c
eina_quadtree.h move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_rbtree.c eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_rbtree.h eina: struct _Eina_Rbtree contains an enum bitfield, which is a GNU extension not specified by C99. 2013-12-27 12:07:01 +09:00
eina_rectangle.c evas: fix invalid read reported in eina_rectangle_pool_free by valgrind. 2014-06-20 10:12:07 +02:00
eina_rectangle.h eina: Eina_Rectangle API documentation 2014-10-20 18:13:38 +02:00
eina_refcount.h move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_safety_checks.c eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_safety_checks.h eina - and e3fl in general - stop using eina_error_get/set - useless really 2013-10-11 16:50:40 +09:00
eina_sched.c Fix unused var warning when not building on linux. 2014-05-30 09:25:33 +02:00
eina_sched.h eina: group eina_sched 2014-10-31 09:26:49 +01:00
eina_share_common.c eina: fix calloc() parameters order in eina_share. 2014-11-14 06:49:59 +01:00
eina_share_common.h
eina_simple_xml_parser.c eina: prevent space stripping of CDATA in Eina_Simple_XML. 2013-03-11 11:03:05 +09:00
eina_simple_xml_parser.h move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_str.c +eina_memdup 2014-12-15 14:32:42 -05:00
eina_str.h +eina_memdup 2014-12-15 14:32:42 -05:00
eina_strbuf.c
eina_strbuf.h eina: add eina_{str,bin}buf_manage_read_only_new_length(). 2014-01-20 13:04:07 +09:00
eina_strbuf_common.c eina: add eina_{str,bin}buf_manage_read_only_new_length(). 2014-01-20 13:04:07 +09:00
eina_strbuf_common.h eina: add eina_{str,bin}buf_manage_read_only_new_length(). 2014-01-20 13:04:07 +09:00
eina_strbuf_template_c.x
eina_stringshare.c eina: all Eina_Stringshare printf variant now return empty string as expected. 2015-01-08 12:36:27 +01:00
eina_stringshare.h eina_stringshare.h: added more description to eina_stringshare_add_length(). 2013-07-15 13:39:57 +09:00
eina_thread.c eina_thread: fix memory leak 2014-12-08 09:21:03 +01:00
eina_thread.h eina: use uintptr_t for Eina_Thread storage to be the same size for the different architectures. 2015-01-30 10:49:55 +01:00
eina_thread_queue.c fix efl deadlock with thread queues 2014-08-24 22:19:05 +09:00
eina_thread_queue.h new eina api/object - eina thread queues 2014-07-15 20:39:13 +09:00
eina_tiler.c eina: Eina_Tiler - return a NULL if intersection of two tilers doesn't exist 2014-07-21 19:33:27 +02:00
eina_tiler.h eina_tile: Add missing since version tags for union, substract, etc 2014-08-07 12:16:57 +02:00
eina_tmpstr.c eina: clear up eina_tmpstr length information 2014-10-31 02:40:08 +01:00
eina_tmpstr.h eina: clear up eina_tmpstr length information 2014-10-31 02:40:08 +01:00
eina_trash.h eina: enhance doxgen for Eina_Trash 2014-10-31 09:25:51 +01:00
eina_types.h efl/eina: General cleanup of Eina documentation 2014-03-20 16:35:42 +09:00
eina_unicode.c eina_unicode: fix memory allocation 2014-10-29 22:38:11 +01:00
eina_unicode.h eina_unicode.H: be nice. add more documentation for deprecated api. 2013-04-20 19:01:02 +09:00
eina_ustrbuf.c
eina_ustrbuf.h eina: remove macros referencing to absent functions. 2014-10-08 18:58:35 +02:00
eina_ustringshare.c efl: Unified eina critical manro to CRI. 2013-12-26 12:27:13 +09:00
eina_ustringshare.h move eina headers into lib/eina like the rest of efl - at least be 2012-09-27 04:02:37 +00:00
eina_value.c eina: Eina_Value - use eina_mempool_free to cleanup the memory 2015-02-05 15:37:15 +01:00
eina_value.h eina_value_free() now takes NULL like the rest of the efl free functions 2014-04-26 02:21:51 -04:00
eina_value_util.c Evil: add strptime() 2014-09-28 12:29:54 -04:00
eina_value_util.h move eina_value_util_time_string_new() to not inline 2014-09-23 15:56:46 -04:00
eina_xattr.c efl/eina_xattr: Fix memory leak in eina_xattr_value_ls. 2013-02-08 15:49:59 +00:00
eina_xattr.h efl: missing api for xattr. 2012-12-31 21:05:58 +00:00