]> asedeno.scripts.mit.edu Git - linux.git/commit
ACPICA: MacOSX: Fix anonymous semaphore implementation
authorLv Zheng <zetalog@gmail.com>
Mon, 17 Oct 2016 19:02:40 +0000 (03:02 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 20 Oct 2016 23:33:39 +0000 (01:33 +0200)
commit6c9fd7eda78d0a153f9f57c44dc8761adc2cd501
treefb69d9df288e6cc97f5ea39b8f292d2ebc9c356b
parent3a993ab603c79896b834cb082648a8e57757b22c
ACPICA: MacOSX: Fix anonymous semaphore implementation

ACPICA commit 01eb9a58f4cf6300a0feb838a02bc4b1895c76e8
ACPICA commit de5b9c0ef1ccb264cbe57c88f6dd3fbf8229f907

The following build errors can be seen for MacOSX builds:
.../osunixxf.c:829:42: error: 'tmpnam' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead. [-Werror,-Wdeprecated-declarations]

Using of temporal file name functions can easily result in bus errors on
MacOSX. This patch implements anonymous semaphore using an automatic
increasing number. Lv Zheng.

Linux is not affected by this change.

Link: https://github.com/acpica/acpica/commit/01eb9a58
Link: https://github.com/acpica/acpica/commit/de5b9c0e
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/acpi/os_specific/service_layers/osunixxf.c