2005-12-02 Matthias Clasen <mclasen@redhat.com>
+ * glib/gspawn.c:
+ * configure.in: Remove support for Solaris threads.
+ (#136971, Sebastian Wilhelmi, patch by Andrew Paprocki)
+
+2005-12-02 Matthias Clasen <mclasen@redhat.com>
+
* configure.in: Define G_GUINT64_CONSTANT in analogy to
G_GINT64_CONSTANT. (#322568, Andrew Paprocki)
+2005-12-02 Matthias Clasen <mclasen@redhat.com>
+
* glib/gslice.c: Win32 portability fixes and C99ism removal,
pointed out by Kazuki Iwamoto. (#323052)
2005-12-02 Matthias Clasen <mclasen@redhat.com>
+ * glib/gspawn.c:
+ * configure.in: Remove support for Solaris threads.
+ (#136971, Sebastian Wilhelmi, patch by Andrew Paprocki)
+
+2005-12-02 Matthias Clasen <mclasen@redhat.com>
+
* configure.in: Define G_GUINT64_CONSTANT in analogy to
G_GINT64_CONSTANT. (#322568, Andrew Paprocki)
+2005-12-02 Matthias Clasen <mclasen@redhat.com>
+
* glib/gslice.c: Win32 portability fixes and C99ism removal,
pointed out by Kazuki Iwamoto. (#323052)
2005-12-02 Matthias Clasen <mclasen@redhat.com>
+ * glib/gspawn.c:
+ * configure.in: Remove support for Solaris threads.
+ (#136971, Sebastian Wilhelmi, patch by Andrew Paprocki)
+
+2005-12-02 Matthias Clasen <mclasen@redhat.com>
+
* configure.in: Define G_GUINT64_CONSTANT in analogy to
G_GINT64_CONSTANT. (#322568, Andrew Paprocki)
+2005-12-02 Matthias Clasen <mclasen@redhat.com>
+
* glib/gslice.c: Win32 portability fixes and C99ism removal,
pointed out by Kazuki Iwamoto. (#323052)
dnl ***********************
AC_ARG_WITH(threads,
- [AC_HELP_STRING([--with-threads=@<:@none/posix/dce/solaris/win32@:>@],
+ [AC_HELP_STRING([--with-threads=@<:@none/posix/dce/win32@:>@],
[specify a thread implementation to use])],
[if test "x$with_threads" = x; then
want_threads=yes
# have_threads=none means no default thread implementation
have_threads=no
-if test "x$want_threads" = xyes || test "x$want_threads" = xsolaris; then
- case $host in
- *-*-solaris*)
- AC_CHECK_LIB(thread, cond_init, have_threads=solaris)
- ;;
- esac
-fi
if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
|| test "x$want_threads" = xdce; then
# -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
G_THREAD_CFLAGS="-threads"
G_THREAD_LIBS=$G_THREAD_CFLAGS
;;
- *-solaris*)
- if test x"$GCC" = xyes; then
- # We are using solaris threads. posix threads are
- # already catched above.
- G_THREAD_CFLAGS="-threads"
- else
- G_THREAD_CFLAGS="-mt"
- fi
- G_THREAD_LIBS=$G_THREAD_CFLAGS
- ;;
*-sysv5uw7*) # UnixWare 7
# We are not using gcc with -pthread. Catched above.
G_THREAD_CFLAGS="-Kthread"
AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
CPPFLAGS="$glib_save_CPPFLAGS"
;;
- solaris)
- mutex_has_default=yes
- mutex_default_type='mutex_t'
- mutex_default_init="DEFAULTMUTEX"
- mutex_header_file='thread.h'
- g_threads_impl="SOLARIS"
- ;;
win32)
g_threads_impl="WIN32"
;;
elif test x"$have_threads" = xwin32; then
# It's a pointer to a private struct
GLIB_SIZEOF(,struct _GThreadData *, system_thread)
- elif test x"$have_threads" = xsolaris; then
- GLIB_SIZEOF([#include <thread.h>], thread_t, system_thread)
fi
LIBS="$glib_save_LIBS"
2005-12-02 Matthias Clasen <mclasen@redhat.com>
+ * glib/building.sgml:
+ * glib/tmpl/threads.sgml:
+ * glib/glib-sections.txt: Remove G_THREADS_IMPL_SOLARIS
+
* glib/tmpl/types.sgml: Document G_GUINT64_CONSTANT.
2005-11-27 Matthias Clasen <mclasen@redhat.com>
<arg>--enable-threads</arg>
</group>
<group>
- <arg>--with-threads=[none|posix|dce|solaris|win32]</arg>
+ <arg>--with-threads=[none|posix|dce|win32]</arg>
</group>
<group>
<arg>--disable-included-printf</arg>
</para></listitem>
<listitem><para>
- 'solaris' uses the native Solaris thread implementation.
- </para></listitem>
-
- <listitem><para>
'none' means that GLib will be thread safe,
but does not have a default thread
implementation. This has to be supplied to
<SUBSECTION>
G_THREADS_ENABLED
G_THREADS_IMPL_POSIX
-G_THREADS_IMPL_SOLARIS
G_THREADS_IMPL_NONE
<SUBSECTION>
-<!-- ##### MACRO G_THREADS_IMPL_SOLARIS ##### -->
-
-<para>
-This macro is defined, if the Solaris thread system is used.
-</para>
-
-
-
<!-- ##### MACRO G_THREADS_IMPL_NONE ##### -->
<para>
#include "glibintl.h"
-/* With solaris threads, fork() duplicates all threads, which
- * a) could cause unexpected side-effects, and b) is expensive.
- * Once we remove support for solaris threads, the FORK1 #define
- * should be removedl
- */
-#ifdef G_THREADS_IMPL_SOLARIS
-#define FORK1() fork1()
-#else
-#define FORK1() fork()
-#endif
-
static gint g_execute (const gchar *file,
gchar **argv,
gchar **envp,
if (standard_error && !make_pipe (stderr_pipe, error))
goto cleanup_and_fail;
- pid = FORK1 ();
+ pid = fork ();
if (pid < 0)
{
*/
GPid grandchild_pid;
- grandchild_pid = FORK1 ();
+ grandchild_pid = fork ();
if (grandchild_pid < 0)
{
+2005-12-02 Matthias Clasen <mclasen@redhat.com>
+
+ * Makefile.am: Remove gthread-solaris.c
+
2005-11-17 Matthias Clasen <mclasen@redhat.com>
* === Released 2.9.0 ===
EXTRA_DIST = \
makefile.msc.in \
gthread-posix.c \
- gthread-solaris.c \
gthread-win32.c \
gthread-none.c \
gthread.def \