[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Dazuko-help] about struct dazukofs_access
From: |
John Ogness |
Subject: |
Re: [Dazuko-help] about struct dazukofs_access |
Date: |
Tue, 17 Mar 2009 22:25:41 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
On 2009-03-11, cg <address@hidden> wrote:
> any information about this struct ?
I think most of it is self-explanatory.
> for example, the flag, what does the bits mean ? how to know what
> the flag means?
"flags" shows how the file was opened (or will be opened):
0 = read only
1 = write only
2 = read/write
"mode" should be the same value that is in stat.st_mode if you stat(2)
the file being accessed. However, I have never verified this.
> any macro to do "&" with it ?
No.
Note that the values are only valid if set_flags and set_mode are
non-zero.
John Ogness
--
Dazuko Maintainer