Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!purdue!decwrl!armada!becher From: becher@armada.UUCP (Jonathan D. Becher) Newsgroups: comp.lang.smalltalk Subject: Getting the pid/uid of st80 Keywords: st80, VAX, uid Message-ID: <112@armada.UUCP> Date: 2 Jun 89 04:06:08 GMT Organization: we don' need no stickin' organeezation Lines: 18 I'm basically a Smalltalk newcomer, so my apologies if this is a silly question: 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? I do know that if I create a new Unix process from Smalltalk (like a terminal shell) that I can get its process id. However, I'm trying to determine the pid of Smalltalk itself. IN Thanks ADVANCE. Jon Becher argosy!becher@decwrl.dec.com "Tie to birds together and though they have four wings they cannot fly"