9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] getting message need /sys/man/2/genrandom
@ 2009-03-30  9:05 ROuNIN
  2009-03-30 13:09 ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: ROuNIN @ 2009-03-30  9:05 UTC (permalink / raw)
  To: 9fans

Hello all,
I am not sure why I am getting this message, after doing a recent pull
command:

term% pull
post...
c sys/man/2/rand
a sys/man/2/genrandom 664 sys sys 1196638940
c 386/lib/ape/libap.a
c sys/src/boot/pc/ether82563.c
term% man genrandom
need /sys/man/2/genrandom
term% man genrandom
need /sys/man/2/genrandom


I am new to Plan9. Any feedback will be greatly appreciated.
ROuNIN



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

* Re: [9fans] getting message need /sys/man/2/genrandom
  2009-03-30  9:05 [9fans] getting message need /sys/man/2/genrandom ROuNIN
@ 2009-03-30 13:09 ` erik quanstrom
  0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2009-03-30 13:09 UTC (permalink / raw)
  To: 9fans

> term% pull
> post...
> c sys/man/2/rand
> a sys/man/2/genrandom 664 sys sys 1196638940
> c 386/lib/ape/libap.a
> c sys/src/boot/pc/ether82563.c
> term% man genrandom
> need /sys/man/2/genrandom
> term% man genrandom
> need /sys/man/2/genrandom

that is very strange.  "need $x" is printed
when test -f $x fails.  this test is to guard
against the case where the man page exists
in the section index (/sys/man/?/INDEX)
but doesn't exist.  test -f is false if
dirstat returns nil or the file is a directory.
unless of course, you /bin/test is something
different than /386/bin/test
	sum /386/bin/test /bin/test
should produce two identicial lines.

on my system with ken's fs, there's no way
to make test -f false and be able to read the
index.  perhaps there is some wierd mode
setting on fossil that makes this possible.
i think
	ls -ld /sys/man/2^('' INDEX genrandom)
would likely provide the answer.

- erik



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

end of thread, other threads:[~2009-03-30 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30  9:05 [9fans] getting message need /sys/man/2/genrandom ROuNIN
2009-03-30 13:09 ` erik quanstrom

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