From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 15:03:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 734DF16A4CE for ; Mon, 15 Mar 2004 15:03:14 -0800 (PST) Received: from hills.ccsf.cc.ca.us (hills.ccsf.cc.ca.us [147.144.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62C9243D3F for ; Mon, 15 Mar 2004 15:03:14 -0800 (PST) (envelope-from abozan01@ccsf.edu) Received: from localhost (abozan01@localhost) by hills.ccsf.cc.ca.us (8.11.3/8.11.3) with ESMTP id i2FN34l04169; Mon, 15 Mar 2004 15:03:04 -0800 (PST) X-Authentication-Warning: hills.ccsf.cc.ca.us: abozan01 owned process doing -bs Date: Mon, 15 Mar 2004 15:03:04 -0800 (PST) From: Adam Bozanich X-X-Sender: abozan01@hills.ccsf.cc.ca.us To: Matthew Seaman In-Reply-To: <20040315135443.GA26079@happy-idiot-talk.infracaninophile.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Zhang Weiwu cc: questions@freebsd.org Subject: Re: [OT?] write C program with UTF16LE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 23:03:14 -0000 On Mon, 15 Mar 2004, Matthew Seaman wrote: > On Mon, Mar 15, 2004 at 02:28:17AM -0800, Adam Bozanich wrote: > > On Mon, 15 Mar 2004, Zhang Weiwu wrote: > > > > but I am the kind of newbie don't know if I am using glibc at all. When I > > > just write > > > #include > > > Am i using the stdio.h from glibc? > > > Yes, on FreeBSD you are using GNU's libc > > Errr... no. Not even if you're using the Linux devtools to create a > Linux executable. You're using the FreeBSD system libc. Same API, > different code, different licencing terms. > Yep, one look at /usr/include/stdio.h proves you right. Thanks... I (obviously) didn't realize that. Now I'm very curious. If BSD has it's own C api, did it at one time have it's own compiler? If so, what happened to it? Does gcc have to know about the different syscall calling conventions? I'm trying to look through /usr/src/lib/ right now, but I don't understand most of what is going on. Thanks a lot, -Adam