mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
test/zdtm: rm get_smaps_bits proto from zdtmtst.h
The function is not included into the library, so having its prototype there was a shortcut. Move it to a separate include file. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
14a0111546
commit
1e1a85f1b8
@@ -141,5 +141,4 @@ extern int tcp_init_server(int family, int *port);
|
||||
extern int tcp_accept_server(int sock);
|
||||
extern int tcp_init_client(int family, char *servIP, unsigned short servPort);
|
||||
|
||||
extern int get_smaps_bits(unsigned long where, unsigned long *flags, unsigned long *madv);
|
||||
#endif /* _VIMITESU_H_ */
|
||||
|
6
test/zdtm/static/get_smaps_bits.h
Normal file
6
test/zdtm/static/get_smaps_bits.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef ZDTM_GET_SMAPS_BITS_H_
|
||||
#define ZDTM_GET_SMAPS_BITS_H_
|
||||
|
||||
extern int get_smaps_bits(unsigned long where, unsigned long *flags, unsigned long *madv);
|
||||
|
||||
#endif /* ZDTM_GET_SMAPS_BITS_H_ */
|
@@ -1,5 +1,6 @@
|
||||
#include <sys/mman.h>
|
||||
#include "zdtmtst.h"
|
||||
#include "get_smaps_bits.h"
|
||||
|
||||
#ifndef MADV_DONTDUMP
|
||||
#define MADV_DONTDUMP 16
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#include "zdtmtst.h"
|
||||
#include "get_smaps_bits.h"
|
||||
|
||||
#define MEM_SIZE (69632)
|
||||
|
||||
|
Reference in New Issue
Block a user