Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
488790b6
Commit
488790b6
authored
Mar 22, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: Remove dead code
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
d5f83530
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
util.h
include/util.h
+0
-4
util.c
util.c
+0
-20
No files found.
include/util.h
View file @
488790b6
...
...
@@ -131,8 +131,6 @@ static inline int read_img_buf(int fd, void *ptr, int size)
#define memzero_p(p) memset(p, 0, sizeof(*p))
#define memzero(p, size) memset(p, 0, size)
extern
void
pr_info_siginfo
(
const
siginfo_t
*
siginfo
);
struct
vma_area
;
struct
list_head
;
...
...
@@ -170,8 +168,6 @@ extern int reopen_fd_as_safe(int new_fd, int old_fd, bool allow_reuse_fd);
#define reopen_fd_as(new_fd, old_fd) reopen_fd_as_safe(new_fd, old_fd, false)
#define reopen_fd_as_nocheck(new_fd, old_fd) reopen_fd_as_safe(new_fd, old_fd, true)
extern
void
hex_dump
(
const
void
*
addr
,
unsigned
long
len
);
int
open_pid_proc
(
pid_t
pid
);
int
close_pid_proc
(
void
);
...
...
util.c
View file @
488790b6
...
...
@@ -37,26 +37,6 @@
#include "crtools.h"
void
hex_dump
(
const
void
*
addr
,
unsigned
long
len
)
{
const
unsigned
char
*
p
=
addr
;
unsigned
long
i
;
len
=
(
len
+
8
)
&
~
7
;
for
(
i
=
0
;
i
<
len
;
i
+=
8
)
{
pr_msg
(
"%p: %02x %02x %02x %02x %02x %02x %02x %02x
\n
"
,
&
p
[
i
],
p
[
i
+
0
],
p
[
i
+
1
],
p
[
i
+
2
],
p
[
i
+
3
],
p
[
i
+
4
],
p
[
i
+
5
],
p
[
i
+
6
],
p
[
i
+
7
]);
}
}
void
pr_info_siginfo
(
const
siginfo_t
*
siginfo
)
{
pr_info
(
"si_signo %d si_errno %d si_code %d
\n
"
,
siginfo
->
si_signo
,
siginfo
->
si_errno
,
siginfo
->
si_code
);
}
void
pr_vma
(
unsigned
int
loglevel
,
const
struct
vma_area
*
vma_area
)
{
if
(
!
vma_area
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment