+// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2004-2005 Silicon Graphics, Inc.
* All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "command.h"
"\n"));
}
-int
+static int
msync_f(
int argc,
char **argv)
"\n"));
}
-int
+static int
mread_f(
int argc,
char **argv)
if (alloc_buffer(pagesize, 0, 0) < 0)
return 0;
- bp = (char *)buffer;
+ bp = (char *)io_buffer;
dumplen = length % pagesize;
if (!dumplen)
dump_buffer(printoffset, dumplen);
printoffset += dumplen;
}
- bp = (char *)buffer;
+ bp = (char *)io_buffer;
dumplen = pagesize;
cnt = 0;
} else {
if (dump)
dump_buffer(printoffset + tmp -
(dumplen - 1), dumplen);
- bp = (char *)buffer;
+ bp = (char *)io_buffer;
dumplen = pagesize;
cnt = 0;
} else {
return 0;
}
-int
+static int
munmap_f(
int argc,
char **argv)
"\n"));
}
-int
+static int
mwrite_f(
int argc,
char **argv)
"\n"));
}
-int
+static int
mremap_f(
int argc,
char **argv)