Home
last modified time | relevance | path

Searched refs:lockfile (Results 1 – 25 of 50) sorted by relevance

12

/external/ltp/testcases/kernel/fs/fs_bind/bin/
Dlockfile22 lockfile="/.nslock"
28 rm -f $lockfile
29 echo $$ >| ${lockfile}parent
32 otherpid="$(cat ${lockfile}child 2> /dev/null)"
42 rm -f $lockfile
43 echo $$ >| ${lockfile}child
46 otherpid="$(cat ${lockfile}parent 2> /dev/null)"
62 str=`cat $lockfile 2> /dev/null`
82 echo "$otherpid $ret" >| $lockfile
Dsetupnslock3 lockfile="/.nslock"
9 rm -f $lockfile
10 echo $$ >| ${lockfile}parent
13 otherpid="$(cat ${lockfile}child 2> /dev/null)"
23 rm -f $lockfile
24 echo $$ >| ${lockfile}child
27 otherpid="$(cat ${lockfile}parent 2> /dev/null)"
43 str=`cat $lockfile 2> /dev/null`
62 echo "$otherpid $ret" >| $lockfile
Dsetup40 lockfile="/.nslock"
44 rm -f $lockfile
45 echo $$ >| ${lockfile}parent
48 otherpid="$(cat ${lockfile}child 2> /dev/null)"
59 rm -f $lockfile
60 echo $$ >| ${lockfile}child
63 otherpid="$(cat ${lockfile}parent 2> /dev/null)"
75 pid=`cat $lockfile 2> /dev/null`
88 echo $otherpid > $lockfile
DMakefile29 INSTALL_TARGETS := check_prop lockfile makedir setup setupnslock
/external/python/cpython2/Demo/pdist/
Dcvslock.py116 self.lockfile = None
149 if self.lockfile:
150 print "unlink", self.lockfile
152 os.unlink(self.lockfile)
155 self.lockfile = None
194 self.lockfile = self.cvsrfl
195 fp = open(self.lockfile, 'w')
215 self.lockfile = self.cvswfl
216 fp = open(self.lockfile, 'w')
/external/selinux/mcstrans/src/
Dmcstrans.init23 lockfile=/var/lock/subsys/$prog
58 touch $lockfile
68 rm -f $lockfile
78 [ -e $lockfile ] && restart
/external/curl/tests/server/
Dutil.c279 FILE *lockfile; in set_advisor_read_lock() local
284 lockfile = fopen(filename, "wb"); in set_advisor_read_lock()
285 } while((lockfile == NULL) && ((error = errno) == EINTR)); in set_advisor_read_lock()
286 if(lockfile == NULL) { in set_advisor_read_lock()
293 res = fclose(lockfile); in set_advisor_read_lock()
/external/autotest/server/cros/
Dtradefed_utils.py15 from autotest_lib.server.cros import lockfile
24 filelock = lockfile.FileLock(filename)
36 except (lockfile.AlreadyLocked, lockfile.LockTimeout):
/external/autotest/server/site_tests/power_DeferForFlashrom/
Dcontrol12 This test verifies that flashrom creates a lockfile while performing
14 reboot requests while the lockfile exists.
/external/libunwind/aux/
Dltmain.sh490 lockfile="$output_obj.lock"
491 removelist="$removelist $output_obj $lockfile"
495 lockfile=
501 until $run ln "$0" "$lockfile" 2>/dev/null; do
502 $show "Waiting for $lockfile to be removed"
506 if test -f "$lockfile"; then
508 *** ERROR, $lockfile exists and contains:
509 `cat $lockfile 2>/dev/null`
521 echo $srcfile > "$lockfile"
579 test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
[all …]
/external/autotest/tko/
Dparse.py710 lockfile = open(os.path.join(path, ".parse.lock"), "w")
715 fcntl.flock(lockfile, flags)
719 lockfile.close()
728 fcntl.flock(lockfile, fcntl.LOCK_UN)
729 lockfile.close()
/external/tensorflow/tensorflow/core/kernels/data/
Dcache_dataset_ops.cc184 std::unique_ptr<WritableFile> lockfile; in EnsureLockFileExists() local
186 dataset()->env_->NewWritableFile(lockfile_, &lockfile)); in EnsureLockFileExists()
187 TF_RETURN_IF_ERROR(lockfile->Append( in EnsureLockFileExists()
/external/ltp/testcases/kernel/fs/fs_bind/
DTODO4 Factor out common bits of setup, setupnslock, and lockfile
/external/autotest/client/common_lib/
Dpackages.py402 lockfile = open(os.path.join(self.pkgmgr_dir, lockfile_name), 'w')
406 fcntl.flock(lockfile, fcntl.LOCK_EX)
437 fcntl.flock(lockfile, fcntl.LOCK_UN)
438 lockfile.close()
Dtest.py600 lockfile = open(os.path.join(self.job.tmpdir, '.testlock'), 'w')
602 fcntl.flock(lockfile, fcntl.LOCK_EX)
609 fcntl.flock(lockfile, fcntl.LOCK_UN)
610 lockfile.close()
/external/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c229 int lockfile = 0; /* if set, do file locking */ variable
595 lockfile++; in main()
596 if (lockfile > 2) in main()
597 lockfile = 2; /* lockfile can only be 1 or 2 */ in main()
1056 Progname, Pid, Maxerrs, pre_alloc_space, lockfile); in main()
2272 if (Debug > 0 && lockfile) { in growfile()
2661 lockfile, (long)Woffset, Grow_incr, in check_write()
2936 if (lockfile == lklevel) { in lkfile()
/external/protobuf/
Dltmain.sh2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]
/external/libnetfilter_conntrack/build-aux/
Dltmain.sh2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]
/external/libxkbcommon/xkbcommon/build-aux/
Dltmain.sh2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]
/external/vulkan-validation-layers/tests/gtest-1.7.0/build-aux/
Dltmain.sh2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]
/external/lmfit/build-aux/
Dltmain.sh2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]
/external/protobuf/gtest/build-aux/
Dltmain.sh2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]
/external/libexif/
Dltmain.sh2141 lockfile="$output_obj.lock"
2145 lockfile=
2151 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2152 func_echo "Waiting for $lockfile to be removed"
2156 if test -f "$lockfile"; then
2158 *** ERROR, $lockfile exists and contains:
2159 `cat $lockfile 2>/dev/null`
2172 $ECHO "$srcfile" > "$lockfile"
2176 func_append removelist " $lockfile"
2207 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]
/external/libnfnetlink/build-aux/
Dltmain.sh2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]
/external/libedit/
Dltmain.sh2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
[all …]

12