Am Donnerstag, 28. Dezember 2006 22:26 schrieb Avi Alkalay:
> Value for directories make Elektra to be more compatible with Windows
> registry.

I don't think that getting compatible to other registrys should be an aim at 
all. But having value/comment with dirs is very useful.

> The flags on the Key struct are used to NEEDSYNC, isUser, isSystem, and for
> the key{Set|Get}Flag() methods.

isUser, isSystem is not needed as described.
keySet/GetFlag is a complete unecessary feature, which really must be removed
NEEDSYNC is the only left bit needed...

> Directory keys can contain any type of values now: string, binary or user
> defined. They are almost as regular keys. Dir is not a specific type
> anymore, but a sort of key permission. It is defined on the access bits.
> Check keyIsDir() and keySetDir() to see the changes in the approach.

return (key->access & 0040000); /*S_IFDIR*/

so we mixed up type and access. S_IFDIR is something out of stat, which gives 
access AND type (file, dir, fifo..) information back.

Next to that the solution is semantically very strange, is it guaranteed that 
mode_t has more then 9 bit? On every unix? We should not store more then the 
original rxwrxwrxw there.

thank you
Markus Raab

-------------------------------------------------------------------------
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
_______________________________________________
Registry-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/registry-list

Reply via email to