rpm
5.4.14
|
#include "system.h"
#include <rpmversion.h>
#include <rpmiotypes.h>
#include <rpmlog.h>
#include <rpmurl.h>
#include <rpmmacro.h>
#include <rpmtypes.h>
#include "misc.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
rpmRC | rpmMkdirPath (const char *dpath, const char *dname) |
Create directory if it does not exist, and make sure path is writable. More... | |
int | doputenv (const char *str) |
Like the libc function, but malloc()'s the space needed. More... | |
int | dosetenv (const char *name, const char *value, int overwrite) |
Like the libc function, but malloc()'s the space needed. More... | |
char * | currentDirectory (void) |
Return (malloc'd) current working directory. More... | |
Variables | |
const char * | RPMVERSION = VERSION |
char* currentDirectory | ( | void | ) |
Return (malloc'd) current working directory.
Definition at line 72 of file misc.c.
References errno, memset(), NULL, and xrealloc.
Referenced by rpmQueryVerify(), and rpmtsSetup().
int doputenv | ( | const char * | str | ) |
Like the libc function, but malloc()'s the space needed.
str | "name=value" string |
Definition at line 50 of file misc.c.
References xmalloc.
Referenced by runScript().
rpmRC rpmMkdirPath | ( | const char * | dpath, |
const char * | dname | ||
) |
Create directory if it does not exist, and make sure path is writable.
dpath | directory path |
dname | directory use string |
Definition at line 19 of file misc.c.
References _, errno, Mkdir(), NULL, rc, rpmlog(), RPMLOG_ERR, RPMRC_FAIL, RPMRC_OK, Stat(), URL_IS_DASH, URL_IS_FTP, URL_IS_HKP, URL_IS_HTTP, URL_IS_HTTPS, URL_IS_MONGO, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().
Referenced by createDir(), main(), prepFetch(), and rpmpsmStage().
const char* RPMVERSION = VERSION |
Definition at line 17 of file misc.c.
Referenced by rpmcliImportPubkey().