home *** CD-ROM | disk | FTP | other *** search
- /* C.Touch: Update a file's timestamp */
-
- #include "kernel.h"
-
- #include "utils.h"
-
- #define Touch 9
-
- /* Update the file's timestamp with the current time.
- * Return non-zero on failure, zero for success.
- */
-
- int touch (const char *file)
- {
- _kernel_osfile_block dummy;
-
- return ( _kernel_osfile(Touch,file,&dummy) < 0 );
- }
-