<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>
Hal Murray pushed to branch master
at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/036c281ac07d8f137112ad740f96a21f635831d1">036c281a</a></strong>
<div>
<span>by Hal Murray</span>
<i>at 2015-12-21T21:27:33Z</i>
</div>
<pre class='commit-message'>Remove unused symbols from config.h

I didn't make any changes to ports/winnt or libisc/win32

There is a better than average chance I've broken something.
I left all my deletions in there as comments marked HGM.</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
pylib/configure.py
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/036c281ac07d8f137112ad740f96a21f635831d1#diff-0'>
<strong>
pylib/configure.py
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/pylib/configure.py
</span><span style="color: #000000;background-color: #ddffdd">+++ b/pylib/configure.py
</span><span style="color: #aaaaaa">@@ -146,8 +146,11 @@ def cmd_configure(ctx):
</span>   # int32_t and uint32_t probes aren't really needed, POSIX guarantees
        # them.  But int64_t and uint64_t are not guaranteed to exist on 32-bit
        # machines.
<span style="color: #000000;background-color: #ffdddd">-        types = ["int32_t", "uint32_t", "int64_t", "uint64_t",
-                "uint_t", "size_t", "wint_t", "pid_t", "intptr_t", "uintptr_t"]
</span><span style="color: #000000;background-color: #ddffdd">+#HGM       types = ["int32_t", "uint32_t", "int64_t", "uint64_t",
+#HGM            "uint_t", "size_t", "wint_t", "pid_t", "intptr_t", "uintptr_t"]
+       # Used by timevalops and timespecops in tests/libntp/
+       # May go away when that is cleaned up.
+       types = ["uint64_t"]
</span> 
        for inttype in sorted(types):
                ctx.check_type(inttype, ["stdint.h", "sys/types.h"])
<span style="color: #aaaaaa">@@ -174,14 +177,15 @@ def cmd_configure(ctx):
</span>   for (f, s, h) in structure_fields:
                ctx.check_structfield(f, s, h)
 
<span style="color: #000000;background-color: #ddffdd">+        # mostly used by timetoa.h and timespecops.h
</span>   sizeofs = [
                ("time.h",            "time_t"),
                (None,                  "int"),
<span style="color: #000000;background-color: #ffdddd">-                (None,                  "short"),
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               (None,                  "short"),
</span>           (None,                  "long"),
                (None,                  "long long"),
<span style="color: #000000;background-color: #ffdddd">-                ("pthread.h", "pthread_t"),
-               (None,                  "signed char"),
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               ("pthread.h",   "pthread_t"),
+#HGM           (None,                  "signed char"),
</span>   ]
 
        for header, sizeof in sorted(sizeofs):
<span style="color: #aaaaaa">@@ -194,7 +198,7 @@ def cmd_configure(ctx):
</span>   ctx.define("GETSOCKNAME_SOCKLEN_TYPE", "socklen_t", quote=False)
        ctx.define("DFLT_RLIMIT_STACK", 50)
        ctx.define("DFLT_RLIMIT_MEMLOCK", 32)
<span style="color: #000000;background-color: #ffdddd">-        ctx.define("POSIX_SHELL", "/bin/sh")
</span><span style="color: #000000;background-color: #ddffdd">+#HGM       ctx.define("POSIX_SHELL", "/bin/sh")
</span> 
        ctx.define("OPENSSL_VERSION_TEXT", "#XXX: Fixme")
 
<span style="color: #aaaaaa">@@ -226,14 +230,14 @@ def cmd_configure(ctx):
</span>   # we're likely to duplicate them.
        functions = (
                ('adjtimex', ["sys/time.h", "sys/timex.h"]),
<span style="color: #000000;background-color: #ffdddd">-                ('arc4random', ["stdlib.h"]),
-               ('arc4random_buf', ["stdlib.h"]),
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               ('arc4random', ["stdlib.h"]),
+#HGM           ('arc4random_buf', ["stdlib.h"]),
</span>           ('closefrom', ["stdlib.h"]),
                ('clock_gettime', ["time.h"], "RT"),
                ('clock_settime', ["time.h"], "RT"),
                ('EVP_MD_do_all_sorted', ["openssl/evp.h"], "CRYPTO"),
                ('getclock', ["sys/timers.h"]),
<span style="color: #000000;background-color: #ffdddd">-                ('getdtablesize', ["unistd.h"]),              # SVr4, 4.2BSD
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               ('getdtablesize', ["unistd.h"]),                # SVr4, 4.2BSD
</span>           ('getpassphrase', ["stdlib.h"]),              # Sun systems
                ('MD5Init', ["md5.h"], "CRYPTO"),
                ('ntp_adjtime', ["sys/time.h", "sys/timex.h"]),             # BSD
<span style="color: #aaaaaa">@@ -243,10 +247,10 @@ def cmd_configure(ctx):
</span>           ('res_init', ["resolv.h"]),
                ("rtprio", ["sys/rtprio.h"]),               # Sun/BSD
                ('sched_setscheduler', ["sched.h"]),
<span style="color: #000000;background-color: #ffdddd">-                ('settimeofday', ["sys/time.h"], "RT"),     # BSD - remove?
</span><span style="color: #000000;background-color: #ddffdd">+           ('settimeofday', ["sys/time.h"], "RT"),     # BSD
</span>           ('strlcpy', ["string.h"]),
                ('strlcat', ["string.h"]),
<span style="color: #000000;background-color: #ffdddd">-                ('sysconf', ["unistd.h"]),
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               ('sysconf', ["unistd.h"]),
</span>           ('timegm', ["time.h"]),
                ('timer_create', ["time.h"]),
                ('updwtmpx', ["utmpx.h"]),            # glibc
<span style="color: #aaaaaa">@@ -260,6 +264,7 @@ def cmd_configure(ctx):
</span>                                                     prerequisites=ft[1],
                                                          use=ft[2])
 
<span style="color: #000000;background-color: #ddffdd">+        # Nobody uses the symbol, but this seems like a good sanity check.
</span>   ctx.check_cc(header_name="stdbool.h", mandatory=True)
 
        # This is a list of every optional include header in the
<span style="color: #aaaaaa">@@ -274,13 +279,13 @@ def cmd_configure(ctx):
</span>   # Some of these are cruft from ancient big-iron systems and should
        # be removed.
        optional_headers = (
<span style="color: #000000;background-color: #ffdddd">-                "alloca.h",
-               "arpa/nameser.h",
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               "alloca.h",
+#HGM           "arpa/nameser.h",
</span>           "dns_sd.h",
                "histedit.h",
                "ieeefp.h",
                ("ifaddrs.h", ["sys/types.h"]),
<span style="color: #000000;background-color: #ffdddd">-                "libintl.h",
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               "libintl.h",
</span>           "libscf.h",
                "linux/if_addr.h",
                "linux/rtnetlink.h",
<span style="color: #aaaaaa">@@ -301,11 +306,11 @@ def cmd_configure(ctx):
</span>           "sys/ioctl.h",
                "sys/modem.h",
                "sys/prctl.h",
<span style="color: #000000;background-color: #ffdddd">-                "sys/procset.h",
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               "sys/procset.h",
</span>           "sys/sockio.h",
                "sys/soundcard.h",
                ("sys/sysctl.h", ["sys/types.h"]),
<span style="color: #000000;background-color: #ffdddd">-                "sys/systune.h",
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               "sys/systune.h",
</span>           ("timepps.h", ["inttypes.h"]),
                ("sys/timepps.h", ["inttypes.h", "sys/time.h"]),
        )
<span style="color: #aaaaaa">@@ -322,9 +327,10 @@ def cmd_configure(ctx):
</span>                   print "Compilation check failed but include exists %s" % hdr
 
        if ctx.get_define("HAVE_TIMEPPS_H") or ctx.get_define("HAVE_SYS_TIMEPPS_H"):
<span style="color: #000000;background-color: #ffdddd">-                from pylib.check_timepps import check_timepps
-               check_timepps(ctx)
-
</span><span style="color: #000000;background-color: #ddffdd">+#HGM               from pylib.check_timepps import check_timepps
+#HGM           check_timepps(ctx)
+#HGM  Can delete pylib/check_timepps.py
+               ctx.define("HAVE_PPSAPI", 1)
</span> 
        # Check for libevent and whether it is working.
        from pylib.check_libevent2 import check_libevent2
<span style="color: #aaaaaa">@@ -347,10 +353,10 @@ def cmd_configure(ctx):
</span>   from check_sockaddr import check_sockaddr
        check_sockaddr(ctx)
 
<span style="color: #000000;background-color: #ffdddd">-        from check_posix_thread_version import check_posix_thread_version
</span><span style="color: #000000;background-color: #ddffdd">+#HGM       from check_posix_thread_version import check_posix_thread_version
</span> 
<span style="color: #000000;background-color: #ffdddd">-        check_posix_thread_version(ctx)
-       ctx.define('HAVE_PTHREADS', ctx.env.POSIX_THREAD_VERISON)
</span><span style="color: #000000;background-color: #ddffdd">+#HGM       check_posix_thread_version(ctx)
+#HGM   ctx.define('HAVE_PTHREADS', ctx.env.POSIX_THREAD_VERISON)
</span> 
 
        if ctx.options.refclocks:
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/036c281ac07d8f137112ad740f96a21f635831d1">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/036c281ac07d8f137112ad740f96a21f635831d1"}}</script>
</p>
</div>
</body>
</html>