pcp
[Top] [All Lists]

pcp updates: getopts (wip)

To: PCP Mailing List <pcp@xxxxxxxxxxx>
Subject: pcp updates: getopts (wip)
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Thu, 6 Mar 2014 02:58:29 -0500 (EST)
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <256301258.21640702.1394092562136.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: ILpNlaAhJP1rO/KFCk1jML2wH37XBQ==
Thread-topic: pcp updates: getopts (wip)
Changes committed to git://oss.sgi.com/nathans/pcp.git dev

 qa/728                       |   90 +++
 qa/728.out                   |  572 ++++++++++++++++++++
 qa/group                     |    1 
 qa/src/.gitignore            |    1 
 qa/src/GNUlocaldefs          |    7 
 qa/src/getoptions.c          |  226 ++++++++
 src/include/pcp/pmapi.h      |  127 ++++
 src/libpcp/src/GNUmakefile   |    2 
 src/libpcp/src/check-statics |    1 
 src/libpcp/src/exports       |    7 
 src/libpcp/src/getopt.c      | 1209 +++++++++++++++++++++++++++++++++++++++++++
 11 files changed, 2230 insertions(+), 13 deletions(-)

commit cdd1b323287434c74853f1460257ac8176777ffd
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Thu Mar 6 17:51:15 2014 +1100

    Initial code for pmGetOptions common PMAPI option parsing
    
    Early code providing option parsing interfaces to abstract the
    common getopt handling boilerplate code for PMAPI clients.  It
    also provides for long-options on all platforms.  Refer to the
    qa/src/getoptions.c for some test code (and qa/728).
    
    Missing at this stage are man pages, more comprehensive testing,
    the python API, sample programs (uptime.py!) and then we can get
    started on the journey toward converting all the existing client
    tools over to using this API.

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