md.c
来自「kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的jav」· C语言 代码 · 共 33 行
C
33 行
/* * i386/univel_svr4/md.c * Unixware i386 specific functions. * * Copyright (c) 1996, 1997 * Transvirtual Technologies, Inc. All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file. */#include "config.h"#include "config-io.h"#include "config-mem.h"voidinit_md(void){#if defined(HAVE_MMAP) /* On NCR MP-RAS, address 0x0 to 0x1000 are mapped with PROT_READ so * NullPointerException are not handled correctly. * remap this range as PROT_NONE. * Edouard.Parmelan@France.NCR.COM */ { int fd; if ((fd = open("/dev/zero", O_RDONLY, 0)) != -1) { mmap(NULL, 0x1000, PROT_NONE, MAP_PRIVATE|MAP_FIXED, fd, 0); close(fd); } }#endif}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?