head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.52 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.50 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.48 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.46 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.44 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.42 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.40 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.38 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.36 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.34 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.32 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.30 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.28 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.26 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.24 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.22 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.20 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.18 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.16 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.14 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.12 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.10 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.8 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.6 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.4 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.2 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.5.0.2 pkgsrc-2003Q4-base:1.5 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2004.01.26.11.51.30; author jmmv; state dead; branches; next 1.5; 1.5 date 2003.05.18.13.09.03; author cjep; state Exp; branches; next 1.4; 1.4 date 2003.05.12.22.26.47; author augustss; state Exp; branches; next 1.3; 1.3 date 2003.05.12.20.17.49; author jmc; state Exp; branches; next 1.2; 1.2 date 2003.05.11.21.03.37; author jmc; state Exp; branches; next 1.1; 1.1 date 2003.04.25.04.39.55; author rh; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2003.04.25.04.39.55; author rh; state Exp; branches; next ; desc @@ 1.6 log @gstreamer moved to the multimedia category. @ text @$NetBSD: patch-ab,v 1.5 2003/05/18 13:09:03 cjep Exp $ --- tools/gst-launch.c.orig 2003-02-02 01:05:42.000000000 +0100 +++ tools/gst-launch.c 2003-05-13 00:24:19.000000000 +0200 @@@@ -1,7 +1,9 @@@@ +#include #include #include #include #include +#include #include static guint64 iterations = 0; @@@@ -10,6 +12,15 @@@@ static guint64 max = 0; static GstClock *s_clock; +#ifndef SI_USER +typedef struct { + char *si_addr; + int si_signo; + int si_errno; + int si_code; +} siginfo_t; +#endif + gboolean idle_func (gpointer data) { @@@@ -158,6 +169,20 @@@@ } +#ifndef SI_USER +void si_handler(int sig, int code, struct sigcontext *scp) +{ + siginfo_t si; + + si.si_addr = NULL; + si.si_signo = sig; + si.si_errno = errno; + si.si_code = code; + + fault_handler(sig, &si, scp); +} +#endif + static void fault_restore (void) { @@@@ -176,8 +201,13 @@@@ struct sigaction action; memset (&action, 0, sizeof (action)); +#ifdef SI_USER action.sa_sigaction = fault_handler; - action.sa_flags = SA_SIGINFO; + action.sa_flags = 0; +#else + action.sa_handler = (void (*)(int))si_handler; + action.sa_flags = 0; +#endif sigaction (SIGSEGV, &action, NULL); sigaction (SIGQUIT, &action, NULL); @ 1.5 log @Add NetBSD RCS tags. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Make the new patch actually apply. @ text @d1 1 @ 1.3 log @Redo siginfo patches to work correctly on -current also @ text @d1 2 a2 4 $NetBSD: patch-ab,v 1.2 2003/05/11 21:03:37 jmc Exp $ --- gst-launch.c.orig Sun Feb 2 00:05:42 2003 +++ gst-launch.c Mon May 12 12:14:44 2003 @ 1.2 log @Restructure siginfo patches so this can work on pre-siginfo systems as well @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1.1.1 2003/04/25 04:39:55 rh Exp $ d3 2 a4 2 --- tools/gst-launch.c.orig Sun Feb 2 00:05:42 2003 +++ tools/gst-launch.c Sun May 11 15:35:14 2003 d19 1 a19 1 +#ifndef SA_SIGINFO d35 1 a35 1 +#ifndef SA_SIGINFO d56 1 a56 1 +#ifdef SA_SIGINFO d58 2 a59 1 action.sa_flags = SA_SIGINFO; @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- tools/gst-launch.c.orig 2003-02-02 10:05:42.000000000 +1000 +++ tools/gst-launch.c d15 17 a31 1 @@@@ -158,6 +160,19 @@@@ fault_handler (int signum, siginfo_t *si d40 1 d52 1 a52 1 @@@@ -176,8 +191,13 @@@@ fault_setup (void) d60 1 a60 1 + action.sa_sigaction = (void (*)(int))si_handler; @ 1.1.1.1 log @Initial import of gstreamer-0.6.1, a multimedia streamer library for GNOME2 @ text @@