Changeset 890 in vbox for trunk/src/VBox/Runtime/generic
- Timestamp:
- Feb 14, 2007 9:35:02 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18607
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/rand-stubs-generic.cpp
r839 r890 1 1 /* $Id$ */ 2 2 /** @file 3 * InnoTek Portable Runtime - File System, Generic Stubs.3 * InnoTek Portable Runtime - Random Numbers and Byte Streams, Generic Stubs. 4 4 */ 5 5 … … 24 24 * Header Files * 25 25 *******************************************************************************/ 26 #define LOG_GROUP RTLOGGROUP_FS 27 28 #include <iprt/fs.h> 26 #include <iprt/rand.h> 29 27 #include <iprt/err.h> 30 #include <iprt/log.h> 31 #include <iprt/assert.h> 32 #include "internal/fs.h" 28 #include "internal/rand.h" 33 29 34 30 35 36 RTR3DECL(int) RTFsQuerySizes(const char *pszFsPath, RTFOFF *pcbTotal, RTFOFF *pcbFree, 37 uint32_t *pcbBlock, uint32_t *pcbSector) 31 void rtRandLazyInitNative(void) 38 32 { 39 if (pcbTotal)40 *pcbTotal = _2G;41 if (pcbFree)42 *pcbFree = _1G;43 if (pcbBlock)44 *pcbBlock = _4K;45 if (pcbSector)46 *pcbSector = 512;47 LogFlow(("RTFsQuerySizes: success stub!\n"));48 return VINF_SUCCESS;49 33 } 50 34 51 35 52 RTR3DECL(int) RTFsQuerySerial(const char *pszFsPath, uint32_t *pu32Serial)36 int rtRandGenBytesNative(void *pv, size_t cb) 53 37 { 54 if (pu32Serial) 55 *pu32Serial = 0xc0ffee; 56 LogFlow(("RTFsQuerySerial: success stub!\n")); 57 return VINF_SUCCESS; 38 NOREF(pv); 39 NOREF(cb); 40 return VERR_NOT_SUPPORTED; 58 41 } 59 60 61 RTR3DECL(int) RTFsQueryProperties(const char *pszFsPath, PRTFSPROPERTIES pProperties) 62 { 63 pProperties->cbMaxComponent = 255; 64 pProperties->fCaseSensitive = true; 65 pProperties->fCompressed = false; 66 pProperties->fFileCompression = false; 67 pProperties->fReadOnly = false; 68 pProperties->fRemote = false; 69 pProperties->fSupportsUnicode = true; 70 LogFlow(("RTFsQueryProperties: success stub!\n")); 71 return VINF_SUCCESS; 72 } 73 42
Note:
See TracChangeset
for help on using the changeset viewer.