This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: More Unfun with OS X
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
While working on a major update to the sys-proctable library, I started working on a few updates and tests for the kvm interface. Normally this interface is only used for NetBSD and OpenBSD, but it's also used for FreeBSD if /proc isn't mounted.
But, since I don't have access to those platforms at the moment, I figured I would just use OS X, since it supports kvm, being as it's based on the FreeBSD kernel and all.
Haha, just kidding. The kvm interface is a broken pile of dogshit on OS X. Of course, there's no hint in the man pages that /dev/mem or /dev/kmem have been ripped out or that kvm_getprocs will silently fail. And, hey, why bother to update _PATH_MEM in paths.h if you don't have to?