Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!veritas!amdcad!dvorak.amd.com!proton!tim From: tim@proton.amd.com (Tim Olson) Newsgroups: comp.os.minix Subject: Re: source for open(2) Message-ID: <1991May9.031628.20701@dvorak.amd.com> Date: 9 May 91 03:16:28 GMT References: <1991May7.140448.10727@Arco.COM> Sender: usenet@dvorak.amd.com (Usenet News) Reply-To: tim@amd.com (Tim Olson) Organization: Advanced Micro Devices, Austin, TX Lines: 21 In article <1991May7.140448.10727@Arco.COM> dprrhb@inetg1.ARCO.COM (Reginald H. Beardsley) writes: | | Where is the source for the open() system call? I have looked through fs, | mm, and kernel. I found the code for DOING the work, but not the entry point. | From the structure of Minix this should be code to send a message to fs and | then call the process scheduler. It appears to be in libc.a but there is no | code for the current implementation in /usr/src/lib just source for a POSIX.1 | compliant entry point. If you are using version 1.5 on the IBM PC, then the sequence is: open() in lib/posix/open.c calls callm1() in lib/other/call.c, which calls sendrec() in lib/ibm/sendrec.s, which performs an int SYSVEC instruction. -- -- Tim Olson Advanced Micro Devices (tim@amd.com)