[Bug 1529] New: utime implementation not fully following the POSIX spec

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Sun May 23 12:07:38 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1529

           Summary: utime implementation not fully following the POSIX
                    spec
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: vinutheraj at gmail.com
                CC: chrisj at rtems.org


The utime implementation in cpukit/libcsupport/src/utime.c is not fully
following the POSIX spec. The spec at
http://www.opengroup.org/onlinepubs/009695399/functions/utime.html says that
"If times is a null pointer, the access and modification times of the file
shall be set to the current time.". This part of the spec is not being followed
currently by the RTEMS utime implementation.

Also note that another part of the spec says that "Upon successful completion,
utime() shall mark the time of the last file status change, st_ctime, to be
updated". This is followed by RFS, but not by IMFS. The concerned file is
imfs_utime.c

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list