dpkg 1.21.11
|
#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <dpkg/dpkg.h>
#include <dpkg/i18n.h>
#include <dpkg/pager.h>
#include <dpkg/fdio.h>
#include <dpkg/buffer.h>
#include <dpkg/file.h>
Functions | |
bool | file_is_exec (const char *filename) |
Check whether a filename is executable. More... | |
void | file_copy_perms (const char *src, const char *dst) |
Copy file ownership and permissions from one file to another. More... | |
int | file_slurp (const char *filename, struct varbuf *vb, struct dpkg_error *err) |
void | file_unlock (int lockfd, const char *lockfile, const char *lockdesc) |
Unlock a previously locked file. More... | |
bool | file_is_locked (int lockfd, const char *filename) |
Check if a file has a lock acquired. More... | |
void | file_lock (int *lockfd, enum file_lock_flags flags, const char *filename, const char *desc) |
Lock a file. More... | |
void | file_show (const char *filename) |