This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jepler
Recipients
Date 2005-04-07.14:33:19
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=2772

To my surprise, the st_size field *is* undefined for
devices, according to
http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html
My Linux consistently gives 0 for device nodes, but I guess
Unix might not.

jafo, loweis: read() from /dev/zero is special cased in
linux.  In 2.4.20-8, function read_zero_pagealined, a
comment says "for private mappings, just map in zero pages",
which will be very fast and not actually write any memory or
blocks of swap.
History
Date User Action Args
2008-01-20 09:57:43adminlinkissue1174606 messages
2008-01-20 09:57:43admincreate