EditWYSIWYGAttachPrintable
r4 - 2011-01-16 - 00:25:22 - HarlanStennYou are here: NTP >  Dev Web > DevelopmentIssues > NtpCodingStyle
NTP users are strongly urged to take immediate action to ensure that their NTP daemons are not susceptible to being used in distributed denial-of-service (DDoS) attacks. Please also take this opportunity to defeat denial-of-service attacks by implementing Ingress and Egress filtering through BCP38.

ntp-4.2.8p14 was released on 03 March 2020. It addresses 2 medium-severity security issues in ntpd, and provides 47 non-security bugfixes and 4 other improvements over 4.2.8p13.

Please see the NTP Security Notice for vulnerability and mitigation details.

Are you using Autokey in production? If so, please contact Harlan - he's got some questions for you.

NTP Coding Style

Indentation Style

The indentation style that we expect for the codebase is specified in the dot.emacs file in the top-level of the source distribution.

To the extent possible, that file should continue to reflect the coding and indentation preferences for the codebase.

Dave Hart started the below explanation of the dot.emacs magic. Please add any details or corrections you know of. Also see:

Basic offset Settings Description
c-basic-offset . 8 typical unit of indenting
c-fill-column . 72 wrap text that extends beyond 72?

c-offsets-list Settings Description
(arglist-intro . +) indent arguments (in calls, or only declaration?) by one c-basic-offset (8)
(case-label . *) indent case labels by a half "stop" (Note: DLM seems to prefer no indentation now)
(statement-case-intro . *) The first line in a case block
(statement-cont . *) A continuation of a statement
(substatement-open . 0) Do not indent open curly brace in form if (cond)\n{ ?

#include style

Each (generated) Makefile we use should all have correct -I entries for CFLAGS and CPPFLAGS, so we should be able to use:

 #include <...>

instead of:

 #include "..."

Related Items

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r8 | r6 < r5 < r4 < r3 | More topic actions...
 
SSL security by CAcert
Get the CAcert Root Certificate
This site is powered by the TWiki collaboration platform
IPv6 Ready
Copyright & 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding the site? Send feedback