From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,92adb2b61c6d71dd X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,92adb2b61c6d71dd X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-03-17 16:11:49 PST Xref: sparky comp.os.vms:7261 comp.sys.dec:2105 Path: sparky!uunet!cs.utexas.edu!ut-emx!crown.as.utexas.edu!michael From: michael@crown.as.utexas.edu (Michael Lemke) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: utime on VMS Message-ID: <68498@ut-emx.uucp> Date: 16 Mar 92 09:07:18 GMT References: <1992Mar15.220608.13272@umbc3.umbc.edu> <1992Mar16.034622.2639@bronze.ucs.indiana.edu> Sender: news@ut-emx.uucp Followup-To: comp.os.vms Organization: McDonald Observatory, University of Texas @ Austin In article <1992Mar16.034622.2639@bronze.ucs.indiana.edu> mdchaney@bronze.ucs.indiana.edu (M Darrin Chaney) writes: >In article <1992Mar15.220608.13272@umbc3.umbc.edu> cs635124@umbc5.umbc.edu (cs635124) writes: #>Howdy, #> #> Is there a VMS equivalent of the unix function utime() (to update the #>access/modification times of a file)? My VMS manual references something #>called C$VAXCIO, but gives no indication how to link to it or where header #>files might be. I've been told that I can get this functionality by mucking #>with RMS, but I'd rather not :) #> #> Thanks, #> #> --John #> #>PS: This is VMS 5.3.1 # #I have a "touch" program that I wrote in Macro-32. It changes the #modification date, but could easily change any of the four dates #associated with files. # #Write back if interested. # # Darrin I think, this FORTRAN `program' does the trick: PROGRAM TOUCH OPEN( 1, FILE = 'file_to_be_touched' ) CLOSE( 1 ) END Maybe you have to compile /NOOPT. Make that a subroutine and call from C. Michael -- Michael Lemke Astronomy, UT Austin, Texas (michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])