Re: [AD] [4.3] New API?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Tue, 2006-08-22 at 07:45 -0600, Thomas Fjellstrom wrote:
> Ok. another question, how should allegro expose "stat"s uid/gid and umode 
> items? Windows 9x has no real representation of uid/gid, and many of the 
> umode parts, NT does things similarly to unix, but different enough that they 
> don't quite fit.
> 
> Should we then just not bother with anything but 
> the "read/write/execute/hidden" bits? (no such thing as "system" files in 
> unix afaik) and only for the running user?

When would it matter? I can think of some cases where you would want to
create a file with not the default flags, but this should probably be
dealt with by setting some driver specific config variables, e.g.:

set_config_int("/allegro/filesystem/umask", 0x777)

Then drivers who know about executable flags and owner/groups could use
that whenever a file is created.

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/