Hmmm ... glibc (which uses mmap(2) for stdio if requested) would benefit from
being able to mark the stdio buffer-in-use with *_DONTNEED using
madvise/posix_fadvise.
At a minimum, cvtfmode() in rpmio/rpmio.c would need to be extended to pass the
glibc-peculier 'm' flag through to fopen(3) .... ah "info libc" indicates
mmap(2) is permitted only for input files, never mind.
(aside)
Note that rpmio/rpmio.c cvtfmode() likely should be modified to pass all the
glibc-peculier flags through to fopen(3): 'c', 'e', 'm', 'x' (see "info libc"
and search for "open"). todo++ @rpm5.org
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/187#issuecomment-291782667
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint