From: Adriano Verardo <a.verardo@tecmav.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] binary sprint format
Date: Fri, 7 Aug 2009 05:47:36 +0200 [thread overview]
Message-ID: <4A7BA3D8.1020903@tecmav.com> (raw)
In-Reply-To: <634008374f96d39b2953843bc63d67ff@plan9.bell-labs.com>
jmk@plan9.bell-labs.com wrote:
> the kernel library include file (../port/lib.h)
> does not have a pragma in it for %b. if this is
> indeed a kernel driver you are writing then you
> should add the pragma in the driver:
>
> #pragma varargck type "b" int
>
> the reason the kernel does not just use <libc.h>
> is to catch the inadvertent use of routines from
> libc.a that just won't work if used in the kernel
> (e.g. functions that do system calls). if %b becomes
> commonly used in the kernel and is safe to use
> (not all format specifiers are safe in the kernel,
> e.g. those for floating point) then it will find
> its way into ../port/lib.h.
>
> --jim
>
>
>
It works perfectly.
Thank you very much, Jim.
adriano
next parent reply other threads:[~2009-08-07 3:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <634008374f96d39b2953843bc63d67ff@plan9.bell-labs.com>
2009-08-07 3:47 ` Adriano Verardo [this message]
2009-08-07 2:15 Akshat Kumar
-- strict thread matches above, loose matches on Subject: below --
2009-08-07 0:01 Adriano Verardo
2009-08-07 0:08 ` erik quanstrom
2009-08-07 0:30 ` Adriano Verardo
2009-08-07 0:34 ` erik quanstrom
2009-08-07 1:27 ` Adriano Verardo
2009-08-07 8:37 ` kjs
2009-08-07 8:37 ` Greg Comeau
2009-08-07 12:52 ` erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A7BA3D8.1020903@tecmav.com \
--to=a.verardo@tecmav.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).