VirtualBox

Changeset 64285 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Oct 16, 2016 8:08:03 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111300
Message:

Additions: bugref:8622: Use crc of user name in name of ipc pipe

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/localipc.h

    r62473 r64285  
    317317RTDECL(int) RTLocalIpcSessionQueryGroupId(RTLOCALIPCSESSION hSession, PRTGID pGid);
    318318
     319/**
     320* Make the IPC pipe name unique for user
     321* in a form like 'VBoxTrayIPC-6a4500cb7c726949'
     322*
     323* @returns IPRT status code.
     324* @retval  VINF_SUCCESS and *pcbDest if pipe name created successfully.
     325* @retval  VERR_INVALID_PARAMETER in case of invalid parameter value.
     326* @retval  VERR_BUFFER_OVERFLOW if the pszDest is too small.
     327*
     328* @param   pszPrefix        Pipe name prefix, for example 'VBoxTrayIPC-'
     329* @param   pszUserName      User name
     330* @param   pszDest          Destination buffer to store created pipe name
     331* @param   pcbDest          IN  - size of destination buffer in bytes,
     332*                           OUT - length of created pipe name in bytes without trailing zero
     333*/
     334RTDECL(int) RTLocalIpcMakeNameUniqueUser(const char* pszPrefix, const char* pszUserName, char* pszDest, size_t* pcbDest);
     335
    319336/** @} */
    320337RT_C_DECLS_END
  • trunk/include/iprt/mangling.h

    r64281 r64285  
    10451045# define RTLinuxSysFsWriteU64File                       RT_MANGLER(RTLinuxSysFsWriteU64File)
    10461046# define RTLinuxSysFsWriteU64FileV                      RT_MANGLER(RTLinuxSysFsWriteU64FileV)
     1047# define RTLocalIpcMakeNameUniqueUser                   RT_MANGLER(RTLocalIpcMakeNameUniqueUser)
    10471048# define RTLocalIpcServerCreate                         RT_MANGLER(RTLocalIpcServerCreate)
    10481049# define RTLocalIpcServerDestroy                        RT_MANGLER(RTLocalIpcServerDestroy)
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