[PATCH] setbuf.3: stdio buffers are allocated by mmap() not malloc()

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

 



Hello,

This patch applies to man-pages 3.33.  setbuf.3 claims that stdio
buffers are allocated by malloc().  Strangely this is not the case;
they are allocated using mmap() by way of the macro ALLOC_BUF() in
glibc-2.13.90/libio/libioP.h:803.

Best,

John

---
--- a/man3/setbuf.3
+++ b/man3/setbuf.3
@@ -83,7 +83,7 @@ may be used to force the block out early.
 .BR fclose (3).)
 Normally all files are block buffered.
 When the first I/O operation occurs on a file,
-.BR malloc (3)
+.BR mmap (2)
 is called, and a buffer is obtained.
 If a stream refers to a terminal (as
 .I stdout
--
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