From owner-freebsd-current Sat Feb 8 14:23:25 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85EF537B401 for ; Sat, 8 Feb 2003 14:23:23 -0800 (PST) Received: from smtpout.mac.com (A17-250-248-86.apple.com [17.250.248.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26A3E43F75 for ; Sat, 8 Feb 2003 14:23:23 -0800 (PST) (envelope-from leimy2k@mac.com) Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h18MNM51010320 for ; Sat, 8 Feb 2003 14:23:22 -0800 (PST) Received: from mac.com ([66.156.162.95]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id HA0GUY00.M26; Sat, 8 Feb 2003 14:23:22 -0800 Date: Sat, 8 Feb 2003 16:23:21 -0600 Subject: Re: printf....! Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: current@FreeBSD.ORG To: "Auge Mike" From: David Leimbach In-Reply-To: Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Isn't it ultimately interrupt 08 on the PC with an index in the EAX register for the write "subroutine"? I am pretty sure that's correct. I might have the interrupt value wrong though. Dave On Saturday, February 8, 2003, at 04:12 PM, Auge Mike wrote: > > > > > Hi all, > > 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)) > > I'am not really familiar with the way FreeBSD handle interrupts. I > like from > any one of you to tell me what functions will be called next and in > which > files, till we get the string of the printf function argment displayed > in > the terminal. > > Yours, > > > > _________________________________________________________________ > The new MSN 8: advanced junk mail protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message