9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] access(name,mode)
@ 2000-07-13 12:47 presotto
  2000-07-13 22:01 ` arisawa
  0 siblings, 1 reply; 3+ messages in thread
From: presotto @ 2000-07-13 12:47 UTC (permalink / raw)
  To: arisawa, 9fans

I tried this with both our file server and a local kfs as
file server and got:

presotto@who% 8c a.c
presotto@who% 8l a.8
presotto@who% 8.out
-1
0
0

in both cases.  What exactly are you using for a file system?

Also, I don't quite understand the line:

term% 8l -o 8.a a.8

Is this just a typo or do you have your own library 8.a?


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

* Re: [9fans] access(name,mode)
  2000-07-13 12:47 [9fans] access(name,mode) presotto
@ 2000-07-13 22:01 ` arisawa
  0 siblings, 0 replies; 3+ messages in thread
From: arisawa @ 2000-07-13 22:01 UTC (permalink / raw)
  To: 9fans

Hello Presotto,

>I tried this with both our file server and a local kfs as
>file server and got:
>
>presotto@who% 8c a.c
>presotto@who% 8l a.8
>presotto@who% 8.out
>-1
>0
>0
>
>in both cases.  What exactly are you using for a file system?

Hmm..., I will trace my library.

>term% 8l -o 8.a a.8
>Is this just a typo or do you have your own library 8.a?
No, I had a 8.out and did not want to overwrite it.
I found the problem in compiling and testing ykhttpd by Forsyth.

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp


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

* [9fans] access(name,mode)
@ 2000-07-13 10:17 arisawa
  0 siblings, 0 replies; 3+ messages in thread
From: arisawa @ 2000-07-13 10:17 UTC (permalink / raw)
  To: 9fans

Hello,

This is a bug report.

Function "access" returns meaningless results.
The following is a sample program.

#include <u.h>
#include <libc.h>
void
main(){
print("%d\n", access("a.c",1));
print("%d\n", access("a.c",2));
print("%d\n", access("a.c",4));
}

The result is:

term% 8c a.c
term% 8l -o 8.a a.8
term% 8.a
0
0
0
term% ls -l a.c
--rw-r--r-- M 3 arisawa arisawa 144 Jul 13 19:09 a.c

Thanks,

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp


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

end of thread, other threads:[~2000-07-13 22:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-13 12:47 [9fans] access(name,mode) presotto
2000-07-13 22:01 ` arisawa
  -- strict thread matches above, loose matches on Subject: below --
2000-07-13 10:17 arisawa

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