pike.git
/
src
/
program.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/program.c:1:
/* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: program.c,v 1.
570
2005/
06
/
09
09
:
26
:
09
grubba
Exp $
+
|| $Id: program.c,v 1.
571
2005/
11
/
01
21
:
53
:
00
jonasw
Exp $
*/ #include "global.h"
-
RCSID("$Id: program.c,v 1.
570
2005/
06
/
09
09
:
26
:
09
grubba
Exp $");
+
RCSID("$Id: program.c,v 1.
571
2005/
11
/
01
21
:
53
:
00
jonasw
Exp $");
#include "program.h" #include "object.h" #include "dynamic_buffer.h" #include "pike_types.h" #include "stralloc.h" #include "las.h" #include "language.h" #include "lex.h" #include "pike_macros.h" #include "fsort.h"
pike.git/src/program.c:8071:
void make_program_executable(struct program *p) { #ifdef _WIN32 DWORD old_prot; VirtualProtect((void *)p->program, p->num_program*sizeof(p->program[0]), PAGE_EXECUTE_READWRITE, &old_prot); #else /* _WIN32 */
+
#if !defined(HAVE_MMAP) || !defined(MEXEC_USES_MMAP)
mprotect((void *)p->program, p->num_program*sizeof(p->program[0]), PROT_EXEC | PROT_READ | PROT_WRITE);
-
+
#endif /* !HAVE_MMAP || !MEXEC_USES_MMAP */
#endif /* _WIN32 */ #ifdef FLUSH_INSTRUCTION_CACHE FLUSH_INSTRUCTION_CACHE(p->program, p->num_program*sizeof(p->program[0])); #endif /* FLUSH_INSTRUCTION_CACHE */ } #endif