From MAILER-DAEMON Sat Mar 04 13:59:28 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckEtr-0008HJ-U3
	for mharc-gpsd-dev@gnu.org; Sat, 04 Mar 2017 13:59:27 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58574)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckEto-0008Fn-8R
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckEtl-0000QF-6B
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:24 -0500
Received: from col004-omc1s4.hotmail.com ([65.55.34.14]:64929)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckEtk-0000Pz-Q6
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:21 -0500
Received: from EUR02-AM5-obe.outbound.protection.outlook.com ([65.55.34.9]) by
	COL004-OMC1S4.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sat, 4 Mar 2017 10:59:18 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=BA2baZDw2DPDb5CDr7PQvwHqdffQMKWpdiQdji3sXWI=;
	b=WYT+HagF9c9g6r2lAxhIHbX4uK5K2x7dcl34fW6+GOSjpDcb1TLqNEXMGsmhBd2kTKQW/oSj6UcllV9/Ls1k+w4X/7p4YeYmNRGdKWzOddou5vuwJgR0D1zJD+WFoi6eNkUfEIr1YbXZRepqstGnysEGP6oeRKgOT0FOFE0ThjEWF30ge+8+PGtxrk1EMPT0t8OolpyuJF4L+xHA6SdcyqBhIZgomXuba/FjnjKKtrZ1w++8pnS/bpCQdwgZJmZWwSzBi+M5wrLFQR5LgTQ1Hs7i+kOWdlFcUUVEH1ZyvL3Jwn7mdQUkC4158AeGDTrAM9prVOLU8ustr56FPiTI3w==
Received: from VE1EUR02FT054.eop-EUR02.prod.protection.outlook.com
	(10.152.12.58) by VE1EUR02HT040.eop-EUR02.prod.protection.outlook.com
	(10.152.13.247) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sat, 4 Mar 2017 18:59:15 +0000
Received: from AM4PR08MB0865.eurprd08.prod.outlook.com (10.152.12.60) by
	VE1EUR02FT054.mail.protection.outlook.com (10.152.13.218) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sat, 4 Mar 2017 18:59:15 +0000
Received: from AM4PR08MB0865.eurprd08.prod.outlook.com ([10.164.83.23]) by
	AM4PR08MB0865.eurprd08.prod.outlook.com ([10.164.83.23]) with mapi id
	15.01.0947.018; Sat, 4 Mar 2017 18:59:15 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 1/4] This timeout parameter is used
Thread-Index: AQHSlRlrGFrRPtxUOUGQaNKBFeQYGw==
Date: Sat, 4 Mar 2017 18:59:15 +0000
Message-ID: <AM4PR08MB0865A0791CB60CF37D874CE88E2A0@AM4PR08MB0865.eurprd08.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:E69E91C398F26588ED9032893F102E8ADC48884E671B9DFD9880F9692B6F8413;
	UpperCasedChecksum:3C20387F467E3E9EA01C4B705EFDFD7301560B9975C80816866055CE502D08FE;
	SizeAsReceived:7427; Count:34
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 34
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; VE1EUR02HT040;
	5:sTHvS5EO4GEmMaPq4id91D0sVPKPNJJGW5djDhm4PZkNxDmPRO7uKpzVL4uMHhUhuJEVJzYfWxrnE/2L7AtY0KqS40vo/2Jn5OUUgNydDXG0tjTW+zP1shNY/oS2/+bmOZaMVQaN42hImk9dqzntUA==;
	24:1X3QIaw0dO4ikhebh6jlxtY0P+u7dJeOATzA0JbPlYL16E3BOV+9dMHailuCDMeWMzTjXO48hin4v1QG/4cyWcTfp1bk0qHSL2oyQZK5sdQ=;
	7:wbY6VmL5oOKiGuDHB/EZnq+HZ7PzretX796G55tZaacWDERtaIHGsrE49XfwrRaVWK5esE240qqerC2bajS5ihFcgkI8MKFwZM7x1wMuDXf/5QJCiGSJF5NrlB99zMuBVdKneWs31XF8swuDZ2+Z1tV/Z25qe1Pyke8hg/xtnmFD5gzQeVepJHyw3k28EmjogbEasXjKrmDrVtI035cbpciUGiJYoym3YaXcl6+ufk1DBDJD7iCQTnTDgsOWYm81DvM5vwGygDP26V7Z/zjdjZntJ6IgePFuP2448NJq8gvNdu9p9QkZe4hriEXGPVZb
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900015);
	DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR02HT040;
	H:AM4PR08MB0865.eurprd08.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 446c82d1-0d31-4c3b-4354-08d463308ce2
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:VE1EUR02HT040; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015137)(444000031); SRVR:VE1EUR02HT040; BCL:0; PCL:0;
	RULEID:; SRVR:VE1EUR02HT040; 
x-forefront-prvs: 0236114672
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2017 18:59:15.6801 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT040
X-OriginalArrivalTime: 04 Mar 2017 18:59:18.0876 (UTC)
	FILETIME=[6D5DF1C0:01D29519]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.34.14
Subject: [gpsd-dev] [PATCH 1/4] This timeout parameter is used
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Mar 2017 18:59:25 -0000

Thus remove the 'UNUSED' compiler hint.

TESTED:
Still compiles without any complaints
---
 libgps_shm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgps_shm.c b/libgps_shm.c
index 6d065ced..992b32ae 100644
--- a/libgps_shm.c
+++ b/libgps_shm.c
@@ -161,7 +161,7 @@ void gps_shm_close(struct gps_data_t *gpsdata)
 	(void)shmdt((const void *)PRIVATE(gpsdata)->shmseg);
 }
=20
-int gps_shm_mainloop(struct gps_data_t *gpsdata, int timeout UNUSED,
+int gps_shm_mainloop(struct gps_data_t *gpsdata, int timeout,
 			 void (*hook)(struct gps_data_t *gpsdata))
 /* run a shm main loop with a specified handler */
 {
--=20
2.11.0



From MAILER-DAEMON Sat Mar 04 13:59:31 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckEtv-0008KW-5E
	for mharc-gpsd-dev@gnu.org; Sat, 04 Mar 2017 13:59:31 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58594)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckEts-0008IA-NR
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckEtp-0000R0-M4
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:28 -0500
Received: from col004-omc2s13.hotmail.com ([65.55.34.87]:51304)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckEtp-0000Qo-BK
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:25 -0500
Received: from EUR02-AM5-obe.outbound.protection.outlook.com ([65.55.34.72])
	by COL004-OMC2S13.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sat, 4 Mar 2017 10:59:24 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=qIyN1QbhqHHUinkGzlsqePYIicQB4CnIsmPm3VXh6go=;
	b=EmJVZ/e31QtpeqOXZZ9ar+RsS4Kk6E9yP4MS6MQ8jHaMGKaKeSqk1AMY5aejbsLs5la3+o0SHfaZyAsLYYYxDRbA07XUNwh3jXxloTGR66J5WEtMsXpY1tDH/eJT5gWWG8fQ8u4cMLwaePvuKmOBTVu6bw9aahZI9kLjKWKyn+oMLisLK75JwWNwOl0cAgcB5zuXqT1+OKRccsoJxQlrJtBTJ4sOPdAxcmaK/J/q3Qng+P7E0l5skNQ2/LmV0BboKzahe5mWv4OW+z6eXMXReRzNchoWMzM8NEiV3iYIWP0Jr9m0t2ccrUIGgztftvNzxgvyi+qlRLxAK2erK/+Irw==
Received: from VE1EUR02FT054.eop-EUR02.prod.protection.outlook.com
	(10.152.12.58) by VE1EUR02HT087.eop-EUR02.prod.protection.outlook.com
	(10.152.13.131) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sat, 4 Mar 2017 18:59:22 +0000
Received: from AM4PR08MB0865.eurprd08.prod.outlook.com (10.152.12.60) by
	VE1EUR02FT054.mail.protection.outlook.com (10.152.13.218) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sat, 4 Mar 2017 18:59:22 +0000
Received: from AM4PR08MB0865.eurprd08.prod.outlook.com ([10.164.83.23]) by
	AM4PR08MB0865.eurprd08.prod.outlook.com ([10.164.83.23]) with mapi id
	15.01.0947.018; Sat, 4 Mar 2017 18:59:22 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 2/4] Fix gpxlogger to be able to run continuously
Thread-Index: AQHSlRlv1zlRpVeg9ECVfSUSdniIqw==
Date: Sat, 4 Mar 2017 18:59:21 +0000
Message-ID: <AM4PR08MB0865FC1841C660D2E098D4F98E2A0@AM4PR08MB0865.eurprd08.prod.outlook.com>
References: <20170304185855.18995-1-rw_norris@hotmail.com>
In-Reply-To: <20170304185855.18995-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:401DE5E16F546E54561063068F07AFE136A890A76D225DA49B9F40107A9A01CB;
	UpperCasedChecksum:B465C56E4399E055A7FFAFF840688A3048182321BE443BD391C69C8A8A02127F;
	SizeAsReceived:7584; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; VE1EUR02HT087;
	5:Fx7AhGQQoowjgFtoZYzPl+nnL3BD1Dq5Hrr/uHTsVRBJRAAU/J9xBoQSEOiDincXAcJUSvqBj8hg2E5Zi1km3ca6sZ7ILy5sh1+Dx/nJJeIro5AM9I5Xre6SZfF842mCUnR1zA7ZHx3fAX9ehmDFDg==;
	24:pdAj0B39dCRcDJdOI+Co7tgy+AG5CZpGxt4cnqRt14OF5TLSrfojtaKDHpKWmxSzZDE+F6EqsAYojoakm01lAXEi5EmwAsGgRN3I3cmuBNY=;
	7:BMB13U+8HRqtZh/swdt4e/YcIVJB3J7uMxOQcGI1MapTry5+zflBCHBmsim/eIXputGWUc9bO6GnOEyr75xMTfwcwIhQECQJAHU2aKs3XF0Vo/vCecgaMct3DD6yMrS+sb2Vk6G4N4ZdilAZcK6niaDS6sF0Y9pVFPtRcaxyFDG6C0nsh3HvBDNhQka3OAGZBUrtbZtzudnwQOZzK1SAexZFjRdGoBHCmWuP4vkW2bqlXZbqFIUt126NBFHEznK86fOLlIS+zB1hV15mTAbhCnJN9tkDWpHZp+x02Sir1JfGpKDWvNUV0HTeBLBmxZz+
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900015);
	DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR02HT087;
	H:AM4PR08MB0865.eurprd08.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: ff9be013-f792-44a2-a6da-08d4633090ea
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1603101448)(1601125254)(1701031045);
	SRVR:VE1EUR02HT087; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:VE1EUR02HT087; BCL:0; PCL:0;
	RULEID:; SRVR:VE1EUR02HT087; 
x-forefront-prvs: 0236114672
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2017 18:59:21.9147 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT087
X-OriginalArrivalTime: 04 Mar 2017 18:59:24.0213 (UTC)
	FILETIME=[708C4E50:01D29519]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.34.87
Subject: [gpsd-dev] [PATCH 2/4] Fix gpxlogger to be able to run continuously
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Mar 2017 18:59:29 -0000

My mistake in adding of parameter to run for a specified number of
received packets, such that it would never enter the loop when a
count was not specified.

TESTED:
test_gpsmm runs practically forever;
 or ends when the specified count is reached
---
 test_gpsmm.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test_gpsmm.cpp b/test_gpsmm.cpp
index d9668f5b..452b595e 100644
--- a/test_gpsmm.cpp
+++ b/test_gpsmm.cpp
@@ -111,7 +111,7 @@ static void libgps_dump_state(struct gps_data_t *collec=
t)
=20
 int main(int argc, char *argv[])
 {
-    uint looper =3D 0;
+    uint looper =3D UINT_MAX;
=20
     // A typical C++ program may look to use a more native option parsing =
method
     //  such as boost::program_options
@@ -151,7 +151,7 @@ int main(int argc, char *argv[])
     // If not specified then by default it loops until ll simply goes out =
of bounds
     // So with the 5 second wait & a 4 byte uint - this equates to ~680 ye=
ars
     //  - long enough for a test program :)
-    for (uint ll =3D 0; ll < looper ; ll++) {
+    for (uint ll =3D 0; ll < looper; ll++) {
 	struct gps_data_t* newdata;
=20
 	if (!gps_rec.waiting(5000000))
--=20
2.11.0



From MAILER-DAEMON Sat Mar 04 13:59:40 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckEu3-0008Sl-PJ
	for mharc-gpsd-dev@gnu.org; Sat, 04 Mar 2017 13:59:39 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58659)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckEu1-0008QE-05
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckEtx-0000SW-UZ
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:37 -0500
Received: from col004-omc2s18.hotmail.com ([65.55.34.92]:55028)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckEtx-0000SD-LX
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:33 -0500
Received: from EUR02-HE1-obe.outbound.protection.outlook.com ([65.55.34.73])
	by COL004-OMC2S18.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sat, 4 Mar 2017 10:59:32 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=FsUBz2wqxAvFEJPi+FXC1FWuTCmnQ+6iGvyCfEM/DFU=;
	b=Z6GY6HQPTJCzC3mbLwoYCIO036cA8sU8yEZUhmw6FTmMoe+S5P0OHrVGaxQOLiUmeg+SlMjlNSxBHlI3pVt+1enEjtZzOBIUH348X5O0L7/xQjYA+4xkjI6uG44sxJPDRi8xUaKRGmObdDY1cSXQ1LpoFwky4m5wGoEn9IlxiawyolJsytSohMFmP4IAPU8hlsYva7KcxPNsibzJ09CFzETXuYWK3ROAPWdIA9E4zncMzRDj+IEdbHQbspWSYkzMmIlq/qCMeG+LtCJLfW8fdE/sPUvU31MCL9vnhalNWD7ZYoncaEi6wejuwcYewenTIW7cjEa8dedQlDSYh9W9Kw==
Received: from VE1EUR02FT054.eop-EUR02.prod.protection.outlook.com
	(10.152.12.52) by VE1EUR02HT233.eop-EUR02.prod.protection.outlook.com
	(10.152.13.31) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sat, 4 Mar 2017 18:59:28 +0000
Received: from AM4PR08MB0865.eurprd08.prod.outlook.com (10.152.12.60) by
	VE1EUR02FT054.mail.protection.outlook.com (10.152.13.218) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sat, 4 Mar 2017 18:59:27 +0000
Received: from AM4PR08MB0865.eurprd08.prod.outlook.com ([10.164.83.23]) by
	AM4PR08MB0865.eurprd08.prod.outlook.com ([10.164.83.23]) with mapi id
	15.01.0947.018; Sat, 4 Mar 2017 18:59:27 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 3/4] dbus timeout parameter is in milliseconds.
Thread-Index: AQHSlRlyFSrJ8BAB2021OWAhJBN6Og==
Date: Sat, 4 Mar 2017 18:59:27 +0000
Message-ID: <AM4PR08MB0865C6CC82FB7C9E06D15E5B8E2A0@AM4PR08MB0865.eurprd08.prod.outlook.com>
References: <20170304185855.18995-1-rw_norris@hotmail.com>
In-Reply-To: <20170304185855.18995-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:B222120767BE300CD45A66C1E20E8EFE373773F373A599E6AB01643EBD485B6F;
	UpperCasedChecksum:BFF383F88DEC9776978B37E3459DAF830D9C7939DB7818EBBE63F48E911559E5;
	SizeAsReceived:7576; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; VE1EUR02HT233;
	5:0nGQXbjbkKSZLeIE/tJ+MOtmhULp18ntz7OxTyRjb8jierSpPNWvtYsGuPF2llaK0Ejnyikt5mihJbDItf9hTQJZ0xRQRovkM2YDHydjDSruv+2aE4RY8Bz2TPHiWXtio/JdbRgoUJcfabtqVIK0sw==;
	24:6RB673pJq1S0KFcvVDA9gTSu53Y77TX0hmQv9upjfLgcSc979GPUhEj6Ym9nWuceLMGd4CvOKh27FJUG3PbLjVFbGKoyZDrzh3vkDnBlkMc=;
	7:jFyIsppdoy+s38EEGn2Q4QmQ2fOIZ3yunPvom7QI0TFpZpGYgBjjYesrC569mL++JFBKCItAGtU33isz6oBwrSs+eXjRsc9oDBBF342v5FDp9lFv4aaEzVY5vYV7VaiRGstG6XYrBXgwxEZia18ICh2EFcw59GHw5Kq3QPOuklplFhD5zDYpSUL4C/uOIPTd9jr2YzyJgBJ6T2+YqtWmjFUpcjrHOIagIIuzjRqD2fs2LQ4NkvS8unPyGkMHfcW8zACzzaTP4w6zZ0WPvM/hfm2PfecqKjA++Lsfw/k2yjVhMREfRFKvbRbdKSEKCZjV
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900015);
	DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR02HT233;
	H:AM4PR08MB0865.eurprd08.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 6233d2e2-f0c3-4f99-1143-08d463309439
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:VE1EUR02HT233; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:VE1EUR02HT233; BCL:0; PCL:0;
	RULEID:; SRVR:VE1EUR02HT233; 
x-forefront-prvs: 0236114672
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2017 18:59:27.9149 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT233
X-OriginalArrivalTime: 04 Mar 2017 18:59:32.0182 (UTC)
	FILETIME=[754C4760:01D29519]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.34.92
Subject: [gpsd-dev] [PATCH 3/4] dbus timeout parameter is in milliseconds.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Mar 2017 18:59:38 -0000

The value passed into gps_mainloop() and thuis gps_dbus_mainloop()
is in microseconds.

Thus to convert from microseconds to milliseconds, one needs to divide by
1000 (not multiply!).

This also prevents the timeout value overflowing, when a large value
timeout is passed in.

NB This timeout value appears not to be actually used by current versions
of dbus, see this bug: https://bugs.freedesktop.org/show_bug.cgi?id=3D10006=
2
---
 libgps_dbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgps_dbus.c b/libgps_dbus.c
index 29cd0dd0..c5cffbf1 100644
--- a/libgps_dbus.c
+++ b/libgps_dbus.c
@@ -134,7 +134,7 @@ int gps_dbus_mainloop(struct gps_data_t *gpsdata,
     share_gpsdata =3D gpsdata;
     PRIVATE(share_gpsdata)->handler =3D (void (*)(struct gps_data_t *))hoo=
k;
     for (;;)
-	if (dbus_connection_read_write_dispatch(connection, timeout * 1000) !=3D =
TRUE)
+	if (dbus_connection_read_write_dispatch(connection, (int)(timeout/1000)) =
!=3D TRUE)
 	    return -1;
     return 0;
 }
--=20
2.11.0



From MAILER-DAEMON Sat Mar 04 14:00:02 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckEuP-0000Mr-Us
	for mharc-gpsd-dev@gnu.org; Sat, 04 Mar 2017 14:00:02 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58726)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckEuN-0000K4-0l
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 14:00:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckEuJ-0000W2-VP
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:59 -0500
Received: from blu004-omc4s17.hotmail.com ([65.55.111.156]:63313)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckEuJ-0000Vp-QO
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 13:59:55 -0500
Received: from EUR02-AM5-obe.outbound.protection.outlook.com ([65.55.111.136])
	by BLU004-OMC4S17.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sat, 4 Mar 2017 10:59:55 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=+xNNI9T9466KLybPUsepRuPz3T6wmgCfUHPWW/B95nI=;
	b=WuM3sQUyAfMDAVlKBDltfbTURwY5/BiUVqZCI8GaceRCtuwfMgPl5AVsqfSIIe0Nr+kSMCkKHMWp16Xng0+QB78bwFKX2ywnvgK5WvsWt5iWbJVZSLMNsgQvRBZHOCyuaMX0JNm3VUhkokh+1gFDE8h89n+zToDu4S8Xd0HruOWEiAJlBpagCThWxiw4xsoWUHNa6Dsn2gEtq9bdSGY+E+d8vOhblNUF/Zo9i01j74eZPnwm9QVu8bdyV1Evvoy7pjJj+glF/Gzw37ssuG5FvlfPdvNc2rfU8iRn6hyd3vWed2EsLiOSTflOGrLzJh7LBBJIkxAhGBEPKDgfDVtU/Q==
Received: from VE1EUR02FT054.eop-EUR02.prod.protection.outlook.com
	(10.152.12.53) by VE1EUR02HT075.eop-EUR02.prod.protection.outlook.com
	(10.152.13.39) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sat, 4 Mar 2017 18:59:34 +0000
Received: from AM4PR08MB0865.eurprd08.prod.outlook.com (10.152.12.60) by
	VE1EUR02FT054.mail.protection.outlook.com (10.152.13.218) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sat, 4 Mar 2017 18:59:34 +0000
Received: from AM4PR08MB0865.eurprd08.prod.outlook.com ([10.164.83.23]) by
	AM4PR08MB0865.eurprd08.prod.outlook.com ([10.164.83.23]) with mapi id
	15.01.0947.018; Sat, 4 Mar 2017 18:59:34 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 4/4] Describe gps_mainloop()
Thread-Index: AQHSlRl2mj7XMcyl3U6zANesG2P4AA==
Date: Sat, 4 Mar 2017 18:59:33 +0000
Message-ID: <AM4PR08MB0865D010E5F71CB72FD658B88E2A0@AM4PR08MB0865.eurprd08.prod.outlook.com>
References: <20170304185855.18995-1-rw_norris@hotmail.com>
In-Reply-To: <20170304185855.18995-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:8113624B62E6D33AA7E64CD890BC74C421190530D0044484959FEE539B29B121;
	UpperCasedChecksum:AB35978F6747FFD66B8ABBAB719E221FD91D7C7B8AA2812344389C33BE2574CF;
	SizeAsReceived:7475; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; VE1EUR02HT075;
	5:xWbCMvr2evRD46eg26dGm8b453UbLiciGiuyARjhUHsJfMftQ2ud1grNRgABfWWlBCkNFj+NSaO+T9i7D912hR7q4bjw+BL9D3fWUUF8sh/6ZtZfCYNrqNfilkskr5/e7eNQORbgR3jYuLXR8TMgew==;
	24:00M1kIg2vy/ilGBMOJyvQW1p6o1rRKUcE77hM3CBgGcAFeKZxm5r92JJFV+btNjuayX+nhUS71A/LkSTY4YGdnVUG9GrlsTNE7AYGgRcdf4=;
	7:OWpN6xJV0FnfP+51d0oie/8rjFrCeHSxeTfnpzFHPHIW24IKLOsfS5ZCOQhLjMyc1Fj43WcSe2uyHr1bdRgZ6UhK136x4AQ3/1Bq9m4FRKcGVoccl3RFBPf+IXvV1UJyfJKJRi4Hl+tEV9VAS9tONozjk0R0SAwsrXgilqRTwS/A21j3iMjd7Ue4aJ90ZJrBR47j+S0x9EO2JrefeG9Xc9E0oWIw5fDpakJotZshl+XgujE89So3CLW2kC/wmxOaG81PEEJG+QPrzKl1W/OTiLpLKjqGZGDDvFcxwwhdfLeW94dHcSzcjyz+eLS3Lwwa
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900015);
	DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR02HT075;
	H:AM4PR08MB0865.eurprd08.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: feb157a1-a694-4548-3bd8-08d463309808
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1603101448)(1601125254)(1701031045);
	SRVR:VE1EUR02HT075; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:VE1EUR02HT075; BCL:0; PCL:0;
	RULEID:; SRVR:VE1EUR02HT075; 
x-forefront-prvs: 0236114672
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2017 18:59:33.9933 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT075
X-OriginalArrivalTime: 04 Mar 2017 18:59:55.0217 (UTC)
	FILETIME=[83072410:01D29519]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.111.156
Subject: [gpsd-dev] [PATCH 4/4] Describe gps_mainloop()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Mar 2017 19:00:00 -0000

TESTED:
libgps.3 man page still created
---
 libgps.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/libgps.xml b/libgps.xml
index b96b7932..a0e7571f 100644
--- a/libgps.xml
+++ b/libgps.xml
@@ -66,6 +66,12 @@ C:
     <paramdef>void *<parameter>data</parameter></paramdef>
 </funcprototype>
 <funcprototype>
+<funcdef>int <function>gps_mainloop</function></funcdef>
+    <paramdef>struct gps_data_t *<parameter>gpsdata</parameter></paramdef>
+    <paramdef>int <parameter>timeout</parameter></paramdef>
+    <paramdef>void (*<parameter>hook</parameter>)(struct gps_data_t *gpsda=
ta)</paramdef>
+</funcprototype>
+<funcprototype>
 <funcdef>const char *<function>gps_errstr</function></funcdef>
     <paramdef>int <parameter>err</parameter></paramdef>
 </funcprototype>
@@ -166,6 +172,13 @@ following <function>gps_read()</function>; in that con=
text, because the
 latter does not block, it is probably better to write a simple read
 loop.</para>
=20
+<para><function>gps_mainloop()</function> enables the provided hook
+function to be continually called whenever there is gpsd data.
+The second argument is the maximum amount of time to wait (in microseconds=
)
+on input before exiting the loop (and return a value of -1).
+It will also return a negative value on various errors.
+</para>
+
 <para><function>gps_unpack()</function> parses JSON from the argument
 buffer into the target of the session structure pointer argument.
 Included in case your application wishes to manage socket I/O
--=20
2.11.0



From MAILER-DAEMON Sat Mar 04 18:05:23 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckIjr-00065d-67
	for mharc-gpsd-dev@gnu.org; Sat, 04 Mar 2017 18:05:23 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41197)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckIjp-00065B-8A
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:05:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckIjm-0007zB-3P
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:05:21 -0500
Received: from c.mail.sonic.net ([64.142.111.80]:54576)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1ckIjl-0007yn-Pu
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:05:18 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v24N5AeA019909
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:05:11 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v24N5AgZ029453
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:05:10 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v24N5AqE029447
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:05:10 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sat, 4 Mar 2017 15:05:10 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <AM4PR08MB086565F622C80FC5D41572468E520@AM4PR08MB0865.eurprd08.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703041459370.17598@bolt.sonic.net>
References: <AM4PR08MB086565F622C80FC5D41572468E520@AM4PR08MB0865.eurprd08.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVao3NjT4PAK83s6tOWpGDnhSxq8o9tY1Flzxa1YK5cvdN/KQYJ0x6vjyAXY3WN30sf4vM4HmsTnFzkUGqeNsApW
X-Sonic-ID: C;pguBBC8B5xGDwFFMduwp5g== M;CMS2BC8B5xGDwFFMduwp5g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 1/3] OS syslog compatibility fallback.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Mar 2017 23:05:22 -0000


On Fri, 24 Feb 2017, Robert Norris wrote:

> Mainly for Windows systems which doesn't have syslog().
[...]

I think it would be cleaner to have the conditional include of syslog.h
just in os_compat.h.  That means that anything using syslog would need to
include os_compat.h, but that's already needed for the fallback prototypes
and definitions, anyway.  Of course, anything not trying to work on
Windows could be left alone.

The set of syslog-related definitions could be pared down some.  Since
five of the eight priority definitions are used, it might as well include
all of them for completeness, but since only two of the openlog flags
(LOG_PID and LOG_PERROR) and only two of the facility codes (LOG_USER and
LOG_DAEMON) are used, it would make sense just to define those.

Fred Wright


From MAILER-DAEMON Sat Mar 04 18:13:54 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckIs6-0007KG-Lt
	for mharc-gpsd-dev@gnu.org; Sat, 04 Mar 2017 18:13:54 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42541)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckIs4-0007JF-Cs
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:13:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckIs1-0002Kp-7K
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:13:52 -0500
Received: from c.mail.sonic.net ([64.142.111.80]:59378)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1ckIs0-0002KO-TC
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:13:49 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v24NDkaP028965
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:13:46 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v24NDkke003393
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:13:46 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v24NDWaN003135
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:13:46 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sat, 4 Mar 2017 15:13:32 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <AM4PR08MB0865EA212F3705C0F7B151278E520@AM4PR08MB0865.eurprd08.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703041505230.17598@bolt.sonic.net>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865EA212F3705C0F7B151278E520@AM4PR08MB0865.eurprd08.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZXz0eN16+fKlX5vNRtgn/U1mgC34n3Bjww6GxD1RQkqJGKu70HJp7DDNPh18SZk0d6nEZHnsAMov/aXIWHcflC
X-Sonic-ID: C;fMO0NzAB5xGM4VFMduwp5g== M;yjrWNzAB5xGM4VFMduwp5g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 2/3] Enable Windows version of gpxlogger
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Mar 2017 23:13:53 -0000


On Fri, 24 Feb 2017, Robert Norris wrote:

> Disable daemonize option which is not available on Windows.

Here there's a choice between:

1) Offering an option that doesn't actually work (but AFAIK fails
gracefully and informatively).

2) Cluttering the code with conditionals needed solely to support
everyone's least favorite platform.

It's also worth noting that there's currently no mechanism for conditional
manpage content, so #2 also makes the usage text inconsistent with the
manpage.

On that basis, I'd be more inclined to go with #1, perhaps with a "doesn't
work on Windows" note in the manpage (if manpages actually work on
Windows).  The "gracefully and informatively" part should be verified,
though.  I did change the error from EINVAL to EPERM, which seems more
appropriate.

> Add check for signal compatibility as SIGQUIT may not be available.

I added a default definition for SIGQUIT (as well as SIGHUP), so this
should be unnecessary (but should be tested on Windows).

Thus, I think for now at least, this patch can go away altogether.

Fred Wright


From MAILER-DAEMON Sat Mar 04 18:22:54 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckJ0o-0000Je-4j
	for mharc-gpsd-dev@gnu.org; Sat, 04 Mar 2017 18:22:54 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43871)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckJ0m-0000JW-5m
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:22:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckJ0i-0005Ex-UU
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:22:52 -0500
Received: from d.mail.sonic.net ([64.142.111.50]:52968)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1ckJ0i-0005E4-Jr
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:22:48 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v24NMjmL000738
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:22:45 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v24NMj41009063
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:22:45 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v24NMf7O008943
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:22:45 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sat, 4 Mar 2017 15:22:41 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <AM4PR08MB0865A9D8385CF2BF337017E38E520@AM4PR08MB0865.eurprd08.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703041514010.17598@bolt.sonic.net>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865A9D8385CF2BF337017E38E520@AM4PR08MB0865.eurprd08.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVaNnymFnkOP4XjrjZUWWNSVzujjquqn0CaI4+TJlB0kZF5OQFD5k5HWeDNqAgrQPAqnHIAbSxr+QS3TESnIyhX6
X-Sonic-ID: C;9IEOeTEB5xGc8EJHGpqj1g== M;XP4zeTEB5xGc8EJHGpqj1g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Mar 2017 23:22:53 -0000


On Fri, 24 Feb 2017, Robert Norris wrote:

> Use recv() rather than read() for Windows compatibility.

This seems like a good idea in general, though again it would be better to
confine the conditional include stuff to os_compat.h.

The select-related stuff has issues here:

1) It's testing the nonexistent HAVE_SELECT_H instead of
HAVE_SYS_SELECT_H, so it's not including select.h on *any* platform.

2) It doesn't have an alternative for select.h in the Windows case, but is
still using select().

I believe the reason neither of these is causing trouble is due to an
indirect include via some other header, but that's fragile.

> Disable options not available on Windows (serial port, daemonize).

Again, at least until there's conditional manpage content, it's probably
better to include the non-working options, as long as the code builds and
fails correctly.

BTW, if daemonization support *were* conditional, it would be better to
define a flag for that specific purpose in os_compat.h, rather than
exposing the relationship between daemonization and fork().

Fred Wright


From MAILER-DAEMON Sat Mar 04 18:33:48 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckJBM-0001b2-Kp
	for mharc-gpsd-dev@gnu.org; Sat, 04 Mar 2017 18:33:48 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44909)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckJBK-0001aw-NI
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:33:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckJBH-0008Bg-LF
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:33:46 -0500
Received: from c.mail.sonic.net ([64.142.111.80]:41192)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1ckJBH-0008BP-As
	for gpsd-dev@nongnu.org; Sat, 04 Mar 2017 18:33:43 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v24NXe8Y013377
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:33:40 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v24NXest017356
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:33:40 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v24NXdNv017340
	for <gpsd-dev@nongnu.org>; Sat, 4 Mar 2017 15:33:40 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sat, 4 Mar 2017 15:33:39 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <AM4PR08MB0865D010E5F71CB72FD658B88E2A0@AM4PR08MB0865.eurprd08.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703041524320.17598@bolt.sonic.net>
References: <20170304185855.18995-1-rw_norris@hotmail.com>
	<AM4PR08MB0865D010E5F71CB72FD658B88E2A0@AM4PR08MB0865.eurprd08.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVa8ERn66tEqJrxXQ3teWol5lZr0pKLcR5FGn8TQ42XYw1+MeSl6646Ge+Tmo/1xN5JgAzAGbbKi9iSnsheE0irQ
X-Sonic-ID: C;4mhc/zIB5xGxsFFMduwp5g== M;ujCA/zIB5xGxsFFMduwp5g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 4/4] Describe gps_mainloop()
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Mar 2017 23:33:47 -0000


Merged all four patches in this set.

A couple of notes:

1) "UNUSED" is for warning suppression, not a "hint".  I'm not sure why
GPSD doesn't like the usual cast-to-void approach to this.

2) An alternative way to do the "looper" thing is:

	uint looper = 0;

	...

	do {
		...
	} while (--looper);

This loops exactly "looper" times, automatically treats 0 as 2^N, and
doesn't need an extra variable.

Fred Wright


From MAILER-DAEMON Sun Mar 05 06:34:37 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckUQv-0006pV-El
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 06:34:37 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38466)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckUQs-0006pO-Rm
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 06:34:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckUQo-0005Sq-Q5
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 06:34:34 -0500
Received: from blu004-omc1s24.hotmail.com ([65.55.116.35]:59764)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckUQo-0005Si-GN
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 06:34:30 -0500
Received: from EUR01-HE1-obe.outbound.protection.outlook.com ([65.55.116.8])
	by BLU004-OMC1S24.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 03:34:29 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=PAaaIONBwX18NDx4d93cpGs4u2LDJ60XUvYk851gTy4=;
	b=UulSmjgx2wlMPfViosff+4nlhWcNBu4P0H9+C+v+2BvomH2KzGxKUD7OO0A7G1UI6dp1XVnspGc8Pv45+GLEC4M/J8UQHIhXjk6sizZhYhmpg9aDWsCCeVdbJEQWxbyURK6UBEp+JA0+VFPf8G7nwsvcyxWmAZWPUJPR/RMdP9PrNKi1YblNkXzzL89/xTCsLmkcIpubWMHuud4XKVkueIni06rK1MRQ67N/1RZ6ioc329XLoFYlDGUj5/WV9yiiLKzGTCbWRelzpVy5LUnWui25G1gCbjiWS4JxAniOJv2cvzoHMEQhxGsF1BwxnwGeSrL0eogq8qewD2y2cWGg5g==
Received: from DB5EUR01FT051.eop-EUR01.prod.protection.outlook.com
	(10.152.4.52) by DB5EUR01HT245.eop-EUR01.prod.protection.outlook.com
	(10.152.5.230) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sun, 5 Mar 2017 11:34:27 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.4.59) by
	DB5EUR01FT051.mail.protection.outlook.com (10.152.5.6) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.933.11 via Frontend Transport; Sun, 5 Mar 2017 11:34:27 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 11:34:26 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [gpsd-dev] [PATCH 2/3] Enable Windows version of gpxlogger
Thread-Index: AQHSjvEQcP7dFFipukiy+XaepLKl26GFW/8AgAC7BSc=
Date: Sun, 5 Mar 2017 11:34:26 +0000
Message-ID: <HE1PR09MB0732A6FC2FF4A2C0AE5E1DA68E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865EA212F3705C0F7B151278E520@AM4PR08MB0865.eurprd08.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703041505230.17598@bolt.sonic.net>
In-Reply-To: <Pine.LNX.4.58L1X.1703041505230.17598@bolt.sonic.net>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:E53FBEB9FE26E192AC3F718E5AF0F1D17C3D53D564D7BD1D2AFE55F8370ED6C3;
	UpperCasedChecksum:EFBD920ADC40680290427D89214BF2CB649D90DB3CE22EFAC86F019908A2A971;
	SizeAsReceived:7906; Count:39
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [qJgOYb/4IXEU0gJrU1SYnoAtyH1c6p1x]
x-incomingheadercount: 39
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; DB5EUR01HT245;
	5:s1WOROlyRFGY5G/fPZ8k83hjg1i377jDa2bYxnoFyZxbv72nuz0e7YTIdh558Ni8AB2uJJVi+9RIJuDmQr7MJBNjtER+dGpbbdSYD742VidOdqTT4qzpe32v7fW6XNz19knnvV98XIvNKUN+i4+5pQ==;
	24:CShGPuP5VrQGgjHgNGu37HepvnMeqPVIGc9RWcGaJsjso0shrlqKoJPv30zNZ3ja0REZQzPY6E9o3iBljXqL7Uog792UpP3Pldnb3gkLlOI=;
	7:7ust7PFVQLGH9pj5ClRiHgOV0+XUB5sh8WegWCoahteDPG7tIU/MyDl1EY4jlaVO8Q2Zz1ThfnjxG6alk9p7bYW3HVC8jxrzSDzMWEjBXI+RMh4IzQqF4Ru/z9BUTC5vjZUrJdym9AhhQQHWu2XmQTQ17pAJVHXB+Uu9xhxSVAmv78DQ93SukHCfciRmjWWXFXrYSEhld5EyPCwcJAb5dOWypnEhY+OsCHzPXJd+eEEj+gpRPjTooIzEjMm6Pzc48AJjJ5qJ8zw3eYYmLEq8e9JT8EK7rfNqdMJIylzWntdfmfewhG5lGZxHNkAKG+eS
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900015);
	DIR:OUT; SFP:1102; SCL:1; SRVR:DB5EUR01HT245;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: d6946e10-4334-4a65-533d-08d463bb94a2
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1603101448)(1601125254)(1701031045);
	SRVR:DB5EUR01HT245; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:DB5EUR01HT245; BCL:0; PCL:0;
	RULEID:; SRVR:DB5EUR01HT245; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 11:34:26.9157 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT245
X-OriginalArrivalTime: 05 Mar 2017 11:34:29.0916 (UTC)
	FILETIME=[73EB95C0:01D295A4]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.116.35
Subject: Re: [gpsd-dev] [PATCH 2/3] Enable Windows version of gpxlogger
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 11:34:36 -0000


> Here there's a choice between:
>
> 1) Offering an option that doesn't actually work (but AFAIK fails
> gracefully and informatively).
>
> 2) Cluttering the code with conditionals needed solely to support
> everyone's least favorite platform.

Initially I started with option 1), since it's obviously less code change a=
nd seemed alright for gpxlogger to simply complain.

However in gpspipe I didn't see a simple way for a failure mode in the seri=
al port option, so I choose to disable it completely for Windows and so did=
 the same for the daemonize option. Although now I see there might be way.

I don't think I've ever seen man pages on Windows.
For distributing libgps.dll, gpspipe.exe and gpxlogger.exe I was thinking o=
f just offering the binaries only.

The man pages can often be found online (e.g. http://manpages.ubuntu.com/ma=
npages/zesty/man1/gpspipe.1.html)

However it would seem strange to mention Windows issues in the man pages, w=
hen they there mainly for Unix like systems.
And especially as I've no plan for Windowizing any other gpsd items.

Perhaps a statement about Windows support would be better off somewhere in =
the www/ documentation.
Words along the lines of:

gpsd (the main service daemon) and most gpsd tools are for Unix like system=
s since this is where they are developed and tested.

Remote access over sockets via the C library and the simple command line to=
ols of gpspipe and gpxlogger is supported.

gpxlogger/gpspipe have limitations X, Y, Z on Windows.


--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.

________________________________________
From: gpsd-dev <gpsd-dev-bounces+rw_norris=3Dhotmail.com@nongnu.org> on beh=
alf of Fred Wright <fw@fwright.net>
Sent: 04 March 2017 23:13:32
To: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH 2/3] Enable Windows version of gpxlogger

On Fri, 24 Feb 2017, Robert Norris wrote:

> Disable daemonize option which is not available on Windows.

Here there's a choice between:

1) Offering an option that doesn't actually work (but AFAIK fails
gracefully and informatively).

2) Cluttering the code with conditionals needed solely to support
everyone's least favorite platform.

It's also worth noting that there's currently no mechanism for conditional
manpage content, so #2 also makes the usage text inconsistent with the
manpage.

On that basis, I'd be more inclined to go with #1, perhaps with a "doesn't
work on Windows" note in the manpage (if manpages actually work on
Windows).  The "gracefully and informatively" part should be verified,
though.  I did change the error from EINVAL to EPERM, which seems more
appropriate.

> Add check for signal compatibility as SIGQUIT may not be available.

I added a default definition for SIGQUIT (as well as SIGHUP), so this
should be unnecessary (but should be tested on Windows).

Thus, I think for now at least, this patch can go away altogether.

Fred Wright



From MAILER-DAEMON Sun Mar 05 07:42:41 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckVUn-0002ou-6e
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 07:42:41 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45225)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckVUk-0002nx-W7
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 07:42:40 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckVUg-0006mD-33
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 07:42:39 -0500
Received: from snt004-omc1s5.hotmail.com ([65.55.90.16]:63782)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckVUf-0006km-PG
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 07:42:34 -0500
Received: from EUR03-DB5-obe.outbound.protection.outlook.com ([65.55.90.7]) by
	SNT004-OMC1S5.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 04:42:32 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=BznsR8OolPIqIWBOPJYaXyLLqVaHCxNwvwARAVviwCc=;
	b=ECYF7YoT3PHARdoCh/ttETH+3/mmwRNxzOHAkRDeJmGZvdLEIAvJaup1Po/opbBH1EWWpBCcIjwKqTjvTKh0CLci1XjmkU4ZyWjaWnD7Hd3Pf7A0F+8B+nJp8RfWA6HshHpge+gmfCQ9iCMZ+EAIzyr5p8zJ1gTl1tEwgg4QIrMZezoMqxQqoKFpbIQNfxYcA1yeXrKdUUTIZui4671y+91F/YFunWyQcQw/mdaVL+o7q5dt9g41fhNnyO+hxCRd6yPM8Ri5eOW11yrOoJ9XY5yrGD1ZJXd4yz6iGYM2Y2mQW1KHioE/aAOKFo+gAxb49xFWVaCilXMYxAU172LxFw==
Received: from DB5EUR03FT031.eop-EUR03.prod.protection.outlook.com
	(10.152.20.53) by DB5EUR03HT071.eop-EUR03.prod.protection.outlook.com
	(10.152.21.168) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sun, 5 Mar 2017 12:42:25 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.20.53) by
	DB5EUR03FT031.mail.protection.outlook.com (10.152.20.142) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sun, 5 Mar 2017 12:42:25 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 12:42:25 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe
Thread-Index: AQHSjvETtJ9F2yBjzkWqIdEyLzYjuaGFXo6AgADa7zM=
Date: Sun, 5 Mar 2017 12:42:24 +0000
Message-ID: <HE1PR09MB07328A456C537FCC25C9F57B8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865A9D8385CF2BF337017E38E520@AM4PR08MB0865.eurprd08.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703041514010.17598@bolt.sonic.net>
In-Reply-To: <Pine.LNX.4.58L1X.1703041514010.17598@bolt.sonic.net>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:C864117F4DE1F1AB0B97A5AFED4F0C43CFA54898A92B1F81C3058DD26CFFFAB3;
	UpperCasedChecksum:7BB00DA21F891217A554C2E2959E13F688DAAC350F31A189A93DDC1BC766DED6;
	SizeAsReceived:7913; Count:39
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [/ir1EMxVmL+9Bi5Msegqj1+2INC7QJIR]
x-incomingheadercount: 39
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; DB5EUR03HT071;
	5:10ruDLyBbyab+8Yb64G4Acfgq7MFJYIDYeKrm0kRU51EoYv8gExslQISApL+wHDJvY/ER+mlOGL9lLiTeeMiAEHBPKE5OEp07o8cmakB03koDTZrdJNFWZ7ZE8yNm9mRyoje5nqPeu+9atsM5ephtw==;
	24:wpPPoxAKCbU8KX/Nsi7QMOr4325KGC11oBJKm4ZWKqZCyDpGgM4/7sUVzlq2ZnJgAyZvKxIAl+lRwjukPpE/1iU5Fm+MCJ42dxLcLIE+KSg=;
	7:Ud1TqX3zwnyiykPYM5RUxWq0VZs9f/D+m8AcdWrKgCQsbJC4Z3SEgwq3y2D/Jqvuqy9zYRyKLFIJxghWFkHBGQeETdXGk1YWxsB1SsfkUac5sn09gM4g1DG/3q5MaCCbedcr3r4yjAH6A1JoyN2Q6TDePctQLc5hc9LnH/corumP5sWdEpEfTEOyZThLMfGkE6gEalaym6za3OnxRYkFFfKJhLIIAuA8aggrMSNYdy6so8vWt+W+aQNGhvaGG6PpW4ff9cIv8WWnhiK3MEMmOPYZpa2hdloBt2FXpNKGBhRW/0xTAVW42wIeSfoSYhBi
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900015);
	DIR:OUT; SFP:1102; SCL:1; SRVR:DB5EUR03HT071;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 7159d97f-1421-4043-daa6-08d463c51368
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:DB5EUR03HT071; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:DB5EUR03HT071; BCL:0; PCL:0;
	RULEID:; SRVR:DB5EUR03HT071; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 12:42:24.8459 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR03HT071
X-OriginalArrivalTime: 05 Mar 2017 12:42:32.0893 (UTC)
	FILETIME=[F5906ED0:01D295AD]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.90.16
Subject: Re: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 12:42:40 -0000

>> Use recv() rather than read() for Windows compatibility.

> This seems like a good idea in general, though again it would be better t=
o
> confine the conditional include stuff to os_compat.h.

This isn't a conditional. Using recv() with a 0 for the third parameter is =
equivalent to using read().
However on Windows read() doesn't work with sockets, hence the need to use =
recv() instead.

HAVE_SELECT_H -> D'oh!

select() on Windows is available via winsock2.h

NB with the syslog compatibility patch (which I'll rework as requested) - g=
pxlogger builds without further changes.

--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.

________________________________________
From: gpsd-dev <gpsd-dev-bounces+rw_norris=3Dhotmail.com@nongnu.org> on beh=
alf of Fred Wright <fw@fwright.net>
Sent: 04 March 2017 23:22:41
To: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe

On Fri, 24 Feb 2017, Robert Norris wrote:

> Use recv() rather than read() for Windows compatibility.

This seems like a good idea in general, though again it would be better to
confine the conditional include stuff to os_compat.h.

The select-related stuff has issues here:

1) It's testing the nonexistent HAVE_SELECT_H instead of
HAVE_SYS_SELECT_H, so it's not including select.h on *any* platform.

2) It doesn't have an alternative for select.h in the Windows case, but is
still using select().

I believe the reason neither of these is causing trouble is due to an
indirect include via some other header, but that's fragile.

> Disable options not available on Windows (serial port, daemonize).

Again, at least until there's conditional manpage content, it's probably
better to include the non-working options, as long as the code builds and
fails correctly.

BTW, if daemonization support *were* conditional, it would be better to
define a flag for that specific purpose in os_compat.h, rather than
exposing the relationship between daemonization and fork().

Fred Wright



From MAILER-DAEMON Sun Mar 05 13:43:42 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckb8A-0002lI-Lv
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 13:43:42 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52388)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckb87-0002lB-IL
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 13:43:40 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckb84-0007ZH-Fk
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 13:43:39 -0500
Received: from blu004-omc1s31.hotmail.com ([65.55.116.42]:54458)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckb84-0007Yp-10
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 13:43:36 -0500
Received: from EUR01-DB5-obe.outbound.protection.outlook.com ([65.55.116.8])
	by BLU004-OMC1S31.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 10:43:35 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=3GnC3fweupkVERHteDCKJsIdwclsXaZmx6t2bKHZ5rg=;
	b=djtY86MTeeW+z0nWtWA2gQLKwZH6Igct1cLreVGzHILIT3smQA1uTJKy+b3bEGYczxamY8xozj20vDFWOtOqgK44swNVUlnW6GXoBAywRmvMzl8cXfT3v1ojec5lL4S3ftv4bx4Qm57A3ax9uZLZfXeRBFqAMs6KcJq0sGcI+ZL+MetppXtEne9Yl3JrmKC7zrwQakCZOUxSMec6P53r+UP5O/matqkLkA8q7g8lGcv7Lot77LopvGeO9WDzwEphth0PXuq2B6aXJs+he2RywxQ0atok0W4VteXJE2fTat5EhF7RTkQsMgdVi8FmZpJxSi0ZKnwGESNBjOusrU6fOQ==
Received: from DB5EUR01FT010.eop-EUR01.prod.protection.outlook.com
	(10.152.4.52) by DB5EUR01HT248.eop-EUR01.prod.protection.outlook.com
	(10.152.5.249) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sun, 5 Mar 2017 18:43:33 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.4.58) by
	DB5EUR01FT010.mail.protection.outlook.com (10.152.4.136) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.933.11 via Frontend Transport; Sun, 5 Mar 2017 18:43:33 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 18:43:33 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 1/2] OS syslog compatibility fallback.
Thread-Index: AQHSleBjEx+r8GMGZ0+aVOPvs+bORQ==
Date: Sun, 5 Mar 2017 18:43:33 +0000
Message-ID: <HE1PR09MB0732F1E5A5E710F79E7924778E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:1F40CAD7AB34291DDBCDF97636E2A404A5FA9713F330A505D831101793064B09;
	UpperCasedChecksum:971B7B11116455CD9EB3909135E6657CD9150801B8B8C28AD7568CB0C84CE861;
	SizeAsReceived:7443; Count:34
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 34
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; DB5EUR01HT248;
	5:Rsq2yvLvjXaZFcfKXvoVOlphFar9WOSgguFU+HW9aLpGKx4jpTnmWikKrEy4l1Q+kw7xOkvSG0v8bsTPsbGIOAE1O9jqGwIiyJemsItZMK/X6LG7MDy/TOSwzod5XVKj4NczAYWT/7uPe9qH4Nd93A==;
	24:QEZ0Mlj70aj3gz0BJ/p85pXm1aiRkMS5KcaPKtls7ywjosIrpu7Z+qHYyonXDBBGxeqbacbumdt9/MMxPS35OjFwrkt5PcFWb3O5O9MogH8=;
	7:9k67UCfvsGFw5c72uf9eqibOwNEEjEAZI7m02FKd5kRnk+Sf/YZET49UgF1cMDagOAFBSx+RVcs9zcT53m50v/oQDuPRPOhfZJ0DXlugi+cMhktdRPTcm32iA/tPIQb8TEwBJkG3i2qJuGN0yfpoAEDh1KitXbSk6cOofHPBNty073XOwtQfuhBJBRiYSvZ54xsbLgFy8lNrjrrEBTTssK2Rre7xqEa2/pewatUOMkXnhBnbjqvbWvcKSjuVFvJT3uyfg3ZqoPbgo+XXORjjLbNLvmCK6MB4HdLkemm2WNclbSeXOSEFGz+dS2d//12b
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:DB5EUR01HT248;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: c3118278-1875-4d58-b4a2-08d463f784c3
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1603101448)(1601125254)(1701031045);
	SRVR:DB5EUR01HT248; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:DB5EUR01HT248; BCL:0; PCL:0;
	RULEID:; SRVR:DB5EUR01HT248; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 18:43:33.3605 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT248
X-OriginalArrivalTime: 05 Mar 2017 18:43:35.0399 (UTC)
	FILETIME=[656C8770:01D295E0]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.116.42
Subject: [gpsd-dev] [PATCH 1/2] OS syslog compatibility fallback.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 18:43:40 -0000

Mainly for Windows systems which doesn't have syslog().

Implement simple fallback to print to stderr,
 rather than a more complicated use of Windows Event Log.

Also basic fallbacks for openlog() and closelog() which
 don't really do anything.

TESTED:
Functions build on Windows cross build
'scons build-all check' passes on Linux
---
 SConstruct  |  2 +-
 gpxlogger.c |  1 -
 os_compat.c | 30 ++++++++++++++++++++++++++++++
 os_compat.h | 32 ++++++++++++++++++++++++++++++++
 4 files changed, 63 insertions(+), 2 deletions(-)

diff --git a/SConstruct b/SConstruct
index 339996de..b9ced4a9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -761,7 +761,7 @@ else:
             announce("You do not have the endian.h header file. RTCM V2 su=
pport disabled.")
             env["rtcm104v2"] =3D False
=20
-    for hdr in ("sys/un", "sys/socket", "sys/select", "netdb", "netinet/in=
", "netinet/ip", "arpa/inet", "termios", "winsock2"):
+    for hdr in ("sys/un", "sys/socket", "sys/select", "netdb", "netinet/in=
", "netinet/ip", "arpa/inet", "syslog", "termios", "winsock2"):
         if config.CheckHeader(hdr + ".h"):
             confdefs.append("#define HAVE_%s_H 1\n" % hdr.replace("/","_")=
.upper())
         else:
diff --git a/gpxlogger.c b/gpxlogger.c
index d93d527b..141b7486 100644
--- a/gpxlogger.c
+++ b/gpxlogger.c
@@ -7,7 +7,6 @@
 #include <stdlib.h>
 #include <stdbool.h>
 #include <string.h>
-#include <syslog.h>
 #include <math.h>
 #include <time.h>
 #include <errno.h>
diff --git a/os_compat.c b/os_compat.c
index fa4d85b2..8c117379 100644
--- a/os_compat.c
+++ b/os_compat.c
@@ -130,6 +130,36 @@ int os_daemon(int nochdir, int noclose)
=20
 /* Provide BSD strlcat()/strlcpy() on platforms that don't have it */
=20
+#ifndef HAVE_SYSLOG_H
+#include "compiler.h"
+#include <stdarg.h>
+#include <stdio.h>
+/*
+ * Minimal syslog() fallback to print to stderr
+ *
+ */
+PRINTF_FUNC(2, 3) void syslog(int priority UNUSED, const char *format, ...=
)
+{
+  /* ATM ignore priority (i.e. don't even both prepending to output) */
+  char buf[BUFSIZ];
+  va_list ap;
+  va_start(ap, format);
+  /* Always append a new line to the message */
+  (void)vsnprintf(buf, sizeof(buf) - 2, format, ap);
+  (void)fprintf(stderr, "%s\n", buf);
+  va_end(ap);
+}
+
+void openlog (const char *__ident UNUSED, int __option UNUSED, int __facil=
ity UNUSED)
+{
+  (void)fprintf(stderr, "Warning openlog() not available\n");
+}
+
+void closelog (void)
+{
+}
+#endif /* !HAVE_SYSLOG_H */
+
 /*
  * These versions use memcpy and strlen() because they are often
  * heavily optimized down to assembler level. Thus, likely to be
diff --git a/os_compat.h b/os_compat.h
index 00e56559..9321809f 100644
--- a/os_compat.h
+++ b/os_compat.h
@@ -57,6 +57,38 @@ int clock_gettime(clockid_t, struct timespec *);
=20
 int os_daemon(int nochdir, int noclose);
=20
+
+#ifdef HAVE_SYSLOG_H
+#include <syslog.h>
+#else
+/*
+ * Substitutes for syslog functions
+ *  (only subset of defines used by gpsd components listed)
+ *
+ */
+/* Copy of syslog.h defines when otherwise not available */
+/* priorities (these are ordered) */
+#define	LOG_EMERG	0	/* system is unusable */
+#define	LOG_ALERT	1	/* action must be taken immediately */
+#define	LOG_CRIT	2	/* critical conditions */
+#define	LOG_ERR		3	/* error conditions */
+#define	LOG_WARNING	4	/* warning conditions */
+#define	LOG_NOTICE	5	/* normal but significant condition */
+#define	LOG_INFO	6	/* informational */
+#define	LOG_DEBUG	7	/* debug-level messages */
+/* Option flags for openlog */
+#define	LOG_PID		0x01	/* log the pid with each message */
+#define	LOG_PERROR	0x20	/* log to stderr as well */
+/* facility codes */
+#define	LOG_USER	(1<<3)	/* random user-level messages */
+#define	LOG_DAEMON	(3<<3)	/* system daemons */
+
+void syslog(int priority, const char *format, ...);
+void openlog(const char *__ident, int __option, int __facility);
+void closelog(void);
+#endif /* !HAVE_SYSLOG_H */
+
+
 /* Provide BSD strlcat()/strlcpy() on platforms that don't have it */
=20
 #ifndef HAVE_STRLCAT
--=20
2.11.0



From MAILER-DAEMON Sun Mar 05 13:43:51 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckb8J-0002q7-QT
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 13:43:51 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52424)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckb8G-0002oY-Tv
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 13:43:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckb8D-0007dh-RH
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 13:43:48 -0500
Received: from col004-omc2s9.hotmail.com ([65.55.34.83]:51237)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckb8D-0007dB-HG
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 13:43:45 -0500
Received: from EUR01-HE1-obe.outbound.protection.outlook.com ([65.55.34.72])
	by COL004-OMC2S9.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 10:43:43 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=1Nok26PznDod+jaCFm3UVpCKScMQJgCWLuvzy4MYi54=;
	b=NiPi9Ma2ejKioJzmlWah7HnLkTM5ThsqkB9ZlinteeoNx5nPSvayJ7fdMCtU+xDU1TQ1N3zI0KDZSaYJIrfN4SSzP3bn5jagcc2eOzzlAsbEYPdwPnGn7fW1pwzXuJzmL4Gl779zOesD89PXgUFksUKoKswIXIWDszav6riRYEPmNIyc2+ZW5gfA6FJnT3+lIpb3YeW36JMtz8ddtsf8ZZs+YAy1No0JOf2jdEmcLsZT+qg+pvsstF/Nv/2jkaNUhLzdvMdBbnkbHCFN9zv8HMbyVt3hlLURLjakXQl5bPE5KonSk6DXWrWWKuhepb9pQSJb3u7K+xprWqkDv7z0mQ==
Received: from DB5EUR01FT017.eop-EUR01.prod.protection.outlook.com
	(10.152.4.56) by DB5EUR01HT182.eop-EUR01.prod.protection.outlook.com
	(10.152.5.95) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sun, 5 Mar 2017 18:43:41 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.4.59) by
	DB5EUR01FT017.mail.protection.outlook.com (10.152.4.252) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.933.11 via Frontend Transport; Sun, 5 Mar 2017 18:43:41 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 18:43:40 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 2/2] Enable Windows version of gpspipe
Thread-Index: AQHSleBode51N/FzTU+MUS/LIRdSTQ==
Date: Sun, 5 Mar 2017 18:43:40 +0000
Message-ID: <HE1PR09MB0732774ACAE21471D46D81EB8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170305184313.23829-1-rw_norris@hotmail.com>
In-Reply-To: <20170305184313.23829-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:FB1E065B4545594E0A84BBEC62D27657BEBC4464475986CD76F5F9D68EDA2DA4;
	UpperCasedChecksum:DCF1024037A4E2E5A5D1F7DC36C2AAFD3F88EC3FE8C9F83008785EA68EAD8362;
	SizeAsReceived:7500; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; DB5EUR01HT182;
	5:4JrJLNyTVxdKIcvBFqWf3rVCla0FuGA6huNn2P/sqmVoSWRi78kEi/RQznnJ8evzRAxJBVgopmHzbt9ZHFH0/aWuakWI5J9TA8YazV0yauMyHswlbGlPL+5YX+dHrJYsr4pMIxXFnktpuqSarPf4Fg==;
	24:7IEf/tNUXsoLzO4PZkM8pIBbOO+RawpZc9NAJaUJbipxW9kFglsTaMITzfejUrEEt0ASYke/3xbhYuPINvv/6OMoq76fzGlgl+CDfwUvFS4=;
	7:84UI5sZ0Qk4BY6KhijdVq1b09e7tvVIurNj9xWpRkSwsg/qUjaIoS8gNKNOEXObnr/BWWcK542uvFjCRYpe9zcEyHKBmDJ083Bj5y7/c9b+N5WAXLiMY2+sNcFGudXznClrGJ01crwl4eLtEo+EiqbtZUeqCBzttl1CUZQZqaQxIQShcWqrUBrzjor/B8wZfj6JruGJ8oi1CVKG1Rk5MQs3xBrxeZm36/ycO8S8oQWFln/GTNUgaiyDlGE+/dZzyePbCRABKguF7Kqi6EE7c0cdp0vVznonPoomqZMTC/Z3FCSRJo5UEUYw8P4nhbPSq
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:DB5EUR01HT182;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 33536885-2be5-48d2-2231-08d463f789b8
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1603101448)(1601125254)(1701031045);
	SRVR:DB5EUR01HT182; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:DB5EUR01HT182; BCL:0; PCL:0;
	RULEID:; SRVR:DB5EUR01HT182; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 18:43:40.7201 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT182
X-OriginalArrivalTime: 05 Mar 2017 18:43:44.0162 (UTC)
	FILETIME=[6AA5A820:01D295E0]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.34.83
Subject: [gpsd-dev] [PATCH 2/2] Enable Windows version of gpspipe
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 18:43:50 -0000

Use recv() rather than read() for Windows compatibility.

Disable serial port code not available on Windows.

Add open flag that's not available on Windows.

TESTED:
Built gpspipe for Windows under cross compiler.
Run gpspipe on a Windows system and successfully connects to an instance of
 gpsd and dumps NMEA output to the terminal or a specified output file.
Still builds and runs on a Linux system including the daemon option.
---
 gpspipe.c   | 14 +++++++++++++-
 os_compat.h |  6 ++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/gpspipe.c b/gpspipe.c
index 0d4a7899..72eed301 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -37,11 +37,21 @@
 #include <string.h>
 #include <strings.h>
 #include <fcntl.h>
+#ifdef HAVE_TERMIOS_H
 #include <termios.h>
+#endif /* HAVE_TERMIOS_H */
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#endif /* HAVE_SYS_SELECT_H */
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif /* HAVE_SYS_SOCKET_H */
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
+#endif /* HAVE_WINSOCK2_H */
 #include <unistd.h>
=20
 #include "gpsd.h"
@@ -74,6 +84,7 @@ static void open_serial(char *device)
 	exit(EXIT_FAILURE);
     }
=20
+#ifdef HAVE_TERMIOS_H
     /* Save current serial port settings for later */
     if (tcgetattr(fd_out, &oldtio) !=3D 0) {
 	(void)fprintf(stderr, "gpspipe: error reading serial port settings\n");
@@ -94,6 +105,7 @@ static void open_serial(char *device)
 	(void)fprintf(stderr, "gpspipe: error configuring serial port\n");
 	exit(EXIT_FAILURE);
     }
+#endif /* HAVE_TERMIOS_H */
 }
=20
 static void usage(void)
@@ -319,7 +331,7 @@ int main(int argc, char **argv)
=20
 	/* reading directly from the socket avoids decode overhead */
 	errno =3D 0;
-	r =3D (int)read(gpsdata.gps_fd, buf, sizeof(buf));
+	r =3D (int)recv(gpsdata.gps_fd, buf, sizeof(buf), 0);
 	if (r > 0) {
 	    int i =3D 0;
 	    int j =3D 0;
diff --git a/os_compat.h b/os_compat.h
index 9321809f..2b4189f0 100644
--- a/os_compat.h
+++ b/os_compat.h
@@ -114,6 +114,12 @@ size_t strlcpy(char *dst, const char *src, size_t size=
);
 #define SIGQUIT 3
 #endif
=20
+/* Provide missing open flags for non-POSIX builds */
+
+#ifndef O_NOCTTY
+#define O_NOCTTY   0400
+#endif
+
 # ifdef __cplusplus
 }
 # endif
--=20
2.11.0



From MAILER-DAEMON Sun Mar 05 16:27:54 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckdh4-0007SD-IT
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 16:27:54 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47160)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckdh2-0007R4-G2
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 16:27:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckdgy-00073y-G2
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 16:27:52 -0500
Received: from c.mail.sonic.net ([64.142.111.80]:52318)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1ckdgy-000736-66
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 16:27:48 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v25LRgms030453
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 13:27:42 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v25LRgVN015901
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 13:27:42 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v25LRgia015896
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 13:27:42 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sun, 5 Mar 2017 13:27:42 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <HE1PR09MB0732A6FC2FF4A2C0AE5E1DA68E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703051314530.3595@bolt.sonic.net>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865EA212F3705C0F7B151278E520@AM4PR08MB0865.eurprd08.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703041505230.17598@bolt.sonic.net>
	<HE1PR09MB0732A6FC2FF4A2C0AE5E1DA68E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYXRDyloqTDfKBX/MfjkT2QDQVsE7VUwH6v2SIqyBLS9TNfsUx8SiRQQI9IsX6KDPJgp2PlngOZeukq1xmspYmp
X-Sonic-ID: C;1LjkkOoB5xGtolFMduwp5g== M;hIYHkeoB5xGtolFMduwp5g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 2/3] Enable Windows version of gpxlogger
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 21:27:53 -0000


On Sun, 5 Mar 2017, Robert Norris wrote:

> I don't think I've ever seen man pages on Windows. For distributing
> libgps.dll, gpspipe.exe and gpxlogger.exe I was thinking of just
> offering the binaries only.
>
> The man pages can often be found online (e.g.
> http://manpages.ubuntu.com/manpages/zesty/man1/gpspipe.1.html)

You could include the docs (either in the same package or a separate one)
rather than relying on online docs.  If there's no "man" equivalent on
Windows, this could be the HTML versions.

> However it would seem strange to mention Windows issues in the man
> pages, when they there mainly for Unix like systems.

Yeah, good point.

> Perhaps a statement about Windows support would be better off somewhere
> in the www/ documentation.

Sounds reasonable.  Especially since the www build is now working again.
:-)


Speaking of Windows and manpages, I made a recent change to suppress all
the "Note: Writing" crap when building in --silent mode.  This involves
replacing the "spawn" function for the manpage builders.  The standard
posix version is pretty simple, but the win32 version is much more
complicated, so it's not entirely clear that my replacement is valid for
win32.  But this only matters if one is building in --silent mode and:

1) One is actually building on Windows, rather than cross-building for
Windows on a POSIX platform.

and

2) One is building manpages, meaning that either xsltproc or xmlto is
available on Windows.

I suspect that at least one of those conditions is necessarily false for
other reasons.  If not, I'd be inclined to just disable the filtering hack
on Windows, rather than implement a more complicated version.

Fred Wright


From MAILER-DAEMON Sun Mar 05 16:34:04 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckdn2-0001OA-FH
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 16:34:04 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48910)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckdmy-0001Mv-Pw
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 16:34:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckdmu-0001EP-Ra
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 16:34:00 -0500
Received: from c.mail.sonic.net ([64.142.111.80]:56206)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1ckdmu-0001Ds-Hv
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 16:33:56 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v25LXrA8002636
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 13:33:53 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v25LXrMb019124
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 13:33:53 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v25LXqqX019113
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 13:33:53 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sun, 5 Mar 2017 13:33:52 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <HE1PR09MB07328A456C537FCC25C9F57B8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703051328060.3595@bolt.sonic.net>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865A9D8385CF2BF337017E38E520@AM4PR08MB0865.eurprd08.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703041514010.17598@bolt.sonic.net>
	<HE1PR09MB07328A456C537FCC25C9F57B8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZqLkpZ3YY19POAUcsZsPYNS3TESruB4dbo7HNmSfSQUp0A5Y8ZuJ9wgvzDCQ9Ndy4pPUa94uitrnN7hMzxwcEg
X-Sonic-ID: C;FnwabusB5xGMzlFMduwp5g== M;bpM3busB5xGMzlFMduwp5g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 21:34:01 -0000


On Sun, 5 Mar 2017, Robert Norris wrote:

> >> Use recv() rather than read() for Windows compatibility.
>
> > This seems like a good idea in general, though again it would be better to
> > confine the conditional include stuff to os_compat.h.
>
> This isn't a conditional. Using recv() with a 0 for the third parameter is equivalent to using read().

Yes, I know.  I said "conditional include".  Maybe I should have said
"conditional #include". :-)

> However on Windows read() doesn't work with sockets, hence the need to use recv() instead.

Indeed.  Using send()/recv() is perfectly reasonable in contexts known to
be sockets, while write()/read() are better for "genric stream I/O".

> select() on Windows is available via winsock2.h

OK, if that's the official place to get the definitions.  Windows wouldn't
be the only platform that kludged in BSD sockets as an afterthought and
implemented select() just for sockets, rather than for general file
descriptors.

> NB with the syslog compatibility patch (which I'll rework as requested)
> - gpxlogger builds without further changes.

Did you also try running it (to test my SIGQUIT fix)?

Fred Wright


From MAILER-DAEMON Sun Mar 05 17:01:23 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckeDT-0001De-0l
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 17:01:23 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53278)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckeDQ-0001DC-Fz
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:01:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckeDL-0002a0-2i
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:01:20 -0500
Received: from col004-omc4s6.hotmail.com ([65.55.34.208]:64279)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckeDK-0002Yo-Ly
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:01:15 -0500
Received: from EUR02-VE1-obe.outbound.protection.outlook.com ([65.55.34.199])
	by COL004-OMC4S6.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 14:01:12 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=ek0NGXaGYgm/NFemt8xxk3M2nHYlAAN8AGCMFiHCxDg=;
	b=fPubOBBD0TBRxtcvcxn0b0OtO1216J5cbNpiqwFF+mxFl+4op/VQqdT+I+eINdlS/7+DwqRKF4Ni6ytt7wUKY9slJXhJcvYm+OCakX8hOL4WTKiKl7UOz8XMocwTs7q06DpP7B34I1PG8EkSCVw6bFS4JMXWO/UWdsJQjoIn8S9E/WgWdvltYgGwG0cMxARzUUVsnQO1oRdaZGN3mbOUwO10qt10La63rDAtYqoPK9PG8JYMZsHfvv0EabDCAqu7ez/+VB34i9sNtBXlKPhJ2+gYKM3qRhsgur34JmWrOjc1akRmmV7joKR7hlyLGUYQA9902lAruGqUl1gCLc7QEQ==
Received: from VE1EUR02FT064.eop-EUR02.prod.protection.outlook.com
	(10.152.12.58) by VE1EUR02HT040.eop-EUR02.prod.protection.outlook.com
	(10.152.13.247) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Sun, 5 Mar 2017 22:01:10 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.12.55) by
	VE1EUR02FT064.mail.protection.outlook.com (10.152.13.199) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sun, 5 Mar 2017 22:01:10 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 22:01:10 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: Fred Wright <fw@fwright.net>, "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe
Thread-Index: AQHSjvETtJ9F2yBjzkWqIdEyLzYjuaGFXo6AgADa7zOAAJj+AIAABewl
Date: Sun, 5 Mar 2017 22:01:10 +0000
Message-ID: <HE1PR09MB0732CDA5746F81BE0445918C8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865A9D8385CF2BF337017E38E520@AM4PR08MB0865.eurprd08.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703041514010.17598@bolt.sonic.net>
	<HE1PR09MB07328A456C537FCC25C9F57B8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703051328060.3595@bolt.sonic.net>
In-Reply-To: <Pine.LNX.4.58L1X.1703051328060.3595@bolt.sonic.net>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: fwright.net; dkim=none (message not signed)
	header.d=none; fwright.net;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:6EDA5EB62D29D8309E96E7B48AC968051530B45AFDD3E3C14A096BB2677602A5;
	UpperCasedChecksum:CE8750855253D045D7D143F4DBAB6DD2420DBAEBF145628B2236BCD8A7DF31A5;
	SizeAsReceived:8086; Count:39
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [06b7Cpk/v0AVljNMepRenpTRCw3JBSt8]
x-incomingheadercount: 39
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; VE1EUR02HT040;
	5:oG4/m4rzeIlO2ovCj3iuGk7OQRRnh7bamIkusBrKk5lfnOw5XkrWQ43VtnNL7n8B0gQ6eRBGab/iVP3eMhN80hDntuRs9wqmhI1wmlFj5xlltgnpR4GWedf0hjN8ENDWTzUt0B9D+CL9y1oyeageMw==;
	24:gdjL9c3JTThaKGLPIJYXhx9VQfMaPM0gFnc1JkCz/S4xbEaBXqsmHALWlRkbkFvoCyyAie2orCuZJPlLbmk2RPixFtHHzOIogcJH5SR5UE8=;
	7:Scik1vHHEh+JVHB4TT0CZOgicjZCXHOpmTlIuDRxv+szye6LJ00wV3fKnqICRaoK9ua5/ISppv21YHBGH+Hf2zzHTBsUpTKipPbIMYek47Htx+FxPSN0fw7XFhbpiXoEMZPlKUaaJfwgGgmcYSfU32M+CJiJ916XPrzN4007NBOy83jGpb1gd1sV28oESglqAzzXg9/Ojnnk1E8zM0zRjj2sSfGonil93H3Z3Q+ly06mqR4m5ACMtV7aYUJYyAGMRnJDoMPuENE5B6Cjxfa7Jbha22glse2Y0uk32G93vcQG2Qpd0HquGysVBTqjCSxm
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR02HT040;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 6587c18c-4cec-4585-5ef1-08d4641321e5
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:VE1EUR02HT040; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015137)(444000031); SRVR:VE1EUR02HT040; BCL:0; PCL:0;
	RULEID:; SRVR:VE1EUR02HT040; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 22:01:10.1293 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT040
X-OriginalArrivalTime: 05 Mar 2017 22:01:12.0561 (UTC)
	FILETIME=[00D7DE10:01D295FC]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.34.208
Subject: Re: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 22:01:21 -0000


>> NB with the syslog compatibility patch (which I'll rework as requested)
>> - gpxlogger builds without further changes.

> Did you also try running it (to test my SIGQUIT fix)?

Yes I did.
However I don't know how to generate SIGQUIT events on Windows (it might no=
t be even possible).

--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.

________________________________________
From: gpsd-dev <gpsd-dev-bounces+rw_norris=3Dhotmail.com@nongnu.org> on beh=
alf of Fred Wright <fw@fwright.net>
Sent: 05 March 2017 21:33:52
To: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe

On Sun, 5 Mar 2017, Robert Norris wrote:

> >> Use recv() rather than read() for Windows compatibility.
>
> > This seems like a good idea in general, though again it would be better=
 to
> > confine the conditional include stuff to os_compat.h.
>
> This isn't a conditional. Using recv() with a 0 for the third parameter i=
s equivalent to using read().

Yes, I know.  I said "conditional include".  Maybe I should have said
"conditional #include". :-)

> However on Windows read() doesn't work with sockets, hence the need to us=
e recv() instead.

Indeed.  Using send()/recv() is perfectly reasonable in contexts known to
be sockets, while write()/read() are better for "genric stream I/O".

> select() on Windows is available via winsock2.h

OK, if that's the official place to get the definitions.  Windows wouldn't
be the only platform that kludged in BSD sockets as an afterthought and
implemented select() just for sockets, rather than for general file
descriptors.

> NB with the syslog compatibility patch (which I'll rework as requested)
> - gpxlogger builds without further changes.

Did you also try running it (to test my SIGQUIT fix)?

Fred Wright



From MAILER-DAEMON Sun Mar 05 17:05:31 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckeHT-0001wz-OJ
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 17:05:31 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53877)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckeHS-0001wl-20
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:05:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckeHN-0003yY-1s
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:05:30 -0500
Received: from d.mail.sonic.net ([64.142.111.50]:41272)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1ckeHM-0003y5-OD
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:05:24 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v25M5MTm020482
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 14:05:22 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v25M5LX9004495
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 14:05:22 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v25M5KT1004489
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 14:05:21 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sun, 5 Mar 2017 14:05:20 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <HE1PR09MB0732CDA5746F81BE0445918C8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703051403240.3328@bolt.sonic.net>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865A9D8385CF2BF337017E38E520@AM4PR08MB0865.eurprd08.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703041514010.17598@bolt.sonic.net>
	<HE1PR09MB07328A456C537FCC25C9F57B8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703051328060.3595@bolt.sonic.net>
	<HE1PR09MB0732CDA5746F81BE0445918C8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYZZKK+SYcNe6CGgFekkI0sjGHX3FB2qa81L7zd1YkpfLQvtSBYHTN1cOWvmfDIPXYK81+Hb4fP0kMmTehKZGY8
X-Sonic-ID: C;/sTP0+8B5xGp7kJHGpqj1g== M;/p7r0+8B5xGp7kJHGpqj1g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] [PATCH 3/3] Enable Windows version of gpspipe
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 22:05:31 -0000


On Sun, 5 Mar 2017, Robert Norris wrote:

> >> NB with the syslog compatibility patch (which I'll rework as requested)
> >> - gpxlogger builds without further changes.
>
> > Did you also try running it (to test my SIGQUIT fix)?
>
> Yes I did.
> However I don't know how to generate SIGQUIT events on Windows (it might not be even possible).

I'm sure it doesn't exist, since there's no definition for it.  I just
wanted to be sure that attempting to catch the nonexistent signal doesn't
cause trouble.

Fred Wright


From MAILER-DAEMON Sun Mar 05 17:11:24 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckeNA-0002PD-Ix
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 17:11:24 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54589)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckeN8-0002P5-Kw
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:11:23 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1ckeN3-0005ci-Lg
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:11:22 -0500
Received: from c.mail.sonic.net ([64.142.111.80]:51840)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1ckeN3-0005cZ-BS
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:11:17 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v25MBEFS006169
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 14:11:14 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v25MBD3t007879
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 14:11:13 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v25MBDrY007872
	for <gpsd-dev@nongnu.org>; Sun, 5 Mar 2017 14:11:13 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Sun, 5 Mar 2017 14:11:13 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <HE1PR09MB0732774ACAE21471D46D81EB8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703051406220.3328@bolt.sonic.net>
References: <20170305184313.23829-1-rw_norris@hotmail.com>
	<HE1PR09MB0732774ACAE21471D46D81EB8E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYGJZGkiG/AEdcynxnH2kfh0jVE1kmFgKL11nmNFLCjwSFMcPWpulAfiwuIsDDyiP8z5Qxw4uHuZkgmnDcNcJjo
X-Sonic-ID: C;WDiZpfAB5xGM1lFMduwp5g== M;BEi/pfAB5xGM1lFMduwp5g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 2/2] Enable Windows version of gpspipe
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 22:11:23 -0000


Both patches are now merged.  Although I'm not that wild about the
conditional-include clutter in gpspipe, I guess if it's *only* for gpspipe
it may make more sense to put it there rather than in os_compat.h.

Fred Wright


From MAILER-DAEMON Sun Mar 05 17:25:19 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckead-00044C-2b
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 17:25:19 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56501)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckeaa-000446-EL
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:25:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckeaX-0001XC-B1
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:25:16 -0500
Received: from bay004-omc4s17.hotmail.com ([65.54.190.219]:52014)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckeaW-0001Wi-TF
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 17:25:13 -0500
Received: from EUR02-VE1-obe.outbound.protection.outlook.com ([65.54.190.199])
	by BAY004-OMC4S17.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 14:25:11 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=cQcvzna/pGy+aA6HSod9bjuyZ3dxW8H25PBJSXB6IGo=;
	b=bPmvKu7OSwyz0nM7/vkLySKuBbZP8FYLgSkPejqyM7p28srePP9NqZChx+dGd+FDOPVW3z2AQfViEMIAjxB3yKHvOsruMYgO6Whrvngk/HCPYSNshA4PtmKaGTvhdQZKJq0JgNwCybTqtNTOUnNepT4tju2w+lddY4TkUfurTaw27shTcAZ0zmLhp1cGirtEM3z5IBISTb5xE4FGxqali1YiA6TLQ0IFszndFs/PJnqBrM3Ea8S/FV4rBT0HMcRLA/2hNxtmgb1NfKwXMYCUVpzpoO/Re789dCec4ckPKvIs/J1xUCNtagUBhrd5WLGt+dwy/uv04mwJIzgHc2/aFw==
Received: from AM5EUR02FT057.eop-EUR02.prod.protection.outlook.com
	(10.152.8.55) by AM5EUR02HT072.eop-EUR02.prod.protection.outlook.com
	(10.152.9.17) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Sun, 5 Mar 2017 22:25:09 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.8.51) by
	AM5EUR02FT057.mail.protection.outlook.com (10.152.9.242) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sun, 5 Mar 2017 22:25:09 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 22:25:08 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: Fred Wright <fw@fwright.net>, "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [gpsd-dev] [PATCH 2/3] Enable Windows version of gpxlogger
Thread-Index: AQHSjvEQcP7dFFipukiy+XaepLKl26GFW/8AgAC7BSeAALm+AIAACj2Y
Date: Sun, 5 Mar 2017 22:25:08 +0000
Message-ID: <HE1PR09MB0732F71B02D6165D42674E788E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170224225453.3052-1-rw_norris@hotmail.com>
	<AM4PR08MB0865EA212F3705C0F7B151278E520@AM4PR08MB0865.eurprd08.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703041505230.17598@bolt.sonic.net>
	<HE1PR09MB0732A6FC2FF4A2C0AE5E1DA68E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>,
	<Pine.LNX.4.58L1X.1703051314530.3595@bolt.sonic.net>
In-Reply-To: <Pine.LNX.4.58L1X.1703051314530.3595@bolt.sonic.net>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: fwright.net; dkim=none (message not signed)
	header.d=none; fwright.net;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:87A0273545652E435E0D1FA9782BF7CE650648454334E4F8CC42FBE382E9D5BE;
	UpperCasedChecksum:25C10DA630B48642AFE1CE9C480D7D07A54DF1993E7469BD543FF499837E02D7;
	SizeAsReceived:8100; Count:39
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [asnGsweJ/3Y2LgM+Mpxxg2eaRwsfpBmk]
x-incomingheadercount: 39
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; AM5EUR02HT072;
	5:wQrZoEuGUlyhCSxsGyLtiHKWZFE4sdFtdjx+eK/f+/yMNeH+uFIBZtMesWubmz0u5WAC9KHXEU4GMC9Vsrg6O9LHAZNpauRLA+ynnvlP44jw4gxe5lMp/VA9saRCXBUQ9LL0OzaaODqUlVtHwyyctA==;
	24:uHz0d6gEC/n7birIXcQU2gxTJTVjVQe2lelRL3hTT5j4kPafIILqnocgROYqdcju+cEFO+lwIBpKObo7+PB9irt8xhB0x4ph6mNg1fFKACQ=;
	7:1MAKnHcBkLUSSQhmOD4nO0dCZg+EBm//ZAJepEpiZ/j0/pTdlq/Qyqc3Pp43fAKLD5L2MNDKGO/GzO9sJR9raFOrlpX2L9Z/TssNnrT0gXl46bCR1RHCeUDw5JFWd9PqMad3pBa5c9QNEr2RtScAVpD0BPw6OasGCwv4uWeTc0nQgtNpIecgcf3K/kltp9uUOWEG1ZP8PjMP6gwL6AMFoU+ZsAEjHb9768bpAsNCwg0BW7I1pGPoRtWAavYSjAUKpp/CawQUPIJLzk9Q4N5eHDqDW3EfLVqo0D6cUdvB3r5CYoarXZo9/wjg6My40qUg
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR02HT072;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 4cb09640-de48-4024-3d9e-08d464167b2b
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:AM5EUR02HT072; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:AM5EUR02HT072; BCL:0; PCL:0;
	RULEID:; SRVR:AM5EUR02HT072; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 22:25:08.3165 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT072
X-OriginalArrivalTime: 05 Mar 2017 22:25:11.0513 (UTC)
	FILETIME=[5A868490:01D295FF]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.54.190.219
Subject: Re: [gpsd-dev] [PATCH 2/3] Enable Windows version of gpxlogger
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 22:25:17 -0000

>> For distributing
>> libgps.dll, gpspipe.exe and gpxlogger.exe I was thinking of just
>> offering the binaries only.
>>

> You could include the docs (either in the same package or a separate one)
> rather than relying on online docs.  If there's no "man" equivalent on
> Windows, this could be the HTML versions.

Good idea.

Then I'd like just to include the relevant html files for Windows.
But a pity that gpxlogger help is ATM inside gps.xml.
I think it would be useful to split gpxlogger off into it's own entry.

So I'm thinking of simply dumping a copy of the binaries on github release =
of Windows Hack Building branch of gpsd.
(i.e. no Windows installers).

I can  keep the Windows specific behaviour 'help' notes in that branch to a=
void polluting it for everyone else.

--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.

________________________________________
From: gpsd-dev <gpsd-dev-bounces+rw_norris=3Dhotmail.com@nongnu.org> on beh=
alf of Fred Wright <fw@fwright.net>
Sent: 05 March 2017 21:27:42
To: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH 2/3] Enable Windows version of gpxlogger

On Sun, 5 Mar 2017, Robert Norris wrote:

> I don't think I've ever seen man pages on Windows. For distributing
> libgps.dll, gpspipe.exe and gpxlogger.exe I was thinking of just
> offering the binaries only.
>
> The man pages can often be found online (e.g.
> http://manpages.ubuntu.com/manpages/zesty/man1/gpspipe.1.html)

You could include the docs (either in the same package or a separate one)
rather than relying on online docs.  If there's no "man" equivalent on
Windows, this could be the HTML versions.

> However it would seem strange to mention Windows issues in the man
> pages, when they there mainly for Unix like systems.

Yeah, good point.

> Perhaps a statement about Windows support would be better off somewhere
> in the www/ documentation.

Sounds reasonable.  Especially since the www build is now working again.
:-)


Speaking of Windows and manpages, I made a recent change to suppress all
the "Note: Writing" crap when building in --silent mode.  This involves
replacing the "spawn" function for the manpage builders.  The standard
posix version is pretty simple, but the win32 version is much more
complicated, so it's not entirely clear that my replacement is valid for
win32.  But this only matters if one is building in --silent mode and:

1) One is actually building on Windows, rather than cross-building for
Windows on a POSIX platform.

and

2) One is building manpages, meaning that either xsltproc or xmlto is
available on Windows.

I suspect that at least one of those conditions is necessarily false for
other reasons.  If not, I'd be inclined to just disable the filtering hack
on Windows, rather than implement a more complicated version.

Fred Wright



From MAILER-DAEMON Sun Mar 05 18:16:18 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckfNx-0002LN-Ui
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 18:16:17 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35612)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckfNv-0002LH-Ot
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckfNs-0006rL-JR
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:15 -0500
Received: from blu004-omc4s6.hotmail.com ([65.55.111.145]:64045)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckfNs-0006rG-3G
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:12 -0500
Received: from EUR02-AM5-obe.outbound.protection.outlook.com ([65.55.111.135])
	by BLU004-OMC4S6.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 15:16:11 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=ZchOZhivj8SwJzTNhaiXgW+VNk1PxurrISGkejXjL8E=;
	b=uHvHyjQCmO/RrOKi6HqXzQ0S78UwaMzCYuELp2e67iEH++JS5Q2DmYaP0C06Sjd6M1TJp+24p9cWxq4//WXc0mwyOsNnT8mocuOTmwDaPYWhz+hNLhln1RtuX7TzoY1j876c4ALOuqQHZwS10geYbMTbjbQcpkdGIRw/HGLNIPzJX2NGNzLb4x9o/O4h3K5iuXL1i1GC2OaWXes49mhY6kJIu5q0oYTqLbQzcCeENoKpHO40u0NRFr5NTsXWJY5cYU2orfbjd16RRaGEgF/a+kQreoLRnQ662+sUMsF26qQ3W4xDUettSmuGoWTbzsYLfkhB15EGWauyR3/gYqeiMQ==
Received: from HE1EUR02FT025.eop-EUR02.prod.protection.outlook.com
	(10.152.10.53) by HE1EUR02HT222.eop-EUR02.prod.protection.outlook.com
	(10.152.11.50) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Sun, 5 Mar 2017 23:16:09 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.10.58) by
	HE1EUR02FT025.mail.protection.outlook.com (10.152.10.79) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sun, 5 Mar 2017 23:16:09 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 23:16:09 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 2/3] Allow test_gpsmm to connect via shared memory
Thread-Index: AQHSlgZ4WjzzQY4evEKsjuB/DAYgGQ==
Date: Sun, 5 Mar 2017 23:16:09 +0000
Message-ID: <HE1PR09MB0732D3577DE69334059D41038E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170305231541.775-1-rw_norris@hotmail.com>
In-Reply-To: <20170305231541.775-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:BFAE25E0FA76BE961423BC6873FFE9725430548EBF2B2F949098453B30EB8750;
	UpperCasedChecksum:B3A19A6BEABC4AFA9EBB28CE03A1C3F39B40DE341C91FDEDE73DAFE9AF79AFA0;
	SizeAsReceived:7582; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; HE1EUR02HT222;
	5:avYCtM1U7wWdDmNAZujDuPsYysJ8vyXfICF0/g2TfjVU0IKfT0sDg9SPSKpYkwSPCkwmMC/5nvtGUokXwBFsMTgB/zJ5KAOy1eCnDLryQGkpo83nmOXSaW99oAvF3GEfrdvia9C26zKYOupF1REWeg==;
	24:05Wt/m/HSWpocnjgIBf6rs6mn7OnGbzTn3spcpY6NTvI7Kkvvo99Qa1Xxu4jXqbERlZibrx9ldGUYwt7zQE1aamjpxIW1/Pp6QcxhBB0ioE=;
	7:GIZ9IqUxUFy1iRP9H6m7ksNSCcZ3zU/dseLhda3+4lOFW5g2s9rFTLEw5k5WlmihflCeXWM4FMhGyHhdTVuwVd6HGP5IoCT9elD0eQUCggW7e7W72Fh04tYKARexDPlP/EXThx162Cr2RznJ/gvlGOCtFpN49wyftt4b8tiSPK2pz+4zXPrbv49qLL51dcvf5keOu/ykmLV1OLlMGv8NL2gIayWpNjRWxpVpdYvHr2F1+9HFnp3ZlT042Gwe/xJtn7OQLU6Nm+fzqd5C0Q/x0/NV3H3OZIHEmGTYhL013SAtxOpT/0+hQK0vqKLHvx/8
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:HE1EUR02HT222;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: c6f213c3-8775-4408-8273-08d4641d99b4
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:HE1EUR02HT222; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:HE1EUR02HT222; BCL:0; PCL:0;
	RULEID:; SRVR:HE1EUR02HT222; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 23:16:09.6031 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT222
X-OriginalArrivalTime: 05 Mar 2017 23:16:11.0534 (UTC)
	FILETIME=[7A70AAE0:01D29606]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.111.145
Subject: [gpsd-dev] [PATCH 2/3] Allow test_gpsmm to connect via shared memory
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 23:16:16 -0000

Simply skip calling gps_stream() which is only for socket connections.

TESTED:
test_gpsmm can connect to gpsd shared memory on Linux.
---
 test_gpsmm.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/test_gpsmm.cpp b/test_gpsmm.cpp
index 8379c0e0..4106b476 100644
--- a/test_gpsmm.cpp
+++ b/test_gpsmm.cpp
@@ -141,9 +141,12 @@ int main(int argc, char *argv[])
     //gpsmm gps_rec("localhost", DEFAULT_GPSD_PORT);
     gpsmm gps_rec(source.server, source.port);
=20
-    if (gps_rec.stream(WATCH_ENABLE|WATCH_JSON) =3D=3D NULL) {
-        cerr << "No GPSD running.\n";
-        return 1;
+    if ( !((std::string)source.server =3D=3D (std::string)GPSD_SHARED_MEMO=
RY ||
+	   (std::string)source.server =3D=3D (std::string)GPSD_DBUS_EXPORT) ) {
+        if (gps_rec.stream(WATCH_ENABLE|WATCH_JSON) =3D=3D NULL) {
+            cerr << "No GPSD running.\n";
+            return 1;
+        }
     }
=20
     // Loop for the specified number of times
--=20
2.11.0



From MAILER-DAEMON Sun Mar 05 18:16:20 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckfO0-0002Mm-22
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 18:16:20 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35623)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckfNy-0002Lo-Hg
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckfNv-0006rd-CP
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:18 -0500
Received: from bay004-omc3s14.hotmail.com ([65.54.190.152]:59324)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckfNv-0006rW-2V
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:15 -0500
Received: from EUR02-VE1-obe.outbound.protection.outlook.com ([65.54.190.189])
	by BAY004-OMC3S14.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 15:16:13 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=TQmVAnMU+Bib0lq8BnPyJHLetKw81a5wY6t2xS0Yrv8=;
	b=ALUA9rBMQZk16S5H2COCCArPxlMQCxFkK3/D1TOC9D8K73zUCvx2EfUmgBmyM2100mMngctX7hUW8KgDA3h5oRAN+LRL+zDUmTMUfDOq2gXIsYaV+2ftHxOy4iugxhp2OvcIQvyAfRYo7XEruY5pnIg5evdRFnid3KGKkk/lN+v9LbC1SgKjYcAk3qdplg6cl4Q75KDqklNF9efePOuGACyigaq/H5A/+pTnQmtFTtzI+HyzFrom5ux6X/5xB3RJ3t1zxuCcvaT+m+Nvcn1NnVlR+vQIYEYK1LeUrvp5dPYCyzJ2KZEYOWtAMVEaCY1cv4iY8Q0jVLNyogputGgSxw==
Received: from HE1EUR02FT025.eop-EUR02.prod.protection.outlook.com
	(10.152.10.56) by HE1EUR02HT150.eop-EUR02.prod.protection.outlook.com
	(10.152.11.62) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Sun, 5 Mar 2017 23:15:59 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.10.58) by
	HE1EUR02FT025.mail.protection.outlook.com (10.152.10.79) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sun, 5 Mar 2017 23:15:59 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 23:15:59 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 1/3] Remove misleading comment.
Thread-Index: AQHSlgZysjbz4x3krU2Q4iqXGH3+ag==
Date: Sun, 5 Mar 2017 23:15:59 +0000
Message-ID: <HE1PR09MB0732FB17F411596DD3C716A38E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:C4ADC36FB95A784194703D690AF0065D8EF0FF301F3E69F497CF7C3B30FE99D8;
	UpperCasedChecksum:FC5C703A99467E9DABCA7576195EDA8E1A8C7D90A2EC42AD65FFFB53F21B2ECC;
	SizeAsReceived:7423; Count:34
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 34
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; HE1EUR02HT150;
	5:5yppA8qncLn/jjNP4CQtWCLL497XrNr2tZYn9LDou5OKFqYt/9Ef2XzKhFpCgUoR/JodHYj8CttpH4g7jbVT36oi7eEw3J77jtD5rkCK6abFq8sLqKlmBC0gn9Ui/l2SP4799i6uBqgNWKg+Qh1shQ==;
	24:GKHYKas6WsMZCF92RI/tNuCZTICFVaM4If3m5tFpb/8DOgr3tDWtqP//MqJiTMMElEMaFYWfM8T5Q+tXyVm0vM4brWXxx2kiUYXOfgtW4vI=;
	7:FOvBoHs/V0+V5CjR2BqqEzAcLQX6blbn6j2qqjLAlOBMuqY1QAgRHTXtP9Kk/9ZUN/IpV4VqMs8yU5GoPfaynoazdx+PKYfHB4phGut36AgtvmHHIlu496aIsaGvwRAZVUv94GW4A1y+Dej30YKmEBk8LcnDKQpQpipdXSIBOjqhZDxs5vYqgcVxVn0hjCyD2v07PMUnq5YkScjBM/bnnLlPIGhPjq0g3TkZKETzo8+tw8EjXWpAIob4wwTTqIY5MWL68CRR0qgivG+UqWfAQOR4/MgLjAlswS2qXpJyIC0Ra4i2wWj+mLSxelUdN0W8
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:HE1EUR02HT150;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 6c39d980-e5b8-432d-914e-08d4641d941b
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:HE1EUR02HT150; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:HE1EUR02HT150; BCL:0; PCL:0;
	RULEID:; SRVR:HE1EUR02HT150; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 23:15:59.2903 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT150
X-OriginalArrivalTime: 05 Mar 2017 23:16:13.0767 (UTC)
	FILETIME=[7BC56570:01D29606]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.54.190.152
Subject: [gpsd-dev] [PATCH 1/3] Remove misleading comment.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 23:16:19 -0000

The code doesn't fail on 32bit machines.

TESTED:
Run 'test_gpsmm' and 'test_libgps -D 4' on a 32bit Linux machine.
---
 libgps_core.c  | 1 -
 test_gpsmm.cpp | 1 -
 2 files changed, 2 deletions(-)

diff --git a/libgps_core.c b/libgps_core.c
index 7df1c9a3..7ff31862 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -295,7 +295,6 @@ void libgps_dump_state(struct gps_data_t *collect)
 {
     /* no need to dump the entire state, this is a sanity check */
 #ifndef USE_QT
-    /* will fail on a 32-bit machine */
     (void)fprintf(debugfp, "flags: (0x%04x) %s\n",
 		  (unsigned int)collect->set, gps_maskdump(collect->set));
 #endif
diff --git a/test_gpsmm.cpp b/test_gpsmm.cpp
index 452b595e..8379c0e0 100644
--- a/test_gpsmm.cpp
+++ b/test_gpsmm.cpp
@@ -30,7 +30,6 @@ static void libgps_dump_state(struct gps_data_t *collect)
 {
     /* no need to dump the entire state, this is a sanity check */
 #ifndef USE_QT
-    /* will fail on a 32-bit macine */
     (void)fprintf(stdout, "flags: (0x%04x) %s\n",
 		  (unsigned int)collect->set, gps_maskdump(collect->set));
 #endif
--=20
2.11.0



From MAILER-DAEMON Sun Mar 05 18:16:37 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ckfOH-0002VV-5T
	for mharc-gpsd-dev@gnu.org; Sun, 05 Mar 2017 18:16:37 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35662)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckfOF-0002VO-9m
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1ckfOC-0006wF-2g
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:35 -0500
Received: from bay004-omc1s7.hotmail.com ([65.54.190.18]:59005)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1ckfOB-0006vw-MC
	for gpsd-dev@nongnu.org; Sun, 05 Mar 2017 18:16:31 -0500
Received: from EUR02-HE1-obe.outbound.protection.outlook.com ([65.54.190.61])
	by BAY004-OMC1S7.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Sun, 5 Mar 2017 15:16:30 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=CbYD922U5z6bFFqzj9pDcXwUCxdbcQR9LLzRG/6CEJg=;
	b=XYbvsSB/0wcTsL/N7BlkVPQ3JE0Kju+LwgFDfGhU2xs0oI042p9cz9eCOipES9A8OPXOqb7yTzWCeVnwguIjP92Fdj2KndoYVYAO+9YQBhBX+DiNeyJazQaKlbx222wEktv8cWo3JQH1IyniJEDe5ZGP1GXVfN7hxh4vNNKjyvq1J1rbtqI5OL/5wwNJL9kNqaQwHJfG6cyho2ghl5ZTVrVHsWNyhyAV2l0UNJB4DH+BoSvDKN0VZkLkzj4Q1LGYPFR8ApeVNxwIYno2D1i4wjijtR1CSvgCFDGVH3x3yDHezkmUfOFDGj86j2dtwEQGd+tPkFzJV5e0YNQM4zpzQw==
Received: from HE1EUR02FT025.eop-EUR02.prod.protection.outlook.com
	(10.152.10.60) by HE1EUR02HT015.eop-EUR02.prod.protection.outlook.com
	(10.152.11.28) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Sun, 5 Mar 2017 23:16:18 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.10.58) by
	HE1EUR02FT025.mail.protection.outlook.com (10.152.10.79) with Microsoft
	SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Sun, 5 Mar 2017 23:16:18 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.018; Sun, 5 Mar 2017 23:16:18 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 3/3] Fix access to shared memory on Linux
Thread-Index: AQHSlgZ++qnTWdSYdUSUoYKaczWS6A==
Date: Sun, 5 Mar 2017 23:16:18 +0000
Message-ID: <HE1PR09MB073265E62C7643A826EF7A838E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170305231541.775-1-rw_norris@hotmail.com>
In-Reply-To: <20170305231541.775-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:D66E22C5CAF5C1E235FE584A3E32836DB97D6BD46E1C5A320C0482500CB0F5B8;
	UpperCasedChecksum:A5E354B038FDAA058C2C2CBA587F2FF1347003F3390FF6B0B1DE96D53A90499B;
	SizeAsReceived:7500; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; HE1EUR02HT015;
	5:nYsysATxRILHST4Z6MBxXOy6rUaly8XFYipYEp1yzOSw8H1rixz1FDFZO7KmrxMyP6ClDUBLgoo1VaIGP4v4ksBVIMFwRypyCjCES38xd+XgC/bGcfiN+J2bTj3qx5NiNBvurPthiXyQ0qPhagrTBA==;
	24:XQg0+PADK0ZLHbC4FmdoAx7/KvL0t3UuUcQGnkSqfqN3EC5iGWhBHcEYlDFuyGmpt5dBz4AGY4Si0CkYJvvTAl/HgOiewHrOWlkwq+8rs1w=;
	7:gZ7J+ug3pbQuP+3ujDancWyl9TfWBrpU4YZlEZzwdIyXIGAiQzQVZfzi6SgC7Sza2smOXudov2B9qaVMI7Pr6rDjRbFn+imSM+KhNVkBIs526R1UQsbMLdgyhpJTLaKVoGU8GHRcysdcZGTaJEhWVpHdepKF7JcGHP6AruJja6q1H6Z1rwXUI40JzC4vIW8p0FeY4BfyNPBx6xiIrP5M6dKFmH1ETTYu2fP54kqAhL1haitjxNgD/VLLj00s8+Nsq8FpPmeU6x8jUZirCnyoV/63yMUUSafHVOUi/Ta9TOu6oMEig1d01rR0KHLlst0m
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:HE1EUR02HT015;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: f916807e-cbb9-4038-5acf-08d4641d9fd5
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:HE1EUR02HT015; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:HE1EUR02HT015; BCL:0; PCL:0;
	RULEID:; SRVR:HE1EUR02HT015; 
x-forefront-prvs: 02379661A3
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 23:16:18.7440 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT015
X-OriginalArrivalTime: 05 Mar 2017 23:16:30.0455 (UTC)
	FILETIME=[85B7C870:01D29606]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.54.190.18
Subject: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Mar 2017 23:16:36 -0000

Using shmctl() with IPC_RMID on Linux results in the IPC Key changing to 0.
Thus clients attempting to connect to the key 0x47505344 fail to connect.

Unfortunately this means the shared memory segment still needs to be
managed manually on Linux.

TESTED:
Confirmed the shared memory key for GPSD is correctly 0x47505344
(using the command ipcs).
Clients such as 'gpxlogger -e shm' on Linux connect to the shared memory.
---
 shmexport.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/shmexport.c b/shmexport.c
index 2edf0776..c046f201 100644
--- a/shmexport.c
+++ b/shmexport.c
@@ -37,7 +37,6 @@ PERMISSIONS
 bool shm_acquire(struct gps_context_t *context)
 /* initialize the shared-memory segment to be used for export */
 {
-    int status;
     long shmkey =3D getenv("GPSD_SHM_KEY") ? strtol(getenv("GPSD_SHM_KEY")=
, NULL, 0) : GPSD_SHM_KEY;
=20
     int shmid =3D shmget((key_t)shmkey, sizeof(struct shmexport_t), (int)(=
IPC_CREAT|0666));
@@ -61,17 +60,22 @@ bool shm_acquire(struct gps_context_t *context)
 	context->shmexport =3D NULL;
 	return false;
     }
+#ifndef __linux__
     /* mark shmid to go away when no longer used
      * Having it linger forever is bad, and when the size enlarges
      * it can no longer be opened */
-    status =3D shmctl(shmid, IPC_RMID, NULL);
+    /*
+     * Alternatively this segment can be removed manually like this:
+     *  ipcrm -M 0x47505344
+     */
+    int status =3D shmctl(shmid, IPC_RMID, NULL);
     if (status =3D=3D -1) {
 	gpsd_log(&context->errout, LOG_ERROR,
 		 "shmctl failed, errno =3D %d (%s)\n",
 		 errno, strerror(errno));
 	exit(1);
     }
-
+#endif /* !__linux__ */
     gpsd_log(&context->errout, LOG_PROG,
 	     "shmat() for SHM export succeeded, segment %d\n", shmid);
     return true;
--=20
2.11.0



From MAILER-DAEMON Mon Mar 06 16:30:25 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cl0D3-0002Fw-Ox
	for mharc-gpsd-dev@gnu.org; Mon, 06 Mar 2017 16:30:25 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51980)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=12315d94e7=John.Klug@multitech.com>)
	id 1ckzh0-0000un-Cb
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 15:57:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=12315d94e7=John.Klug@multitech.com>)
	id 1ckzgw-0004hT-BT
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 15:57:18 -0500
Received: from mail2.multitech.com ([65.126.90.11]:59569)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <prvs=12315d94e7=John.Klug@multitech.com>)
	id 1ckzgw-0004hN-6A
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 15:57:14 -0500
Received: from mail2.multitech.com (localhost.localdomain [127.0.0.1])
	by localhost (Email Security Appliance) with SMTP id
	F1024855E1C_8BDCD28B
	for <gpsd-dev@nongnu.org>; Mon,  6 Mar 2017 20:57:12 +0000 (GMT)
Received: from SVMVVWPEXCH11.dc.multitech.prv (unknown [192.168.11.11])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "",
	Issuer "MultiTech Systems Intermediate CA 01" (not verified))
	by mail2.multitech.com (Sophos Email Appliance) with ESMTPS id
	0062C855E00_8BDCD28F
	for <gpsd-dev@nongnu.org>; Mon,  6 Mar 2017 20:57:12 +0000 (GMT)
Received: from SVMVVWPEXCH10.dc.multitech.prv ([fe80::fddd:3b2:3e90:c14f]) by
	SVMVVWPEXCH11.dc.multitech.prv ([fe80::6c05:2634:fa75:e9c5%13]) with
	mapi id 14.02.0387.000; Mon, 6 Mar 2017 14:57:11 -0600
From: John Klug <John.Klug@multitech.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: gpsctl -e adds error message to control stream
Thread-Index: AdKWvACGZChMO4VCTAyO7ebRtt418Q==
Date: Mon, 6 Mar 2017 20:57:10 +0000
Message-ID: <51735C1BBE869A4B992BFC89923A82F0110D684F@SVMVVWPEXCH10.dc.multitech.prv>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [192.168.52.98]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multitech.com;
	h=from:to:subject:date:message-id:content-type:content-transfer-encoding:mime-version;
	s=key2; bh=kBUNlo6PV7ZF1ClhANk1bs+YZjOCiBTTzJfQ8v4GyGM=;
	b=lOgqdd4guiGnAI9u7ae0pKIUtodXan1Ll7Y9GmxARw/BNSsbSrLPRZ7+K7ATLVP2/u4VYAN4yFUCUVir/WTxMUaFnEiVGGA+DBLdkTVTm6wjB8F//N4+eUL2FAa7hTD/CdM8LAJmXurDveXKS56FukOn5uxlo0XY3jMp110NOuk=
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x [fuzzy]
X-Received-From: 65.126.90.11
X-Mailman-Approved-At: Mon, 06 Mar 2017 16:30:23 -0500
Subject: [gpsd-dev] gpsctl -e adds error message to control stream
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Mar 2017 20:57:19 -0000

This patch is for 3.16=0A=
Prevent message:=0A=
  (null)  identified as a unknown, at 0 baud.=0A=
which occurs in the control stream when the output=0A=
is stdout (-c option).=0A=
diff -Naur old/gpsctl.c new/gpsctl.c=0A=
--- old/gpsctl.c        2017-01-16 08:58:54.766070710 -0600=0A=
+++ new/gpsctl.c        2017-01-16 09:00:59.966069127 -0600=0A=
@@ -175,7 +175,7 @@=0A=
     int option, status;=0A=
     char *device =3D NULL, *devtype =3D NULL;=0A=
     char *speed =3D NULL, *control =3D NULL, *rate =3D NULL;=0A=
-    bool to_binary =3D false, to_nmea =3D false, reset =3D false;=0A=
+    bool to_binary =3D false, to_nmea =3D false, reset =3D false, control_=
stdout =3D false;=0A=
     bool lowlevel=3Dfalse, echo=3Dfalse;=0A=
     struct gps_data_t gpsdata;=0A=
     const struct gps_type_t *forcetype =3D NULL;=0A=
@@ -217,6 +217,7 @@=0A=
             break;=0A=
         case 'e':               /* echo specified control string with wrap=
per */=0A=
             lowlevel =3D true;=0A=
+           control_stdout =3D true;  /* Prevent message going to stdout */=
=0A=
             echo =3D true;=0A=
             break;=0A=
         case 'f':               /* force direct access to the device */=0A=
@@ -704,7 +705,8 @@=0A=
             }=0A=
         }=0A=
 =0A=
-       (void)printf("%s identified as a %s at %u baud.\n",=0A=
+       if(!control_stdout)=0A=
+               (void)printf("%s identified as a %s at %u baud.\n",=0A=
                        device, gpsd_id(&session),=0A=
                        session.gpsdata.dev.baudrate);=0A=
 =0A=
=0A=
John Klug=0A=
=0A=
Senior Software Engineer=0A=


From MAILER-DAEMON Mon Mar 06 16:30:26 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cl0D3-0002GC-To
	for mharc-gpsd-dev@gnu.org; Mon, 06 Mar 2017 16:30:25 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50514)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=12315d94e7=John.Klug@multitech.com>)
	id 1ckzaR-0006yz-IL
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 15:50:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=12315d94e7=John.Klug@multitech.com>)
	id 1ckzaN-0002cv-Hr
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 15:50:31 -0500
Received: from mail3.multitech.com ([65.126.90.13]:53462)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <prvs=12315d94e7=John.Klug@multitech.com>)
	id 1ckzaN-0002cf-Ar
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 15:50:27 -0500
Received: from mail3.multitech.com (localhost.localdomain [127.0.0.1])
	by localhost (Email Security Appliance) with SMTP id
	E1C8582B70_8BDCB91B
	for <gpsd-dev@nongnu.org>; Mon,  6 Mar 2017 20:50:25 +0000 (GMT)
Received: from SVMVVWPEXCH11.dc.multitech.prv (unknown [192.168.11.11])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "",
	Issuer "MultiTech Systems Intermediate CA 01" (not verified))
	by mail3.multitech.com (Sophos Email Appliance) with ESMTPS id
	A074682334_8BDCB91F
	for <gpsd-dev@nongnu.org>; Mon,  6 Mar 2017 20:50:25 +0000 (GMT)
Received: from SVMVVWPEXCH10.dc.multitech.prv ([fe80::fddd:3b2:3e90:c14f]) by
	SVMVVWPEXCH11.dc.multitech.prv ([fe80::6c05:2634:fa75:e9c5%13]) with
	mapi id 14.02.0387.000; Mon, 6 Mar 2017 14:50:25 -0600
From: John Klug <John.Klug@multitech.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: gpsd memory fault on 32 bit machine with debug>=4
Thread-Index: AdKWu0dteV/qvZzNQA+pimO4hHCssg==
Date: Mon, 6 Mar 2017 20:50:24 +0000
Message-ID: <51735C1BBE869A4B992BFC89923A82F0110D6815@SVMVVWPEXCH10.dc.multitech.prv>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [192.168.52.98]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multitech.com;
	h=from:to:subject:date:message-id:content-type:content-transfer-encoding:mime-version;
	s=key2; bh=0HMh4/AqHnrLL17fURB5LsBuTMuJPXMUFKdoc9jxga8=;
	b=X1dREecQkAxGg2pMpmXGCjju2M1fy/hgviklFathPK+jL7ON/pnuYt8DpO4nIiUa55FaPIMM+GEsHqgeAX36kgLfQ9MFkhb1oHMMUSMRASVuYoKnb4KcnHrddDEusGGDjxGwSWBrLCiy5MI2OePtCx3IR1C8LvGtcc1y4VJNz/Q=
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x [fuzzy]
X-Received-From: 65.126.90.13
X-Mailman-Approved-At: Mon, 06 Mar 2017 16:30:23 -0500
Subject: [gpsd-dev] gpsd memory fault on 32 bit machine with debug>=4
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Mar 2017 20:50:32 -0000

Before the fix, sample PPS Logs:=0A=
gpsd:PROG: KPPS:/dev/pps0 Clear cycle: -1236963952, duration: 1000000 @ (nu=
ll)=0A=
gpsd:PROG: PPS:/dev/pps0 Clear cycle:       0, duration: 1000000 @ (null)=
=0A=
=0A=
With this fix, we see logs like this:=0A=
gpsd:PROG: KPPS:/dev/pps0 Clear cycle: 1000010, duration:  100003 @  157772=
9345.554599378=0A=
gpsd:PROG: PPS:/dev/pps0 Clear cycle: 1000010, duration:  100003 @  1577729=
345.554599378=0A=
=0A=
When the system clock changes without this fix, and the=0A=
debug level is 4 or greater, GPSD crashes on 32 bit ARM.=0A=
This fix prevents strlen() in vfprintf() from being given=0A=
a garbage pointer.  cycle, cycle_kpps, duration and=0A=
duration_kpps are defined as long long, so by the C=0A=
standard, the format string is %lld.=0A=
=0A=
patch is for 3.16.=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
diff -Naur old/ppsthread.c new/ppsthread.c=0A=
--- old/ppsthread.c     2017-02-01 11:36:31.575212221 -0600=0A=
+++ new/ppsthread.c     2017-02-01 11:44:48.269536679 -0600=0A=
@@ -770,10 +770,9 @@=0A=
             edge_str =3D edge ? "Assert" : "Clear";=0A=
             cycle =3D cycle_tio;=0A=
             duration =3D duration_tio;=0A=
-=0A=
             timespec_str( &clock_ts, ts_str1, sizeof(ts_str1) );=0A=
             thread_context->log_hook(thread_context, THREAD_PROG,=0A=
-                   "TPPS:%s %.10s cycle: %d, duration: %d @ %s\n",=0A=
+                   "TPPS:%s %.10s cycle: %lld, duration: %lld @ %s\n",=0A=
                     thread_context->devicename, edge_str, cycle, duration,=
=0A=
                     ts_str1);=0A=
 =0A=
@@ -840,7 +839,7 @@=0A=
 =0A=
             timespec_str( &clock_ts_kpps, ts_str1, sizeof(ts_str1) );=0A=
             thread_context->log_hook(thread_context, THREAD_PROG,=0A=
-               "KPPS:%s %.10s cycle: %7d, duration: %7d @ %s\n",=0A=
+               "KPPS:%s %.10s cycle: %7lld, duration: %7lld @ %s\n",=0A=
                 thread_context->devicename,=0A=
                 edge_str,=0A=
                 cycle_kpps, duration_kpps, ts_str1);=0A=
@@ -898,7 +897,7 @@=0A=
         state_last =3D state;=0A=
         timespec_str( &clock_ts, ts_str1, sizeof(ts_str1) );=0A=
         thread_context->log_hook(thread_context, THREAD_PROG,=0A=
-           "PPS:%s %.10s cycle: %7d, duration: %7d @ %s\n",=0A=
+           "PPS:%s %.10s cycle: %7lld, duration: %7lld @ %s\n",=0A=
             thread_context->devicename,=0A=
             edge_str,=0A=
             cycle, duration, ts_str1);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
John Klug=0A=
=0A=
Senior Software Engineer=0A=


From MAILER-DAEMON Mon Mar 06 16:57:22 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cl0d8-0005UA-2J
	for mharc-gpsd-dev@gnu.org; Mon, 06 Mar 2017 16:57:22 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38710)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1cl0d5-0005U4-No
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 16:57:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1cl0d5-0004Tp-2E
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 16:57:19 -0500
Received: from rellim.com ([2001:470:e815::19]:49098 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <gem@rellim.com>) id 1cl0d4-0004OJ-Pb
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 16:57:18 -0500
Received: from spidey.rellim.com (dave.rellim.com
	[IPv6:2001:470:e815:0:0:0:0:19] (may be forged))
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id v26Lv1QA009013
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO)
	for <gpsd-dev@nongnu.org>; Mon, 6 Mar 2017 13:57:06 -0800
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com v26Lv1QA009013
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1488837426; bh=a4JzpZRDJZErqXGrHBBVmeKUOeIxba/zw0As1RgeQoo=;
	h=Date:From:To:Subject:In-Reply-To:References;
	b=fVbpjdEc1fQ3gH5kFcGQrh+KVEQAHvIbVgHkrhk5wxZKGB++gXBWU7tQd4Mtegy2D
	/Pp1jxg2Shd49PT2O2uJ6uehkxdTSmVsVKwmDtOsU6plFI3DSZG90bFWet61S5v/s9
	2gR0mR0qx//+J0H18xh1Lc6BlO4Vt26Ed3efGQik=
Date: Mon, 6 Mar 2017 13:57:00 -0800
From: "Gary E. Miller" <gem@rellim.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Message-ID: <20170306135700.74d970ae@spidey.rellim.com>
In-Reply-To: <HE1PR09MB073265E62C7643A826EF7A838E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170305231541.775-1-rw_norris@hotmail.com>
	<HE1PR09MB073265E62C7643A826EF7A838E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Organization: Rellim
X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/0ydorVs3_AA23YakA=J7pWM";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6rc1
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Mon, 06 Mar 2017 13:57:06 -0800 (PST)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: Re: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Mar 2017 21:57:20 -0000

--Sig_/0ydorVs3_AA23YakA=J7pWM
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Robert!

On Sun, 5 Mar 2017 23:16:18 +0000
Robert Norris <rw_norris@hotmail.com> wrote:

> Unfortunately this means the shared memory segment still needs to be
> managed manually on Linux.

Maybe, but this patch is not good.

>  bool shm_acquire(struct gps_context_t *context)
>  /* initialize the shared-memory segment to be used for export */
>  {
> -    int status;

Notice the defintion at the top of the function?

> gps_context_t *context) context->shmexport =3D NULL;
>  	return false;
>      }

And we had some code.

> +    int status =3D shmctl(shmid, IPC_RMID, NULL);

Now you define the variable inline.  Many compilers only allow
defining a stack var at the top of a block.  So this will fail
on older compilers.

And and that point I stopped looking.


RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can=E2=80=99t measure it, you can=E2=80=99t improve it." - Lord=
 Kelvin

--Sig_/0ydorVs3_AA23YakA=J7pWM
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEENqCjEoytAEAuFCk8DQ7ZSUHRedgFAli92ywACgkQDQ7ZSUHR
edg0YQf/ar82t1mTGcDkESrTuNCDK5uwvFSQzI+sMrIil+BNqYp8WaIdccMfPlPD
LxQc5duCZZps0QZ5yY6+UkXMSVaAzDinO4xqsFoznJiB4wuXg6zbpeT15wI0mOMx
mwDgGdK0RsDqTRQoTMeKOslr3/erRk2f32pxmpWf4P+l3NQtIKoFk8DyaF9Y5B+J
xW3IKlqAJYKKdUgoKrXZohWEDujSwkh3LfAMan4HveFAy5cOQsm8fdD/DT8uhBw4
FxHsQpfI/mWv/6z3/Z1QNGCaiPLW1LvTHvTnZvEurzAFSvBcQ31PS51P6CT1OX40
ab+y5+c8gmW6qIYAylv16QDQ4uILCQ==
=zUi1
-----END PGP SIGNATURE-----

--Sig_/0ydorVs3_AA23YakA=J7pWM--


From MAILER-DAEMON Mon Mar 06 19:29:58 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cl30o-0008MK-I3
	for mharc-gpsd-dev@gnu.org; Mon, 06 Mar 2017 19:29:58 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39671)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1cl30m-0008LG-9Z
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 19:29:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1cl30j-0000JE-6s
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 19:29:56 -0500
Received: from bay004-omc3s1.hotmail.com ([65.54.190.139]:58579)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1cl30i-0000IQ-Qf
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 19:29:53 -0500
Received: from EUR03-DB5-obe.outbound.protection.outlook.com ([65.54.190.189])
	by BAY004-OMC3S1.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Mon, 6 Mar 2017 16:29:50 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=3MJSuGUm0Jfaq6FF0OORyp/Z3d1IsRhUKoptPxcIOYo=;
	b=FnzM0VSavh9IfocSkfbfdQZldNDL6AsfS0GsRkX1iFgfdokQKZVBO8yA/QaMWSpSq4K6V97iy6AebDhRg6Oys6SfGevrL2S4lds/t2Et48oHYPr9dUC7BoM10p0zr2VGk6/RrkxAn3wuLGQS2NZjWAWJjEkcrFmQLAtJi1jaKrHdd6UVi4XkjvdKDBypa1SWsz4aukVwb/ZkYVbybL9MMV4skGxMNN7CHj57UbiDZcOwc5oXYweBxsEUheCJgvHJhY3fonL/FpyyTDQa6ImOl6fzvInB67dQdNsgCBjDnWCWinw44Nty/SvSp1x++d0+g+xRmGrUhd6c0ExywVJmcg==
Received: from VE1EUR03FT049.eop-EUR03.prod.protection.outlook.com
	(10.152.18.52) by VE1EUR03HT208.eop-EUR03.prod.protection.outlook.com
	(10.152.19.73) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.11;
	Tue, 7 Mar 2017 00:29:34 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.18.59) by
	VE1EUR03FT049.mail.protection.outlook.com (10.152.19.216) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Tue, 7 Mar 2017 00:29:34 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.020; Tue, 7 Mar 2017 00:29:33 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux
Thread-Index: AQHSlgZ++qnTWdSYdUSUoYKaczWS6KGIXRwAgAAn0l0=
Date: Tue, 7 Mar 2017 00:29:33 +0000
Message-ID: <HE1PR09MB07324A51A7D20ED577BC1C438E2F0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170305231541.775-1-rw_norris@hotmail.com>
	<HE1PR09MB073265E62C7643A826EF7A838E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>,
	<20170306135700.74d970ae@spidey.rellim.com>
In-Reply-To: <20170306135700.74d970ae@spidey.rellim.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:83B106C3715F591C4BF698FF990C83B2FFD70DD1CC9456EEB782E1D0286A7F92;
	UpperCasedChecksum:66EA9E816D976B97B8C97608B4B9646E3190661B6F3AAEBE88576FDF0F9D628C;
	SizeAsReceived:7897; Count:39
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [l83n7JIsOOg738MtOQEheVVx0cueFKZa]
x-incomingheadercount: 39
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; VE1EUR03HT208;
	5:R1zdNoLEqtrqdwrWAND5sJswD9o2qtDlap9hiHkolof94cmLjoBGr/MiBX3oH6Pozk1mzV5Y9KiHKDK+lEbQVF4RE0DN9Q0/5KsDB/bGqoV219grWtb8EAMc1B14szB/VzqUMfqbcwwxMeYuHu2G5w==;
	24:1tTqyjljqjz9RnK7DZ70PWMnRIUuxivZcpbNSM7BHIz1oT5TwdjabMO8uI3MzTg+V4KHBFLnmxK/yf3mBy0dyQQuwjedN9jhJfCMHOpwAXw=;
	7:s7Ov4uHccWZagaiYLP+qfQxlOQAvkWTmeF8aBJlTHdJ5QzbrG5KX14311V7IB2Y+/hdJl+M7oEgqgs+jwAlOvas/woHnFtFWjNFBE9FyDuNKOo+ZvlrmQ4ZVZAgKmaRpZgtPTIq3hfjpOyZhy2UXNi8TAX3Zd4pkOpzpqzkTR626GvtTh1mpsGuoIeHdA2PzFYjJFYzFVHuu8+58yARPC5g+K+nfl7HSHb0j2u4auYXGfjPdmXakx3GpOe2wdBEZAGfnTjweWe6TQwe0wJiGyoL4UGRGEMR7lyxhjPqoLKQkCc1AMTTgYlVs3FJfquLz
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR03HT208;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 8dd16c18-774a-4c1d-f4ee-08d464f10748
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1603101448)(1601125254)(1701031045);
	SRVR:VE1EUR03HT208; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:VE1EUR03HT208; BCL:0; PCL:0;
	RULEID:; SRVR:VE1EUR03HT208; 
x-forefront-prvs: 0239D46DB6
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2017 00:29:33.7262 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR03HT208
X-OriginalArrivalTime: 07 Mar 2017 00:29:50.0853 (UTC)
	FILETIME=[EEF8FB50:01D296D9]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.54.190.139
Subject: Re: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Mar 2017 00:29:57 -0000


> Now you define the variable inline.  Many compilers only allow
> defining a stack var at the top of a block.  So this will fail
> on older compilers.

Oh dear!

I better fix recent patch 3ae82ee27f38343e7982c6e96db0cdcd80a851b5 to Fix m=
emory leak in Qt build too then.

--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.

________________________________________
From: gpsd-dev <gpsd-dev-bounces+rw_norris=3Dhotmail.com@nongnu.org> on beh=
alf of Gary E. Miller <gem@rellim.com>
Sent: 06 March 2017 21:57:00
To: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux

Yo Robert!

On Sun, 5 Mar 2017 23:16:18 +0000
Robert Norris <rw_norris@hotmail.com> wrote:

> Unfortunately this means the shared memory segment still needs to be
> managed manually on Linux.

Maybe, but this patch is not good.

>  bool shm_acquire(struct gps_context_t *context)
>  /* initialize the shared-memory segment to be used for export */
>  {
> -    int status;

Notice the defintion at the top of the function?

> gps_context_t *context) context->shmexport =3D NULL;
>       return false;
>      }

And we had some code.

> +    int status =3D shmctl(shmid, IPC_RMID, NULL);

Now you define the variable inline.  Many compilers only allow
defining a stack var at the top of a block.  So this will fail
on older compilers.

And and that point I stopped looking.


RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can=92t measure it, you can=92t improve it." - Lord Kelvin


From MAILER-DAEMON Mon Mar 06 20:32:17 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cl3z7-0005C8-8V
	for mharc-gpsd-dev@gnu.org; Mon, 06 Mar 2017 20:32:17 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55671)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cl3z5-0005Bn-6c
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 20:32:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cl3z2-0000ks-0O
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 20:32:15 -0500
Received: from d.mail.sonic.net ([64.142.111.50]:45518)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1cl3z1-0000k0-Ly
	for gpsd-dev@nongnu.org; Mon, 06 Mar 2017 20:32:11 -0500
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v271W5me003971
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Mon, 6 Mar 2017 17:32:06 -0800
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v271W5As006926
	for <gpsd-dev@nongnu.org>; Mon, 6 Mar 2017 17:32:05 -0800
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v271W5Rq006923
	for <gpsd-dev@nongnu.org>; Mon, 6 Mar 2017 17:32:05 -0800
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Mon, 6 Mar 2017 17:32:05 -0800 (PST)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <20170306135700.74d970ae@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1703061723250.947@bolt.sonic.net>
References: <20170305231541.775-1-rw_norris@hotmail.com>
	<HE1PR09MB073265E62C7643A826EF7A838E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
	<20170306135700.74d970ae@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVairW688lKJNSGCJFUdltygO56Q/Q8npD/5AyHrPQuFb4m1pXCqKW81+M14PDSfrKvBYel/2LtvTqeLSYAdQGB3
X-Sonic-ID: C;nvaN39UC5xG7S0JHGpqj1g== M;Lm2539UC5xG7S0JHGpqj1g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Mar 2017 01:32:16 -0000


On Mon, 6 Mar 2017, Gary E. Miller wrote:

[...]
> Now you define the variable inline.  Many compilers only allow
> defining a stack var at the top of a block.  So this will fail
> on older compilers.

That restriction was lifted in C99.  Since GPSD is already relying on
other >=C99 features, I don't think that usage adds any new compiler
constraints.  That being said, I tend not to use late declarations myself
without good reason.

I haven't looked at the actual patch in detail yet.

Fred Wright


From MAILER-DAEMON Tue Mar 07 19:24:31 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1clPP4-0001xk-VT
	for mharc-gpsd-dev@gnu.org; Tue, 07 Mar 2017 19:24:30 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43194)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPP2-0001xa-Lv
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPOy-00012V-NH
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:28 -0500
Received: from blu004-omc1s24.hotmail.com ([65.55.116.35]:64680)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1clPOy-00012R-IA
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:24 -0500
Received: from EUR03-AM5-obe.outbound.protection.outlook.com ([65.55.116.7])
	by BLU004-OMC1S24.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Tue, 7 Mar 2017 16:24:24 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=d+Bh9NtRn+T0vsiEd+6eDtvMpPh8qxpnU7YS9FUyodc=;
	b=rDXu5c+h+YKumxMHVGPzwAiQSl/SZFcl3oI7a1RS/+j+kIGhLxlrsgpubFjMi7BQNCjcHx834B4zUq+U4a1hQf56px14sBhRGB1qK2vrEc1uoRn9bHygcJ+KudyqeNiYA5KOWgCQCiLPa/RDR6ImtFfGVXcuzfx/Lod49L6m2hj0BCCCyua0kBtslwe5SgHAGblGeeKz5ndaRUhah0/itE+EdeRfgfzHVbNrK2sq8UuNY2KSkBosXR/Av33853P3Ts+RjZWYGx4+Ewg4quniKijcUbai+biq2lIUHlhBz5+lDPk9CWW8XdWglNr50G7JNuXglubg+mI45h4ptzqGuw==
Received: from AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com
	(10.152.16.58) by AM5EUR03HT046.eop-EUR03.prod.protection.outlook.com
	(10.152.17.162) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Wed, 8 Mar 2017 00:24:22 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.16.53) by
	AM5EUR03FT060.mail.protection.outlook.com (10.152.16.160) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Wed, 8 Mar 2017 00:24:22 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.020; Wed, 8 Mar 2017 00:24:22 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 2/5] No more need to gitignore gpsd.h
Thread-Index: AQHSl6JVs2aav/SIW0uwXs45PJfHLA==
Date: Wed, 8 Mar 2017 00:24:22 +0000
Message-ID: <HE1PR09MB0732ACB02F76F8F775F765EB8E2E0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170308002351.30584-1-rw_norris@hotmail.com>
In-Reply-To: <20170308002351.30584-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:C3B3B8C2D45A81A755DE30D4690A484AD1C58AA52E448E9BE01924C101AC57A5;
	UpperCasedChecksum:D5008D523E4555DDA2F77728D5C535FBFE22584DA92227A91B48E3A452097F7A;
	SizeAsReceived:7513; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; AM5EUR03HT046;
	5:yzLWgttWM6Hwrwsx2gnvP7K0gL4EI9RjephfpPWXEZDW1CtgTXeabvQzNKcktP0zMjUvz4ti0gR59RvU9z8C5Wdm2fEmalrIFHG0dAaJlsnOxfIAlhNWPZeMRhyd21hUAtxgxV6JvAWvjmo4VhvpsQ==;
	24:zo8QDy36NHGPBURIAx9cQVVVu5JTsfVwPyalJnQ8dWIyH2kMv+rJ6zo4H/jmh54PVcKWfeSGhhQSrTeg9h4HCcadQJLyBWeibt7LBI0QQ7Y=;
	7:DRxTD8NA4OnDFtS/i+iHe0UbpNKV419svA4Gsbo1LpEJmXi7Y0lhwyyTndpB3oj0ljM6gENS5OzjEy42ZXn0rAUNbF7ihLJbJ/tOjUlZoLaeMbTOky+3YUFUgtE4gir+6ZTKPQqYfcNXjpcOwRPjpGoTUKoRtfpT643l3t8qpGKLo2449VQqyzIJHkbbrYCFCiJu+C8POqADA4ejVKUczn+0+Df+m6J9XnWGt0RBkkktSICtpEzFXVR8Tlaf6QEZeqWvM6Vher8FXHyUFFlP++sMej8gQOM7TjqApaekKdb8+nH35RA2Fni2OKFCeJ9n
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT046;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 23d2d222-4206-42dd-6f8a-08d465b976ef
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:AM5EUR03HT046; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:AM5EUR03HT046; BCL:0; PCL:0;
	RULEID:; SRVR:AM5EUR03HT046; 
x-forefront-prvs: 02408926C4
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2017 00:24:22.3591 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT046
X-OriginalArrivalTime: 08 Mar 2017 00:24:24.0214 (UTC)
	FILETIME=[56B19360:01D297A2]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.116.35
Subject: [gpsd-dev] [PATCH 2/5] No more need to gitignore gpsd.h
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Mar 2017 00:24:29 -0000

It is no longer an auto generated file.
---
 .gitignore | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index e52adad5..eca0f33c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,7 +76,6 @@ srec.html
 # Built sources
 gps_maskdump.c
 gpsd_maskdump.c
-gpsd.h
 gpsd_config.h.in
 gpsd_config.h
 packet_names.h
--=20
2.11.0



From MAILER-DAEMON Tue Mar 07 19:24:47 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1clPPL-00023O-3L
	for mharc-gpsd-dev@gnu.org; Tue, 07 Mar 2017 19:24:47 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43288)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPPI-00022q-J1
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPPE-00015K-Jl
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:44 -0500
Received: from bay004-omc4s14.hotmail.com ([65.54.190.216]:56806)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1clPPE-00015F-Bt
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:40 -0500
Received: from EUR03-AM5-obe.outbound.protection.outlook.com ([65.54.190.201])
	by BAY004-OMC4S14.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Tue, 7 Mar 2017 16:24:39 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=tsWngw5b5X7BUTZz/DvnXVb6orwiZjFc6YKyeuosWdE=;
	b=SdcKjq3Kxs/0R2I5tnLMTx/0aLQYaYx0b3hOvYKi10qXaycojhXatpWHdK91ebS6Mev8gzNvtSvTdxdQq6ZDIewdmHw+lxFm1POzwSXTn6mQdS3+WHIXbaHb8RYVM9teunuVmVa7BBSX+8F+lVyDDHEiMQA0xnv8XsG/W3zFRH/BAh626zQtKZVa6Az1+ss+E4bKonSupUQF0gRJO9kw4OidJXfmz46kT9dOrDO+Hm5GojEsRanEjsiS3NOEvWuKMCJt+VVwA270cn8OCulzzm89ttNqXDDb2Oe4I8SxGDtt0TcoJ5mWPA8vCODIFsj3V1vC9KDkYeN5JNXqLkJnLA==
Received: from AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com
	(10.152.16.52) by AM5EUR03HT239.eop-EUR03.prod.protection.outlook.com
	(10.152.16.209) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Wed, 8 Mar 2017 00:24:36 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.16.53) by
	AM5EUR03FT060.mail.protection.outlook.com (10.152.16.160) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Wed, 8 Mar 2017 00:24:36 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.020; Wed, 8 Mar 2017 00:24:36 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 4/5] Document the '-q' option for gpsfake
Thread-Index: AQHSl6JeO7BGhGUb1kKEUIhYAjUDjA==
Date: Wed, 8 Mar 2017 00:24:36 +0000
Message-ID: <HE1PR09MB07324CB6B2E2063666705D248E2E0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170308002351.30584-1-rw_norris@hotmail.com>
In-Reply-To: <20170308002351.30584-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:0E1140A0DC187000162952897EB26BA9E57A39DC1151B343216AED94299DAF4D;
	UpperCasedChecksum:299880EA321D29CC5C6C007DE33522C735D839AAAD1A8F1A4EDEAA17B23145A2;
	SizeAsReceived:7506; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; AM5EUR03HT239;
	5:mhT1ZOgBJ/WA5KSXJPsbCWN9/OvOOHuv5RxWdQVGxn88YL+/PFyuCa4rqqm7E9w1cLnLAarS0JYET38xPw4hNtHtkH0EEonPP1i79ZGOniC17Ljj/4pGhae5SDUg3nTTGypKn57StQRMyxC2rv6VWA==;
	24:rzIIjWHHp1HZFw0LP3kLoMd81IqMKqLs44BKvTEloABv2d5vxPPYJ0C3zZ8X9VPkeIhrkHHE6hIZXizgey2rCJJ+EzS42RClsKTwa8OBxko=;
	7:/AcwfNU894jn8aUmqWib3lOmuW+yzE7G4eEEtLAtrmzYZZFcIpYh3opqQ4aq+9chtC21ioAldBU4HoTheH7Z2lkC2VOlOa06qJvFLHzl6lVD+OcF91ixcAck5TR0fLx2afNFfnYpRAYFHeQ60FA75OK4JuT6EXCHAGgVer39n9Tb++/FJu6ULxzHMY254E44c/5UgQJzKsL9YsjyPINNe+pSO1/mJ/qJbZH2+I/d70cng6nfDW9Ee2txrNdAytFwuRlhX7IRDLqNmH+aV6UFRxYojBfci4LUPA6eprzt4n+HH0ST+VLZLZ6oIsuaryoR
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT239;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 9b34cb50-c235-41ed-b8b0-08d465b97fa4
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:AM5EUR03HT239; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:AM5EUR03HT239; BCL:0; PCL:0;
	RULEID:; SRVR:AM5EUR03HT239; 
x-forefront-prvs: 02408926C4
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2017 00:24:36.6564 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT239
X-OriginalArrivalTime: 08 Mar 2017 00:24:39.0621 (UTC)
	FILETIME=[5FE07F50:01D297A2]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.54.190.216
Subject: [gpsd-dev] [PATCH 4/5] Document the '-q' option for gpsfake
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Mar 2017 00:24:45 -0000

TESTED:
Man page generation still works
---
 gpsfake.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gpsfake.xml b/gpsfake.xml
index f13efd66..520989e9 100644
--- a/gpsfake.xml
+++ b/gpsfake.xml
@@ -35,6 +35,7 @@ BSD terms apply: see the file COPYING in the distribution=
 root for details.
       <arg choice=3D'opt'>-o <replaceable>options</replaceable></arg>
       <arg choice=3D'opt'>-p</arg>
       <arg choice=3D'opt'>-P <replaceable>port</replaceable></arg>
+      <arg choice=3D'opt'>-q</arg>
       <arg choice=3D'opt'>-r <replaceable>initcmd</replaceable></arg>
       <arg choice=3D'opt'>-s <replaceable>speed</replaceable></arg>
       <arg choice=3D'opt'>-S</arg>
@@ -135,6 +136,9 @@ for regression-testing.</para>
=20
 <para>The -P ("port") option sets the daemon's listening port.</para>
=20
+<para>The <option>-q</option> tells gpsfake to suppress normal progress
+output and thus act in a quiet manner.</para>
+
 <para>The <option>-r</option> specifies an initialization command to use i=
n pipe mode.
 The default is <command>?WATCH=3D{"enable":true,"json":true}</command>.</p=
ara>
=20
--=20
2.11.0



From MAILER-DAEMON Tue Mar 07 19:24:51 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1clPPP-00025v-7C
	for mharc-gpsd-dev@gnu.org; Tue, 07 Mar 2017 19:24:51 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43310)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPPM-000249-7E
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPPI-00015t-8g
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:48 -0500
Received: from blu004-omc4s23.hotmail.com ([65.55.111.162]:55859)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1clPPI-00015i-4V
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:44 -0500
Received: from EUR03-DB5-obe.outbound.protection.outlook.com ([65.55.111.137])
	by BLU004-OMC4S23.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Tue, 7 Mar 2017 16:24:43 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=kUFOagcrXyVBOIHnmQ8BH51ijw4KYgmguAlf/qhW9nE=;
	b=oRqt/PtmpKnbU6cq7dx2SDF9nkaEx4mJm0e9aHddq3Frt+/TEcn93YesGL2iSz5/PtNjbqQo5w6/zIwNta4C5KvkvYfNglou//7/Rc9FxiIb6F5U8GBKwBzSxodsGurwrFCv+jwoV7f82A+pSSMwGBby4FvoqLl6c1Rv++I47mTAyYIgweQxG8SSKpamGe6gEqhISTZYasmSiLC79XSsbh++6qCQBnCSi8IIor7YhrEPcysSJjdxWp68+yJH4Y1l8TST4HIbq4KwovLMnnFV2VfxdaK4yW0vY82DcHYJ+8giTltI8ASpeSgaAI4tN2FSEUr6mbkRUBdrm/bDpk5hUQ==
Received: from AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com
	(10.152.16.56) by AM5EUR03HT077.eop-EUR03.prod.protection.outlook.com
	(10.152.17.59) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Wed, 8 Mar 2017 00:24:30 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.16.53) by
	AM5EUR03FT060.mail.protection.outlook.com (10.152.16.160) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Wed, 8 Mar 2017 00:24:29 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.020; Wed, 8 Mar 2017 00:24:29 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 3/5] Enable gpsfake to list all options
Thread-Index: AQHSl6JZaOacsAfqp02CP0rFm1ONOg==
Date: Wed, 8 Mar 2017 00:24:29 +0000
Message-ID: <HE1PR09MB0732C2BD6EF08A793A2CAFB28E2E0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170308002351.30584-1-rw_norris@hotmail.com>
In-Reply-To: <20170308002351.30584-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:A4E2CB06E3B6D2CB0D279AA5521CE20233CC9313EBD14884C752D3D311764DDB;
	UpperCasedChecksum:3C25500028D8272152E9CBBCDBB2C5940F31923811E6BC71B6F132174AA21523;
	SizeAsReceived:7568; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; AM5EUR03HT077;
	5:sJU3/ppNJ6MvPKi0I1nyF22Ntu/3R66rG+JRXI2Ais2tfMT2TTFvcVjvoqdO5UAuxn1jRlBa8eFdDzA3nMmVfYqdYLsIsMwHFJQa6+zw1TaNrFmuGrhkcSl+kU1eVrqc64y95QMxozoQhNxEEAzi2Q==;
	24:QXmeX+GrM6vY/BKmOyIrnnBvYacA1LC3v6hvy+Y+jP9MKG2zx7H6fOCtn2P9M0agTx7xnuljmYmsty7IlRVqgxrv2Ox7swgNspy3SHxBkO8=;
	7:nOEp6ybjVjAF5pW3lg4hqMRRWDTuZsqcGf32smiDtug+ncBZqq3hnTtWUWFrk3oFEjJu/JVgpoNg43ggWXRgsWUB7ZlC2UIKcVAZt9V/1eDn82Gpbgjckja+AkaQ8YwZ3vqO/KcjEgXfHspxnO93D6C5rP6m1MaQLTKXC0wSprCD/HzhwQUF7FCFtew9TY0Oukb0VNXlYNRijeXb53zTdwkBGBRTnBQVnaQwoy5YLE9lft1Dm2qL9DLvED6tIBNbYfnHmTXUeRqW193ucwg1LAP4FMwlVGIj5rh295GbzC8VEM6y5nCuEwgFxl2aK3nK
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT077;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 153c6c0a-5908-4a11-454e-08d465b97b4b
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:AM5EUR03HT077; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:AM5EUR03HT077; BCL:0; PCL:0;
	RULEID:; SRVR:AM5EUR03HT077; 
x-forefront-prvs: 02408926C4
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2017 00:24:29.4687 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT077
X-OriginalArrivalTime: 08 Mar 2017 00:24:43.0909 (UTC)
	FILETIME=[626ECB50:01D297A2]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.111.162
Subject: [gpsd-dev] [PATCH 3/5] Enable gpsfake to list all options
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Mar 2017 00:24:49 -0000

Output a succinct list of all options available for gpsfake.
This includes fixing the incorrect double hyphen for the debug level.

Note that gpsfake can handle multiple log files.

TESTED:
The list is displayed on 'gpsfake -h'
---
 gpsfake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gpsfake b/gpsfake
index f9450359..396893eb 100755
--- a/gpsfake
+++ b/gpsfake
@@ -173,7 +173,9 @@ if __name__ =3D=3D '__main__':
         elif switch =3D=3D '-v':
             verbose +=3D 1
         elif switch =3D=3D '-h':
-            sys.stderr.write("usage: gpsfake [-h] [-l] [-m monitor] [--D d=
ebug] [-o options] [-p] [-s speed] [-S] [-c cycle] [-b] logfile\n")
+            sys.stderr.write("usage: gpsfake"
+                     " [-1] [-h] [-i] [-l] [-g] [-m monitor] [-D debug] [-=
n] [-o options] [-p]\n"
+                     "\t[-P port] [-r initcmd] [-t] [-T] [-v] [-x] [-s spe=
ed] [-S] [-c cycle] [-b] logfile...\n")
             raise SystemExit(0)
=20
     try:
--=20
2.11.0



From MAILER-DAEMON Tue Mar 07 19:24:52 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1clPPP-00026d-UA
	for mharc-gpsd-dev@gnu.org; Tue, 07 Mar 2017 19:24:52 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43317)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPPN-00024b-0y
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPPJ-00016D-1K
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:49 -0500
Received: from blu004-omc1s26.hotmail.com ([65.55.116.37]:58909)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1clPPI-000163-TN
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:24:44 -0500
Received: from EUR03-DB5-obe.outbound.protection.outlook.com ([65.55.116.9])
	by BLU004-OMC1S26.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Tue, 7 Mar 2017 16:24:44 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=JjOEgQnMf9+CNJXMKZxwm+MS1fndBfURmcZheGjrNmQ=;
	b=NIox219R7q2grdXSN+Z/eGO1nnVPNAk2eKPFyYkAg1mAYxuyoh8GMAwa3S66t1KXm976A+Y9KZoDXjPMFAIGAnRdYML3HJpF2nrSIi6jo+AQrQoqoYksvwChIFVdmgmbOW3JKrsszfbG7+xTpJFzEgn9zrIvBe//3wLfkBaSVDwmtaQ6f7AbAkhhTOiM55PML35HmJfuu8mCUVrngu8ZXRuu7IGSqPn+eTHVLFTG62GJKAj/OQ3yvZR6qB2SIw1f5D6XT4qvXaTDbBGjInUDwjQwZeh+nSt02RJrZ9qPfiOVKdHFscEyO2rleQkol5L/2wLIMLuHgStO/1/YlnP06A==
Received: from AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com
	(10.152.16.58) by AM5EUR03HT137.eop-EUR03.prod.protection.outlook.com
	(10.152.17.242) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Wed, 8 Mar 2017 00:24:42 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.16.53) by
	AM5EUR03FT060.mail.protection.outlook.com (10.152.16.160) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Wed, 8 Mar 2017 00:24:42 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.020; Wed, 8 Mar 2017 00:24:42 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 5/5] More quietness for gpsfake
Thread-Index: AQHSl6JhelG49V58GUqIbkNW44XLbw==
Date: Wed, 8 Mar 2017 00:24:42 +0000
Message-ID: <HE1PR09MB0732BEB8334D6AE64C8A449F8E2E0@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170308002351.30584-1-rw_norris@hotmail.com>
In-Reply-To: <20170308002351.30584-1-rw_norris@hotmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:CD0D9754DDCF589659FE080EC22831DD594C3E1FD56BA5C0378DBFEA0C8976A4;
	UpperCasedChecksum:B34E62DCFBBE52545CF5CD9367E914F5B2585FDCE5C4BB02FB5422ED2F8B1406;
	SizeAsReceived:7476; Count:36
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 36
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; AM5EUR03HT137;
	5:/pognFKxCtHubUUYyFsNF4Txg+AoMdIW+6++woF5WJSiD1g1Qe43riMs50pgrnkqLQ49xPc5GQHbKcYlYM84RTtKvU5gtgVKESJZApj7MC/edty71AE8ZRV+ACS1T43D93Pxy0z8QXbB0/3f6cvnPg==;
	24:C/lHesP47NUheu0jPr4O7Diloz79Nyh+B9aPJM03pPeL0DfYv/UeoKRJTD4epMnfv8UYTlfDWKuEUN7K6VpNl6GhG2NqikYG4IFnYR+G8M8=;
	7:GFLCm9G9y54oHo1LRAtPhKXQ5aiv8MDsa0lVjC2Vr8yk91ll7zYR1mDBeWgKayf4dkWewn374Lp7eMN16ItZ3jyp4eY2DV/HPd71N5gpSXkE/54i2EisUAAwtCrtOvGom/FuCEM5fQeR5wui8wcIC7jiApPx4ZRFY+eHQ8ET8a51BIt3K/YSmVAaDCcp9jSdrOQ2ONKKVuqmLePypObdPwmPOPhBY+pJiuuO4BRvs9sVf5cQAQyhkK4vtq58ZRmqJ1JWodnrQFoh9x9L4QI6qrwz12oxU8IG3Cy+bcJZm40GJkvuK3XsnBdCCLRs1RNQ
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT137;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 1ca398e9-346e-4e98-1f05-08d465b98350
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:AM5EUR03HT137; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015152)(444000031); SRVR:AM5EUR03HT137; BCL:0; PCL:0;
	RULEID:; SRVR:AM5EUR03HT137; 
x-forefront-prvs: 02408926C4
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2017 00:24:42.7816 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT137
X-OriginalArrivalTime: 08 Mar 2017 00:24:44.0368 (UTC)
	FILETIME=[62B4D500:01D297A2]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.116.37
Subject: [gpsd-dev] [PATCH 5/5] More quietness for gpsfake
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Mar 2017 00:24:49 -0000

Don't print 'log cycle begins' lines for quiet runs.

TESTED:
'gpsfake -q test/daemon/garmin17n.log' does not print anything.
---
 gpsfake | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gpsfake b/gpsfake
index 396893eb..0fa513bc 100755
--- a/gpsfake
+++ b/gpsfake
@@ -89,7 +89,8 @@ def fakehook(linenumber, fakegps):
         if progress:
             baton.twirl('*\b')
         elif not singleshot:
-            sys.stderr.write("gpsfake: log cycle of %s begins.\n" % fakegp=
s.testload.name)
+            if not quiet:
+                sys.stderr.write("gpsfake: log cycle of %s begins.\n" % fa=
kegps.testload.name)
     time.sleep(cycle)
     if linedump and fakegps.testload.legend:
         ml =3D fakegps.testload.sentences[linenumber % len(fakegps.testloa=
d.sentences)].strip()
--=20
2.11.0



From MAILER-DAEMON Tue Mar 07 19:44:26 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1clPiM-0004nZ-SA
	for mharc-gpsd-dev@gnu.org; Tue, 07 Mar 2017 19:44:26 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47130)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPiI-0004lY-VE
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:44:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1clPiF-0006DK-Or
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:44:23 -0500
Received: from snt004-omc4s42.hotmail.com ([65.54.51.93]:58269)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1clPiF-0006Cx-C3
	for gpsd-dev@nongnu.org; Tue, 07 Mar 2017 19:44:19 -0500
Received: from EUR03-AM5-obe.outbound.protection.outlook.com ([65.55.90.200])
	by SNT004-OMC4S42.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Tue, 7 Mar 2017 16:24:16 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=fsw5+AGxtmMnURWdzyqJPMx27kmmrs42UD2GwYfkzeg=;
	b=s0cbR/3gCfFunv3Htxnd978NT2yXSNKi7Z+2ECGMDFjh1ZbmG+4bfbkFI+L8QoZgQhRepKaeQa7avMsTs2MP3cZqGmqfZ4Y2J8Z5raEkqwAVhT6KB0uStgEiTFkA4wxkdO169GL7l1uZubqEGWk+MFbS0xOXBMSIcDYh1pQzyLkdQYIgaYhVu2yGbA0pQmO0VCa7H6Hm00JQHSsg0E00/FvgYXukaBMVyroD9zu5O5Wlwl9NjhSOKsiH2IvbNMlgmcq24swmy2qwea3MZ3F8twKBywWn48n8lhl7RnCzErYz46Z+2HTazcnFFBlNZSgw2cV76tZVakEOGYE/nZRvDg==
Received: from AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com
	(10.152.16.58) by AM5EUR03HT046.eop-EUR03.prod.protection.outlook.com
	(10.152.17.162) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Wed, 8 Mar 2017 00:24:15 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.16.53) by
	AM5EUR03FT060.mail.protection.outlook.com (10.152.16.160) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Wed, 8 Mar 2017 00:24:15 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.020; Wed, 8 Mar 2017 00:24:14 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 1/5] Separate gpxlogger man page
Thread-Index: AQHSl6JQsClTz9YmM0OFu+pgHRdKvQ==
Date: Wed, 8 Mar 2017 00:24:14 +0000
Message-ID: <HE1PR09MB073218022CE367E02E5ED7958E2E0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:78352BA8DA21D4DE23BD10896DBE3314D1671A594E708887A54754D29AE7E715;
	UpperCasedChecksum:38035A4A5E3941EE429C93DB80D1B63E7154A8B8943378CCF495E38160AED5AD;
	SizeAsReceived:7446; Count:34
x-ms-exchange-messagesentrepresentingtype: 1
x-incomingheadercount: 34
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; AM5EUR03HT046;
	5:24OO1AU1IUeAWzQKH+glQ7hGzEYdupM/Zyzy8hGx+iqTEwy1tFoMnM8lPV7NLqtEkQQuZEN7i4MyUD2QiOuVbQXBUrRkb6G5/qlz3h33v18IGCDOyAyOp1puRO10k1q83LSnW0jUGpqx8CvBplUBYw==;
	24:uHCPgEm/cF3+jxC1kC9ckGThVUgzFUP0/mcTXo0KZsiqrP4js0xmazHpijgaPmplFi+NEwCiqh3I/qVsXubVjlD+Krh68L+D+4CSEjhKW1g=;
	7:M//1yZNnzwnvkVm0udzP35KW4YfeJcQ0UEO45US1Knbr6hGleLcEcdSpuTUTi6uQdKBGmcvyKNG+UQfb+9y5nUT69YivfsXzNq2dHAEVgZmENTaYgGTITSmxjM4APtEWu0FzYw+NHbyw1kGtkb6m9Me5/vc23eEnwcCKnunMapztlahGGp1TNn5wg7wtm4ETvzYWGtEk4I+ceK6Hv+EdkuVfvWLmIOoQ7lCnqui9awl3yU6nOEun2STqkU+yqZr4dpGBF6Cag/WCpsf2vl6G6UYHI9vmVgJiDvxF3VzeUkJASvenrUCCWHZRTK5Ajqka
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT046;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: ef27db9f-7f45-476c-d9b2-08d465b97212
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:AM5EUR03HT046; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:AM5EUR03HT046; BCL:0; PCL:0;
	RULEID:; SRVR:AM5EUR03HT046; 
x-forefront-prvs: 02408926C4
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2017 00:24:14.7182 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT046
X-OriginalArrivalTime: 08 Mar 2017 00:24:16.0656 (UTC)
	FILETIME=[52305100:01D297A2]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.54.51.93
Subject: [gpsd-dev] [PATCH 1/5] Separate gpxlogger man page
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Mar 2017 00:44:25 -0000

As a more stand-alone application, shift gpxlogger help into it's own
dedicated man page.

This also aids the separate distribution of a Windows version of gpxlogger,
where the .html version of help can be supplied.

TESTED:
'scons build-all www' generates current man pages and the new versions of
gpxlogger.1 and gpxlogger.html
---
 .gitignore    |   2 +
 SConstruct    |   3 +-
 gps.xml       |  74 +++--------------------------
 gpxlogger.xml | 149 ++++++++++++++++++++++++++++++++++++++++++++++++++++++=
++++
 4 files changed, 160 insertions(+), 68 deletions(-)
 create mode 100644 gpxlogger.xml

diff --git a/.gitignore b/.gitignore
index 4fa6cda8..e52adad5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,6 +48,7 @@ gpsmon.html
 gpspipe.html
 gpsprof.html
 gps2udp.html
+gpxlogger.html
 ntpmon.html
 libgps.html
 libgpsd.html
@@ -123,6 +124,7 @@ www/gpsmon.html
 www/gpspipe.html
 www/gpsprof.html
 www/gps_report.cgi
+www/gpxlogger.html
 www/hacking.html
 www/hardware-head.html
 www/hardware.html
diff --git a/SConstruct b/SConstruct
index 7c417c86..0d3ff63c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1526,7 +1526,7 @@ base_manpages =3D {
     "cgps.1": "gps.xml",
     "gpsinit.8": "gpsinit.xml",
     "lcdgps.1": "gps.xml",
-    "gpxlogger.1": "gps.xml",
+    "gpxlogger.1": "gpxlogger.xml",
     "libgps.3": "libgps.xml",
     "libgpsmm.3": "libgpsmm.xml",
     "libQgpsmm.3": "libgpsmm.xml",
@@ -2069,6 +2069,7 @@ htmlpages =3D Split('''
     www/gpsmon.html
     www/gpspipe.html
     www/gpsprof.html
+    www/gpxlogger.html
     www/hardware.html
     www/internals.html
     www/libgps.html
diff --git a/gps.xml b/gps.xml
index f7747a02..e9cd9fd1 100644
--- a/gps.xml
+++ b/gps.xml
@@ -20,7 +20,6 @@ BSD terms apply: see the file COPYING in the distribution=
 root for details.
 <refname>xgpsspeed</refname>
 <refname>cgps</refname>
 <refname>lcdgps</refname>
-<refname>gpxlogger</refname>
 <refname>gegps</refname>
 <refpurpose>test clients for gpsd</refpurpose>
 </refnamediv>
@@ -93,25 +92,6 @@ BSD terms apply: see the file COPYING in the distributio=
n root for details.
       </group>
 </cmdsynopsis>
 <cmdsynopsis>
-  <command>gpxlogger</command>
-      <arg choice=3D'opt'>-D <replaceable>debug-level</replaceable></arg>
-      <arg choice=3D'opt'>-d </arg>
-      <arg choice=3D'opt'>-e <replaceable>export-method</replaceable></arg=
>
-      <arg choice=3D'opt'>-f <replaceable>filename</replaceable></arg>
-      <arg choice=3D'opt'>-l </arg>
-      <arg choice=3D'opt'>-m <replaceable>minmove</replaceable></arg>
-      <arg choice=3D'opt'>-h </arg>
-      <arg choice=3D'opt'>-V </arg>
-      <arg choice=3D'opt'>-i <replaceable>track timeout</replaceable></arg=
>
-      <group>
-	<replaceable>server</replaceable>
-	  <group>
-	    <replaceable>:port</replaceable>
-	      <group><replaceable>:device</replaceable></group>
-	  </group>
-      </group>
-</cmdsynopsis>
-<cmdsynopsis>
   <command>gegps</command>
       <arg choice=3D'opt'>-d <replaceable>directory</replaceable></arg>
       <arg choice=3D'opt'>-i </arg>
@@ -208,7 +188,10 @@ address, collecting data from attached serial device 5=
.</para></listitem>
 the separate manual pages for
 <citerefentry><refentrytitle>gpspipe</refentrytitle><manvolnum>1</manvolnu=
m></citerefentry>
 and
-<citerefentry><refentrytitle>gpsmon</refentrytitle><manvolnum>1</manvolnum=
></citerefentry>.</para>
+<citerefentry><refentrytitle>gpsmon</refentrytitle><manvolnum>1</manvolnum=
></citerefentry>
+and
+<citerefentry><refentrytitle>gpxlogger</refentrytitle><manvolnum>1</manvol=
num></citerefentry>
+.</para>
=20
 <refsect2><title>xgps</title>
=20
@@ -278,48 +261,7 @@ assumes a 4x40 LCD and writes data formatted to fit th=
at size screen.
 Also displays 4- or 6-character Maidenhead grid square output.</para>
=20
 </refsect2>
-<refsect2><title>gpxlogger</title>
-
-<para>This program collects fixes from <application>gpsd</application>
-and logs them to standard output in GPX, an XML profile for track
-logging.</para>
-
-<para>The output may be composed of multiple tracks. A new track is
-created if there's no fix written for an interval specified by the
-<option>-i</option> and defaulting to 5 seconds.</para>
-
-<para>The <option>-d</option> option tells
-<application>gpxlogger</application> to run as a daemon in background.
-It requires the <option>-f</option> option, which directs output to a
-specified logfile.</para>
-
-<para>The <option>-m</option> option sets a minimum move distance in
-meters (it may include a fractional decimal part).  Motions shorter
-than this will not be logged.</para>
-
-<para>The <option>-r</option> option tells
-<application>gpxlogger</application> to retry when GPSd loses the fix.
-Without <option>-r</option>, <application>gpxlogger</application>
-would quit in this case.</para>
-
-<para><application>gpxlogger</application> can use any of the
-export methods that <application>gpsd</application> supports.
-For a list of these methods, use the <option>-l</option>.
-To force the method, give the <option>-e</option> one of
-the colon-terminated method names from the <option>-l</option>
-table.</para>
-<!-- ipcrm -M 0x47505344 will remove a stuck segment -->
-
-<para>If D-Bus support is available on the host, GPSD is configured to
-use it, and <command>-e dbus</command> is specified, this program
-listens to DBUS broadcasts from
-<application>gpsd</application> via org.gpsd.fix.</para>
-
-<para>With <command>-e sockets</command>, or if sockets is the method
-defaulted to, you may give a server-port-device specification as
-arguments.</para>
=20
-</refsect2>
 <refsect2><title>gegps</title>
=20
 <para>This program collects fixes from <application>gpsd</application>
@@ -350,6 +292,7 @@ after that.</para>
 <citerefentry><refentrytitle>gpsprof</refentrytitle><manvolnum>1</manvolnu=
m></citerefentry>.
 <citerefentry><refentrytitle>gpspipe</refentrytitle><manvolnum>1</manvolnu=
m></citerefentry>.
 <citerefentry><refentrytitle>gpsmon</refentrytitle><manvolnum>1</manvolnum=
></citerefentry>.
+<citerefentry><refentrytitle>gpxlogger</refentrytitle><manvolnum>1</manvol=
num></citerefentry>.
 </para>
 </refsect1>
=20
@@ -357,11 +300,8 @@ after that.</para>
=20
 <para>
 Remco Treffcorn, Derrick Brashear, Russ Nelson &amp; Eric S. Raymond,
-Jeff Francis (cgps). Amaury Jacquot <email>sxpert@sxpert.org</email>
-&amp; Petter Reinholdtsen <email>pere@hungry.com</email> (gpxlogger).
-Chris Kuethe <email>chris.kuethe@gmail.com</email> (gpxlogger), Chen
-Wei <email>weichen302@aol.com</email> (gegps &amp; xgpsspeed), Robin Wittl=
er
-<email>real@the-real.org</email> (xgpsspeed).
+Jeff Francis (cgps), Chen Wei <email>weichen302@aol.com</email> (gegps &am=
p; xgpsspeed),
+Robin Wittler <email>real@the-real.org</email> (xgpsspeed).
 </para>
=20
 <para>This manual page by Eric S. Raymond <email>esr@thyrsus.com</email></=
para>
diff --git a/gpxlogger.xml b/gpxlogger.xml
new file mode 100644
index 00000000..41c20c24
--- /dev/null
+++ b/gpxlogger.xml
@@ -0,0 +1,149 @@
+<?xml version=3D"1.0" encoding=3D"ISO-8859-1"?>
+<!--
+This file is Copyright (c) 2017 by the GPSD project
+BSD terms apply: see the file COPYING in the distribution root for details=
.
+-->
+<!DOCTYPE refentry PUBLIC
+   "-//OASIS//DTD DocBook XML V4.1.2//EN"
+   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<refentry id=3D'gpxlogger.1'>
+<refentryinfo><date>05 Mar 2017</date></refentryinfo>
+<refmeta>
+<refentrytitle>gpxlogger</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class=3D"source">The GPSD Project</refmiscinfo>
+<refmiscinfo class=3D"manual">GPSD Documentation</refmiscinfo>
+</refmeta>
+<refnamediv id=3D'name'>
+<refname>gpxlogger</refname>
+<refpurpose>Tool to connect to gpsd and generate a GPX file</refpurpose>
+</refnamediv>
+<refsynopsisdiv id=3D'synopsis'>
+
+<cmdsynopsis>
+  <command>gpxlogger</command>
+      <arg choice=3D'opt'>-D <replaceable>debug-level</replaceable></arg>
+      <arg choice=3D'opt'>-d </arg>
+      <arg choice=3D'opt'>-e <replaceable>export-method</replaceable></arg=
>
+      <arg choice=3D'opt'>-f <replaceable>filename</replaceable></arg>
+      <arg choice=3D'opt'>-l </arg>
+      <arg choice=3D'opt'>-m <replaceable>minmove</replaceable></arg>
+      <arg choice=3D'opt'>-h </arg>
+      <arg choice=3D'opt'>-V </arg>
+      <arg choice=3D'opt'>-i <replaceable>track timeout</replaceable></arg=
>
+      <group>
+	<replaceable>server</replaceable>
+	  <group>
+	    <replaceable>:port</replaceable>
+	      <group><replaceable>:device</replaceable></group>
+	  </group>
+      </group>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+<refsect1 id=3D'description'><title>DESCRIPTION</title>
+<para>This program collects fixes from <application>gpsd</application>
+and logs them to standard output in GPX, an XML profile for track
+logging.</para>
+
+<para>The output may be composed of multiple tracks. A new track is
+created if there's no fix written for an interval specified by the
+<option>-i</option> and defaulting to 5 seconds.</para>
+
+<para><application>gpxlogger</application> can use any of the
+export methods that <application>gpsd</application> supports.
+For a list of these methods, use the <option>-l</option>.
+To force the method, give the <option>-e</option> one of
+the colon-terminated method names from the <option>-l</option>
+table.</para>
+</refsect1>
+
+<refsect1 id=3D'options'><title>OPTIONS</title>
+
+<para>The <option>-h</option> option causes <application>gpxlogger</applic=
ation>
+to emit a summary of its options and then exit.</para>
+
+<para>The <option>-V</option> option causes <application>gpxlogger</applic=
ation>
+to dump the package version and exit.</para>
+
+<para> The <option>-D</option> option sets a debug level;
+it is primarily for use by GPSD developers.
+It enables various progress messages to standard error.</para>
+
+<para>The <option>-d</option> option tells
+<application>gpxlogger</application> to run as a daemon in background.
+It requires the <option>-f</option> option, which directs output to a
+specified logfile.</para>
+
+<para>The <option>-m</option> option sets a minimum move distance in
+meters (it may include a fractional decimal part).  Motions shorter
+than this will not be logged.</para>
+
+<para>The <option>-r</option> option tells
+<application>gpxlogger</application> to retry when GPSd loses the fix.
+Without <option>-r</option>, <application>gpxlogger</application>
+would quit in this case.</para>
+
+<para>If D-Bus support is available on the host, GPSD is configured to
+use it, and <command>-e dbus</command> is specified, this program
+listens to DBUS broadcasts from
+<application>gpsd</application> via org.gpsd.fix.</para>
+
+<para>With <command>-e sockets</command>, or if sockets is the method
+defaulted to, you may give a server-port-device specification as
+arguments.</para>
+
+<para>The sockets default is to all devices on the localhost,
+using the default GPSD port 2947. An optional argument to any
+client may specify a server to get data from. A colon-separated suffix
+is taken as a port number. If there is a second colon-separated
+suffix, that is taken as a specific device name to be
+watched. However, if the server specification contains square
+brackets, the part inside them is taken as an IPv6 address and
+port/device suffixes are only parsed after the trailing bracket.
+Possible cases look like this:</para>
+
+<variablelist>
+<varlistentry>
+<term>localhost:/dev/ttyS1</term>
+<listitem><para>Look at the default port of localhost, trying both
+IPv4 and IPv6 and watching output from serial device 1.</para></listitem>
+</varlistentry>
+<varlistentry>
+<term>example.com:2317</term>
+<listitem><para>Look at port 2317 on example.com, trying both
+IPv4 and IPv6.</para></listitem>
+</varlistentry>
+<varlistentry>
+<term>71.162.241.5:2317:/dev/ttyS3</term>
+<listitem><para>Look at port 2317 at the specified IPv4
+address, collecting data from attached serial device 3.</para></listitem>
+</varlistentry>
+<varlistentry>
+<term>[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:2317:/dev/ttyS5</term>
+<listitem><para>Look at port 2317 at the specified IPv6
+address, collecting data from attached serial device 5.</para></listitem>
+</varlistentry>
+</variablelist>
+
+</refsect1>
+
+<refsect1 id=3D'see_also'><title>SEE ALSO</title>
+<para>
+<citerefentry><refentrytitle>gpsd</refentrytitle><manvolnum>8</manvolnum><=
/citerefentry>,
+<citerefentry><refentrytitle>gps</refentrytitle><manvolnum>1</manvolnum></=
citerefentry>
+<citerefentry><refentrytitle>gpspipe</refentrytitle><manvolnum>1</manvolnu=
m></citerefentry>
+</para>
+</refsect1>
+
+<refsect1 id=3D'maintainer'><title>AUTHORS</title>
+
+<para>
+  Amaury Jacquot <email>sxpert@sxpert.org</email> &amp;
+  Petter Reinholdtsen <email>pere@hungry.com</email> &amp;
+  Chris Kuethe <email>chris.kuethe@gmail.com</email>
+</para>
+
+</refsect1>
+
+</refentry>
--=20
2.11.0



From MAILER-DAEMON Thu Mar 09 19:12:38 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cm8Ag-0005hw-QT
	for mharc-gpsd-dev@gnu.org; Thu, 09 Mar 2017 19:12:38 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40341)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1cm8Af-0005gp-1R
	for gpsd-dev@nongnu.org; Thu, 09 Mar 2017 19:12:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rw_norris@hotmail.com>) id 1cm8Ab-0004L2-UR
	for gpsd-dev@nongnu.org; Thu, 09 Mar 2017 19:12:37 -0500
Received: from blu004-omc2s29.hotmail.com ([65.55.111.104]:55510)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rw_norris@hotmail.com>)
	id 1cm8Ab-0004Kg-Kk
	for gpsd-dev@nongnu.org; Thu, 09 Mar 2017 19:12:33 -0500
Received: from EUR03-AM5-obe.outbound.protection.outlook.com ([65.55.111.72])
	by BLU004-OMC2S29.hotmail.com over TLS secured channel with
	Microsoft SMTPSVC(7.5.7601.23008); Thu, 9 Mar 2017 16:12:32 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
	s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; 
	bh=W6GvrRXzcR60Owqal7TZW+q1vBhJQEVRtCRGm5SSuPw=;
	b=YJPj23lUoPt7s6tkGXPYWFxxaXxfbBSP24boJ9Kbww2JuC4G+79s/H/462ikejd+k9ojvrHYG0tte7VAtbxV2DlREhoaDQJMHIOOiPMlSQPQkhe/gPm4hdGum4cKOHkS5GLLAh2oIwyyUpwMlz7mTHvxhgYQwkEg3gWVkkag2srypKynEym8e8ayAzXAbsnFJ6UkzXJckS8JycUcggg2QPql6A0dGFcnpr3jZzIdAOxjQU5CWwXyuiliJDC/ZPoNovEI/PhqKMqsSt6Uaf1G01S/rNLYktqFOWBru0gallbuloekyyRdD32u9nRlcJqJtvcY9h48n8z3vbMLrw9aZA==
Received: from AM5EUR03FT025.eop-EUR03.prod.protection.outlook.com
	(10.152.16.53) by AM5EUR03HT170.eop-EUR03.prod.protection.outlook.com
	(10.152.17.131) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7;
	Fri, 10 Mar 2017 00:12:31 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com (10.152.16.52) by
	AM5EUR03FT025.mail.protection.outlook.com (10.152.16.157) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
	15.1.947.7 via Frontend Transport; Fri, 10 Mar 2017 00:12:30 +0000
Received: from HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) by
	HE1PR09MB0732.eurprd09.prod.outlook.com ([10.166.197.156]) with mapi id
	15.01.0947.022; Fri, 10 Mar 2017 00:12:30 +0000
From: Robert Norris <rw_norris@hotmail.com>
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Thread-Topic: [PATCH 3/3] Fix access to shared memory on Linux
Thread-Index: AQHSlgZ++qnTWdSYdUSUoYKaczWS6KGNLhjY
Date: Fri, 10 Mar 2017 00:12:30 +0000
Message-ID: <HE1PR09MB073234B1A55E93F4BA4881558E210@HE1PR09MB0732.eurprd09.prod.outlook.com>
References: <20170305231541.775-1-rw_norris@hotmail.com>,
	<HE1PR09MB073265E62C7643A826EF7A838E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
In-Reply-To: <HE1PR09MB073265E62C7643A826EF7A838E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: nongnu.org; dkim=none (message not signed)
	header.d=none; nongnu.org;
	dmarc=none action=none header.from=hotmail.com; 
x-incomingtopheadermarker: OriginalChecksum:FD3B8D5F58F8F08B1D9FB3F47596903D0300F476C9C45E3FDB6559607A6AB63A;
	UpperCasedChecksum:5F83E277A9D7860F9963F9638C7607BD04D152C9CDB2F8D6B910A413BE5A3E70;
	SizeAsReceived:7861; Count:39
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [L8ZM8m9IRFcTcPEiszfxuu5ssW9A2Wpb]
x-incomingheadercount: 39
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; AM5EUR03HT170;
	5:cJClIISl0JSz/WleMaDR0o+doTsDC8BYMAZJRhhpUbgBZUzegITK7Xf1vwXHD+xR6ye3X+9+YShisoJi04Xc+vKV9tS+EXbXrQfNejQ+mgar/zy6GTJi9j/ceRrW/WuUbRSxpEThZ9Jk1jhZqp4CUzkroQjH1092KjP6qENUBY8=;
	24:xm0GB/+6GhazfUFDorNDyWxoopGDDECOEvHkzbzgFhVstuUvSNcWbuZ6P7/xnKgesNoNTjgLrMQ916n3P/VXGH626Tch50DdOFSvPWyucVE=;
	7:tuLr9RIHh97l/K98iOJ4n4wzpkb5xSiQcjH/trOf/tauddx3hPBZlJwDb966DX5b291uSvTHv7rw5+4+dhLpemonDPzz8lclzl60DlfvGx3es06ch5As+DnuHavznrwBes+fO4YBWmm5t3rpGdFIT5saEz3DiAu5TMQW5lmgIfZNAHgg4Lvwl/xjDzQGT7aP1aWbMo1qPZlnbk3YcEUNppKCI5EGrHGEb3PxNnNfp1rUwydVbd5NM+YyxeRU7HC7/C/19Vbgqe233pjtnA00TCjJa5i6gE6y9uWPeNHfu5HxjG0NAjbbY5a6whVRLV+u
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900016);
	DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT170;
	H:HE1PR09MB0732.eurprd09.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
x-ms-office365-filtering-correlation-id: 0b235532-0871-48d9-4824-08d4674a24a3
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);
	SRVR:AM5EUR03HT170; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(432015087)(444000031); SRVR:AM5EUR03HT170; BCL:0; PCL:0;
	RULEID:; SRVR:AM5EUR03HT170; 
x-forefront-prvs: 02426D11FE
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2017 00:12:30.4128 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT170
X-OriginalArrivalTime: 10 Mar 2017 00:12:32.0514 (UTC)
	FILETIME=[03504620:01D29933]
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 65.55.111.104
Subject: Re: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Mar 2017 00:12:38 -0000


I finally got around to setting up a FreeBSD (release 11.0) virtual machine=
.

It too has the same behaviour as Linux, in that the shared memory key gets =
changed to 0 (i.e. IPC_PRIVATE) when shmctl with IP_RMID is applied. So I e=
xpect most other OS's follow this behaviour.

Hence I think it would be better to revert the commit 22c3fafb25b742973d712=
2edc626b30d03bdb36c, rather than apply this patch.
And thus accept one needs to externally control the memory segment should t=
he memory size change.

Side note -  I couldn't find anything in the Debian packaging - as I expect=
ed it would attempt to use the ipcrm command when gpsd is uninstalled/upgra=
ded.=20

--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.=


From MAILER-DAEMON Fri Mar 17 11:49:35 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cou8F-00051V-0O
	for mharc-gpsd-dev@gnu.org; Fri, 17 Mar 2017 11:49:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51283)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <elliotmr@gmail.com>) id 1cotDA-0006VB-SW
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 10:50:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <elliotmr@gmail.com>) id 1cotDA-0001tV-4a
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 10:50:36 -0400
Received: from mail-ua0-x231.google.com ([2607:f8b0:400c:c08::231]:34810)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <elliotmr@gmail.com>) id 1cotDA-0001si-0l
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 10:50:36 -0400
Received: by mail-ua0-x231.google.com with SMTP id f54so45342430uaa.1
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 07:50:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to; 
	bh=AzNkj5jlGAHPih0dQDK7A/eMkecbJnH0Ey1JzzTN3rs=;
	b=m3wcJibh4CtDwXh/mJX2wWPM+k6MVLZcSjSalKegPfAp4/7+F0mpYJl+DNXbIb0YHG
	aaVL6jHPK61/3P5HJcQvgZTQckYGYpXYG4HsxYBuc0SXzKgGWbIaHUEgPRwxYHyKUOfz
	wPk1Q1wBVMtseKFgt8kY10Tu6QkbjCzdvfZTq2tvCgThIRk+tZk9gXfx3H+jndkSFYa/
	FOt9y29c3EN02u2JCSX7VGpgmafJ0eT1fXVvrBqvqjC2xNviWD4Mk5LffrAoLPFtXIY0
	lD++KY8mbm3GsBwJj2+o2slZuCAThu16egU+fcq66md1/UDzJ0Ztz0RjtRh7hHgKwLbo
	4kEQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to;
	bh=AzNkj5jlGAHPih0dQDK7A/eMkecbJnH0Ey1JzzTN3rs=;
	b=pEt1OSFC7FsvJ4fXRoHTwIrnpcyHSPihhvb3U6tuGdNJduxXs2o42YqtINQHjlj7H4
	CjcpA7ec44DUkZjBr12HZJDUq8ny/puD0kWx3bLxZjIkKcYRwDKe4Ow54sigECUGJ/OA
	7P4eaQX/VHRbdUNS0jDLwaxFfqAJ/r9ksng3oX7CxhId+/avOfEVXA1YCAyuruwxgsDb
	WmMLZG/Fg2abeHIJxleiI7Q9QzjUc5k9EeL5o6VEvyIco3rgOYpCvUui6vDYVquRoJMo
	YepXHheVjYVFkM01A5AObgCQz/3lwh6Ksf0qLQNnkzRJwBWtPYUTVYqfero0qZyfN9+w
	ECEg==
X-Gm-Message-State: AFeK/H0mLv4HVSnDXZQk9pMqVqZzVqNfGslTY5AtIJmblwTs9XD5W99CpiBH9f3VL7rVymbjoFkDQEn+U3XFfw==
X-Received: by 10.176.65.226 with SMTP id 89mr698394uap.40.1489762234658; Fri,
	17 Mar 2017 07:50:34 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.31.220.71 with HTTP; Fri, 17 Mar 2017 07:50:33 -0700 (PDT)
Received: by 10.31.220.71 with HTTP; Fri, 17 Mar 2017 07:50:33 -0700 (PDT)
In-Reply-To: <CAAB1MXCf_7HGJGd7=gf1v5fMJqdp25P+Zdp6Q_U=iu123hvwrA@mail.gmail.com>
References: <CAAB1MXBFY2yP0WES96YOzAn7+bckUsgyw3LRJ=9riSTpR45=Yw@mail.gmail.com>
	<CAAB1MXCf_7HGJGd7=gf1v5fMJqdp25P+Zdp6Q_U=iu123hvwrA@mail.gmail.com>
From: Elliot Morrison-Reed <elliotmr@gmail.com>
Date: Fri, 17 Mar 2017 15:50:33 +0100
Message-ID: <CAAB1MXAgy6Vrt-EirThqUMBoFZ23cvOZUrTFnbJfQSoybigRjQ@mail.gmail.com>
To: gpsd-dev@nongnu.org
Content-Type: multipart/alternative; boundary=001a114bcb5ccbf4d6054aee4c38
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400c:c08::231
X-Mailman-Approved-At: Fri, 17 Mar 2017 11:49:33 -0400
Subject: [gpsd-dev] attitude_t gyro_z value
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Mar 2017 14:50:38 -0000

--001a114bcb5ccbf4d6054aee4c38
Content-Type: text/plain; charset=UTF-8

Hello gpsd devs,

I was just wondering why the attitude_t structure has no gyro_z member. Is
there another place where yaw rate data should be stored?

Regards,
Elliot

--001a114bcb5ccbf4d6054aee4c38
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hello gpsd devs,<div dir=3D"auto"><br></div><div dir=3D"a=
uto">I was just wondering why the attitude_t structure has no gyro_z member=
. Is there another place where yaw rate data should be stored?</div><div di=
r=3D"auto"><br></div><div dir=3D"auto">Regards,</div><div dir=3D"auto">Elli=
ot</div></div>

--001a114bcb5ccbf4d6054aee4c38--


From MAILER-DAEMON Fri Mar 17 19:17:22 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cp17Z-0003DN-V8
	for mharc-gpsd-dev@gnu.org; Fri, 17 Mar 2017 19:17:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36671)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cp17Y-0003C3-2n
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:17:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cp17T-0003h0-7k
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:17:20 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:34378)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1cp17S-0003g6-UE
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:17:15 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v2HNHAXV019394
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:17:11 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v2HNHAOb021073
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:17:10 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v2HNHAjj021069
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:17:10 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Fri, 17 Mar 2017 16:17:10 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <HE1PR09MB0732FB17F411596DD3C716A38E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703171615210.18410@bolt.sonic.net>
References: <HE1PR09MB0732FB17F411596DD3C716A38E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZwIGGOXAE7jhW0nFrIRBQ2fW7PTQW7MQcSYo6GC96JDXxZyrIGvsgvp5aBqdTh1cKXG4lNQBdswiEp/r6ZS4dm
X-Sonic-ID: C;Hm0D2WcL5xGCJrSd+VpWsw== M;CLwu2WcL5xGCJrSd+VpWsw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] [PATCH 1/3] Remove misleading comment.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Mar 2017 23:17:21 -0000


On Sun, 5 Mar 2017, Robert Norris wrote:

> The code doesn't fail on 32bit machines.

I merged this one, but not the two SHM-related patches, pending further
investigation of the SHM issue.

I'm not sure the 32-bit comment was valid even at the time it was added,
let alone now. :-)

Fred Wright


From MAILER-DAEMON Fri Mar 17 19:20:19 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cp1AQ-0003cN-Uf
	for mharc-gpsd-dev@gnu.org; Fri, 17 Mar 2017 19:20:18 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37420)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cp1AO-0003bt-G1
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:20:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cp1AJ-0004it-L0
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:20:16 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:39336)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1cp1AJ-0004i8-Ae
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:20:11 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v2HNK9Kd023743
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:20:09 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v2HNK9LL022623
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:20:09 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v2HNK91Q022618
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:20:09 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Fri, 17 Mar 2017 16:20:09 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <51735C1BBE869A4B992BFC89923A82F0110D6815@SVMVVWPEXCH10.dc.multitech.prv>
Message-ID: <Pine.LNX.4.58L1X.1703171619070.18410@bolt.sonic.net>
References: <51735C1BBE869A4B992BFC89923A82F0110D6815@SVMVVWPEXCH10.dc.multitech.prv>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVaxlOiYjclezXPhoNpyD6K0OgMWlV8ekIwDOSzsY8yJBdJOO0ZvxffWilsVimOoSEzq3jXHkIZNtIfb4WLPWvPt
X-Sonic-ID: C;AOaNQ2gL5xGisLSd+VpWsw== M;MEutQ2gL5xGisLSd+VpWsw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] gpsd memory fault on 32 bit machine with debug>=4
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Mar 2017 23:20:17 -0000


This was already fixed by cc0de7d1a (2016-03-12).

Fred Wright


From MAILER-DAEMON Fri Mar 17 19:28:16 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cp1I8-0005M6-0z
	for mharc-gpsd-dev@gnu.org; Fri, 17 Mar 2017 19:28:16 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38786)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cp1I6-0005LG-Cu
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:28:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cp1I2-0007cr-Gz
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:28:14 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:53172)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1cp1I2-0007cX-6H
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:28:10 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v2HNS7l6003197
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:28:07 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v2HNS7wV027557
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:28:07 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v2HNS7GD027541
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:28:07 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Fri, 17 Mar 2017 16:28:07 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <51735C1BBE869A4B992BFC89923A82F0110D684F@SVMVVWPEXCH10.dc.multitech.prv>
Message-ID: <Pine.LNX.4.58L1X.1703171620270.18410@bolt.sonic.net>
References: <51735C1BBE869A4B992BFC89923A82F0110D684F@SVMVVWPEXCH10.dc.multitech.prv>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVZ1oN9A8HVbbiUo6lXo4UwLQm8WLqMkX2NTL0iyoUR8g2Gg6X64dnHS8aLXh2YA4CykxWR9zKkh/ymoJAB7JWy4
X-Sonic-ID: C;aIJ6YGkL5xG/xLSd+VpWsw== M;uqmXYGkL5xG/xLSd+VpWsw==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] gpsctl -e adds error message to control stream
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Mar 2017 23:28:15 -0000


On Mon, 6 Mar 2017, John Klug wrote:

> This patch is for 3.16
> Prevent message:
>   (null)  identified as a unknown, at 0 baud.
> which occurs in the control stream when the output
> is stdout (-c option).

I merged this with some cleanups (02d31b09).

Both of your patches required quite a bit of manual effort to apply (or
not apply, in the case of the other one).  I think this was partly due to
the emails' not being formatted in the way that "git am" expects, and
partly due to gratuitous whitespace changes.

Fred Wright


From MAILER-DAEMON Fri Mar 17 19:32:18 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cp1M2-0006WD-4J
	for mharc-gpsd-dev@gnu.org; Fri, 17 Mar 2017 19:32:18 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39930)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cp1M0-0006VZ-6L
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:32:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1cp1Lw-0000dS-Aa
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:32:16 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:45778)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1cp1Lv-0000aK-Uj
	for gpsd-dev@nongnu.org; Fri, 17 Mar 2017 19:32:12 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v2HNW7PW026387
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:32:07 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v2HNW6CK029851
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:32:06 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v2HNW6pb029848
	for <gpsd-dev@nongnu.org>; Fri, 17 Mar 2017 16:32:06 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Fri, 17 Mar 2017 16:32:06 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <HE1PR09MB0732BEB8334D6AE64C8A449F8E2E0@HE1PR09MB0732.eurprd09.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703171628350.18410@bolt.sonic.net>
References: <20170308002351.30584-1-rw_norris@hotmail.com>
	<HE1PR09MB0732BEB8334D6AE64C8A449F8E2E0@HE1PR09MB0732.eurprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYfX+RB9nX3qC9QkSUGdZD6f06qXnUdVnlSHwJIp5CbEiG7JmEvzRdgI0i6ZUsGcHXscErxQj0QNeldYnAl8Wjc
X-Sonic-ID: C;SjAz72kL5xGa5tRbNyX4rQ== M;ePBd72kL5xGa5tRbNyX4rQ==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 5/5] More quietness for gpsfake
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Mar 2017 23:32:17 -0000


I merged all 5 patches in this set, along with a followup to add the
missing -q to the usage text.

I hadn't been too thorough with -q, since it was mainly there just to
support the quieting of "scons -s", which is mainly to make it easier to
spot warnings by not burying them in a forest of chatter.

Fred Wright


From MAILER-DAEMON Fri Mar 24 22:23:23 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1crbMR-0002Jk-QL
	for mharc-gpsd-dev@gnu.org; Fri, 24 Mar 2017 22:23:23 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51910)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1crbMO-0002I6-TY
	for gpsd-dev@nongnu.org; Fri, 24 Mar 2017 22:23:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1crbML-0007X4-Oy
	for gpsd-dev@nongnu.org; Fri, 24 Mar 2017 22:23:20 -0400
Received: from c.mail.sonic.net ([64.142.111.80]:53812)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1crbML-0007WI-Eo
	for gpsd-dev@nongnu.org; Fri, 24 Mar 2017 22:23:17 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v2P2NArd021349
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Fri, 24 Mar 2017 19:23:11 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v2P2NAnt002938
	for <gpsd-dev@nongnu.org>; Fri, 24 Mar 2017 19:23:10 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v2P2NAkK002934
	for <gpsd-dev@nongnu.org>; Fri, 24 Mar 2017 19:23:10 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Fri, 24 Mar 2017 19:23:10 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
In-Reply-To: <HE1PR09MB073234B1A55E93F4BA4881558E210@HE1PR09MB0732.eurprd09.prod.outlook.com>
Message-ID: <Pine.LNX.4.58L1X.1703241857310.21178@bolt.sonic.net>
References: <20170305231541.775-1-rw_norris@hotmail.com>,
	<HE1PR09MB073265E62C7643A826EF7A838E2D0@HE1PR09MB0732.eurprd09.prod.outlook.com>
	<HE1PR09MB073234B1A55E93F4BA4881558E210@HE1PR09MB0732.eurprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVbudGjq1USTMADYs0QZn1BY3gd2ilNHjhL0U5FVoDrQgkekM48HZW2bc3QuW6UTqlYW5MJ4TCgT4rzE1E+WbwCP
X-Sonic-ID: C;lL6V/QER5xGS/tRbNyX4rQ== M;oqo7/gER5xGS/tRbNyX4rQ==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.80
Subject: Re: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 25 Mar 2017 02:23:22 -0000


On Fri, 10 Mar 2017, Robert Norris wrote:

> I finally got around to setting up a FreeBSD (release 11.0) virtual machine.
>
> It too has the same behaviour as Linux, in that the shared memory key
> gets changed to 0 (i.e. IPC_PRIVATE) when shmctl with IP_RMID is
> applied. So I expect most other OS's follow this behaviour.

Yes, I expect that that's true, even though it doesn't explicitly state it
in the manpage.  It actually makes sense when you think about it, since
the purpose of IPC_RMID is to *remove* the segment.  The only reason it
can't remove it immediately is that it can't pull the rug out from under
existing mappings.  But in addition to flagging it for later removal, it
also wants to ensure that no further mappings to it are created, which is
done by clearing the key.

It was always a mistake to do IPC_RMID at the *beginning*, but reasonable
to do it at the end.  I fixed that, but in the process discovered some
other issues with regard to SHM collisions in regression testing, which I
also fixed.

There's still an issue with collisions of the 'NTPx' segments during
regression testing.  Although it would theoretically be useful to allow
those to be moved to unique keys during testing as well, there's not
currently anything to make use of such a scheme.  It might make sense for
now just to disable the 'NTPx' segments altogether whenever GPSD_SHM_KEY
is defined, mainly to avoid having regression tests step on a system
gpsd's feed to ntpd.  Another environment variable to provide an alternate
NTPD_BASE could be added later, if needed.

One slight problem with the new scheme is that if an old gpsd was
previously running and left the 'GPSD' segment around, the new gpsd won't
use it.  Since there's no reliable way to distinguish this from the real
collision case, it seems safer to live with that, and require the manual
ipcrm cleanup.

Also, even the new gpsd could leave the SHM segment lying around if it
crashes.  I'm not sure this is worth the hassle of setting up an atexit()
handler to fix.  Basically, the whole SYSV SHM API is pretty awful.

Given that the whole 'GPSD' SHM mechanism has been completely broken for
almost a year, I'm not *too* worried about those two corner cases. :-)

I also merged the test_gpsmm fix.

Fred Wright


