2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +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:
Kir Kolyshkin 2017-05-02 16:51:46 -07:00 committed by Andrei Vagin
parent 14a0111546
commit 1e1a85f1b8
4 changed files with 8 additions and 1 deletions

View File

@ -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_ */

View 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_ */

View File

@ -1,5 +1,6 @@
#include <sys/mman.h>
#include "zdtmtst.h"
#include "get_smaps_bits.h"
#ifndef MADV_DONTDUMP
#define MADV_DONTDUMP 16

View File

@ -2,6 +2,7 @@
#include <unistd.h>
#include <sys/mman.h>
#include "zdtmtst.h"
#include "get_smaps_bits.h"
#define MEM_SIZE (69632)