Subject: Re: suggested alteration to kvm_open() and kvm_openfiles()
To: Andrew Brown <email@example.com>
From: Jaromir Dolecek <firstname.lastname@example.org>
Date: 09/14/2002 23:59:48
Yes, sounds fine. Might want to prepend '/' to machdep.booted kernel
to avoid false matches, tho.
Andrew Brown wrote:
> currently, with these two libkvm functions:
> kvm_t *
> kvm_open(const char *execfile, const char *corefile, char *swapfile,
> int flags, const char *errstr);
> kvm_t *
> kvm_openfiles(const char *execfile, const char *corefile, char *swapfile,
> int flags, char *errbuf);
> if a null pointer is passed for execfile, the man page states that:
> If this argument is NULL, the currently running system is
> assumed, which is indicated by _PATH_UNIX in <paths.h>.
> would anyone find it particularly egregious if this was modified
> slightly so that a null pointer caused it to default to
> machdep.booted_kernel, and then to fall back to _PATH_UNIX if the
> former was not found?
> |-----< "CODE WARRIOR" >-----|
> email@example.com * "ah! i see you have the internet
> firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
> email@example.com * "information is power -- share the wealth."
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-