[PATCH] uml: big memory fixes

A number of fixes to improve behavior when large physical memory sizes
are specified:

- libc files need -D_FILE_OFFSET_BITS=64 because there are unavoidable uses
  of non-64 interfaces in libc

- some %d need to be %u

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Jeff Dike
2005-11-07 00:58:57 -08:00
committed by Linus Torvalds
parent 858259cf7d
commit ae17381608
7 changed files with 14 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ int make_tempfile(const char *template, char **out_tempname, int do_unlink)
* This proc is used in start_up.c
* So it isn't 'static'.
*/
int create_tmp_file(unsigned long len)
int create_tmp_file(unsigned long long len)
{
int fd, err;
char zero;
@@ -121,7 +121,7 @@ int create_tmp_file(unsigned long len)
return(fd);
}
static int create_anon_file(unsigned long len)
static int create_anon_file(unsigned long long len)
{
void *addr;
int fd;
@@ -144,7 +144,7 @@ static int create_anon_file(unsigned long len)
extern int have_devanon;
int create_mem_file(unsigned long len)
int create_mem_file(unsigned long long len)
{
int err, fd;

View File

@@ -296,7 +296,7 @@ static void __init check_ptrace(void)
check_sysemu();
}
extern int create_tmp_file(unsigned long len);
extern int create_tmp_file(unsigned long long len);
static void check_tmpexec(void)
{