Re: Pointers on finding sources for command line tools?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=bT0ddFfkUe6tTP6/TsLV+H8QGlB5fFSFCSar5eNk6PajAVKRYNQsYqhC/z7WkzF9HW9k7183/8Uc7YVp5QkFV2W925WZgZlNquVxatRe4VNAsq7a9SrUWWc4oK1/Uo41+DPcDMkQp9S0uv+4CpKyLBpkLYjh6AlwG9KWThApGkc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=iBz9C0TDbPis4/3qjnsULwu1ONTRtvMV0TLlYqhUqBeuTVT1yudRJ/OBddLipvVoq2BYfYLn3PJcOTYb2bg2SpLfiZOQ121vc3H+nPyq2ZuDehDkhp3YsLWAKLANfWMjLnrM3YI+yZkaMdBOCujiwInMistvt/wKLWZ/BlqC2Yc= It's in the adv_cmds project. You could use darwinxref (part of darwinbuild - http://opendarwin.org/projects/darwinbuild/) to figure this out. http://www.opensource.apple.com/darwinsource/10.4.9.x86/adv_cmds-79.1.4/ps.t... I believe the info you are looking for can be retrieved using the sysctl() function. -Jason I'm wondering how a newbie can figure out where the code for a certain tool (ps) would be in all of the packages that make up darwin. I'm trying to get the memory that is used by a process and saw that ps already has that coded. Now I just need to figure out where the code for ps lives. Thanks for any pointers, Jason _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 5/1/07, JASON RUSOFF <jrusoff@mac.com> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Jason Townsend