From: "Марк Коренберг" <socketpair-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Petr Baudis <pasky-+ZI9xUNit7I@public.gmane.org>
Subject: Re: [patch] mmap2.2: add definition of mmap64
Date: Sun, 15 Nov 2009 19:27:09 +0500 [thread overview]
Message-ID: <b8f627e0911150627v170ba31emb47d43fd4f05e6f1@mail.gmail.com> (raw)
In-Reply-To: <20091114192902.GU3708-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
2009/11/15 Petr Baudis <pasky-+ZI9xUNit7I@public.gmane.org>:
> On Sat, Nov 14, 2009 at 09:38:00PM +0500, Марк Коренберг wrote:
>> mmap64 in ubuntu is symlink to mmap2, but no actual definition of
>> mmap64 in man page (!).
>
>> --- mmap2.2.was 2008-12-06 08:55:24.000000000 +0500
>> +++ mmap2.2 2009-11-11 12:27:26.000000000 +0500
>> @@ -33,8 +33,12 @@
>> .nf
>> .B #include <sys/mman.h>
>> .sp
>> +.B /* Linux syscall */
>> .BI "void *mmap2(void *" addr ", size_t " length ", int " prot ,
>> .BI " int " flags ", int " fd ", off_t " pgoffset );
>> +.sp
>> +.BI "void *mmap64(void *" addr ", size_t " length ", int " prot ,
>> +.BI " int " flags ", int " fd ", off64_t " byteoffset );
>> .fi
>> .SH DESCRIPTION
>> The
>
> Then there should be also some word in the manpage about what mmap64()
> actually is?
>
> --
> Petr "Pasky" Baudis
> A lot of people have my books on their bookshelves.
> That's the problem, they need to read them. -- Don Knuth
>
Reading 'man mmap2' is what I want. I understood all I need. I can't
build correct (in English) sentences, describing mmap64, but I want
this be specified:
1. mmap2 now can use offsets with 32+12=44 bits long, and not 64 ! if
bigger offset specified, results are undefined.
2. file 'fd' should be opened with O_LARGEFILE for offsets bigger than 4GB? 2GB?
3. mmap64 is libc wrapper around mmap2 syscall.
4. Dont't know, but special #define should be used in order to use
64-bit-offset functions.
--
Segmentation fault
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2009-11-15 14:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b8f627e0911102333x2cd4454ew33443b4c62e7d44d@mail.gmail.com>
[not found] ` <b8f627e0911102333x2cd4454ew33443b4c62e7d44d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-14 16:38 ` [patch] mmap2.2: add definition of mmap64 Марк Коренберг
[not found] ` <20091114192902.GU3708@machine.or.cz>
[not found] ` <20091114192902.GU3708-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
2009-11-15 14:27 ` Марк Коренберг [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b8f627e0911150627v170ba31emb47d43fd4f05e6f1@mail.gmail.com \
--to=socketpair-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pasky-+ZI9xUNit7I@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).