Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
steam-runtime-tools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
steamrt
steam-runtime-tools
Commits
e0cb1f8e
Commit
e0cb1f8e
authored
4 years ago
by
Simon McVittie
Browse files
Options
Downloads
Patches
Plain Diff
utils: Move strstarts() here
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
d5689b1d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!311
Build capsule-capture-libs from a bundled copy of libcapsule
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/capture-libs.c
+0
-3
0 additions, 3 deletions
utils/capture-libs.c
utils/utils.h
+3
-0
3 additions, 0 deletions
utils/utils.h
with
3 additions
and
3 deletions
utils/capture-libs.c
+
0
−
3
View file @
e0cb1f8e
...
@@ -137,9 +137,6 @@ static struct option long_options[] =
...
@@ -137,9 +137,6 @@ static struct option long_options[] =
static
int
dest_fd
=
-
1
;
static
int
dest_fd
=
-
1
;
#define strstarts(str, start) \
(strncmp( str, start, strlen( start ) ) == 0)
static
bool
resolve_ld_so
(
const
char
*
prefix
,
static
bool
resolve_ld_so
(
const
char
*
prefix
,
char
path
[
PATH_MAX
],
char
path
[
PATH_MAX
],
const
char
**
within_prefix
,
const
char
**
within_prefix
,
...
...
This diff is collapsed.
Click to expand it.
utils/utils.h
+
3
−
0
View file @
e0cb1f8e
...
@@ -81,6 +81,9 @@ void ptr_list_push_addr (ptr_list *list, ElfW(Addr) addr);
...
@@ -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_contains
(
ptr_list
*
list
,
ElfW
(
Addr
)
addr
);
int
ptr_list_add_ptr
(
ptr_list
*
list
,
void
*
ptr
,
ptrcmp
equals
);
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
);
char
*
safe_strncpy
(
char
*
dest
,
const
char
*
src
,
size_t
n
);
int
resolve_link
(
const
char
*
prefix
,
char
path
[
PATH_MAX
]);
int
resolve_link
(
const
char
*
prefix
,
char
path
[
PATH_MAX
]);
int
soname_matches_path
(
const
char
*
soname
,
const
char
*
path
);
int
soname_matches_path
(
const
char
*
soname
,
const
char
*
path
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment