+2008-12-19 Jonathan Pryor <jpryor@novell.com>
+
+ * map.h: Flush.
+ * signal.c: Add Mono_Posix_SIGRTMIN(), Mono_Posix_SIGRTMAX(),
+ Mono_Posix_FromRealTimeSignum().
+ Patch thanks to tim.jenks@realtimeworlds.com.
+
2008-11-06 Alan McGovern <amcgovern@novell.com>
* Makefile.am: Missed out on a header file for minizip
int map_Mono_Posix_FileMode (int mode);
int map_Mono_Posix_OpenFlags (int flags);
int map_Mono_Posix_WaitOptions (int wait_options);
+int Mono_Posix_FromRealTimeSignum (int offset, int* rval);
int Mono_Posix_FromStatvfs (struct Mono_Posix_Statvfs* source, void* destination);
+int Mono_Posix_SIGRTMAX (void);
+int Mono_Posix_SIGRTMIN (void);
int Mono_Posix_Stdlib__IOFBF (void);
int Mono_Posix_Stdlib__IOLBF (void);
int Mono_Posix_Stdlib__IONBF (void);
_h (signum);
}
+int Mono_Posix_SIGRTMIN (void)
+{
+#ifdef SIGRTMIN
+ return SIGRTMIN;
+#else /* def SIGRTMIN */
+ return -1;
+#endif /* ndef SIGRTMIN */
+}
+
+int Mono_Posix_SIGRTMAX (void)
+{
+#ifdef SIGRTMAX
+ return SIGRTMAX;
+#else /* def SIGRTMAX */
+ return -1;
+#endif /* ndef SIGRTMAX */
+}
+
+int Mono_Posix_FromRealTimeSignum (int offset, int *r)
+{
+ *r = 0;
+#if defined (SIGRTMIN) && defined (SIGRTMAX)
+ if ((offset < 0) || (SIGRTMIN > SIGRTMAX - offset))
+ return -1;
+ *r = SIGRTMIN+offset;
+ return 0;
+#else
+ return -1;
+#endif
+}
+
#ifndef PLATFORM_WIN32
#ifdef WAPI_ATOMIC_ASM
int i, mr;
signal_info* h = NULL;
int have_handler = 0;
- void* handler;
+ void* handler = NULL;
mr = pthread_mutex_lock (&signals_mutex);
if (mr != 0) {