Path: utzoo!attcan!uunet!cs.utexas.edu!execu!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F. Haugh II) Newsgroups: comp.unix.wizards Subject: Re: Indirect system call (WARNING) Message-ID: <17360@rpp386.cactus.org> Date: 26 Nov 89 06:59:41 GMT References: <28945@shemp.CS.UCLA.EDU> <8494@cbmvax.UUCP> <1598@crdos1.crd.ge.COM> <105@amix.commodore.com> <128380@sun.Eng.Sun.COM> Reply-To: jfh@rpp386.cactus.org (John F. Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 19 In article <128380@sun.Eng.Sun.COM> lm@sun.UUCP (Larry McVoy) writes: >There has been some discussion of the use of syscall() on this group. Just a >fair warning to budding hackers - if my memory servers me correctly there are >times when it won't work. In particular, syscall returns an int and if you >are calling a syscall that sends out stuff in more than one register (see >below) it won't work. No, I don't have a list of stuff that fails, but you >should be able to look at the man pages and figure it out. Worse still, there are system calls which return values used by more than one function. One function may use the value in the first function return register while another uses the value in the second function return register. getpid() and getppid() come to mind. -- John F. Haugh II +-Things you didn't want to know:------ VoiceNet: (512) 832-8832 Data: -8835 | The real meaning of IBM is ... InterNet: jfh@rpp386.cactus.org | ... I've Been to a Meeting. UUCPNet: {texbell|bigtex}!rpp386!jfh +--<><--<><--<><--<><--<><--<><--Yea!--