hp.com!davidm
6c61288b9c
(scan_dec): Don't skip over a character unless it's really a digit.
...
(scan_char): Don't skip over NUL terminator.
(Logical change 1.238)
2004-06-29 05:59:35 +00:00
mostang.com!davidm
2f210753bd
(maps_init): Correct initialization of mi->buf.
...
(maps_close): Don't forget to unmap mi->buf if it's non-NULL.
(Logical change 1.209)
2004-04-21 07:24:35 +00:00
mostang.com!davidm
5de4b351e7
(struct map_iterator): Add members "buf_size", "buf", and "buf_end".
...
(maps_init): Try to mmap() a one-page buffer and, if successful,
initialize the new map_iterator members based on it.
(maps_next): If the one-page buffer is available, use it to read
/proc/PID/maps. This avoids expensive lseek() calls which,
in the case of /proc lead to T(n) = O(n^2) behavior.
(Logical change 1.208)
2004-04-21 03:56:06 +00:00
mostang.com!davidm
64c702cea7
(ltoa): New inline function.
...
(skip_whitespace): Likewise.
(scan_hex): Likewise.
(scan_dec): Likewise.
(scan_char): Likewise.
(scan_string): Likewise.
(maps_init): Avoid stdio operations since they're not async-signal
safe.
(maps_next): Likewise.
(maps_close): Likewise.
(Logical change 1.199)
2004-03-31 07:38:06 +00:00
hp.com!davidm
cfded02a05
(maps_close): Do nothing if mi->fp is already NULL.
...
(Logical change 1.71)
2003-03-29 07:32:50 +00:00
mostang.com!davidm
824d6619b5
(Logical change 1.45)
2003-02-08 10:10:59 +00:00
mostang.com!davidm
5f94e2d488
Initial revision
2003-02-08 10:10:59 +00:00