VirtualBox

Changeset 35218 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 17, 2010 12:45:16 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69063
Message:

Introduced RTPathAppPrivateArchTop for hacking around the /opt/VirtualBox/amd64 and /opt/VirtualBox/i386 issues with RTPathAppPrivateArch. Changed RTPathAppDocs to returned the same directory name.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/include/iprt/param.h

    r32036 r35218  
    117117/**
    118118 * Host max path (the reasonable value).
     119 * @remarks defined both by iprt/param.h and iprt/path.h.
    119120 */
    120 #define RTPATH_MAX   (4096 + 4)      /* (PATH_MAX + 1) on linux w/ some alignment */
     121#if !defined(___iprt_path_h) || defined(DOXYGEN_RUNNING)
     122# define RTPATH_MAX         (4096 + 4)    /* (PATH_MAX + 1) on linux w/ some alignment */
     123#endif
    121124
    122125/** @} */
  • TabularUnified trunk/include/iprt/path.h

    r34230 r35218  
    4242 */
    4343
     44/**
     45 * Host max path (the reasonable value).
     46 * @remarks defined both by iprt/param.h and iprt/path.h.
     47 */
     48#if !defined(___iprt_param_h) || defined(DOXYGEN_RUNNING)
     49# define RTPATH_MAX         (4096 + 4)    /* (PATH_MAX + 1) on linux w/ some alignment */
     50#endif
    4451
    4552/** @def RTPATH_SLASH
     
    604611 *
    605612 * This is not the same as RTPathAppPrivateArch() as Linux depends all shared
    606  * libraries in a common global directory where ld.so can found them.
     613 * libraries in a common global directory where ld.so can find them.
    607614 *
    608615 * Linux:    /usr/lib
     616 * Solaris:  /opt/@<application@>/@<arch>@ or something
    609617 * Windows:  @<program files directory@>/@<application@>
    610618 * Old path: same as RTPathExecDir()
     
    621629 *
    622630 * Linux:    /usr/shared/@<application@>
     631 * Solaris:  /opt/@<application@>
    623632 * Windows:  @<program files directory@>/@<application@>
    624633 * Old path: same as RTPathExecDir()
     
    635644 *
    636645 * Linux:    /usr/lib/@<application@>
     646 * Solaris:  /opt/@<application@>/@<arch>@ or something
    637647 * Windows:  @<program files directory@>/@<application@>
    638648 * Old path: same as RTPathExecDir()
     
    645655
    646656/**
     657 * Gets the toplevel directory for architecture-dependent application data.
     658 *
     659 * This differs from RTPathAppPrivateArch on Solaris only where it will work
     660 * around the /opt/@<application@>/amd64 and /opt/@<application@>/i386 multi
     661 * architecture installation style.
     662 *
     663 * Linux:    /usr/lib/@<application@>
     664 * Solaris:  /opt/@<application@>
     665 * Windows:  @<program files directory@>/@<application@>
     666 * Old path: same as RTPathExecDir()
     667 *
     668 * @returns iprt status code.
     669 * @param   pszPath     Buffer where to store the path.
     670 * @param   cchPath     Buffer size in bytes.
     671 */
     672RTDECL(int) RTPathAppPrivateArchTop(char *pszPath, size_t cchPath);
     673
     674/**
    647675 * Gets the directory for documentation.
    648676 *
    649677 * Linux:    /usr/share/doc/@<application@>
     678 * Solaris:  /opt/@<application@>
    650679 * Windows:  @<program files directory@>/@<application@>
    651680 * Old path: same as RTPathExecDir()
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette