#include <stdbool.h>
#include "util.h"
#include "strbuf.h"
#include "../perf.h"
Go to the source code of this file.
|
int | perf_default_config (const char *, const char *, void *) |
|
int | perf_config (config_fn_t fn, void *) |
|
int | perf_config_int (const char *, const char *) |
|
int | perf_config_bool (const char *, const char *) |
|
int | config_error_nonbool (const char *) |
|
const char * | perf_config_dirname (const char *, const char *) |
|
void | setup_pager (void) |
|
int | pager_in_use (void) |
|
char * | alias_lookup (const char *alias) |
|
int | split_cmdline (char *cmdline, const char ***argv) |
|
const char * | make_nonrelative_path (const char *path) |
|
char * | strip_path_suffix (const char *path, const char *suffix) |
|
char * | mkpath (const char *fmt,...) __attribute__((format(printf |
|
char char * | perf_path (const char *fmt,...) __attribute__((format(printf |
|
char char char * | perf_pathdup (const char *fmt,...) __attribute__((format(printf |
|
char char char size_t | strlcpy (char *dest, const char *src, size_t size) |
|
#define ALLOC_GROW |
( |
|
x, |
|
|
|
nr, |
|
|
|
alloc |
|
) |
| |
Value:do { \
else \
} \
} while(0)
Definition at line 84 of file cache.h.
#define alloc_nr |
( |
|
x | ) |
(((x)+16)*3/2) |
#define CMD_DEBUGFS_DIR "--debugfs-dir=" |
#define CMD_EXEC_PATH "--exec-path" |
#define CMD_PERF_DIR "--perf-dir=" |
#define CMD_WORK_TREE "--work-tree=" |
#define DEFAULT_PERF_DIR_ENVIRONMENT ".perf" |
#define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH" |
#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR" |
#define PERF_DIR_ENVIRONMENT "PERF_DIR" |
#define PERF_WORK_TREE_ENVIRONMENT "PERF_WORK_TREE" |
strlcpy - Copy a NUL terminated string into a sized buffer : Where to copy the string to : Where to copy the string from : size of destination buffer
Compatible with *BSD: the result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result like strncpy() does.
Definition at line 94 of file string.c.