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

Re: Changing the way the server looks for hooks

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-11-12 21:44:31 CET

Branko Čibej <brane@xbc.nu> writes:
> Just as an example: the box I'm typing this on -- a laptop with WinXP --
> defines 10 different "executable" extensions. I'd rather not check for
> them all.

How about a new APR function:

   /**
    * Find an executable file based on a path.
    * @param path the initial path
    * @param pool pool for allocating the return value
    * @remark If an executable file for this platform exists at path,
    * return its path, else return null. On platforms that have
    * required extensions for executables, this means trying with
    * each of those extensions appended to path in turn, until one
    * names an existing executable file, which is then returned.
    */
   char *apr_find_executable_from_name(const char *path,
                                       apr_pool_t *pool);

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 12 22:18:31 2002

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.