[ovs-git] Open vSwitch: getopt_long: Copy over the implementation from netbsd. (master)

dev at openvswitch.org dev at openvswitch.org
Mon Jan 27 18:34:08 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  9d0581fdf22bec79fc09cddb29808c89d16f0266 (commit)
      from  a3ea1821d67e7dc8af32d7a55b5857014ec4583f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9d0581fdf22bec79fc09cddb29808c89d16f0266
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=9d0581fdf22bec79fc09cddb29808c89d16f0266
Author: Gurucharan Shetty <gshetty at nicira.com>
		
getopt_long: Copy over the implementation from netbsd.
		
Windows does not have a getopt_long function. This commit
copies over the getopt_long implementation from netbsd with
some minor modifications and is used only on Windows platform.

Modifications on top of the version in NetBSD repo.
* Remove header files not available in Visual Studio.
* Remove some unwanted #defines.
* Add Open vSwitch specific header files like config.h, vlog.h, util.h
* Add the following #define's
define __UNCONST(a)    ((void *)(unsigned long)(const void *)(a))
define _DIAGASSERT(q) ovs_assert(q)
define warnx VLOG_WARN
* Add extern declaration in getopt.h for optarg, optind.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 COPYING                     |    4 +
 debian/copyright.in         |    6 +
 include/windows/automake.mk |    5 +-
 include/windows/getopt.h    |   62 ++++++
 lib/automake.mk             |    8 +-
 lib/getopt_long.c           |  460 +++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 541 insertions(+), 4 deletions(-)
 create mode 100644 include/windows/getopt.h
 create mode 100644 lib/getopt_long.c


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list