| To: | David Stevens <dlstevens@xxxxxxxxxx> |
|---|---|
| Subject: | Re: Wrong UIDs reported in /proc/net/tcp |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Fri, 19 Nov 2004 10:40:58 +1100 |
| Cc: | "Chad N. Tindel" <chad@xxxxxxxxxx>, linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, netdev-bounce@xxxxxxxxxxx, Stephen Hemminger <shemminger@xxxxxxxx> |
| In-reply-to: | <OFE512064F.DBA4A3CD-ON88256F50.007A2A62-88256F50.007A5E0F@xxxxxxxxxx> |
| References: | <20041118220719.GA9890@xxxxxxxxxxxxxxxxxxx> <OFE512064F.DBA4A3CD-ON88256F50.007A2A62-88256F50.007A5E0F@xxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6+20040722i |
On Thu, Nov 18, 2004 at 02:16:33PM -0800, David Stevens wrote: > > Assuming so, another solution would be to stat/fstat the file, add some to > it to account > for growth, allocate a buffer that big and read the whole thing in one > shot. Then the > results should be self-consistent. You can read at most one page at a time for a /proc file. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt |
| Previous by Date: | Re: [PATCH] MII bus API for PHY devices, Benjamin Herrenschmidt |
|---|---|
| Next by Date: | Re: Wrong UIDs reported in /proc/net/tcp, Chad N. Tindel |
| Previous by Thread: | Re: Wrong UIDs reported in /proc/net/tcp, David Stevens |
| Next by Thread: | Re: Wrong UIDs reported in /proc/net/tcp, Chad N. Tindel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |