Changeset 14050 in vbox
- Timestamp:
- Nov 10, 2008 10:48:21 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/path.h
r11836 r14050 234 234 /** 235 235 * Parses a path. 236 * 237 * It figures the length of the directory component, the offset of 236 * 237 * It figures the length of the directory component, the offset of 238 238 * the file name and the location of the suffix dot. 239 239 * 240 240 * @returns The path length. 241 * 241 * 242 242 * @param pszPath Path to find filename in. 243 243 * @param pcbDir Where to put the length of the directory component. … … 249 249 * If empty string or if it's ending with a slash this 250 250 * will be set to -1. Optional. 251 * @param pfFlags Where to set flags returning more information about 251 * @param pfFlags Where to set flags returning more information about 252 252 * the path. For the future. Optional. 253 253 */ … … 358 358 * @param cchPath Buffer size in bytes. 359 359 */ 360 RTDECL(int) RTPathUserHome(char *pszPath, unsignedcchPath);360 RTDECL(int) RTPathUserHome(char *pszPath, size_t cchPath); 361 361 362 362 /** … … 373 373 * @param cchPath Buffer size in bytes. 374 374 */ 375 RTDECL(int) RTPathSharedLibs(char *pszPath, unsignedcchPath);375 RTDECL(int) RTPathSharedLibs(char *pszPath, size_t cchPath); 376 376 377 377 /** … … 387 387 * @param cchPath Buffer size in bytes. 388 388 */ 389 RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, unsignedcchPath);389 RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, size_t cchPath); 390 390 391 391 /** … … 401 401 * @param cchPath Buffer size in bytes. 402 402 */ 403 RTDECL(int) RTPathAppPrivateArch(char *pszPath, unsignedcchPath);403 RTDECL(int) RTPathAppPrivateArch(char *pszPath, size_t cchPath); 404 404 405 405 /** -
trunk/src/VBox/Runtime/r3/path.cpp
r11839 r14050 123 123 /** 124 124 * Parses a path. 125 * 126 * It figures the length of the directory component, the offset of 125 * 126 * It figures the length of the directory component, the offset of 127 127 * the file name and the location of the suffix dot. 128 128 * 129 129 * @returns The path length. 130 * 130 * 131 131 * @param pszPath Path to find filename in. 132 132 * @param pcbDir Where to put the length of the directory component. … … 138 138 * If empty string or if it's ending with a slash this 139 139 * will be set to -1. Optional. 140 * @param pfFlags Where to set flags returning more information about 140 * @param pfFlags Where to set flags returning more information about 141 141 * the path. For the future. Optional. 142 142 */ … … 169 169 break; 170 170 171 /* 171 /* 172 172 * The end. Complete the results. 173 173 */ … … 648 648 #ifndef RT_MINI 649 649 650 RTDECL(int) RTPathProgram(char *pszPath, unsignedcchPath)650 RTDECL(int) RTPathProgram(char *pszPath, size_t cchPath) 651 651 { 652 652 AssertReturn(g_szrtProcExePath[0], VERR_WRONG_ORDER); … … 677 677 * 678 678 */ 679 RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, unsignedcchPath)679 RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, size_t cchPath) 680 680 { 681 681 #if !defined(RT_OS_WINDOWS) && defined(RTPATH_APP_PRIVATE) … … 711 711 * @param cchPath Buffer size in bytes. 712 712 */ 713 RTDECL(int) RTPathAppPrivateArch(char *pszPath, unsignedcchPath)713 RTDECL(int) RTPathAppPrivateArch(char *pszPath, size_t cchPath) 714 714 { 715 715 #if !defined(RT_OS_WINDOWS) && defined(RTPATH_APP_PRIVATE_ARCH) … … 746 746 * @param cchPath Buffer size in bytes. 747 747 */ 748 RTDECL(int) RTPathSharedLibs(char *pszPath, unsignedcchPath)748 RTDECL(int) RTPathSharedLibs(char *pszPath, size_t cchPath) 749 749 { 750 750 #if !defined(RT_OS_WINDOWS) && defined(RTPATH_SHARED_LIBS) -
trunk/src/VBox/Runtime/r3/posix/path-posix.cpp
r11836 r14050 502 502 503 503 504 RTDECL(int) RTPathUserHome(char *pszPath, unsignedcchPath)504 RTDECL(int) RTPathUserHome(char *pszPath, size_t cchPath) 505 505 { 506 506 int rc; -
trunk/src/VBox/Runtime/r3/win/path-win.cpp
r13837 r14050 130 130 * @param cchPath Buffer size in bytes. 131 131 */ 132 RTDECL(int) RTPathUserHome(char *pszPath, unsignedcchPath)132 RTDECL(int) RTPathUserHome(char *pszPath, size_t cchPath) 133 133 { 134 134 RTUTF16 wszPath[RTPATH_MAX];
Note:
See TracChangeset
for help on using the changeset viewer.