From owner-freebsd-questions Tue Sep 12 12:30:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 4B1A837B422 for ; Tue, 12 Sep 2000 12:30:56 -0700 (PDT) Received: from sol.cs.binghamton.edu (sol.cs.binghamton.edu [128.226.123.100]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with ESMTP id PAA23186 for ; Tue, 12 Sep 2000 15:30:55 -0400 (EDT) Date: Tue, 12 Sep 2000 15:27:12 -0400 (EDT) From: Zhihui Zhang To: freebsd-questions@freebsd.org Subject: Re: where is system() implemented? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 12 Sep 2000, Zhihui Zhang wrote: > > The library call __system() is implemented in lib/libc/stdlib/system.c. > But we normally use it as system() without the two preceding '_' > characters. Where is the magic done to add the "__" in the source code? > Thanks. It turns out to have something to do with the so-called weak symbols. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message