Subject: Re: Adding /proc/swaps to linux compat code
To: Christian Biere <firstname.lastname@example.org>
From: Jachym Holecek <email@example.com>
Date: 02/04/2007 03:23:40
# Christian Biere 2007-02-02:
> Arnaud Lacombe wrote:
> > libsa' snprintf ends up in vsnprintf() which return `sbuf - buf', `buf'
> > is our buffer, `sbuf' is a cursor inside the buffer, so it can't
> > return -1.
> Ok, I was looking at the wrong implementation (sys/kern/subr_prf.c).
> seems to be the relevant one. Is that just a fallback which is effectively
It's used by standalone code -- libsa is kind of "libc on steroids"
for bootloaders and such. Take a look at sys/arch/*/stand/*.
> I don't see how that code supports field-widths (e.g., "%-39s").
The implementation needs to stay as small as possible.