I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
106 lines
4 KiB
Diff
106 lines
4 KiB
Diff
Index: sys/kern/vfs_subr.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/kern/vfs_subr.c,v
|
|
retrieving revision 1.249.2.31
|
|
diff -u -p -r1.249.2.31 vfs_subr.c
|
|
--- sys/kern/vfs_subr.c 9 Aug 2003 16:21:20 -0000 1.249.2.31
|
|
+++ sys/kern/vfs_subr.c 5 May 2005 05:39:37 -0000
|
|
@@ -2302,6 +2302,7 @@ sysctl_ovfs_conf(SYSCTL_HANDLER_ARGS)
|
|
struct ovfsconf ovfs;
|
|
|
|
for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next) {
|
|
+ bzero(&ovfs, sizeof(ovfs));
|
|
ovfs.vfc_vfsops = vfsp->vfc_vfsops; /* XXX used as flag */
|
|
strcpy(ovfs.vfc_name, vfsp->vfc_name);
|
|
ovfs.vfc_index = vfsp->vfc_typenum;
|
|
Index: sys/net/if_mib.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/net/if_mib.c,v
|
|
retrieving revision 1.8.2.2
|
|
diff -u -p -r1.8.2.2 if_mib.c
|
|
--- sys/net/if_mib.c 4 May 2004 10:52:54 -0000 1.8.2.2
|
|
+++ sys/net/if_mib.c 5 May 2005 05:39:37 -0000
|
|
@@ -91,6 +91,7 @@ sysctl_ifdata(SYSCTL_HANDLER_ARGS) /* XX
|
|
return ENOENT;
|
|
|
|
case IFDATA_GENERAL:
|
|
+ bzero(&ifmd, sizeof(ifmd));
|
|
ifnlen = snprintf(workbuf, sizeof(workbuf),
|
|
"%s%d", ifp->if_name, ifp->if_unit);
|
|
if(ifnlen + 1 > sizeof ifmd.ifmd_name) {
|
|
Index: sys/netinet/ip_divert.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/netinet/ip_divert.c,v
|
|
retrieving revision 1.42.2.7
|
|
diff -u -p -r1.42.2.7 ip_divert.c
|
|
--- sys/netinet/ip_divert.c 1 Dec 2004 11:16:04 -0000 1.42.2.7
|
|
+++ sys/netinet/ip_divert.c 5 May 2005 05:39:37 -0000
|
|
@@ -478,6 +478,7 @@ div_pcblist(SYSCTL_HANDLER_ARGS)
|
|
inp = inp_list[i];
|
|
if (inp->inp_gencnt <= gencnt) {
|
|
struct xinpcb xi;
|
|
+ bzero(&xi, sizeof(xi));
|
|
xi.xi_len = sizeof xi;
|
|
/* XXX should avoid extra copy */
|
|
bcopy(inp, &xi.xi_inp, sizeof *inp);
|
|
Index: sys/netinet/raw_ip.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/netinet/raw_ip.c,v
|
|
retrieving revision 1.64.2.19
|
|
diff -u -p -r1.64.2.19 raw_ip.c
|
|
--- sys/netinet/raw_ip.c 16 Jun 2004 06:57:49 -0000 1.64.2.19
|
|
+++ sys/netinet/raw_ip.c 5 May 2005 05:39:38 -0000
|
|
@@ -686,6 +686,7 @@ rip_pcblist(SYSCTL_HANDLER_ARGS)
|
|
inp = inp_list[i];
|
|
if (inp->inp_gencnt <= gencnt) {
|
|
struct xinpcb xi;
|
|
+ bzero(&xi, sizeof(xi));
|
|
xi.xi_len = sizeof xi;
|
|
/* XXX should avoid extra copy */
|
|
bcopy(inp, &xi.xi_inp, sizeof *inp);
|
|
Index: sys/netinet/udp_usrreq.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/netinet/udp_usrreq.c,v
|
|
retrieving revision 1.64.2.19
|
|
diff -u -p -r1.64.2.19 udp_usrreq.c
|
|
--- sys/netinet/udp_usrreq.c 9 Sep 2003 19:09:22 -0000 1.64.2.19
|
|
+++ sys/netinet/udp_usrreq.c 5 May 2005 05:39:39 -0000
|
|
@@ -612,6 +612,7 @@ udp_pcblist(SYSCTL_HANDLER_ARGS)
|
|
inp = inp_list[i];
|
|
if (inp->inp_gencnt <= gencnt) {
|
|
struct xinpcb xi;
|
|
+ bzero(&xi, sizeof(xi));
|
|
xi.xi_len = sizeof xi;
|
|
/* XXX should avoid extra copy */
|
|
bcopy(inp, &xi.xi_inp, sizeof *inp);
|
|
Index: sys/kern/uipc_usrreq.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/kern/uipc_usrreq.c,v
|
|
retrieving revision 1.54.2.10
|
|
diff -u -p -r1.54.2.10 uipc_usrreq.c
|
|
--- sys/kern/uipc_usrreq.c 4 Mar 2003 17:28:09 -0000 1.54.2.10
|
|
+++ sys/kern/uipc_usrreq.c 7 May 2005 10:39:59 -0000
|
|
@@ -849,6 +849,7 @@ unp_pcblist(SYSCTL_HANDLER_ARGS)
|
|
unp = unp_list[i];
|
|
if (unp->unp_gencnt <= gencnt) {
|
|
struct xunpcb xu;
|
|
+ bzero(&xu, sizeof(xu));
|
|
xu.xu_len = sizeof xu;
|
|
xu.xu_unpp = unp;
|
|
/*
|
|
Index: sys/netinet/tcp_subr.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/netinet/tcp_subr.c,v
|
|
retrieving revision 1.225
|
|
diff -u -p -r1.225 tcp_subr.c
|
|
--- sys/netinet/tcp_subr.c 4 May 2005 13:48:44 -0000 1.225
|
|
+++ sys/netinet/tcp_subr.c 6 May 2005 23:56:23 -0000
|
|
@@ -941,6 +941,8 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS)
|
|
if (inp->inp_gencnt <= gencnt) {
|
|
struct xtcpcb xt;
|
|
caddr_t inp_ppcb;
|
|
+
|
|
+ bzero(&xt, sizeof(xt));
|
|
xt.xt_len = sizeof xt;
|
|
/* XXX should avoid extra copy */
|
|
bcopy(inp, &xt.xt_inp, sizeof *inp);
|