On 8/4/06, Andrew Morton <[EMAIL PROTECTED]> wrote:
> On Fri, 4 Aug 2006 16:16:07 -0700
> Andrew Morton <[EMAIL PROTECTED]> wrote:
>
> > And return values.  mkdir() can return EPERM/EEXIST/ENOMEM/etc.  write()
> > can just return 0.
>
> err, no.  write() can return -EFOO if it didn't write anything.
>
> But what does it return if write(fd, "foo/bar/zot", 11) got EPERM on "bar"?
>  2?  7?
>

Under the API I was proposing, you'd write "zot" to "foo/bar/.create"
in order to create "foo/bar/zot". So if you didn't have permissions on
"bar" you'd get EPERM when you tried to open "foo/bar/.create".

Paul

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to