Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!pplace!khaw From: khaw@pplace.COM (Mike Khaw) Newsgroups: comp.lang.smalltalk Subject: Re: Getting the pid/uid of st80 Message-ID: <522@parcplace.pplace.COM> Date: 3 Jun 89 23:26:48 GMT References: <112@armada.UUCP> Distribution: comp Organization: ParcPlace Systems, Palo Alto, CA Lines: 16 <112@armada.UUCP>, by becher@armada.UUCP (Jonathan D. Becher): > I'm running Smalltalk-80 (ParcPlace) version 2.4 on a Sun and want to > get the pid and/or uid of the Smalltalk process. The functionality I'm > looking for is equivalent to system calls getpid(2) and getuid(2) from > a C program. Is there anyway to call arbitrary C library functions? Smalltalk-80's "user primitive" facility allows you to call C functions from Smalltalk. See Chapter 12 "User-Defined Primitive Interface" in your version 2.4 User's Guide. I don't see any existing method in version 2.4 that gets the uid and pid of the Smalltalk process. Mike Khaw, ParcPlace Technical Support ParcPlace Systems, 1550 Plymouth St., Mountain View, CA 94043 415/691-6749 Domain=khaw@parcplace.com, UUCP={uunet,sun,decwrl}!parcplace!khaw