| Summary: | /proc contains regular files of infinite length. | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Ross N. Williams <ross> |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | CC: | newton |
| Priority: | Normal | ||
| Version: | 3.3-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Ross N. Williams
2000-01-16 04:20:01 UTC
I belive we have reduced the size of files in /proc to be zero length in -current. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! At 9:30 AM +0100 16/1/2000, Poul-Henning Kamp wrote: >I belive we have reduced the size of files in /proc to be zero length >in -current. That's good, but how are they useful then? What's stopping you from eliminating them? /proc/fpregs seems to provide the floating point registers over and over when you read it. If it's zero length, how can the file be useful at all? From my unknowledgeable point of view, it just looks as if they should be left as they are, but reclassified as devices. Ross. Dr Ross N. Williams (ross@rocksoft.com), +61 8 8232-6262 (fax-6264). Director, Rocksoft Pty Ltd, Adelaide, Australia: http://www.rocksoft.com/ Protect your files with Veracity data integrity: http://www.veracity.com/ In message <v04220801b4a75ba05365@[203.16.208.220]>, "Ross N. Williams" writes: >At 9:30 AM +0100 16/1/2000, Poul-Henning Kamp wrote: >>I belive we have reduced the size of files in /proc to be zero length >>in -current. > >That's good, but how are they useful then? They still have their contents, but stat(2) will return zero if we can't predict the size without rendering the entire file. This at least kept dump(8) from complaining about them changing size. >What's stopping you from eliminating them? we need them :-) >/proc/fpregs seems to provide the floating point registers >over and over when you read it. That sounds like a geniune bug to me. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! Responsible Changed From-To: gnats-admin->freebsd-bugs Misfiled PR. State Changed From-To: open->closed I think we're done with this one. |