summaryrefslogtreecommitdiff
path: root/src/pal/src/include/pal/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/src/include/pal/misc.h')
-rw-r--r--src/pal/src/include/pal/misc.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/pal/src/include/pal/misc.h b/src/pal/src/include/pal/misc.h
new file mode 100644
index 0000000000..65d59aee60
--- /dev/null
+++ b/src/pal/src/include/pal/misc.h
@@ -0,0 +1,83 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+/*++
+
+
+
+Module Name:
+
+ include/pal/misc.h
+
+Abstract:
+ Header file for the initialization and clean up functions
+ for the misc Win32 functions
+
+
+
+--*/
+
+#ifndef __MISC_H_
+#define __MISC_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+/*++
+Function :
+
+ PAL_rand
+
+ Calls rand and mitigates the difference between RAND_MAX
+ on Windows and FreeBSD.
+--*/
+int __cdecl PAL_rand(void);
+
+/*++
+Function :
+
+ PAL_time
+--*/
+PAL_time_t __cdecl PAL_time(PAL_time_t*);
+
+/*++
+Function:
+TIMEInitialize
+
+Return value:
+TRUE if initialize succeeded
+FALSE otherwise
+
+--*/
+BOOL TIMEInitialize( void );
+
+/*++
+Function :
+ MsgBoxInitialize
+
+ Initialize the critical sections.
+
+Return value:
+ TRUE if initialize succeeded
+ FALSE otherwise
+
+--*/
+BOOL MsgBoxInitialize( void );
+
+/*++
+Function :
+ MsgBoxCleanup
+
+ Deletes the critical sections.
+
+--*/
+void MsgBoxCleanup( void );
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+#endif /* __MISC_H_ */