RE: large file support

Andreas Tobler (Fabian.Frederick@prov-liege.be)
Tue, 26 Oct 1999 15:57:30 +0200


> More comments on the patch, now regarding this part:
>
> +struct mmap_arg_struct64 {
> + unsigned long addr;
> + unsigned long len;
> + unsigned long prot;
> + unsigned long flags;
> + unsigned long fd;
> + unsigned long long offset; /* 64 bits */
> +};
>
> I suppose this is because the common PC has too few registers
> for the new mmap() system call.
I'd consider that as a possible alternative for structure
expanding ... btw do you think stack _only_ access to be great
benefit against large file support ?

> If prot & flags shared a register, there would be space freed up
> for the 64-bit offset. Alternately, you could have libc do the
> alignment check and shift the offset right to make it fit into
> one register.
Using some compiler directive you mean here ?

Take care,
Fabian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/