From owner-freebsd-hackers Wed May 27 10:03:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA09755 for freebsd-hackers-outgoing; Wed, 27 May 1998 10:03:36 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bingsun2 (bingsun2.cc.binghamton.edu [128.226.1.6]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA09747 for ; Wed, 27 May 1998 10:03:29 -0700 (PDT) (envelope-from bf20761@binghamton.edu) Received: from localhost (bf20761@localhost) by bingsun2 (SMI-8.6/8.6.9) with SMTP id NAA09887 for ; Wed, 27 May 1998 13:03:24 -0400 Date: Wed, 27 May 1998 13:03:24 -0400 (EDT) From: zhihuizhang X-Sender: bf20761@bingsun2 To: hackers Subject: Where are system call stubs in libc? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have understood the basic mechanism of making system calls in FreeBSD which is quite similar to Linux. I am now trying to find out where in the source code library stubs are added (similar to that found in file csu/i386/crt0.c?). I can not figure out how the file libc/i386/sys/syscall.S is related to normal system calls like read(), write(), etc. Also, when tracing the ENTRY(syscall) in file syscall.S, I can not find where __mcount is defined. I hope someone can give me a hint on this. Thanks a lot. ------------------------------------------------- Department of Computer Science State University of New York at Binghamton Web Site: http://cs.binghamton.edu/~zzhang ------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message