[Bug 42892] New: Man page bug for mmap2(2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=42892

           Summary: Man page bug for mmap2(2)
           Product: Documentation
           Version: unspecified
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: man-pages
        AssignedTo: documentation_man-pages@xxxxxxxxxxxxxxxxxxxx
        ReportedBy: kevinogorman4@xxxxxxxxx
        Regression: No


Created an attachment (id=72559)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=72559)
Program to discover partitions that got lost.

Using the mmap2(2) man page to write code results in an error, possibly because
of missing includes.  In any event, no definition of mmap2 is seen when I use 
gcc -E.  The result is compilation without a prototype.

It happens that compilation succeeds, but linking fails for lack of a library
containing mmap2.

This is Ubuntu 11.04, kernel 2.6.38, and man page dated 2008-04-22, from
release 3.27 of the man-pages project.

Source code is attached.  It's a single source file, intended to be a program
to discover partitions that got lost.  It is incomplete and may be buggy, but I
cannot debug this version until mmap2 works for me.

It looks to me as if there needs to be two things added to the synopsis:
  a cc line showing a non glibc library.
  a #include line showing an additional header.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux