[Git][NTPsec/ntpsec][master] 2 commits: Minor waf recipe simplification.

Eric S. Raymond gitlab at mg.gitlab.com
Mon Sep 12 18:55:18 UTC 2016

Eric S. Raymond pushed to branch master at NTPsec / ntpsec

e6cf5bfd by Eric S. Raymond at 2016-09-12T14:35:58-04:00
Minor waf recipe simplification.

- - - - -
36253592 by Eric S. Raymond at 2016-09-12T14:54:47-04:00
Update on porting requirements.

- - - - -

3 changed files:

- devel/hacking.txt
- libisc/wscript


@@ -6,7 +6,9 @@ This software should build on any operating system conformant to
 POSIX.1-2001 and ISO/IEC 9899:1999 (C99).  In addition, the
 operating system must have either a Linux-like adjtimex(2) call
 or a BSD-like pair of ntp_gettime(2)/ntp_adjtime(2) calls. Also,
-it must support the IPv6 API defined in RFC2493 and RFC2553.
+it must support the IPv6 API defined in RFC2493 and RFC2553. Finally,
+it must support iterating over active UDP interfaces via getifaddrs(3)
+or some equivalent facility.
 There are some prerequisites.  Libraries need the library installed
 to run and in addition, the development headers installed to build.

--- a/devel/hacking.txt
+++ b/devel/hacking.txt
@@ -38,7 +38,8 @@ coexist with distributions that use C89 conventions.
 You can download the C99 standard for free from here:
-Only POSIX-1.2001/SuSv3 library functions should be used.  If a library
+Only POSIX-1.2001/SuSv3 library functions should be used (a few
+specific exceptions are noted below).  If a library
 function not in POSIX 2001 is required, then a wrapper function for back
 compatibility must be provided.  One notable case is clock_gettime()
 which is used, when available, for increased accuracy, and has a
@@ -47,8 +48,18 @@ fallback implementation using native time calls.
 You can view POSIX-1.2001, with 2004 Corrigendum, online for free here:
-You may assume Berkeley sockets and the IPv6 API defined in RFC2493
-and RFC2553.
+POSIX threads *are* considered part of the standardized API and may be used.
+Here are the non-standardized AIs that may be used:
+* Linux-style adjtimex() or BSD-style ntp_gettime()/ntp_adjtime().
+* Berkeley sockets and the IPv6 API defined in RFC2493 and RFC2553.
+* getifaddrs(3) or an equivalent local API for iterating over the
+  system's active UDP interfaces. However, the local details should be
+  hidden as an implementation of the interfaceiter.c functions under
+  libisc - not called directly from the rest of the code.
 === Banned functions ===

--- a/libisc/wscript
+++ b/libisc/wscript
@@ -19,10 +19,8 @@ def build(ctx):
 		features	= "c bld_include src_include",
 		source		= libisc_source,
 		includes	= [
-						"%s/libisc/include/" % ctx.srcnode.abspath(),
-						"%s/libisc/unix/include/" % ctx.srcnode.abspath() # XXX: platform: requires unix/win32 switch.
-					],
+				"%s/libisc/include/" % ctx.srcnode.abspath(),
+				],

View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/950f8390012de0b3711430aa180b1d84151b753e...362535920fd43a680bf139d33bf4b1bee6243bcc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160912/b7e12d3c/attachment.html>

More information about the vc mailing list