[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: PRINTF, STDOUT
From: Daniel Eischen <deischen () freebsd ! org>
Date: 2006-11-30 20:28:46
Message-ID: Pine.GSO.4.64.0611301524520.27732 () sea ! ntplx ! net
[Download RAW message or body]
On Thu, 30 Nov 2006, Christopher Olsen wrote:
> Hello,
>
> I've been tracing the printf function from the FreeBSD 6.x libc... I'm trying
> to figure out what mechanism transfers the data from the processes FILE to
> the system so it's written out to the screen...
>
>> From my findings I get to a function __sfvwrite(FILE,buf) {}
>
> however this just copies into the FILE's buffer and there are no systems
> between this point and returning back from the printf call
__sfvwrite() -> __fflush() -> __sflush -> _swrite() ->
(via fp->_write) __swrite() -> _write()
Note that _write() is a weak reference to __sys_write() which
is the actual system call.
--
Dan
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic