On Tue, May 22, 2007 at 10:50:54PM +0200, Bernhard Fischer wrote: >Hi, > >Currently, we do Input and Output with FILE*. > >I'm attaching an RFC to add mmap I/O along file descriptor based >I/O (not FILE*, but int FD). > >This incarnation lacks an impl for FD based I/O of rrd_open(), so only >the mmap-case will work for now. I was planning to fix this shortcoming >ASAP. >
updated patch attached. Just configury changes since the last patch: - move config dependent includes from src/rrd_tool.h to rrd_config.h - improve config check for isfinite/finite to take broken isfinite impls into account; Prefer the C99 isfinite over the BSD finite. - improve config check for --enable-mmap; bail if it was requested but mmap is unavailable; improve checks for madvise to take unavailable madvise into account and to use posix_madvise in this case - -std=gnu99 is a little bit dangerous since it potentially allows for code that is not strictly C99 compatible. Currently no such code exists in rrdtool, but better use -std=c99 to prevent changes that violate C99. I still see implicit decls of chroot and (from rrd_graph.c) implicit decls of localtime_r and tzset, fwiw.
rrdtool-1.2.23-svn-mmap.20070523-1820.diff.bz2
Description: Binary data
_______________________________________________ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers