mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
Some systems, such as Android, do not support SysV semaphore locks. This implements an alternative file lock mechanism using flock(). flock() was chosen because it's pretty straight forward. It's known to be broken when using NFS, but I doubt we'll ever store our lock on an NFS volume. CQ-DEPEND=CL:327407,CL:325609 BUG=chrome-os-partner:49527 BRANCH=none TEST=tested on Smaug by running mosys and ectool while reading firmware ROM with flashrom, all three utilities eventually ran successfully. Change-Id: Ic73fe0281fbc1dfaae1bb03e5683774a0c04ae5b Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/329430 Reviewed-by: Shawn N <shawnn@chromium.org>
11 lines
272 B
Makefile
11 lines
272 B
Makefile
# -*- makefile -*-
|
|
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# Lock library
|
|
#
|
|
|
|
util-lock-objs=file_lock.o gec_lock.o
|
|
util-lock-objs+=android.o
|