Skip to contentSkip to conversation

mmap2.2: add definition of mmap64

PATCH In review Марк Коренберг 1 participant 2 messages Nov 14, 2009 – Nov 15, 2009 4 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): b8f627e0911102333x2cd4454ew33443b4c62e7d44d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#2 lore raw

PATCH 1/1 mmap2.2: add definition of mmap64

mmap64 in ubuntu is symlink to mmap2, but no actual definition of mmap64 in man page (!).

mmap2.2 renamed from mmap2.2.was +4 -0
@@ -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

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

2009/11/15 Petr Baudis <[email protected]>:

Quoted 23 lines · Марк Коренберг
Quoted 10 lines

mmap64 in ubuntu is symlink to mmap2, but no actual definition of mmap64 in man page (!).

mmap2.2   2009-11-11 12:27:26.000000000 +0500 renamed from mmap2.2.was       2008-12-06 08:55:24.000000000 +0500 +0 -0
@@ -33,8 +33,12 @@

 .nf
 .B #include <sys/mman.h>
 .sp
+.B /* Linux syscall */

Quoted 8 lines

 .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?

Quoted 5 lines

--
                               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.

Signature · 5 lines
Segmentation fault
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html