| /openbmc/openbmc/poky/scripts/ |
| H A D | bblock | 71 def bblockDump(lockfile): argument 73 with open(lockfile, "r") as lockfile: 74 for line in lockfile: 81 def bblockReset(lockfile, pns, package_archs, tasks): argument 85 os.remove(lockfile) 90 tmp_lockfile = lockfile + ".tmp" 91 with open(lockfile, "r") as infile, open(tmp_lockfile, "w") as outfile: 101 os.remove(lockfile) 102 os.rename(tmp_lockfile, lockfile) 136 lockfile = "{builddir}/conf/bblock.conf".format(builddir=builddir) [all …]
|
| H A D | runqemu | 262 lockfile = os.path.join(lockdir, str(port) + '.lock') 263 if self.acquire_portlock(lockfile): 267 self.release_portlock(lockfile) 275 def acquire_portlock(self, lockfile): argument 276 logger.debug("Acquiring lockfile %s..." % lockfile) 278 portlock_descriptor = open(lockfile, 'w') 279 self.portlocks.update({lockfile: portlock_descriptor}) 280 fcntl.flock(self.portlocks[lockfile], fcntl.LOCK_EX|fcntl.LOCK_NB) 282 msg = "Acquiring lockfile %s failed: %s" % (lockfile, e) 284 if lockfile in self.portlocks.keys() and self.portlocks[lockfile]: [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/liblockfile/liblockfile/ |
| H A D | 0001-Makefile.in-redefine-LOCKPROG.patch | 33 lockfile.o: lockfile.c 36 -DSTATIC -c lockfile.c 38 solockfile.o: lockfile.c 41 -c lockfile.c -o solockfile.o 43 dlockfile.o: lockfile.c 46 -c lockfile.c -o dlockfile.o
|
| H A D | configure.patch | 18 -AC_INIT(lockfile.c) 20 +AC_CONFIG_SRCDIR([lockfile.c])
|
| H A D | 0001-Makefile.in-add-DESTDIR.patch | 18 | install -m 644 lockfile.h maillock.h /usr/include 19 | install: cannot create regular file '/usr/include/lockfile.h': Permission denied
|
| H A D | 0001-Makefile.in-fix-install-failure-on-host-without-ldco.patch | 11 install -m 644 lockfile.h maillock.h /mnt/tmp-glibc/work/core2-64-wrs-linux/liblockfile/1.14-r0/ima…
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/openct/openct/ |
| H A D | openct.init | 31 lockfile=/var/lock/subsys/$prog 39 [ $retval -eq 0 ] && touch $lockfile 52 rm -f $lockfile 84 [ ! -f $lockfile ] || restart
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/postgresql/files/ |
| H A D | postgresql.init | 53 lockfile="/var/lock/subsys/${NAME}" 118 touch "$lockfile" 130 if [ -e "$lockfile" ] 138 rm -f "$lockfile" 156 [ -e "$lockfile" ] && restart || :
|
| /openbmc/openbmc/meta-security/dynamic-layers/meta-python/recipes-security/fail2ban/files/ |
| H A D | initd | 30 lockfile=${LOCKFILE-/var/lock/subsys/fail2ban} 41 touch ${lockfile} 55 rm -f ${lockfile} ${pidfile}
|
| /openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
| H A D | bblock.py | 22 cls.lockfile = cls.builddir + "/conf/bblock.conf" 34 contents = ftools.read_file(self.lockfile) 46 self.assertExists(self.lockfile) 48 self.assertNotExists(self.lockfile) 57 self.assertExists(self.lockfile) 60 contents = ftools.read_file(self.lockfile)
|
| /openbmc/openbmc/meta-arm/documentation/ |
| H A D | continuous-integration-and-kas.md | 43 The lockfile.yml can be downloaded manually, but there's a script in meta-arm to fetch the lock fil… 46 $ ./ci/download-lockfile.py --help 47 usage: download-lockfile.py [-h] server project refspec 54 $ ./ci/download-lockfile.py https://gitlab.com/jonmason00/meta-arm master 55 Fetched lockfile.yml 56 Commit this lockfile.yml to the top-level of the meta-arm repository and the CI will use it automat…
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/lockfile-progs/ |
| H A D | lockfile-progs_0.1.19.bb | 3 lockfile-progs provide a method to lock and unlock mailboxes and files \ 5 HOMEPAGE = "http://packages.qa.debian.org/l/lockfile-progs.html"
|
| /openbmc/openbmc/poky/scripts/esdk-tools/ |
| H A D | runqemu | 230 logger.debug("Acquiring lockfile %s..." % self.taplock) 235 msg = "Acquiring lockfile %s failed: %s" % (self.taplock, e) 248 logger.debug("Releasing lockfile for tap device '%s'" % self.tap) 262 lockfile = os.path.join(lockdir, str(port) + '.lock') 263 if self.acquire_portlock(lockfile): 267 self.release_portlock(lockfile) 275 def acquire_portlock(self, lockfile): argument 276 logger.debug("Acquiring lockfile %s..." % lockfile) 278 portlock_descriptor = open(lockfile, ' 290 release_portlock(self, lockfile=None) global() argument [all...] |
| /openbmc/openbmc/poky/bitbake/lib/bb/ |
| H A D | main.py | 457 topdir, lock, lockfile = lockBitbake() 474 procs = bb.server.process.get_lockfile_process_msg(lockfile) 532 lockfile = topdir + "/bitbake.lock" 533 return topdir, bb.utils.lockfile(lockfile, False, False), lockfile
|
| H A D | cache.py | 829 glf = bb.utils.lockfile(self.cachefile + ".lock") 868 glf = bb.utils.lockfile(self.cachefile + ".lock", shared=True) 873 lf = bb.utils.lockfile(self.cachefile + ".lock." + str(i), retry=False) 898 glf = bb.utils.lockfile(self.cachefile + ".lock") 953 glf = bb.utils.lockfile(self.cachefile + ".lock") 974 glf = bb.utils.lockfile(self.cachefile + ".lock") 986 glf = bb.utils.lockfile(self.cachefile + ".lock")
|
| /openbmc/openbmc/poky/meta/classes/ |
| H A D | report-error.bbclass | 76 lock = bb.utils.lockfile(datafile + '.lock') 109 lock = bb.utils.lockfile(datafile + '.lock') 127 lock = bb.utils.lockfile(datafile + '.lock') 142 lock = bb.utils.lockfile(datafile + '.lock') 147 lock = bb.utils.lockfile(datafile + '.lock')
|
| /openbmc/openbmc/poky/meta/classes-recipe/ |
| H A D | cargo_common.bbclass | 174 lockfile = d.getVar("CARGO_LOCK_PATH") 175 if not os.path.exists(lockfile): 176 bb.fatal(f"{lockfile} file doesn't exist") 187 lockfile_orig = lockfile + ".orig" 189 shutil.copy(lockfile, lockfile_orig) 197 with open(lockfile, "w") as f:
|
| /openbmc/openbmc/poky/bitbake/lib/bb/server/ |
| H A D | process.py | 53 def get_lockfile_process_msg(lockfile): argument 57 procs = subprocess.check_output(["lsof", '-w', lockfile], stderr=subprocess.STDOUT) 67 procs = subprocess.check_output(["fuser", '-v', lockfile], stderr=subprocess.STDOUT) 376 lockfile = self.bitbake_lock_name 378 def get_lock_contents(lockfile): argument 380 with open(lockfile, "r") as f: 391 if not os.path.exists(os.path.basename(lockfile)): 396 lock = bb.utils.lockfile(lockfile, shared=False, retry=False, block=False) 398 newlockcontents = get_lock_contents(lockfile) 413 procs = get_lockfile_process_msg(lockfile)
|
| /openbmc/openbmc/poky/bitbake/lib/bb/fetch2/ |
| H A D | __init__.py | 1070 if ud.lockfile and ud.lockfile != origud.lockfile: 1071 lf = bb.utils.lockfile(ud.lockfile) 1154 if ud.lockfile and ud.lockfile != origud.lockfile: 1302 self.lockfile = None 1386 self.lockfile = basepath + '.lock' 1867 if ud.lockfile: 1868 lf = bb.utils.lockfile(ud.lockfile) 1955 if ud.lockfile: 2006 if ud.lockfile: 2007 lf = bb.utils.lockfile(ud.lockfile) [all …]
|
| H A D | npmsw.py | 33 from bb.utils import lockfile 214 lf = lockfile(proxy_ud.lockfile)
|
| /openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/ |
| H A D | python3-daemon_3.1.2.bb | 7 python3-lockfile (>= 0.10) \
|
| H A D | python3-cachecontrol_0.14.3.bb | 14 python3-lockfile \
|
| H A D | python3-lockfile_0.12.2.bb | 5 HOMEPAGE = "https://pypi.org/project/lockfile/"
|
| /openbmc/openbmc/meta-openembedded/meta-oe/classes/ |
| H A D | scancode.bbclass | 13 lf = bb.utils.lockfile(d.getVar('SCANCODE_SRC_LOCATION') + ".lock")
|
| /openbmc/openbmc/poky/meta/lib/oe/ |
| H A D | npm_registry.py | 119 self.__lockf = bb.utils.lockfile(self.__base + ".lock")
|