From owner-freebsd-questions Sat Feb 8 19:55:47 2003 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 E4FAA37B405 for ; Sat, 8 Feb 2003 19:55:44 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD52143F93 for ; Sat, 8 Feb 2003 19:55:39 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr364-a14.otenet.gr [195.167.109.46]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h193tNRX023820 for ; Sun, 9 Feb 2003 05:55:30 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h193tGs4000935 for ; Sun, 9 Feb 2003 05:55:16 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h1874bxF003980; Sat, 8 Feb 2003 09:04:37 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 8 Feb 2003 09:04:37 +0200 From: Giorgos Keramidas To: Auge Mike Cc: freebsd-questions@FreeBSD.org Subject: Re: printf ... ! Message-ID: <20030208070437.GB2356@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-02-08 01:48, Auge Mike wrote: > I was trying to know how "printf" works in FreeBSD... I hvae reached > to this point : > > #define _write(fd, s, n) \ > __syscall(SYS_write, (int)(fd), (const void *)(s), (size_t)(n)) This is the definition of the write(2) system call. You should also check the implementation of printf(3) at the libc sources. Look at /usr/src/lib/libc/stdio/printf.c for more details about the way printf() works in userlevel programs. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message