- Timestamp:
- Jun 3, 2008 3:59:24 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31576
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/dir.cpp
r9357 r9358 574 574 #ifndef RT_OS_WINDOWS 575 575 long cbNameMax = pathconf(szRealPath, _PC_NAME_MAX); 576 # ifdef NAME_MAX 576 577 if (cbNameMax < NAME_MAX) /* This is plain paranoia, but it doesn't hurt. */ 577 578 cbNameMax = NAME_MAX; 579 # endif 580 # ifdef _XOPEN_NAME_MAX 581 if (cbNameMax < _XOPEN_NAME_MAX) /* Ditto. */ 582 cbNameMax = _XOPEN_NAME_MAX; 583 # endif 578 584 size_t cbDir = RT_OFFSETOF(RTDIR, Data.d_name[cbNameMax + 1]); 579 585 if (cbDir < sizeof(RTDIR)) /* Ditto. */
Note:
See TracChangeset
for help on using the changeset viewer.