From owner-freebsd-ppc@FreeBSD.ORG Wed Nov 5 00:40:48 2003 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8C1116A4CE for ; Wed, 5 Nov 2003 00:40:48 -0800 (PST) Received: from mail.speakeasy.net (mail8.speakeasy.net [216.254.0.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id C501A43FDF for ; Wed, 5 Nov 2003 00:40:47 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 25014 invoked from network); 5 Nov 2003 08:36:19 -0000 Received: from unknown (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail8.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 5 Nov 2003 08:36:19 -0000 Received: from hydrogen.funkthat.com (clejqd@localhost.funkthat.com [127.0.0.1])hA58aIgP045897; Wed, 5 Nov 2003 00:36:18 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id hA58aIKc045896; Wed, 5 Nov 2003 00:36:18 -0800 (PST) Date: Wed, 5 Nov 2003 00:36:18 -0800 From: John-Mark Gurney To: James Sarrett Message-ID: <20031105083618.GZ558@funkthat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-ppc@freebsd.org Subject: Re: this is the wrong place to ask this i know, but just the same... X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2003 08:40:48 -0000 James Sarrett wrote this message on Tue, Nov 04, 2003 at 23:38 -0700: > Since you guys are skilled code monkeys, i figured you'd probably know > the awnser. What facilities does fBSD provide from a user program > doing something like this (admittedly probably incorrect code): > > void writemem() { > int address,value,i; int *i; > address << cin; > value << cin; > > *i = address; i = address; > i=value; *i = value; > } > > As a way for a program to write to any specified address, i.e. to > change a umask of a running process or something. Of course, this can only be used to change memory in your own address space. If you need to change memory in another address space, you need to use mmap and /proc to get access to the other process address space. If you need more information than above, we can't help you, get a book on how to program in the Unix environment, or any IPC communication in the Unix environment. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."