Changeset 101751 in vbox
- Timestamp:
- Nov 3, 2023 3:55:10 PM (13 months ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r101748 r101751 198 198 nsprpub/pr/include/prshm.h \ 199 199 nsprpub/pr/include/prshma.h \ 200 nsprpub/pr/include/prsystem.h \ 200 201 nsprpub/pr/include/prthread.h \ 201 202 nsprpub/pr/include/prtime.h \ -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/nspr.h
r101748 r101751 65 65 #include "prshm.h" 66 66 #include "prshma.h" 67 #include "prsystem.h" 67 68 #include "prthread.h" 68 69 #include "prtime.h" -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/prsystem.h
r101747 r101751 45 45 46 46 #ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 47 #define PR_GetDirectorySeparator VBoxNsprPR_GetDirectorySeparator48 #define PR_GetDirectorySepartor VBoxNsprPR_GetDirectorySepartor49 #define PR_GetPathSeparator VBoxNsprPR_GetPathSeparator50 #define PR_GetSystemInfo VBoxNsprPR_GetSystemInfo51 47 #define PR_GetPageSize VBoxNsprPR_GetPageSize 52 48 #define PR_GetPageShift VBoxNsprPR_GetPageShift 53 #define PR_GetNumberOfProcessors VBoxNsprPR_GetNumberOfProcessors54 49 #endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ 55 50 56 51 PR_BEGIN_EXTERN_C 57 58 /*59 ** Get the host' directory separator.60 ** Pathnames are then assumed to be of the form:61 ** [<sep><root_component><sep>]*(<component><sep>)<leaf_name>62 */63 64 NSPR_API(char) PR_GetDirectorySeparator(void);65 66 /*67 ** OBSOLETE -- the function name is misspelled.68 ** Use PR_GetDirectorySeparator instead.69 */70 71 NSPR_API(char) PR_GetDirectorySepartor(void);72 73 /*74 ** Get the host' path separator.75 ** Paths are assumed to be of the form:76 ** <directory>[<sep><directory>]*77 */78 79 NSPR_API(char) PR_GetPathSeparator(void);80 81 /* Types of information available via PR_GetSystemInfo(...) */82 typedef enum {83 PR_SI_HOSTNAME,84 PR_SI_SYSNAME,85 PR_SI_RELEASE,86 PR_SI_ARCHITECTURE87 } PRSysInfo;88 89 90 /*91 ** If successful returns a null termintated string in 'buf' for92 ** the information indicated in 'cmd'. If unseccussful the reason for93 ** the failure can be retrieved from PR_GetError().94 **95 ** The buffer is allocated by the caller and should be at least96 ** SYS_INFO_BUFFER_LENGTH bytes in length.97 */98 99 #define SYS_INFO_BUFFER_LENGTH 256100 101 NSPR_API(PRStatus) PR_GetSystemInfo(PRSysInfo cmd, char *buf, PRUint32 buflen);102 52 103 53 /* … … 111 61 NSPR_API(PRInt32) PR_GetPageShift(void); 112 62 113 /*114 ** PR_GetNumberOfProcessors() -- returns the number of CPUs115 **116 ** Description:117 ** PR_GetNumberOfProcessors() extracts the number of processors118 ** (CPUs available in an SMP system) and returns the number.119 **120 ** Parameters:121 ** none122 **123 ** Returns:124 ** The number of available processors or -1 on error125 **126 */127 NSPR_API(PRInt32) PR_GetNumberOfProcessors( void );128 129 63 PR_END_EXTERN_C 130 64
Note:
See TracChangeset
for help on using the changeset viewer.