summaryrefslogtreecommitdiff
blob: e299870c40e7e2f5c97f31ef659e5ece7593f3ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- xfsprogs-orig/io/mmap.c	Fri Apr 30 20:34:08 2004
+++ xfsprogs-2.6.13/io/mmap.c	Sat Sep 11 15:34:43 2004
@@ -44,7 +44,9 @@
 static cmdinfo_t munmap_cmd;
 static cmdinfo_t mwrite_cmd;
 static cmdinfo_t madvise_cmd;
+#ifndef __UCLIBC__
 static cmdinfo_t mincore_cmd;
+#endif
 
 mmap_region_t	*maptable;
 int		mapcount;
@@ -679,6 +681,7 @@
 	return 0;
 }
 
+#ifndef __UCLIBC__
 int
 mincore_f(
 	int		argc,
@@ -757,6 +760,7 @@
 	free(vec);
 	return 0;
 }
+#endif
 
 void
 mmap_init(void)
@@ -822,6 +826,7 @@
 	madvise_cmd.oneline = _("give advice about use of memory");
 	madvise_cmd.help = madvise_help;
 
+#ifndef __UCLIBC__
 	mincore_cmd.name = _("mincore");
 	mincore_cmd.altname = _("mi");
 	mincore_cmd.cfunc = mincore_f;
@@ -830,6 +835,7 @@
 	mincore_cmd.flags = CMD_NOFILE_OK | CMD_FOREIGN_OK;
 	mincore_cmd.args = _("[off len]");
 	mincore_cmd.oneline = _("find mapping pages that are memory resident");
+#endif
 
 	add_command(&mmap_cmd);
 	add_command(&mread_cmd);
@@ -837,5 +843,7 @@
 	add_command(&munmap_cmd);
 	add_command(&mwrite_cmd);
 	add_command(&madvise_cmd);
+#ifndef __UCLIBC__
 	add_command(&mincore_cmd);
+#endif
 }