pcp
[Top] [All Lists]

Re: [pcp] OpenBSD support, EPROTO question (#71)

To: performancecopilot/pcp <pcp@xxxxxxxxxxxxxxxxxx>
Subject: Re: [pcp] OpenBSD support, EPROTO question (#71)
From: Nathan Scott <notifications@xxxxxxxxxx>
Date: Sun, 14 Feb 2016 17:57:44 -0800
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1455501464; bh=rNbaNdsudFAJCqwGN2DyG6zaAX1Iqqgc9EGCMFv8HoE=; h=From:Reply-To:To:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=I9kp9x8yZtXb/tnY2FOywrI1nlM3zpCEx5vmAPYSNRHJAmUErx3o2KLPsK6TsU34v RIaqUN4HTagWJf3/ynpuUdrWdJdYgRNU/42Q1sjVHHAXebsOsOuXqmFiVcj41Mw4V4 9N9VuDZo2DsQ3dsKKQaGnFw5vI9I0cQP5li2gik0=
In-reply-to: <performancecopilot/pcp/issues/71@xxxxxxxxxx>
List-archive: https://github.com/performancecopilot/pcp
List-id: performancecopilot/pcp <pcp.performancecopilot.github.com>
List-post: <mailto:reply+00bd08b65a36b2d72a1f27e888bd35f50160a59e5ffa4c1192cf0000000112d8f29892a169ce07f087db@reply.github.com>
List-unsubscribe: <mailto:unsub+00bd08b65a36b2d72a1f27e888bd35f50160a59e5ffa4c1192cf0000000112d8f29892a169ce07f087db@reply.github.com>, <https://github.com/notifications/unsubscribe/AL0ItmhSmxP7H2FR1pJ0jHNFNVo068luks5pkSgYgaJpZM4HY6wH>
References: <performancecopilot/pcp/issues/71@xxxxxxxxxx>
Reply-to: performancecopilot/pcp <reply+00bd08b65a36b2d72a1f27e888bd35f50160a59e5ffa4c1192cf0000000112d8f29892a169ce07f087db@xxxxxxxxxxxxxxxx>

I'm not really a developer so I'm asking before pull request? How to handle in better way EPROTO? > It seems odd to have ifndef in couple of files?

@jirib defining it in src/include/pcp/config.h.in is the way to go - for example, see the EHOSTDOWN/ENODATA missing-error-code definitions there for Windows.

From scanning the available error codes here:
http://fxr.watson.org/fxr/source/sys/errno.h?v=OPENBSD

and looking at the places EPROTO is used, I'd suggest a better match (than EINTR) would be:
#define ENOPROTOOPT 42 /* Protocol not available */

| (Otherwise with diffs below I could build pcp on OpenBSD. Just build, I have to learn how to use it :) )

Good stuff! You might find the quick reference guide useful for getting a quick, practical introduction:
http://www.pcp.io/docs/guide.html


Reply to this email directly or view it on GitHub.

<Prev in Thread] Current Thread [Next in Thread>