Fixed messes involving $FreeBSD$ starting with one left in the copyright

after adding __FBSDID().

Garbage-collected kvm_readswap().  This was once used by kvm_uread(), but
kvm_uread() now just reads /proc/<pid>/mem and procfs hopefully handles
swapped out pages.
This commit is contained in:
Bruce Evans 2002-09-16 08:22:57 +00:00
parent 5d52e42381
commit f86e3350f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103385

View file

@ -33,16 +33,16 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#if 0
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
#endif /* LIBC_SCCS and not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/*
* Proc traversal interface for kvm. ps and w are (probably) the exclusive
@ -79,22 +79,6 @@ static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
#include "kvm_private.h"
#if used
static char *
kvm_readswap(kd, p, va, cnt)
kvm_t *kd;
const struct proc *p;
u_long va;
u_long *cnt;
{
#ifdef __FreeBSD__
/* XXX Stubbed out, our vm system is differnet */
_kvm_err(kd, kd->program, "kvm_readswap not implemented");
return(0);
#endif /* __FreeBSD__ */
}
#endif
#define KREAD(kd, addr, obj) \
(kvm_read(kd, addr, (char *)(obj), sizeof(*obj)) != sizeof(*obj))