rpm
5.4.15
|
#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include <rpmlog.h>
#include <rpmmacro.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include "rpmts.h"
#include "rpmlock.h"
#include "debug.h"
Go to the source code of this file.
Data Structures | |
struct | rpmlock |
Enumerations | |
enum | { RPMLOCK_READ = 1 << 0, RPMLOCK_WRITE = 1 << 1, RPMLOCK_WAIT = 1 << 2 } |
Functions | |
static int | rpmlock_new (const char *rootdir, rpmlock *lockp) |
static rpmlock | rpmlock_free (rpmlock lock) |
static int | rpmlock_acquire (rpmlock lock, int mode) |
static int | rpmlock_release (rpmlock lock) |
void * | rpmtsAcquireLock (rpmts ts) |
void * | rpmtsFreeLock (void *lock) |
Variables | |
static const char * | rpmlock_path_default = "%{?_rpmlock_path}" |
static const char * | rpmlock_path = NULL |
anonymous enum |
|
static |
Definition at line 100 of file rpmlock.c.
References cmd, rpmlock::fd, rpmlock::omode, RPMLOCK_READ, RPMLOCK_WAIT, and SEEK_SET.
Referenced by rpmtsAcquireLock().
Definition at line 88 of file rpmlock.c.
References _free(), and rpmlock::fd.
Referenced by rpmtsAcquireLock(), and rpmtsFreeLock().
|
static |
Definition at line 36 of file rpmlock.c.
References _free(), rpmlock::fd, rpmlock::omode, rpmExpand(), rpmGenPath(), rpmlock_path, rpmlock_path_default, RPMLOCK_READ, RPMLOCK_WRITE, and xmalloc.
Referenced by rpmtsAcquireLock().
|
static |
Definition at line 126 of file rpmlock.c.
References rpmlock::fd, and SEEK_SET.
Referenced by rpmtsFreeLock().
void* rpmtsAcquireLock | ( | rpmts | ts | ) |
Definition at line 144 of file rpmlock.c.
References _, errno, rpmlock::omode, rpmlock_acquire(), rpmlock_free(), rpmlock_new(), rpmlock_path, RPMLOCK_WAIT, RPMLOCK_WRITE, rpmlog(), RPMLOG_ERR, RPMLOG_WARNING, rpmtsChrootDone(), and rpmtsRootDir().
Referenced by _rpmtsRun(), and rpmtsRebuildDB().
void* rpmtsFreeLock | ( | void * | lock | ) |
Definition at line 177 of file rpmlock.c.
References rpmlock_free(), and rpmlock_release().
Referenced by _rpmtsRun(), and rpmtsRebuildDB().
|
static |
Definition at line 18 of file rpmlock.c.
Referenced by rpmlock_new(), and rpmtsAcquireLock().
|
static |
Definition at line 16 of file rpmlock.c.
Referenced by rpmlock_new().