[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] #8 OS400/EBCDIC Port: Implement apr_file_mtime_set() alternative.

From: Paul Burba <paulb_at_softlanding.com>
Date: 2006-02-24 18:15:10 CET

Hello All,

(Don't know what the OS400/EBCDIC port is about? See:
http://svn.haxx.se/dev/archive-2006-02/0519.shtml)

apr_file_mtime_set() is not implemented on OS400, this patch provides a
workaround so svn_io_set_file_affected_time() can still do its thing.

For reference, here is the IBM's docstring for the function and the struct
it uses:

#ifdef AS400
/**
 * The utimbuf structure analogous to POSIX.1 definition.
 */
typedef struct apr_utimbuf_t apr_utimbuf_t;
struct apr_utimbuf_t {
    /** The new access time */
    apr_time_t atime;
    /** The new modification time */
    apr_time_t mtime;
};
#endif

#ifdef AS400 /**
 * Set the specified file's access and modification times. The file is
 * specified by filename, instead of using a pre-opened file. If the file
is a
 * symlink, this function will resolve the link and set times for the file
the
 * symlink refers to.
 * @param fname The name of the file to set times.
 * @param buf The desired access and modification times. If buf is a NULL
 * pointer, the access and modification times are set to the current time.
 * @deffunc apr_status_t apr_utime(const char *fname, const apr_utimbuf_t
*buf)
 * @tip This function returns APR_ENOTIMPL if the platform does not
support
 * change of file access and modification times.
 */
APR_DECLARE(apr_status_t) apr_utime(const char *fname, const apr_utimbuf_t
                                    *buf);
#endif

Please review if you have a chance, thanks,

Paul B.

[[[
OS400/EBCDIC Port: Implement apr_file_mtime_set() alternative.

This is one of several patches to allow Subversion to run on IBM's
OS400 V5R4. It uses the OS400 specific function apr_utime() instead
of apr_file_mtime_set(), which is not implemented on OS400 APR.

* subversion/libsvn_subr/io.c
   (svn_io_set_file_affected_time): Use apr_utime() to set file
    modification time.
]]]

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Feb 24 18:16:54 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.