Commit e0cb1f8e authored by Simon McVittie's avatar Simon McVittie
Browse files

utils: Move strstarts() here

Signed-off-by: Simon McVittie's avatarSimon McVittie <>
parent d5689b1d
......@@ -137,9 +137,6 @@ static struct option long_options[] =
static int dest_fd = -1;
#define strstarts(str, start) \
(strncmp( str, start, strlen( start ) ) == 0)
static bool resolve_ld_so ( const char *prefix,
char path[PATH_MAX],
const char **within_prefix,
......@@ -81,6 +81,9 @@ void ptr_list_push_addr (ptr_list *list, ElfW(Addr) addr);
int ptr_list_contains (ptr_list *list, ElfW(Addr) addr);
int ptr_list_add_ptr (ptr_list *list, void *ptr, ptrcmp equals);
#define strstarts(str, start) \
(strncmp( str, start, strlen( start ) ) == 0)
char *safe_strncpy (char *dest, const char *src, size_t n);
int resolve_link (const char *prefix, char path[PATH_MAX]);
int soname_matches_path (const char *soname, const char *path);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment