Remove unused sys_mctl

Starting with commit v4.6-240-g5afdf12, nobody compiles this
non-Linux code.

* mem.c [MC_SYNC]: Remove.
* xlat/mctl_funcs.in: Remove.
* xlat/mctl_lockas.in: Remove.
This commit is contained in:
Дмитрий Левин 2014-12-02 16:00:58 +00:00
parent 6355a1f867
commit 6b82ba5b7f
3 changed files with 0 additions and 49 deletions

42
mem.c
View File

@ -244,8 +244,6 @@ sys_mlockall(struct tcb *tcp)
return 0;
}
#ifdef MS_ASYNC
#include "xlat/mctl_sync.h"
int
@ -262,46 +260,6 @@ sys_msync(struct tcb *tcp)
return 0;
}
#endif /* MS_ASYNC */
#ifdef MC_SYNC
#include "xlat/mctl_funcs.h"
#include "xlat/mctl_lockas.h"
int
sys_mctl(struct tcb *tcp)
{
int arg, function;
if (entering(tcp)) {
/* addr */
tprintf("%#lx", tcp->u_arg[0]);
/* len */
tprintf(", %lu, ", tcp->u_arg[1]);
/* function */
function = tcp->u_arg[2];
printflags(mctl_funcs, function, "MC_???");
/* arg */
arg = tcp->u_arg[3];
tprints(", ");
switch (function) {
case MC_SYNC:
printflags(mctl_sync, arg, "MS_???");
break;
case MC_LOCKAS:
printflags(mctl_lockas, arg, "MCL_???");
break;
default:
tprintf("%#x", arg);
break;
}
}
return 0;
}
#endif /* MC_SYNC */
int
sys_mincore(struct tcb *tcp)
{

View File

@ -1,5 +0,0 @@
MC_LOCK
MC_LOCKAS
MC_SYNC
MC_UNLOCK
MC_UNLOCKAS

View File

@ -1,2 +0,0 @@
MCL_CURRENT
MCL_FUTURE