[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xreadlink.c initial buffer size guesstimate
From: |
Liyang HU |
Subject: |
Re: xreadlink.c initial buffer size guesstimate |
Date: |
Tue, 16 Jan 2007 09:52:38 +0000 |
User-agent: |
Mutt/1.4.1i |
On Sat, Jan 13, 2007 at 05:57:24PM -0700, Eric Blake wrote:
> According to Liyang HU on 1/13/2007 4:48 PM:
> > If xreadlink() assumed POSIX, it would allocate a fixed buffer of 256 bytes.
> Wrong. POSIX guarantees that you will have AT LEAST 256, [...]
You are absolutely right.
> > I'm not even sure my toy FS violates POSIX. st_size contains the /on-disk/
> Your FS flat out violates this rule.
But life goes on.
later,
/Liyang
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.