VirtualBox

Changeset 33426 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Oct 25, 2010 2:32:38 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67016
Message:

iprt/symlink.h: Initial code (only tested on linux).

Location:
trunk/src/VBox/Runtime/r3/posix
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/pathhost-posix.cpp

    r30303 r33426  
    263263}
    264264
     265
     266int rtPathFromNativeDup(char **ppszPath, const char *pszNativePath, const char *pszBasePath)
     267{
     268    int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL, NULL);
     269    if (RT_SUCCESS(rc))
     270    {
     271        if (g_fPassthruUtf8 || !*pszNativePath)
     272            rc = RTStrDupEx(ppszPath, pszNativePath);
     273        else
     274            rc = rtStrConvert(pszNativePath, strlen(pszNativePath), g_szFsCodeset,
     275                              ppszPath, 0, "UTF-8",
     276                              2, g_enmFsToUtf8Idx);
     277    }
     278
     279    NOREF(pszBasePath); /* We don't query the FS for codeset preferences. */
     280    return rc;
     281}
     282
Note: See TracChangeset for help on using the changeset viewer.

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