9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9pow10?
@ 2010-07-22  6:59 EBo
  2010-07-22  7:10 ` Federico G. Benavento
  0 siblings, 1 reply; 7+ messages in thread
From: EBo @ 2010-07-22  6:59 UTC (permalink / raw)
  To: 9Fans-list


libc.h redefines pow10 to be p9pow10.  I cannot find the source for
p9pow10 in plan9port, 9vx nor sysfromiso.

Does anyone know what's up with that?




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] p9pow10?
  2010-07-22  6:59 [9fans] p9pow10? EBo
@ 2010-07-22  7:10 ` Federico G. Benavento
  2010-07-22  7:28   ` pow10.c missing from plan9port [was: p9pow10?] EBo
  0 siblings, 1 reply; 7+ messages in thread
From: Federico G. Benavento @ 2010-07-22  7:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

as it's #defined... look for the source of pow10()...

http://plan9.bell-labs.com/sources/plan9/sys/src/libc/port/pow10.c

most likely is #defined so it doesn't clash with linux's pow10(3)

On Thu, Jul 22, 2010 at 3:59 AM, EBo <ebo@sandien.com> wrote:
>
> libc.h redefines pow10 to be p9pow10.  I cannot find the source for
> p9pow10 in plan9port, 9vx nor sysfromiso.
>
> Does anyone know what's up with that?
>
>
>



-- 
Federico G. Benavento



^ permalink raw reply	[flat|nested] 7+ messages in thread

* pow10.c missing from plan9port [was: p9pow10?]
  2010-07-22  7:10 ` Federico G. Benavento
@ 2010-07-22  7:28   ` EBo
  2010-07-22 11:25     ` Eoghan Sherry
  2010-07-22 21:50     ` Russ Cox
  0 siblings, 2 replies; 7+ messages in thread
From: EBo @ 2010-07-22  7:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs, plan9port


The underlying problem is that pow10.c is missing from plan9port.  Once I
copied it over and compiled it into the app it was fine.  Maybe Russ can
add it to plan9port ;-)

Thanks for the feedback!

> as it's #defined... look for the source of pow10()...
>
>> libc.h redefines pow10 to be p9pow10.  I cannot find the source for
>> p9pow10 in plan9port, 9vx nor sysfromiso.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: pow10.c missing from plan9port [was: p9pow10?]
  2010-07-22  7:28   ` pow10.c missing from plan9port [was: p9pow10?] EBo
@ 2010-07-22 11:25     ` Eoghan Sherry
  2010-07-22 17:37       ` [9fans] " Jeff Sickel
  2010-07-22 21:50     ` Russ Cox
  1 sibling, 1 reply; 7+ messages in thread
From: Eoghan Sherry @ 2010-07-22 11:25 UTC (permalink / raw)
  To: ebo; +Cc: Fans of the OS Plan 9 from Bell Labs, plan9port

On 22 July 2010 03:28, EBo <ebo@sandien.com> wrote:
> Maybe Russ can add it to plan9port ;-)

Check out codereview(1) and hg(1). You'll need a tree from the Mercurial
repository at http://code.swtch.com/plan9port.

Eoghan


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] pow10.c missing from plan9port [was: p9pow10?]
  2010-07-22 11:25     ` Eoghan Sherry
@ 2010-07-22 17:37       ` Jeff Sickel
  2010-07-22 17:43         ` erik quanstrom
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Sickel @ 2010-07-22 17:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


> On 22 July 2010 03:28, EBo <ebo@sandien.com> wrote:
>> Maybe Russ can add it to plan9port ;-)

% cd $PLAN9/src
% find . -name pow10.c
./lib9/fmt/pow10.c




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] pow10.c missing from plan9port [was: p9pow10?]
  2010-07-22 17:37       ` [9fans] " Jeff Sickel
@ 2010-07-22 17:43         ` erik quanstrom
  0 siblings, 0 replies; 7+ messages in thread
From: erik quanstrom @ 2010-07-22 17:43 UTC (permalink / raw)
  To: 9fans

> > On 22 July 2010 03:28, EBo <ebo@sandien.com> wrote:
> >> Maybe Russ can add it to plan9port ;-)
>
> % cd $PLAN9/src
> % find . -name pow10.c
> ./lib9/fmt/pow10.c

i believe fmt uses a captive version named __fmtpow10,
same as ape.  to get the desired effect, there should also
be lib9/pow10.c

- erik



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: pow10.c missing from plan9port [was: p9pow10?]
  2010-07-22  7:28   ` pow10.c missing from plan9port [was: p9pow10?] EBo
  2010-07-22 11:25     ` Eoghan Sherry
@ 2010-07-22 21:50     ` Russ Cox
  1 sibling, 0 replies; 7+ messages in thread
From: Russ Cox @ 2010-07-22 21:50 UTC (permalink / raw)
  To: ebo; +Cc: Fans of the OS Plan 9 from Bell Labs, plan9port

the fix is to remove the #define.
the system pow10 should be fine.

russ


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-22 21:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-22  6:59 [9fans] p9pow10? EBo
2010-07-22  7:10 ` Federico G. Benavento
2010-07-22  7:28   ` pow10.c missing from plan9port [was: p9pow10?] EBo
2010-07-22 11:25     ` Eoghan Sherry
2010-07-22 17:37       ` [9fans] " Jeff Sickel
2010-07-22 17:43         ` erik quanstrom
2010-07-22 21:50     ` Russ Cox

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).