Module Name:    src
Committed By:   rillig
Date:           Sun Aug 27 15:50:47 UTC 2023

Modified Files:
        src/distrib/sets/lists/man: mi
        src/share/man/man7: Makefile c.7

Log Message:
c.7: mention that C11 and C17 have been published


To generate a diff of this commit:
cvs rdiff -u -r1.1764 -r1.1765 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.36 -r1.37 src/share/man/man7/Makefile
cvs rdiff -u -r1.14 -r1.15 src/share/man/man7/c.7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1764 src/distrib/sets/lists/man/mi:1.1765
--- src/distrib/sets/lists/man/mi:1.1764	Sat Aug 26 05:27:13 2023
+++ src/distrib/sets/lists/man/mi	Sun Aug 27 15:50:47 2023
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1764 2023/08/26 05:27:13 riastradh Exp $
+# $NetBSD: mi,v 1.1765 2023/08/27 15:50:47 rillig Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -2463,6 +2463,7 @@
 ./usr/share/man/cat7/atf.0			man-atf-catman		.cat,atf
 ./usr/share/man/cat7/audio.0			man-obsolete		obsolete
 ./usr/share/man/cat7/c.0			man-reference-catman	.cat
+./usr/share/man/cat7/c11.0			man-reference-catman	.cat
 ./usr/share/man/cat7/c78.0			man-reference-catman	.cat
 ./usr/share/man/cat7/c89.0			man-reference-catman	.cat
 ./usr/share/man/cat7/c90.0			man-reference-catman	.cat
@@ -5757,6 +5758,7 @@
 ./usr/share/man/html7/atf.html			man-atf-htmlman		html,atf
 ./usr/share/man/html7/audio.html		man-obsolete		obsolete
 ./usr/share/man/html7/c.html			man-reference-htmlman	html
+./usr/share/man/html7/c11.html			man-reference-htmlman	html
 ./usr/share/man/html7/c78.html			man-reference-htmlman	html
 ./usr/share/man/html7/c89.html			man-reference-htmlman	html
 ./usr/share/man/html7/c90.html			man-reference-htmlman	html
@@ -9021,6 +9023,7 @@
 ./usr/share/man/man7/atf.7			man-atf-man		.man,atf
 ./usr/share/man/man7/audio.7			man-obsolete		obsolete
 ./usr/share/man/man7/c.7			man-reference-man	.man
+./usr/share/man/man7/c11.7			man-reference-man	.man
 ./usr/share/man/man7/c78.7			man-reference-man	.man
 ./usr/share/man/man7/c89.7			man-reference-man	.man
 ./usr/share/man/man7/c90.7			man-reference-man	.man

Index: src/share/man/man7/Makefile
diff -u src/share/man/man7/Makefile:1.36 src/share/man/man7/Makefile:1.37
--- src/share/man/man7/Makefile:1.36	Sun Jan 10 23:24:26 2021
+++ src/share/man/man7/Makefile	Sun Aug 27 15:50:47 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.36 2021/01/10 23:24:26 riastradh Exp $
+#	$NetBSD: Makefile,v 1.37 2023/08/27 15:50:47 rillig Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/5/93
 
 .include <bsd.init.mk>
@@ -25,6 +25,7 @@ MLINKS+=c.7 c78.7 \
 	c.7 c89.7 \
 	c.7 c90.7 \
 	c.7 c99.7 \
+	c.7 c11.7 \
 	entropy.7 random.7
 
 .include <bsd.man.mk>

Index: src/share/man/man7/c.7
diff -u src/share/man/man7/c.7:1.14 src/share/man/man7/c.7:1.15
--- src/share/man/man7/c.7:1.14	Tue Mar 18 18:20:40 2014
+++ src/share/man/man7/c.7	Sun Aug 27 15:50:47 2023
@@ -1,4 +1,4 @@
-.\" $NetBSD: c.7,v 1.14 2014/03/18 18:20:40 riastradh Exp $
+.\" $NetBSD: c.7,v 1.15 2023/08/27 15:50:47 rillig Exp $
 .\"
 .\" Copyright (C) 2007, 2010 Gabor Kovesdan. All rights reserved.
 .\"
@@ -29,10 +29,10 @@
 .Dt C 7
 .Os
 .Sh NAME
-.Nm c, c78, c89, c90, c99
+.Nm c, c78, c89, c90, c99, c11
 .Nd The C programming language
 .Sh DESCRIPTION
-C is a general purpose programming language, which has a strong connection
+C is a general-purpose programming language, which has a strong connection
 with the UNIX operating system and its derivatives, since the vast
 majority of those systems were written in the C language.
 The C language contains some basic ideas from the BCPL language through
@@ -41,7 +41,7 @@ The development of the UNIX operating sy
 machine in assembly language, but this choice made it very difficult
 to port the existing code to other systems.
 .Pp
-In 1972 Dennis M. Ritchie worked out the C programming language for
+In 1972, Dennis M. Ritchie worked out the C programming language for
 further development of the UNIX operating system.
 The idea was to implement only the C compiler for different
 platforms, and implement most parts of the operating system
@@ -78,7 +78,7 @@ used.
 To not lose the portability by using these system calls, the POSIX
 (Portable Operating System Interface (for Unix)) standard evolved.
 It describes what functions should be available to keep portability.
-Note, that POSIX is not a C standard, but an operating system standard
+Note that POSIX is not a C standard, but an operating system standard
 and thus is beyond the scope of this manual.
 The standards discussed below are all C standards and only cover
 the C programming language and the accompanying library.
@@ -105,11 +105,13 @@ development of the language did not stop
 .Pp
 The ISO C standard was later extended with an amendment as
 ISO/IEC 9899 AM1 in 1995.
-This contained, for example, the wide-character support in wchar.h and
-wctype.h.
-Two corrigenda were also published: Technical Corrigendum 1 as
-ISO/IEC 9899 TCOR1 in 1995 and Technical Corrigendum 2 as ISO/IEC 9899 TCOR2
-in 1996.
+This contained, for example, the wide-character support in
+.In wchar.h
+and
+.In wctype.h .
+Two corrigenda were also published:
+Technical Corrigendum 1 as ISO/IEC 9899 TCOR1 in 1995,
+and Technical Corrigendum 2 as ISO/IEC 9899 TCOR2 in 1996.
 The continuous development and growth made it necessary to work out a new
 standard, which contains the new features and fixes the known defects and
 deficiencies of the language.
@@ -123,7 +125,7 @@ Inline functions.
 .It
 Support for variable length arrays.
 .It
-New high-precision integer type named
+New large-range integer type named
 .Vt long long int ,
 and other integer types described in
 .Xr stdint 3
@@ -133,7 +135,7 @@ and
 New boolean data type; see
 .Xr stdbool 3 .
 .It
-One line comments taken from the C++ language.
+One-line comments taken from the C++ language.
 .It
 Some new preprocessor features.
 .It
@@ -143,7 +145,7 @@ and a
 .Vt restrict
 type qualifier.
 .It
-New variables can be declared anywhere, not just in the beginning of the
+Declarations are allowed after statements, not just in the beginning of the
 program or program blocks.
 .It
 No implicit
@@ -151,11 +153,23 @@ No implicit
 type.
 .El
 .Pp
+In 2011, another revision of ISO/IEC 9899 was published, nicknamed C11,
+adding features such as:
+.Bl -bullet -offset indent
+.It
+Compile-time assertions.
+.It
+Type-generic expressions.
+.It
+Unnamed struct and union members.
+.El
+.Pp
+In 2017, another revision of ISO/IEC 9899 was published, nicknamed C17,
+containing corrections to C11, but no new features.
+.Pp
 Since then no new standards have been published, but the C language is still
 evolving.
-New and useful features have been showing up in the most famous
-C compiler: GNU C
-.Pq Xr gcc 1 .
+.Pp
 Most of the UNIX-like operating systems use GNU C as a system compiler,
 but the various extensions of GNU C, such as
 .Xr attribute 3
@@ -165,6 +179,7 @@ should not be considered standard featur
 .Sh SEE ALSO
 .Xr c89 1 ,
 .Xr c99 1 ,
+.Xr c11 1 ,
 .Xr cc 1 ,
 .Xr cdefs 3
 .Rs
@@ -220,6 +235,11 @@ should not be considered standard featur
 .%A ISO/IEC
 .%T 9899:1999 TCOR3, Programming languages -- C, Technical Corrigendum 3
 .Re
+.Pp
+.Rs
+.%A ISO/IEC
+.%T 9899:2011, Programming languages -- C
+.Re
 .Sh HISTORY
 This manual page first appeared in
 .Fx 9.0

Reply via email to