2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-02 23:35:21 +00:00

prctl: Update PR_GET_TID_ADDR definition

To reflect the change in kernel v3.4-rc4
update PR_GET_TID_ADDR and rename it to
PR_GET_TID_ADDRESS as it named in kernel.

[xemul: this fixes futex test broken with 3.4 rebase]

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-04-25 21:59:00 +04:00
committed by Pavel Emelyanov
parent 9a2d2a6990
commit 6670d294fb
3 changed files with 4 additions and 4 deletions

View File

@@ -84,9 +84,9 @@ static int check_prctl(void)
unsigned int *tid_addr; unsigned int *tid_addr;
int ret; int ret;
ret = sys_prctl(PR_GET_TID_ADDR, (unsigned long)&tid_addr, 0, 0, 0); ret = sys_prctl(PR_GET_TID_ADDRESS, (unsigned long)&tid_addr, 0, 0, 0);
if (ret) { if (ret) {
pr_msg("prctl: PR_GET_TID_ADDR is not supported\n"); pr_msg("prctl: PR_GET_TID_ADDRESS is not supported\n");
return -1; return -1;
} }

View File

@@ -41,7 +41,7 @@
# define PR_SET_MM_AUXV 12 # define PR_SET_MM_AUXV 12
# define PR_SET_MM_EXE_FILE 13 # define PR_SET_MM_EXE_FILE 13
#define PR_GET_TID_ADDR 36 #define PR_GET_TID_ADDRESS 40
/* fcntl */ /* fcntl */
#ifndef F_LINUX_SPECIFIC_BASE #ifndef F_LINUX_SPECIFIC_BASE

View File

@@ -358,7 +358,7 @@ static int dump_tid_addr(struct parasite_dump_tid_addr *args)
parasite_status_t *st = &args->status; parasite_status_t *st = &args->status;
int ret; int ret;
ret = sys_prctl(PR_GET_TID_ADDR, (unsigned long) &args->tid_addr, 0, 0, 0); ret = sys_prctl(PR_GET_TID_ADDRESS, (unsigned long) &args->tid_addr, 0, 0, 0);
if (ret) { if (ret) {
SET_PARASITE_RET(st, ret); SET_PARASITE_RET(st, ret);
return ret; return ret;