From nobody@FreeBSD.org  Thu Aug 30 20:51:25 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id DA23F106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Aug 2012 20:51:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id C608D8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Aug 2012 20:51:25 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7UKpPZW086504
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Aug 2012 20:51:25 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q7UKpPS8086503;
	Thu, 30 Aug 2012 20:51:25 GMT
	(envelope-from nobody)
Message-Id: <201208302051.q7UKpPS8086503@red.freebsd.org>
Date: Thu, 30 Aug 2012 20:51:25 GMT
From: "David A. Bright" <David_A_Bright@DELL.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pidfile_read should be made a public interface
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171192
>Category:       kern
>Synopsis:       [libutil] [request] pidfile_read should be made a public interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 30 21:00:18 UTC 2012
>Closed-Date:    
>Last-Modified:  Fri Aug 31 07:53:57 UTC 2012
>Originator:     David A. Bright
>Release:        9.1
>Organization:
Dell Compellent
>Environment:
FreeBSD es-bb91-1 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r+90246d5: Tue Aug 14 08:58:06 CDT 2012     root@localhost.localdomain:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The libutil pidfile(3) routines are useful, but provide only an interface for creating pid files. For software that wants to read and extract a pid from a pid file, there is no public interface. However, the private (static) function pidfile_read() in pidfile.c would provide such an interface. It need only be made externally visible and documented.
>How-To-Repeat:

>Fix:
Remove "static" from definition in pidfile.c.
Add pidfile_read() prototype to libutil.h.
Add pidfile_read() doc to pidfile.3.

>Release-Note:
>Audit-Trail:
>Unformatted:
