[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
utime()
Question: how can I set access time and modification time indepently
(assuming that I have a file system that knows about these different time
stamps)?
I can't find a system function for that. I've verified the utime()-Binding
in the MiNT library, and -- sure enough -- it uses Fdatime().
Proposal: let's define a new opcode for Fcntl that basically implements
the POSIX utime() function. Advantages: no need for changes in the kernel.
The library implementation for utime() could then do something like that:
- setup the utimbuf struct
- if (MiNT_is_running): try the new Fcntl (check return for EINVFN)
- otherwise use Fdatime().
Comments?
--
________________ cut here _________________________
Julian F. Reschke, Hensenstr. 142, D-W4400 Muenster
eMail: julian@math.uni-muenster.de, jr@ms.maus.de
________ correct me if I'm wrong __________________
- Follow-Ups:
- utime()
- From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>