Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man5 Remove misleading comments from core(5)



details:   https://anonhg.NetBSD.org/src/rev/767c03728a7e
branches:  trunk
changeset: 846995:767c03728a7e
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Dec 06 18:03:49 2019 +0000

description:
Remove misleading comments from core(5)

netbsd_elfcore_procinfo is still in version 1.
cpi_siglwp is stored in the same netbsd_elfcore_procinfo version (1).

The size of struct is stored in cpi_cpisize and the struct can be
expanded without versioning the struct.

diffstat:

 share/man/man5/core.5 |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r a0b10d2a4fc8 -r 767c03728a7e share/man/man5/core.5
--- a/share/man/man5/core.5     Fri Dec 06 17:41:43 2019 +0000
+++ b/share/man/man5/core.5     Fri Dec 06 18:03:49 2019 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: core.5,v 1.32 2019/09/09 00:14:55 sevan Exp $
+.\"    $NetBSD: core.5,v 1.33 2019/12/06 18:03:49 kamil Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -56,7 +56,7 @@
 .\"
 .\"     @(#)core.5     8.3 (Berkeley) 12/11/93
 .\"
-.Dd September 9, 2019
+.Dd December 6, 2019
 .Dt CORE 5
 .Os
 .Sh NAME
@@ -144,7 +144,6 @@
 structure:
 .Bd -literal
 struct netbsd_elfcore_procinfo {
-   /* Version 1 fields start here. */
     uint32_t cpi_version;      /* netbsd_elfcore_procinfo version */
     uint32_t cpi_cpisize;      /* sizeof(netbsd_elfcore_procinfo) */
     uint32_t cpi_signo;        /* killing signal */
@@ -165,8 +164,7 @@
     uint32_t cpi_svgid;        /* saved group ID */
     uint32_t cpi_nlwps;        /* number of LWPs */
     int8_t   cpi_name[32];     /* copy of p->p_comm */
-    /* Add version 2 fields below here. */
-    int32_t         cpi_siglwp;     /* LWP target of killing signal */
+    int32_t  cpi_siglwp;       /* LWP target of killing signal */
 };
 .Ed
 .Pp



Home | Main Index | Thread Index | Old Index