[lkml]   [2003]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[TRIVIAL][2.6] Documentation/vm/hugetlbfs.txt
Hi Rusty,

here's a patch to change the hugetlbfs examples actually being possible to
compile. errno is being used while it's not included.


diff -u linux-2.6.0-test2/Documentation/vm/hugetlbpage.txt linux-2.6.0-test2-mm4/Documentation/vm/hugetlbpage.txt
--- linux-2.6.0-test2/Documentation/vm/hugetlbpage.txt 2003-07-27 18:57:41.000000000 +0200
+++ linux-2.6.0-test2-mm4/Documentation/vm/hugetlbpage.txt 2003-08-05 23:01:19.180391896 +0200
@@ -107,6 +107,7 @@
#include <sys/shm.h>
#include <sys/types.h>
#include <sys/mman.h>
+#include <errno.h>

extern int errno;
#define SHM_HUGETLB 04000
@@ -167,6 +168,7 @@
#include <stdio.h>
#include <sys/mman.h>
#include <fcntl.h>
+#include <errno.h>

#define FILE_NAME "/mnt/hugepagefile"
#define LENGTH (256*1024*1024)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:47    [W:0.031 / U:2.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site