svn commit: r362248 - head/share/man/man9

2020-06-16 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jun 16 21:07:51 2020
New Revision: 362248
URL: https://svnweb.freebsd.org/changeset/base/362248

Log:
  Complete a function block with Fc, no content change.
  
  Notably, unbreaks rendering with groff.

Modified:
  head/share/man/man9/VFS_CHECKEXP.9

Modified: head/share/man/man9/VFS_CHECKEXP.9
==
--- head/share/man/man9/VFS_CHECKEXP.9  Tue Jun 16 20:55:22 2020
(r362247)
+++ head/share/man/man9/VFS_CHECKEXP.9  Tue Jun 16 21:07:51 2020
(r362248)
@@ -41,6 +41,7 @@
 .Fa "struct ucred **credanonp"
 .Fa "int *numsecflavor"
 .Fa "int *secflavors"
+.Fc
 .Sh DESCRIPTION
 The
 .Fn VFS_CHECKEXP
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r356599 - stable/11/contrib/smbfs/lib/smb

2020-01-10 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Jan 10 12:20:25 2020
New Revision: 356599
URL: https://svnweb.freebsd.org/changeset/base/356599

Log:
  Fixed build after r356566 (MFC of r356317).
  
  This is a direct change.

Modified:
  stable/11/contrib/smbfs/lib/smb/rcfile.c

Modified: stable/11/contrib/smbfs/lib/smb/rcfile.c
==
--- stable/11/contrib/smbfs/lib/smb/rcfile.cFri Jan 10 09:32:44 2020
(r356598)
+++ stable/11/contrib/smbfs/lib/smb/rcfile.cFri Jan 10 12:20:25 2020
(r356599)
@@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
 #include 
 #include 
 #include 
+#define _WITH_DPRINTF
 #include 
 #include 
 #include 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r356566 - stable/11/contrib/smbfs/lib/smb

2020-01-10 Thread Sergey Kandaurov
On Fri, 10 Jan 2020 at 14:43, David Wolfskill  wrote:

> On Fri, Jan 10, 2020 at 04:50:24PM +0700, Eugene Grosbein wrote:
> > 10.01.2020 2:58, Baptiste Daroussin wrote:
> >
> > > Author: bapt
> > > Date: Thu Jan  9 19:58:05 2020
> > > New Revision: 356566
> > > URL: https://svnweb.freebsd.org/changeset/base/356566
> > > ...
> > This commit broke source upgrade path from 10.4-STABLE to stable/11:
> >
> > rcfile.c:168:5: error: implicit declaration of function 'dprintf' is
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
> > dprintf(STDERR_FILENO, "warning: section
> name [%s] contains lower-case letters\n", sectname);
> > ^
> > 1 error generated.
> > 
>
> I got the same error (on two separate machines) attempting an in-place
> src update from stable/11 @r356547 to r356593.
>

In FreeBSD 11, dprintf() needs #define _WITH_DPRINTF
"prior to the inclusion of <*stdio.h*>"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r353848 - head/sys/dev/jme

2019-10-21 Thread Sergey Kandaurov
пн, 21 окт. 2019 г. в 21:14, Gleb Smirnoff :

> Author: glebius
> Date: Mon Oct 21 18:11:43 2019
> New Revision: 353848
> URL: https://svnweb.freebsd.org/changeset/base/353848
>
> Log:
>   Convert to if_foreach_llmaddr() KPI.
>
> Modified:
>   head/sys/dev/jme/if_jme.c
>
> Modified: head/sys/dev/jme/if_jme.c
>
> ==
> --- head/sys/dev/jme/if_jme.c   Mon Oct 21 18:11:38 2019(r353847)
> +++ head/sys/dev/jme/if_jme.c   Mon Oct 21 18:11:43 2019(r353848)
> @@ -3236,12 +3236,26 @@ jme_set_vlan(struct jme_softc *sc)
> CSR_WRITE_4(sc, JME_RXMAC, reg);
>  }
>
> +static u_int
> +jme_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt)
> +{
> +   uint32_t crc, *mchash = arg;
> +
> +   crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN);
> +
> +   /* Just want the 6 least significant bits. */
> +   crc &= 0x3f;
> +
> +   /* Set the corresponding bit in the hash table. */
> +   mchash[crc >> 5] |= 1 << (crc & 0x1f);
> +
> +   return (1);
> +}
> +
>  static void
>  jme_set_filter(struct jme_softc *sc)
>  {
> struct ifnet *ifp;
> -   struct ifmultiaddr *ifma;
> -   uint32_t crc;
> uint32_t mchash[2];
> uint32_t rxcfg;
>
> @@ -3276,21 +3290,7 @@ jme_set_filter(struct jme_softc *sc)
>  */
> rxcfg |= RXMAC_MULTICAST;
> bzero(mchash, sizeof(mchash));
> -
> -   if_maddr_rlock(ifp);
> -   CK_STAILQ_FOREACH(ifma, >jme_ifp->if_multiaddrs, ifma_link) {
> -   if (ifma->ifma_addr->sa_family != AF_LINK)
> -   continue;
> -   crc = ether_crc32_be(LLADDR((struct sockaddr_dl *)
> -   ifma->ifma_addr), ETHER_ADDR_LEN);
> -
> -   /* Just want the 6 least significant bits. */
> -   crc &= 0x3f;
> -
> -   /* Set the corresponding bit in the hash table. */
> -   mchash[crc >> 5] |= 1 << (crc & 0x1f);
> -   }
> -   if_maddr_runlock(ifp);
> +   if_foreach_llmaddr(ifp, jme_hash_maddr, );
>

Should not be there just “mchash”?
You seems to be passing (uint32_t **),
also in tsec.


> CSR_WRITE_4(sc, JME_MAR0, mchash[0]);
> CSR_WRITE_4(sc, JME_MAR1, mchash[1]);
>
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r344358 - stable/12/lib/libc/net

2019-02-20 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Feb 20 11:58:40 2019
New Revision: 344358
URL: https://svnweb.freebsd.org/changeset/base/344358

Log:
  MFC r343967:
  Sync "struct addrinfo" declaration with netdb.h.
  
  PR:   225880

Modified:
  stable/12/lib/libc/net/getaddrinfo.3
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/libc/net/getaddrinfo.3
==
--- stable/12/lib/libc/net/getaddrinfo.3Wed Feb 20 11:56:30 2019
(r344357)
+++ stable/12/lib/libc/net/getaddrinfo.3Wed Feb 20 11:58:40 2019
(r344358)
@@ -18,7 +18,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd September 13, 2017
+.Dd February 10, 2019
 .Dt GETADDRINFO 3
 .Os
 .Sh NAME
@@ -78,14 +78,14 @@ as defined by
 .Aq Pa netdb.h :
 .Bd -literal
 struct addrinfo {
-   int ai_flags;   /* input flags */
-   int ai_family;  /* address family for socket */
-   int ai_socktype;/* socket type */
-   int ai_protocol;/* protocol for socket */
-   socklen_t ai_addrlen;   /* length of socket-address */
-   struct sockaddr *ai_addr; /* socket-address for socket */
-   char *ai_canonname; /* canonical name for service location */
-   struct addrinfo *ai_next; /* pointer to next in list */
+int ai_flags;   /* AI_PASSIVE, AI_CANONNAME, .. */
+int ai_family;  /* AF_xxx */
+int ai_socktype;/* SOCK_xxx */
+int ai_protocol;/* 0 or IPPROTO_xxx for IPv4 and IPv6 */
+socklen_t ai_addrlen;   /* length of ai_addr */
+char*ai_canonname;  /* canonical name for hostname */
+struct  sockaddr *ai_addr;  /* binary address */
+struct  addrinfo *ai_next;  /* next structure in linked list */
 };
 .Ed
 .Pp
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r344357 - stable/12/lib/libc/sys

2019-02-20 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Feb 20 11:56:30 2019
New Revision: 344357
URL: https://svnweb.freebsd.org/changeset/base/344357

Log:
  MFC r343945:
  Document the ENOBUFS errno in setsockopt(2).
  
  PR:   200649

Modified:
  stable/12/lib/libc/sys/getsockopt.2
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/libc/sys/getsockopt.2
==
--- stable/12/lib/libc/sys/getsockopt.2 Wed Feb 20 10:22:48 2019
(r344356)
+++ stable/12/lib/libc/sys/getsockopt.2 Wed Feb 20 11:56:30 2019
(r344357)
@@ -28,7 +28,7 @@
 .\" @(#)getsockopt.2   8.4 (Berkeley) 5/2/95
 .\" $FreeBSD$
 .\"
-.Dd August 21, 2018
+.Dd February 10, 2019
 .Dt GETSOCKOPT 2
 .Os
 .Sh NAME
@@ -534,7 +534,11 @@ transfer rate to the given unsigned 32-bit value in by
 .Sh RETURN VALUES
 .Rv -std
 .Sh ERRORS
-The call succeeds unless:
+The
+.Fn getsockopt
+and
+.Fn setsockopt
+system calls succeed unless:
 .Bl -tag -width Er
 .It Bq Er EBADF
 The argument
@@ -561,6 +565,15 @@ Installing an
 on a non-listening socket was attempted.
 .It Bq Er ENOMEM
 A memory allocation failed that was required to service the request.
+.El
+.Pp
+The
+.Fn setsockopt
+system call may also return the following error:
+.Bl -tag -width Er
+.It Bq Er ENOBUFS
+Insufficient resources were available in the system
+to perform the operation.
 .El
 .Sh SEE ALSO
 .Xr ioctl 2 ,
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r343967 - head/lib/libc/net

2019-02-10 Thread Sergey Kandaurov
Author: pluknet
Date: Sun Feb 10 19:07:47 2019
New Revision: 343967
URL: https://svnweb.freebsd.org/changeset/base/343967

Log:
  Sync "struct addrinfo" declaration with netdb.h.
  
  Notably, unlike in OpenBSD, which the man page was copied from,
  ai_canonname and ai_addr come in different order.
  
  PR:   225880
  MFC after:1 week

Modified:
  head/lib/libc/net/getaddrinfo.3

Modified: head/lib/libc/net/getaddrinfo.3
==
--- head/lib/libc/net/getaddrinfo.3 Sun Feb 10 19:01:05 2019
(r343966)
+++ head/lib/libc/net/getaddrinfo.3 Sun Feb 10 19:07:47 2019
(r343967)
@@ -18,7 +18,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd September 13, 2017
+.Dd February 10, 2019
 .Dt GETADDRINFO 3
 .Os
 .Sh NAME
@@ -78,14 +78,14 @@ as defined by
 .Aq Pa netdb.h :
 .Bd -literal
 struct addrinfo {
-   int ai_flags;   /* input flags */
-   int ai_family;  /* address family for socket */
-   int ai_socktype;/* socket type */
-   int ai_protocol;/* protocol for socket */
-   socklen_t ai_addrlen;   /* length of socket-address */
-   struct sockaddr *ai_addr; /* socket-address for socket */
-   char *ai_canonname; /* canonical name for service location */
-   struct addrinfo *ai_next; /* pointer to next in list */
+int ai_flags;   /* AI_PASSIVE, AI_CANONNAME, .. */
+int ai_family;  /* AF_xxx */
+int ai_socktype;/* SOCK_xxx */
+int ai_protocol;/* 0 or IPPROTO_xxx for IPv4 and IPv6 */
+socklen_t ai_addrlen;   /* length of ai_addr */
+char*ai_canonname;  /* canonical name for hostname */
+struct  sockaddr *ai_addr;  /* binary address */
+struct  addrinfo *ai_next;  /* next structure in linked list */
 };
 .Ed
 .Pp
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r343945 - head/lib/libc/sys

2019-02-09 Thread Sergey Kandaurov
Author: pluknet
Date: Sat Feb  9 21:33:32 2019
New Revision: 343945
URL: https://svnweb.freebsd.org/changeset/base/343945

Log:
  Document the ENOBUFS errno in setsockopt(2).
  
  In particular, it is the case if SO_SNDBUF/SO_RCVBUF would exceed sb_max_adj.
  
  PR:   200649
  MFC after:1 week

Modified:
  head/lib/libc/sys/getsockopt.2

Modified: head/lib/libc/sys/getsockopt.2
==
--- head/lib/libc/sys/getsockopt.2  Sat Feb  9 21:19:53 2019
(r343944)
+++ head/lib/libc/sys/getsockopt.2  Sat Feb  9 21:33:32 2019
(r343945)
@@ -28,7 +28,7 @@
 .\" @(#)getsockopt.2   8.4 (Berkeley) 5/2/95
 .\" $FreeBSD$
 .\"
-.Dd August 21, 2018
+.Dd February 10, 2019
 .Dt GETSOCKOPT 2
 .Os
 .Sh NAME
@@ -534,7 +534,11 @@ transfer rate to the given unsigned 32-bit value in by
 .Sh RETURN VALUES
 .Rv -std
 .Sh ERRORS
-The call succeeds unless:
+The
+.Fn getsockopt
+and
+.Fn setsockopt
+system calls succeed unless:
 .Bl -tag -width Er
 .It Bq Er EBADF
 The argument
@@ -561,6 +565,15 @@ Installing an
 on a non-listening socket was attempted.
 .It Bq Er ENOMEM
 A memory allocation failed that was required to service the request.
+.El
+.Pp
+The
+.Fn setsockopt
+system call may also return the following error:
+.Bl -tag -width Er
+.It Bq Er ENOBUFS
+Insufficient resources were available in the system
+to perform the operation.
 .El
 .Sh SEE ALSO
 .Xr ioctl 2 ,
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r343904 - head/share/misc

2019-02-08 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Feb  8 11:49:59 2019
New Revision: 343904
URL: https://svnweb.freebsd.org/changeset/base/343904

Log:
  Add macOS 10.14.

Modified:
  head/share/misc/bsd-family-tree

Modified: head/share/misc/bsd-family-tree
==
--- head/share/misc/bsd-family-tree Fri Feb  8 10:31:45 2019
(r343903)
+++ head/share/misc/bsd-family-tree Fri Feb  8 11:49:59 2019
(r343904)
@@ -374,8 +374,8 @@ FreeBSD 5.2   |  | |  
  ||   | |  |   |   |
  ||   | |  |   |   DragonFly 5.2.2
  | FreeBSD| |  NetBSD 7.2  |   |
- |   11.2 | |  |   |   |
- || |  |  OpenBSD 6.4  |
+ |   11.2   macOS   |  |   |   |
+ |  10.14   |  |  OpenBSD 6.4  |
  || |  |   |   DragonFly 5.4.0
  *--FreeBSD   | |  v   |   |
  |   12.0 | |  |   DragonFly 5.4.1
@@ -756,6 +756,7 @@ DragonFly 5.2.2 2018-06-18 [DFB]
 FreeBSD 11.2   2018-06-27 [FBD]
 NetBSD 8.0 2018-07-17 [NBD]
 NetBSD 7.2 2018-08-29 [NBD]
+macOS 10.142018-09-24 [APL]
 OpenBSD 6.42018-10-18 [OBD]
 DragonFly 5.4.02018-12-03 [DFB]
 FreeBSD 12.0   2018-12-11 [FBD]
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r334128 - in head: . lib/libpmcstat lib/libpmcstat/pmu-events lib/libpmcstat/pmu-events/arch lib/libpmcstat/pmu-events/arch/arm64 lib/libpmcstat/pmu-events/arch/arm64/arm lib/libpmcsta

2018-05-24 Thread Sergey Kandaurov
On 24 May 2018 at 07:30, Matt Macy  wrote:

> Author: mmacy
> Date: Thu May 24 04:30:06 2018
> New Revision: 334128
> URL: https://svnweb.freebsd.org/changeset/base/334128
>
> Log:
>   libpmcstat: compile in events based on json description
> [...]
>
> Modified: head/Makefile
> 
> ==
> --- head/Makefile   Thu May 24 03:44:12 2018(r334127)
> +++ head/Makefile   Thu May 24 04:30:06 2018(r334128)
> @@ -481,7 +481,8 @@ worlds: .PHONY
>  # existing system is.
>  #
>  .if make(universe) || make(universe_kernels) || make(tinderbox) ||
> make(targets)
> -TARGETS?=amd64 arm arm64 i386 mips powerpc riscv sparc64
> +TARGETS?=amd64 i386 powerpc arm64
> +#riscv arm  sparc64 mips
>  _UNIVERSE_TARGETS= ${TARGETS}
>  TARGET_ARCHES_arm?=arm armeb armv6 armv7
>  TARGET_ARCHES_arm64?=  aarch64
>

Why? Looks like a debug leftover.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r324427 - head/bin/ps

2017-10-09 Thread Sergey Kandaurov
On 9 October 2017 at 13:24, Edward Tomasz Napierala 
wrote:

> Author: trasz
> Date: Mon Oct  9 10:24:06 2017
> New Revision: 324427
> URL: https://svnweb.freebsd.org/changeset/base/324427
>
> Log:
>   Document "tdnam" keyword to ps(1), and add "tdname" alias.
>
>   MFC after:2 weeks
>   Sponsored by: DARPA, AFRL
>
> Modified:
>   head/bin/ps/keyword.c
>   head/bin/ps/ps.1
>
> Modified: head/bin/ps/keyword.c
> 
> ==
> --- head/bin/ps/keyword.c   Mon Oct  9 08:50:03 2017(r324426)
> +++ head/bin/ps/keyword.c   Mon Oct  9 10:24:06 2017(r324427)
> @@ -201,6 +201,7 @@ static VAR var[] = {
> {"tdev", "TDEV", NULL, "terminal-device", 0, tdev, 0, CHAR, NULL,
> 0},
> {"tdnam", "TDNAM", NULL, "terminal-device-name", LJUST, tdnam, 0,
> CHAR,
> NULL, 0},
>


Hello,
could you please fix this ^^ "tdnam" description as well?
fwiw, looks like it's only used in libxo as a field name.

[..]

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r323087 - in head/sys: amd64/conf arm64/conf i386/conf powerpc/conf riscv/conf sparc64/conf

2017-09-01 Thread Sergey Kandaurov
1 сент. 2017 г. 18:55 пользователь "Josh Paetzel" 
написал:

Author: jpaetzel
Date: Fri Sep  1 15:54:53 2017
New Revision: 323087
URL: https://svnweb.freebsd.org/changeset/base/323087

Log:
  Take options IPSEC out of GENERIC

  PR:   220170
  Submitted by: delphij
  Reviewed by:  ae, glebius
  MFC after:2 weeks
  Differential Revision:D11806

Modified:
  head/sys/amd64/conf/GENERIC
  head/sys/arm64/conf/GENERIC
  head/sys/i386/conf/GENERIC
  head/sys/powerpc/conf/GENERIC
  head/sys/riscv/conf/GENERIC
  head/sys/sparc64/conf/GENERIC

Modified: head/sys/amd64/conf/GENERIC

==
--- head/sys/amd64/conf/GENERIC Fri Sep  1 11:51:07 2017(r323086)
+++ head/sys/amd64/conf/GENERIC Fri Sep  1 15:54:53 2017(r323087)
@@ -28,7 +28,6 @@ options   SCHED_ULE   # ULE scheduler
 optionsPREEMPTION  # Enable kernel thread preemption
 optionsINET# InterNETworking
 optionsINET6   # IPv6 communications protocols
-optionsIPSEC   # IP (v4/v6) security
 optionsIPSEC_SUPPORT   # Allow kldload of ipsec and tcpmd5
 optionsTCP_OFFLOAD # TCP offload
 optionsTCP_HHOOK   # hhook(9) framework for TCP

Modified: head/sys/arm64/conf/GENERIC

==
--- head/sys/arm64/conf/GENERIC Fri Sep  1 11:51:07 2017(r323086)
+++ head/sys/arm64/conf/GENERIC Fri Sep  1 15:54:53 2017(r323087)
@@ -29,7 +29,6 @@ options   PREEMPTION  # Enable kernel
thread preemption
 optionsINET# InterNETworking
 optionsINET6   # IPv6 communications protocols
 optionsIPSEC   # IP (v4/v6) security
-optionsIPSEC_SUPPORT


Looks like the wrong line is removed.
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r317091 - head/lib/libc/sys

2017-04-18 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Apr 18 15:36:13 2017
New Revision: 317091
URL: https://svnweb.freebsd.org/changeset/base/317091

Log:
  Document kevent EVFILT_EMPTY.
  
  Reviewed by:  hiren
  X-MFC with:   r312277

Modified:
  head/lib/libc/sys/kqueue.2

Modified: head/lib/libc/sys/kqueue.2
==
--- head/lib/libc/sys/kqueue.2  Tue Apr 18 10:39:14 2017(r317090)
+++ head/lib/libc/sys/kqueue.2  Tue Apr 18 15:36:13 2017(r317091)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd February 15, 2017
+.Dd April 18, 2017
 .Dt KQUEUE 2
 .Os
 .Sh NAME
@@ -332,6 +332,9 @@ For sockets, the low water mark and sock
 identical to the
 .Dv EVFILT_READ
 case.
+.It Dv EVFILT_EMPTY
+Takes a descriptor as the identifier, and returns whenever
+there is no remaining data in the write buffer.
 .It Dv EVFILT_AIO
 The sigevent portion of the AIO request is filled in, with
 .Va sigev_notify_kqueue
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r316025 - head/share/misc

2017-03-27 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Mar 27 14:37:35 2017
New Revision: 316025
URL: https://svnweb.freebsd.org/changeset/base/316025

Log:
  macOS 10.12 release date added.

Modified:
  head/share/misc/bsd-family-tree

Modified: head/share/misc/bsd-family-tree
==
--- head/share/misc/bsd-family-tree Mon Mar 27 14:32:34 2017
(r316024)
+++ head/share/misc/bsd-family-tree Mon Mar 27 14:37:35 2017
(r316025)
@@ -705,6 +705,7 @@ FreeBSD 10.32016-04-04 [FBD]
 NetBSD 7.0.1   2016-05-22 [NBD]
 DragonFly 4.6.02016-08-02 [DFB]
 OpenBSD 6.02016-09-01 [OBD]
+macOS 10.122016-09-20 [APL]
 FreeBSD 11.0   2016-10-10 [FBD]
 NetBSD 7.1 2017-03-11 [NBD]
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r316024 - head/share/man/man9

2017-03-27 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Mar 27 14:32:34 2017
New Revision: 316024
URL: https://svnweb.freebsd.org/changeset/base/316024

Log:
  Fix pfil_add_hook() and pfil_remove_hook() type.

Modified:
  head/share/man/man9/pfil.9

Modified: head/share/man/man9/pfil.9
==
--- head/share/man/man9/pfil.9  Mon Mar 27 13:37:40 2017(r316023)
+++ head/share/man/man9/pfil.9  Mon Mar 27 14:32:34 2017(r316024)
@@ -28,7 +28,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd August 23, 2013
+.Dd March 27, 2017
 .Dt PFIL 9
 .Os
 .Sh NAME
@@ -57,9 +57,9 @@ typedef int (*pfil_func_t)(void *arg, st
 .Fn pfil_head_unregister "struct pfil_head *head"
 .Ft "struct pfil_head *"
 .Fn pfil_head_get "int af" "u_long dlt"
-.Ft void
+.Ft int
 .Fn pfil_add_hook "pfil_func_t" "void *arg" "int flags" "struct pfil_head *"
-.Ft void
+.Ft int
 .Fn pfil_remove_hook "pfil_func_t" "void *arg" "int flags" "struct pfil_head *"
 .Ft int
 .Fn pfil_run_hooks "struct pfil_head *head" "struct mbuf **mp" "struct ifnet 
*" "int dir" "struct inpcb *"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r313437 - head/lib/libutil

2017-02-08 Thread Sergey Kandaurov
On 8 February 2017 at 12:22, Ngie Cooper  wrote:

> Author: ngie
> Date: Wed Feb  8 09:22:35 2017
> New Revision: 313437
> URL: https://svnweb.freebsd.org/changeset/base/313437
>
> Log:
>   Create link from hexdump(3) to sbuf_hexdump(9) as the manpage describes
>   sbuf_hexdump(9)'s behavior
>
>   MFC after:3 weeks
>   Sponsored by: Dell EMC Isilon
>
> Modified:
>   head/lib/libutil/Makefile
>
> Modified: head/lib/libutil/Makefile
> 
> ==
> --- head/lib/libutil/Makefile   Wed Feb  8 09:19:49 2017(r313436)
> +++ head/lib/libutil/Makefile   Wed Feb  8 09:22:35 2017(r313437)
> @@ -35,6 +35,7 @@ MAN+= expand_number.3 flopen.3 fparseln.
> property.3 pty.3 quotafile.3 realhostname.3 realhostname_sa.3 \
> _secure_path.3 trimdomain.3 uucplock.3 pw_util.3
>  MAN+=  login.conf.5
> +MLINKS+=hexdump.3 sbuf_hexdump.9
>

This looks odd imho also that sbuf_hexdump(3) is part of libsbuf.
Note also hexdump(3) taht's essential copy of hexdump(9).
If go this duplicating route why not copy sbuf_hexdump description as well.

I like more how that's done with sbuf(9) that's the only man page, ymmv.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r312277 - in head/sys: kern sys

2017-01-16 Thread Sergey Kandaurov
On 16 January 2017 at 11:25, Hiren Panchasara  wrote:

> Author: hiren
> Date: Mon Jan 16 08:25:33 2017
> New Revision: 312277
> URL: https://svnweb.freebsd.org/changeset/base/312277
>
> Log:
>   Add kevent EVFILT_EMPTY for notification when a client has received all
> data
>   i.e. everything outstanding has been acked.
>
>   Reviewed by:  bz, gnn (previous version)
>   MFC after:3 days
>   Sponsored by: Limelight Networks
>   Differential Revision:https://reviews.freebsd.org/D9150
>
> Modified:
>   head/sys/kern/kern_event.c
>   head/sys/kern/uipc_socket.c
>   head/sys/sys/event.h
>
>
Hello.

Is kqueue(2) man page update planned?

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r311895 - in head: etc/mtree usr.bin/tail usr.bin/tail/tests

2017-01-11 Thread Sergey Kandaurov
On 10 January 2017 at 23:43, Alan Somers  wrote:

> Author: asomers
> Date: Tue Jan 10 20:43:32 2017
> New Revision: 311895
> URL: https://svnweb.freebsd.org/changeset/base/311895
>
> Log:
>   Fix memory leaks during "tail -r" of an irregular file
> [..]

-typedef struct bf {
> -   struct bf *next;
> -   struct bf *prev;
> -   int len;
> -   char *l;
> -} BF;
> +static const size_t bsz = 128 * 1024;
> +typedef struct bfelem {
> +   TAILQ_ENTRY(bfelem) entries;
> +   size_t len;
> +   char l[bsz];
> +} bfelem_t;
>
>
This breaks on gcc that doesn't respect const for some reason:
reverse.c:177: error: variably modified 'l' at file scope


>  /*
>   * r_buf -- display a non-regular file in reverse order by line.
> @@ -189,64 +190,42 @@ typedef struct bf {
>  static void
>  r_buf(FILE *fp, const char *fn)
>  {
> -   BF *mark, *tl, *tr;
> -   int ch, len, llen;
> +   struct bfelem *tl, *temp, *first = NULL;
> +   size_t len, llen;
>

reverse.c:194: warning: 'len' may be used uninitialized in this function

I suspect this is due to a typo on line 254.

 [..]


> /*
> -* Step through the blocks in the reverse order read.  The last
> char
> -* is special, ignore whether newline or not.
> +* Now print the lines in reverse order
> +* Outline:
> +*Scan backward for "\n",
> +*print forward to the end of the buffers
> +*free any buffers that start after the "\n" just found
> +*Loop
>  */
> -   for (mark = tl;;) {
> -   for (p = tl->l + (len = tl->len) - 1, llen = 0; len--;
> -   --p, ++llen)
> -   if (*p == '\n') {
> -   if (llen) {
> +   tl = TAILQ_LAST(, bfhead);
> +   first = TAILQ_FIRST();
> +   while (tl != NULL) {
> +   for (p = tl->l + tl->len - 1, llen = 0; p >= tl->l;
> +   --p, ++llen) {
> +   int start = (tl == first && p == tl->l);
> +
> +   if ((*p == '\n') || start) {
> +   struct bfelem *tr;
> +
> +   if (start && len)
>

here

joint patch to fix build on gcc (not tested, although tests pass)

Index: reverse.c
===
--- reverse.c(revision 311927)
+++ reverse.c(working copy)
@@ -170,11 +170,11 @@
 ierr(fn);
 }

-static const size_t bsz = 128 * 1024;
+#defineBSZ(128 * 1024)
 typedef struct bfelem {
 TAILQ_ENTRY(bfelem) entries;
 size_t len;
-char l[bsz];
+char l[BSZ];
 } bfelem_t;

 /*
@@ -216,9 +216,9 @@

 /* Fill the block with input data. */
 len = 0;
-while ((!feof(fp)) && len < bsz) {
+while ((!feof(fp)) && len < BSZ) {
 p = tl->l + len;
-len += fread(p, 1, bsz - len, fp);
+len += fread(p, 1, BSZ - len, fp);
 if (ferror(fp)) {
 ierr(fn);
 return;
@@ -251,7 +251,7 @@
 if ((*p == '\n') || start) {
 struct bfelem *tr;

-if (start && len)
+if (start && llen)
 WR(p, llen + 1);
 else if (llen)
 WR(p + 1, llen);

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r311887 - head/sys/net80211

2017-01-10 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jan 10 19:28:40 2017
New Revision: 311887
URL: https://svnweb.freebsd.org/changeset/base/311887

Log:
  Fix build without IEEE80211_DEBUG.
  
  Reported by:  many

Modified:
  head/sys/net80211/ieee80211_vht.c

Modified: head/sys/net80211/ieee80211_vht.c
==
--- head/sys/net80211/ieee80211_vht.c   Tue Jan 10 19:26:55 2017
(r311886)
+++ head/sys/net80211/ieee80211_vht.c   Tue Jan 10 19:28:40 2017
(r311887)
@@ -91,11 +91,12 @@ vht_recv_action_placeholder(struct ieee8
 const uint8_t *frm, const uint8_t *efrm)
 {
 
+#ifdef IEEE80211_DEBUG
ieee80211_note(ni->ni_vap, "%s: called; fc=0x%.2x/0x%.2x",
__func__,
wh->i_fc[0],
wh->i_fc[1]);
-
+#endif
return (0);
 }
 
@@ -104,10 +105,12 @@ vht_send_action_placeholder(struct ieee8
 int category, int action, void *arg0)
 {
 
+#ifdef IEEE80211_DEBUG
ieee80211_note(ni->ni_vap, "%s: called; category=%d, action=%d",
__func__,
category,
action);
+#endif
return (EINVAL);
 }
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r306378 - in stable/10: lib/libc/sys lib/libdpv sbin/ipfw share/man/man4 share/man/man4/man4.arm share/man/man9 sys/boot/common sys/boot/i386/gptzfsboot usr.bin/dpv

2016-09-27 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Sep 27 19:00:22 2016
New Revision: 306378
URL: https://svnweb.freebsd.org/changeset/base/306378

Log:
  MFC r274925: misc mdoc fixes.

Modified:
  stable/10/lib/libc/sys/poll.2
  stable/10/lib/libdpv/dpv.3
  stable/10/sbin/ipfw/ipfw.8
  stable/10/share/man/man4/gre.4
  stable/10/share/man/man4/man4.arm/cgem.4
  stable/10/share/man/man4/me.4
  stable/10/share/man/man4/netmap.4
  stable/10/share/man/man9/get_cyclecount.9
  stable/10/share/man/man9/malloc.9
  stable/10/share/man/man9/sleepqueue.9
  stable/10/sys/boot/common/zfsloader.8
  stable/10/sys/boot/i386/gptzfsboot/gptzfsboot.8
  stable/10/usr.bin/dpv/dpv.1
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/sys/poll.2
==
--- stable/10/lib/libc/sys/poll.2   Tue Sep 27 18:55:45 2016
(r306377)
+++ stable/10/lib/libc/sys/poll.2   Tue Sep 27 19:00:22 2016
(r306378)
@@ -180,7 +180,6 @@ specifies a signal mask which is set whi
 When 
 .Fn ppoll
 returns, the original signal mask is restored.
-.Pp
 .Bd -literal
 struct timespec {
time_t  tv_sec; /* seconds */

Modified: stable/10/lib/libdpv/dpv.3
==
--- stable/10/lib/libdpv/dpv.3  Tue Sep 27 18:55:45 2016(r306377)
+++ stable/10/lib/libdpv/dpv.3  Tue Sep 27 19:00:22 2016(r306378)
@@ -503,7 +503,7 @@ This does not effect
 .Xr Xdialog 1 ,
 which renders the color escape sequences as plain text.
 See
-.Do Li
+.Do
 embedded "\\Z" sequences
 .Dc
 in

Modified: stable/10/sbin/ipfw/ipfw.8
==
--- stable/10/sbin/ipfw/ipfw.8  Tue Sep 27 18:55:45 2016(r306377)
+++ stable/10/sbin/ipfw/ipfw.8  Tue Sep 27 19:00:22 2016(r306378)
@@ -1597,7 +1597,6 @@ be specified as:
 .Pp
 Note that the ampersand character has a special meaning in many shells
 and should generally be escaped.
-.Pp
 .El
 Note that the order of MAC addresses (destination first,
 source second) is

Modified: stable/10/share/man/man4/gre.4
==
--- stable/10/share/man/man4/gre.4  Tue Sep 27 18:55:45 2016
(r306377)
+++ stable/10/share/man/man4/gre.4  Tue Sep 27 19:00:22 2016
(r306378)
@@ -91,7 +91,6 @@ Enables checksum calculation for outgoin
 Enables use of sequence number field in the GRE header for outgoing packets.
 .El
 .Sh EXAMPLES
-.Pp
 .Bd -literal
 192.168.1.* --- Router A  ---tunnel Router B --- 192.168.2.*
\\  /
@@ -190,7 +189,6 @@ A description of GRE encapsulation can b
 .An Andrey V. Elsukov Aq Mt a...@freebsd.org
 .An Heiko W.Rupp Aq Mt h...@pilhuhn.de
 .Sh BUGS
-.Pp
 The current implementation uses the key only for outgoing packets.
 Incoming packets with a different key or without a key will be treated as if 
they
 would belong to this interface.

Modified: stable/10/share/man/man4/man4.arm/cgem.4
==
--- stable/10/share/man/man4/man4.arm/cgem.4Tue Sep 27 18:55:45 2016
(r306377)
+++ stable/10/share/man/man4/man4.arm/cgem.4Tue Sep 27 19:00:22 2016
(r306378)
@@ -248,6 +248,23 @@ checksum offloading is enabled.
 Counter of frames discarded due to an incorrect UDP checksum when
 checksum offloading is enabled.
 .El
+.Sh SEE ALSO
+.Xr miibus 4 ,
+.Xr ifconfig 8
+.Rs
+.%T "Zynq-7000 SoC Technical Reference Manual (Xilinx doc UG585)"
+.%U 
http://www.xilinx.com/support/documentation/user_guides/\:ug585-Zynq-7000-TRM.pdf
+.Re
+.Sh HISTORY
+The
+.Nm
+device driver first appeared in
+.Fx 10.0 .
+.Sh AUTHORS
+The
+.Nm
+driver and this manual page was written by
+.An Thomas Skibo Aq Mt thomassk...@yahoo.com .
 .Sh BUGS
 The GEM can perform TCP/UDP/IP checksum offloading.
 However, when transmit checksum offloading is enabled, the GEM generates and
@@ -277,21 +294,3 @@ If the bug does not exist in other versi
 work-around can be disabled by setting the dev.cgem.%d.rxhangwar
 .Xr sysctl 8
 variable to 0.
-.Pp
-.Sh SEE ALSO
-.Xr miibus 4 ,
-.Xr ifconfig 8
-.Rs
-.%T "Zynq-7000 SoC Technical Reference Manual (Xilinx doc UG585)"
-.%U 
http://www.xilinx.com/support/documentation/user_guides/\:ug585-Zynq-7000-TRM.pdf
-.Re
-.Sh HISTORY
-The
-.Nm
-device driver first appeared in
-.Fx 10.0 .
-.Sh AUTHORS
-The
-.Nm
-driver and this manual page was written by
-.An Thomas Skibo Aq Mt thomassk...@yahoo.com .

Modified: stable/10/share/man/man4/me.4
==
--- stable/10/share/man/man4/me.4   Tue Sep 27 18:55:45 2016
(r306377)
+++ stable/10/share/man/man4/me.4   Tue Sep 27 19:00:22 2016
(r306378)
@@ -67,7 +67,6 @@ IP header is modified and the modificati
 so modified header and 

svn commit: r303742 - in head: lib/libc/gen share/man/man3

2016-08-04 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Aug  4 11:38:53 2016
New Revision: 303742
URL: https://svnweb.freebsd.org/changeset/base/303742

Log:
  Grammar fixes.

Modified:
  head/lib/libc/gen/clock_getcpuclockid.3
  head/share/man/man3/pthread_getcpuclockid.3

Modified: head/lib/libc/gen/clock_getcpuclockid.3
==
--- head/lib/libc/gen/clock_getcpuclockid.3 Thu Aug  4 11:26:52 2016
(r303741)
+++ head/lib/libc/gen/clock_getcpuclockid.3 Thu Aug  4 11:38:53 2016
(r303742)
@@ -86,7 +86,7 @@ No process can be found corresponding to
 .Sh STANDARDS
 The
 .Fn clock_getcpuclockid
-function conform to
+function conforms to
 .St -p1003.1-2001 .
 .Sh HISTORY
 The

Modified: head/share/man/man3/pthread_getcpuclockid.3
==
--- head/share/man/man3/pthread_getcpuclockid.3 Thu Aug  4 11:26:52 2016
(r303741)
+++ head/share/man/man3/pthread_getcpuclockid.3 Thu Aug  4 11:38:53 2016
(r303742)
@@ -51,8 +51,8 @@
 The
 .Fn pthread_getcpuclockid
 returns the clock ID of the CPU-time clock of the thread specified by
-.Fa thread_id .
-If the thread described by
+.Fa thread_id ,
+if the thread described by
 .Fa thread_id
 exists.
 .Sh RETURN VALUES
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r303740 - in head: lib/libc/gen share/man/man3

2016-08-04 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Aug  4 11:22:51 2016
New Revision: 303740
URL: https://svnweb.freebsd.org/changeset/base/303740

Log:
  mdoc: The .Fn function.

Modified:
  head/lib/libc/gen/clock_getcpuclockid.3
  head/share/man/man3/pthread_getcpuclockid.3

Modified: head/lib/libc/gen/clock_getcpuclockid.3
==
--- head/lib/libc/gen/clock_getcpuclockid.3 Thu Aug  4 10:49:00 2016
(r303739)
+++ head/lib/libc/gen/clock_getcpuclockid.3 Thu Aug  4 11:22:51 2016
(r303740)
@@ -70,7 +70,9 @@ Upon successful completion,
 returns zero; otherwise, an error number is returned to indicate the
 error.
 .Sh ERRORS
-The clock_getcpuclockid() function will fail if:
+The
+.Fn clock_getcpuclockid
+function will fail if:
 .Bl -tag -width Er
 .It Bq Er EPERM
 The requesting process does not have permission to access the CPU-time

Modified: head/share/man/man3/pthread_getcpuclockid.3
==
--- head/share/man/man3/pthread_getcpuclockid.3 Thu Aug  4 10:49:00 2016
(r303739)
+++ head/share/man/man3/pthread_getcpuclockid.3 Thu Aug  4 11:22:51 2016
(r303740)
@@ -61,7 +61,9 @@ Upon successful completion,
 returns zero; otherwise, an error number is returned to indicate the
 error.
 .Sh ERRORS
-The pthread_getcpuclockid() function will fail if:
+The
+.Fn pthread_getcpuclockid
+function will fail if:
 .Bl -tag -width Er
 .It Bq Er ESRCH
 The value specified by
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r291021 - in head: sbin usr.sbin

2016-07-27 Thread Sergey Kandaurov
On 18 November 2015 at 20:52, Bryan Drewery  wrote:
> Author: bdrewery
> Date: Wed Nov 18 17:52:38 2015
> New Revision: 291021
> URL: https://svnweb.freebsd.org/changeset/base/291021
>
> Log:
>   Convert to SUBDIR.yes format.
>
>   Reviewed by:  imp
>   Sponsored by: EMC / Isilon Storage Division
>   Differential Revision:https://reviews.freebsd.org/D4182
>

Looks like this change lost pmcstudy by an accident.

> -
> -# XXX MK_TOOLCHAIN?
> -.if ${MK_PMC} != "no"
> -SUBDIR+=   pmcannotate
> -SUBDIR+=   pmccontrol
> -SUBDIR+=   pmcstat
> -SUBDIR+=   pmcstudy
> -.endif
> -
[...]
> +SUBDIR.${MK_PMC}+= pmcannotate
> +SUBDIR.${MK_PMC}+= pmccontrol
> +SUBDIR.${MK_PMC}+= pmcstat



-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r298201 - head/lib/libc/stdlib

2016-04-18 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Apr 18 09:56:41 2016
New Revision: 298201
URL: https://svnweb.freebsd.org/changeset/base/298201

Log:
  Fixed indentation, minor style.

Modified:
  head/lib/libc/stdlib/qsort.3

Modified: head/lib/libc/stdlib/qsort.3
==
--- head/lib/libc/stdlib/qsort.3Mon Apr 18 09:39:46 2016
(r298200)
+++ head/lib/libc/stdlib/qsort.3Mon Apr 18 09:56:41 2016
(r298201)
@@ -252,16 +252,16 @@ and then prints the sorted array to stan
 #include 
 
 /*
- * Custom comparison function that can compare 'int' values through pointers
+ * Custom comparison function that compares 'int' values through pointers
  * passed by qsort(3).
  */
 static int
 int_compare(const void *p1, const void *p2)
 {
-int left = *(const int *)p1;
-int right = *(const int *)p2;
+   int left = *(const int *)p1;
+   int right = *(const int *)p2;
 
-return ((left > right) - (left < right));
+   return ((left > right) - (left < right));
 }
 
 /*
@@ -270,15 +270,15 @@ int_compare(const void *p1, const void *
 int
 main(void)
 {
-   int int_array[] = { 4, 5, 9, 3, 0, 1, 7, 2, 8, 6 };
-   const size_t array_size = sizeof(int_array) / sizeof(int_array[0]);
-   size_t k;
+   int int_array[] = { 4, 5, 9, 3, 0, 1, 7, 2, 8, 6 };
+   size_t array_size = sizeof(int_array) / sizeof(int_array[0]);
+   size_t k;
 
-   qsort(_array, array_size, sizeof(int_array[0]), int_compare);
-   for (k = 0; k < array_size; k++)
-printf(" %d", int_array[k]);
-puts("");
-return (EXIT_SUCCESS);
+   qsort(_array, array_size, sizeof(int_array[0]), int_compare);
+   for (k = 0; k < array_size; k++)
+   printf(" %d", int_array[k]);
+   puts("");
+   return (EXIT_SUCCESS);
 }
 .Ed
 .Sh COMPATIBILITY
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r295768 - head/usr.sbin/iostat

2016-02-19 Thread Sergey Kandaurov
On 18 February 2016 at 23:08, Alan Somers  wrote:
> Author: asomers
> Date: Thu Feb 18 20:08:01 2016
> New Revision: 295768
> URL: https://svnweb.freebsd.org/changeset/base/295768
>
> Log:
>   Fix compiler warnings in iostat

> Modified: head/usr.sbin/iostat/iostat.c
> ==
> --- head/usr.sbin/iostat/iostat.c   Thu Feb 18 19:37:39 2016
> (r295767)
> +++ head/usr.sbin/iostat/iostat.c   Thu Feb 18 20:08:01 2016
> (r295768)
> @@ -117,30 +117,34 @@
>  #include 
>  #include 
>
> -struct nlist namelist[] = {
> +static struct nlist namelist[] = {
>  #define X_TTY_NIN  0
> -   { "_tty_nin" },
> +   { .n_name = "_tty_nin",
> + .n_type = 0, .n_other = 0, .n_desc = 0, .n_value = 0 },
>  [...]

You unlikely need this excessive explicit zeroization.
In this case it is implicitly prezeroed.

Consider these two cases:

: #include 
:
: int main(void) {
:   struct nlist namelist[2] = {{ .n_type = 0x42 }};
:   return sizeof(namelist);
: }

(__TEXT,__text) section
_main:
pushq%rbp
0001movq%rsp, %rbp
0004leaq-0x30(%rbp), %rdx
0008movl$0x0, %eax
000dmovl$0x6, %ecx
0012movq%rdx, %rdi
0015rep
0016stosq
0018movb$0x42, -0x28(%rbp)
001cmovl$0x30, %eax
0021popq%rbp
0022retq

rep stosq does zero 48 bytes, that is namelist[].

Or, if it is static.

: #include 
:
: int main(void) {
:   static struct nlist namelist[2] = {{ .n_type = 0x42 }};
:   return sizeof(namelist);
: }

(__DATA,__data) section
002000 00 00 00 00 00 00 00 42 00 00 00 00 00 00 00
003000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
004000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r292689 - head/sys/netinet

2015-12-24 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Dec 24 13:57:43 2015
New Revision: 292689
URL: https://svnweb.freebsd.org/changeset/base/292689

Log:
  Fixed comment placement.
  
  Before r12296, this comment described the udp_recvspace default value.
  
  Spotted by:   ru
  Sponsored by: Nginx, Inc.

Modified:
  head/sys/netinet/udp_usrreq.c

Modified: head/sys/netinet/udp_usrreq.c
==
--- head/sys/netinet/udp_usrreq.c   Thu Dec 24 11:56:37 2015
(r292688)
+++ head/sys/netinet/udp_usrreq.c   Thu Dec 24 13:57:43 2015
(r292689)
@@ -128,7 +128,6 @@ SYSCTL_INT(_net_inet_udp, OID_AUTO, blac
 "Do not send port unreachables for refused connects");
 
 u_long udp_sendspace = 9216;   /* really max datagram size */
-   /* 40 1K datagrams */
 SYSCTL_ULONG(_net_inet_udp, UDPCTL_MAXDGRAM, maxdgram, CTLFLAG_RW,
 _sendspace, 0, "Maximum outgoing UDP datagram size");
 
@@ -138,7 +137,7 @@ u_long  udp_recvspace = 40 * (1024 +
 #else
  sizeof(struct sockaddr_in)
 #endif
- );
+ );/* 40 1K datagrams */
 
 SYSCTL_ULONG(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
 _recvspace, 0, "Maximum space for incoming UDP datagrams");
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r290499 - head/usr.bin/localedef

2015-11-07 Thread Sergey Kandaurov
7 нояб. 2015 г. 7:26 PM пользователь "Joerg Sonnenberger" <
jo...@britannica.bec.de> написал:
>
> On Sat, Nov 07, 2015 at 04:22:29PM +, Baptiste Daroussin wrote:
> > Author: bapt
> > Date: Sat Nov  7 16:22:29 2015
> > New Revision: 290499
> > URL: https://svnweb.freebsd.org/changeset/base/290499
> >
> > Log:
> >   Workaround an issue on i386 to unbreak the build until the real issue
is tracked
> >   down
> >
> > Modified:
> >   head/usr.bin/localedef/collate.c
> >
> > Modified: head/usr.bin/localedef/collate.c
> >
==
> > --- head/usr.bin/localedef/collate.c  Sat Nov  7 15:03:45 2015
(r290498)
> > +++ head/usr.bin/localedef/collate.c  Sat Nov  7 16:22:29 2015
(r290499)
> > @@ -1255,7 +1255,8 @@ dump_collate(void)
> >* Large (> UCHAR_MAX) character priorities
> >*/
> >   RB_NUMNODES(collchar_t, collchars, , n);
> > - large = calloc(sizeof (collate_large_t) * n, 1);
> > + large = malloc(sizeof (collate_large_t) * n);
> > + memset(large, 0, sizeof (collate_large_t) * n);
> >   if (large == NULL) {
> >   fprintf(stderr, "out of memory");
> >   return;
>
> Why was this not calloc(sizeof(), n) in first place?!
>

And memset should probably be moved after the check against null.
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r289623 - head/share/misc

2015-10-20 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Oct 20 11:37:16 2015
New Revision: 289623
URL: https://svnweb.freebsd.org/changeset/base/289623

Log:
  o NetBSD 7.0, OpenBSD 5.8, FreeBSD 10.2, OS X 10.11 added.

Modified:
  head/share/misc/bsd-family-tree

Modified: head/share/misc/bsd-family-tree
==
--- head/share/misc/bsd-family-tree Tue Oct 20 10:16:03 2015
(r289622)
+++ head/share/misc/bsd-family-tree Tue Oct 20 11:37:16 2015
(r289623)
@@ -320,17 +320,21 @@ FreeBSD 5.2   |  |  
  | |  |  |OpenBSD 5.6  |
  |  FreeBSD   |  | |   |
  |   10.1 |  | |   DragonFly 4.0.1
- ||  | |   |
- ||  | |   DragonFly 4.0.2
- ||  | |   |
- ||  | |   DragonFly 4.0.3
- ||  | |   |
- ||  | |   DragonFly 4.0.4
- ||  | |   |
- ||  | |   DragonFly 4.0.5
- ||  | |   |
- ||  |OpenBSD 5.7  |
- ||  | |   DragonFly 4.2.0
+ | |  |  | |   |
+ | |  |  | |   DragonFly 4.0.2
+ | |  |  | |   |
+ | |  |  | |   DragonFly 4.0.3
+ | |  |  | |   |
+ | |  |  | |   DragonFly 4.0.4
+ | |  |  | |   |
+ | |  |  | |   DragonFly 4.0.5
+ | |  |  | |   |
+ | |  |  |OpenBSD 5.7  |
+ | |  |  | |   DragonFly 4.2.0
+ |  FreeBSD   |  | |   |
+ |   10.2 |  | |   |
+ |  OS X  NetBSD 7.0   |   |
+ |  10.11|OpenBSD 5.8  |
  ||  | |   |
 FreeBSD 11 -current   |  NetBSD -current  OpenBSD -current DragonFly 
-current
  ||  | |   |
@@ -673,6 +677,10 @@ DragonFly 4.0.42015-03-09 [DFB]
 DragonFly 4.0.52015-03-23 [DFB]
 OpenBSD 5.72015-05-01 [OBD]
 DragonFly 4.2.02015-06-29 [DFB]
+FreeBSD 10.22015-08-13 [FBD]
+NetBSD 7.0 2015-09-25 [NBD]
+OS X 10.11 2015-09-30 [APL]
+OpenBSD 5.82015-10-18 [OBD]
 
 Bibliography
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r287822 - head/share/man/man9

2015-09-15 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Sep 15 13:24:52 2015
New Revision: 287822
URL: https://svnweb.freebsd.org/changeset/base/287822

Log:
  Bump .Dd.

Modified:
  head/share/man/man9/timeout.9

Modified: head/share/man/man9/timeout.9
==
--- head/share/man/man9/timeout.9   Tue Sep 15 12:19:01 2015
(r287821)
+++ head/share/man/man9/timeout.9   Tue Sep 15 13:24:52 2015
(r287822)
@@ -29,7 +29,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 8, 2014
+.Dd September 14, 2015
 .Dt TIMEOUT 9
 .Os
 .Sh NAME
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r287163 - head/usr.bin/script

2015-08-26 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Aug 26 11:54:40 2015
New Revision: 287163
URL: https://svnweb.freebsd.org/changeset/base/287163

Log:
  Fix SEE ALSO.
  
  The history mechanism applies to csh.
  
  Sponsored by: Nginx, Inc.

Modified:
  head/usr.bin/script/script.1

Modified: head/usr.bin/script/script.1
==
--- head/usr.bin/script/script.1Wed Aug 26 11:36:23 2015
(r287162)
+++ head/usr.bin/script/script.1Wed Aug 26 11:54:40 2015
(r287163)
@@ -164,13 +164,13 @@ is assumed.
 .Pq Most shells set this variable automatically .
 .El
 .Sh SEE ALSO
-.Xr csh 1 ,
-.Xr filemon 4
+.Xr csh 1
 .Po
 for the
 .Em history
 mechanism
-.Pc .
+.Pc ,
+.Xr filemon 4
 .Sh HISTORY
 The
 .Nm
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r286011 - head/tests/sys/kern

2015-07-29 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Jul 29 13:49:34 2015
New Revision: 286011
URL: https://svnweb.freebsd.org/changeset/base/286011

Log:
  Fixed shutdown(2) unix(4) tests for SOCK_SEQPACKET after r285910 (by ed).

Modified:
  head/tests/sys/kern/unix_seqpacket_test.c

Modified: head/tests/sys/kern/unix_seqpacket_test.c
==
--- head/tests/sys/kern/unix_seqpacket_test.c   Wed Jul 29 13:36:17 2015
(r286010)
+++ head/tests/sys/kern/unix_seqpacket_test.c   Wed Jul 29 13:49:34 2015
(r286011)
@@ -751,35 +751,79 @@ ATF_TC_BODY(send_recv_with_connect, tc)
 ATF_TC_WITHOUT_HEAD(shutdown_send);
 ATF_TC_BODY(shutdown_send, tc)
 {
-   int s;
-   const char data[] = data;
+   struct sockaddr_un sun;
+   /* ATF's isolation mechanisms will guarantee uniqueness of this file */
+   const char *path = sock;
+   const char *data = data;
ssize_t ssize;
+   int s, err, s2;
 
s = socket(PF_LOCAL, SOCK_SEQPACKET, 0);
ATF_REQUIRE(s = 0);
-   ATF_CHECK_EQ(0, shutdown(s, SHUT_RDWR));
+
+   bzero(sun, sizeof(sun));
+   sun.sun_family = AF_LOCAL;
+   sun.sun_len = sizeof(sun);
+   strlcpy(sun.sun_path, path, sizeof(sun.sun_path));
+   err = bind(s, (struct sockaddr *)sun, sizeof(sun));
+   err = listen(s, -1);
+   ATF_CHECK_EQ(0, err);
+
+   /* Create the other socket */
+   s2 = socket(PF_LOCAL, SOCK_SEQPACKET, 0);
+   ATF_REQUIRE(s2 = 0);
+   err = connect(s2, (struct sockaddr*)sun, sizeof(sun));
+   if (err != 0) {
+   perror(connect);
+   atf_tc_fail(connect(2) failed);
+   }
+
+   ATF_CHECK_EQ(0, shutdown(s2, SHUT_RDWR));
/* USE MSG_NOSIGNAL so we don't get SIGPIPE */
-   ssize = send(s, data, sizeof(data), MSG_EOR | MSG_NOSIGNAL);
+   ssize = send(s2, data, sizeof(data), MSG_EOR | MSG_NOSIGNAL);
ATF_CHECK_EQ(EPIPE, errno);
ATF_CHECK_EQ(-1, ssize);
close(s);
+   close(s2);
 }
 
 /* send(2) should cause SIGPIPE on a shutdown socket */
 ATF_TC_WITHOUT_HEAD(shutdown_send_sigpipe);
 ATF_TC_BODY(shutdown_send_sigpipe, tc)
 {
-   int s;
-   const char data[] = data;
+   struct sockaddr_un sun;
+   /* ATF's isolation mechanisms will guarantee uniqueness of this file */
+   const char *path = sock;
+   const char *data = data;
ssize_t ssize;
+   int s, err, s2;
 
s = socket(PF_LOCAL, SOCK_SEQPACKET, 0);
ATF_REQUIRE(s = 0);
-   ATF_CHECK_EQ(0, shutdown(s, SHUT_RDWR));
+
+   bzero(sun, sizeof(sun));
+   sun.sun_family = AF_LOCAL;
+   sun.sun_len = sizeof(sun);
+   strlcpy(sun.sun_path, path, sizeof(sun.sun_path));
+   err = bind(s, (struct sockaddr *)sun, sizeof(sun));
+   err = listen(s, -1);
+   ATF_CHECK_EQ(0, err);
+
+   /* Create the other socket */
+   s2 = socket(PF_LOCAL, SOCK_SEQPACKET, 0);
+   ATF_REQUIRE(s2 = 0);
+   err = connect(s2, (struct sockaddr*)sun, sizeof(sun));
+   if (err != 0) {
+   perror(connect);
+   atf_tc_fail(connect(2) failed);
+   }
+
+   ATF_CHECK_EQ(0, shutdown(s2, SHUT_RDWR));
ATF_REQUIRE(SIG_ERR != signal(SIGPIPE, shutdown_send_sigpipe_handler));
-   ssize = send(s, data, sizeof(data), MSG_EOR);
+   ssize = send(s2, data, sizeof(data), MSG_EOR);
ATF_CHECK_EQ(1, got_sigpipe);
close(s);
+   close(s2);
 }
 
 /* nonblocking send(2) and recv(2) a single short record */
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r285829 - head/sys/kern

2015-07-23 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Jul 23 23:18:03 2015
New Revision: 285829
URL: https://svnweb.freebsd.org/changeset/base/285829

Log:
  Call ksem_get() with initialized 'rights'.
  
  ksem_get() consumes fget(), and it's mandatory there.
  
  Reported by:  truckman
  Reviewed by:  mjg

Modified:
  head/sys/kern/uipc_sem.c

Modified: head/sys/kern/uipc_sem.c
==
--- head/sys/kern/uipc_sem.cThu Jul 23 20:59:48 2015(r285828)
+++ head/sys/kern/uipc_sem.cThu Jul 23 23:18:03 2015(r285829)
@@ -651,12 +651,13 @@ struct ksem_close_args {
 int
 sys_ksem_close(struct thread *td, struct ksem_close_args *uap)
 {
+   cap_rights_t rights;
struct ksem *ks;
struct file *fp;
int error;
 
/* No capability rights required to close a semaphore. */
-   error = ksem_get(td, uap-id, 0, fp);
+   error = ksem_get(td, uap-id, cap_rights_init(rights), fp);
if (error)
return (error);
ks = fp-f_data;
@@ -872,12 +873,13 @@ struct ksem_destroy_args {
 int
 sys_ksem_destroy(struct thread *td, struct ksem_destroy_args *uap)
 {
+   cap_rights_t rights;
struct file *fp;
struct ksem *ks;
int error;
 
/* No capability rights required to close a semaphore. */
-   error = ksem_get(td, uap-id, 0, fp);
+   error = ksem_get(td, uap-id, cap_rights_init(rights), fp);
if (error)
return (error);
ks = fp-f_data;
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r285741 - head/sys/kern

2015-07-21 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul 21 09:57:13 2015
New Revision: 285741
URL: https://svnweb.freebsd.org/changeset/base/285741

Log:
  Fix sb_state constant names as used e.g. to display in DDB ``show sockbuf''.
  
  MFC after:1 week

Modified:
  head/sys/kern/uipc_debug.c

Modified: head/sys/kern/uipc_debug.c
==
--- head/sys/kern/uipc_debug.c  Tue Jul 21 09:54:31 2015(r285740)
+++ head/sys/kern/uipc_debug.c  Tue Jul 21 09:57:13 2015(r285741)
@@ -209,15 +209,15 @@ db_print_sbstate(short sb_state)
 
comma = 0;
if (sb_state  SBS_CANTSENDMORE) {
-   db_printf(%sSS_CANTSENDMORE, comma ? ,  : );
+   db_printf(%sSBS_CANTSENDMORE, comma ? ,  : );
comma = 1;
}
if (sb_state  SBS_CANTRCVMORE) {
-   db_printf(%sSS_CANTRCVMORE, comma ? ,  : );
+   db_printf(%sSBS_CANTRCVMORE, comma ? ,  : );
comma = 1;
}
if (sb_state  SBS_RCVATMARK) {
-   db_printf(%sSS_RCVATMARK, comma ? ,  : );
+   db_printf(%sSBS_RCVATMARK, comma ? ,  : );
comma = 1;
}
 }
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r285739 - head/lib/libc/gen

2015-07-21 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul 21 09:44:45 2015
New Revision: 285739
URL: https://svnweb.freebsd.org/changeset/base/285739

Log:
  Add missing priority argument in example code in BUGS section.
  
  PR:   201725
  Submitted by: Thomas Cort
  MFC after:1 week

Modified:
  head/lib/libc/gen/syslog.3

Modified: head/lib/libc/gen/syslog.3
==
--- head/lib/libc/gen/syslog.3  Tue Jul 21 07:22:18 2015(r285738)
+++ head/lib/libc/gen/syslog.3  Tue Jul 21 09:44:45 2015(r285739)
@@ -28,7 +28,7 @@
 .\ @(#)syslog.3   8.1 (Berkeley) 6/4/93
 .\ $FreeBSD$
 .\
-.Dd December 30, 2004
+.Dd July 21, 2015
 .Dt SYSLOG 3
 .Os
 .Sh NAME
@@ -292,4 +292,4 @@ for later interpolation by
 .Pp
 Always use the proper secure idiom:
 .Pp
-.Dl syslog(%s, string);
+.Dl syslog(priority, %s, string);
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r284434 - head/share/man/man9

2015-06-15 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Jun 15 23:30:54 2015
New Revision: 284434
URL: https://svnweb.freebsd.org/changeset/base/284434

Log:
  Deshallify.

Modified:
  head/share/man/man9/ifnet.9

Modified: head/share/man/man9/ifnet.9
==
--- head/share/man/man9/ifnet.9 Mon Jun 15 22:04:29 2015(r284433)
+++ head/share/man/man9/ifnet.9 Mon Jun 15 23:30:54 2015(r284434)
@@ -1172,7 +1172,7 @@ structure to be the first element in tha
 (A pointer to
 this address structure is saved in the
 .Vt ifnet
-structure and shall be accessed by the
+structure and is accessed by the
 .Fn ifaddr_byindex
 function.)
 The
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r283997 - head/bin/chmod

2015-06-04 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Jun  4 19:18:58 2015
New Revision: 283997
URL: https://svnweb.freebsd.org/changeset/base/283997

Log:
  Change directory permissions in pre-order.
  In this order, it won't try to recurse into a directory for which
  it doesn't have permission, before changing that permission.
  This follows an existing behavior in other BSDs, linux, OS X.
  
  Obtained from:NetBSD

Modified:
  head/bin/chmod/chmod.c

Modified: head/bin/chmod/chmod.c
==
--- head/bin/chmod/chmod.c  Thu Jun  4 19:11:56 2015(r283996)
+++ head/bin/chmod/chmod.c  Thu Jun  4 19:18:58 2015(r283997)
@@ -162,14 +162,16 @@ done: argv += optind;
atflag = AT_SYMLINK_NOFOLLOW;
 
switch (p-fts_info) {
-   case FTS_D: /* Change it at FTS_DP. */
+   case FTS_D:
if (!Rflag)
fts_set(ftsp, p, FTS_SKIP);
-   continue;
+   break;
case FTS_DNR:   /* Warn, chmod. */
warnx(%s: %s, p-fts_path, strerror(p-fts_errno));
rval = 1;
break;
+   case FTS_DP:/* Already changed at FTS_D. */
+   continue;
case FTS_ERR:   /* Warn, continue. */
case FTS_NS:
warnx(%s: %s, p-fts_path, strerror(p-fts_errno));
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r283969 - head/lib/libutil

2015-06-03 Thread Sergey Kandaurov
On 3 June 2015 at 23:48, Baptiste Daroussin b...@freebsd.org wrote:
 Author: bapt
 Date: Wed Jun  3 20:48:28 2015
 New Revision: 283969
 URL: https://svnweb.freebsd.org/changeset/base/283969

 Log:
   Add a pw_mkdb2(3) function which does the same thing as pw_mkdb(3) except
   it takes a new argument allowing to specify the endianness of the database
   to generate


Why not change pw_mkdb()? Is it used outside of the project?

 Modified: head/lib/libutil/pw_util.3
 ==
 --- head/lib/libutil/pw_util.3  Wed Jun  3 20:48:00 2015(r283968)
 +++ head/lib/libutil/pw_util.3  Wed Jun  3 20:48:28 2015(r283969)
 @@ -37,6 +37,7 @@
  .Nm pw_make ,
  .Nm pw_make_v7 ,
  .Nm pw_mkdb ,
 +.Nm pw_mkdb2 ,
  .Nm pw_lock ,
  .Nm pw_scan ,
  .Nm pw_tempname ,
 @@ -66,6 +67,8 @@
  .Ft int
  .Fn pw_mkdb const char *user
  .Ft int
 +.Fn pw_mkdb const char *user int endian

typo there

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r283938 - head

2015-06-03 Thread Sergey Kandaurov
On 3 June 2015 at 09:02, Baptiste Daroussin b...@freebsd.org wrote:
 Author: bapt
 Date: Wed Jun  3 06:02:49 2015
 New Revision: 283938
 URL: https://svnweb.freebsd.org/changeset/base/283938

 Log:
   mandoc's makewhatis requires gnuzip to be in the path when deadling with
   with compressed manpages.


[pluknet@omg] man gnuzip
No manual entry for gnuzip

Looks like a typo in gzip, which is the name for the compressing format
as described in RFC 1952, and of the utility that implements it.

The implementation that is included in base is BSD-licensed and has no
relationship with GNU project.

As from usr.bin/gzip/gzip.c

 * gzip.c -- GPL free gzip using zlib.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r283606 - head/bin/ps

2015-05-27 Thread Sergey Kandaurov
Author: pluknet
Date: Wed May 27 10:08:31 2015
New Revision: 283606
URL: https://svnweb.freebsd.org/changeset/base/283606

Log:
  Document recent p_flag2 additions.

Modified:
  head/bin/ps/ps.1

Modified: head/bin/ps/ps.1
==
--- head/bin/ps/ps.1Wed May 27 09:50:18 2015(r283605)
+++ head/bin/ps/ps.1Wed May 27 10:08:31 2015(r283606)
@@ -29,7 +29,7 @@
 .\ @(#)ps.1   8.3 (Berkeley) 4/18/94
 .\ $FreeBSD$
 .\
-.Dd May 22, 2015
+.Dd May 27, 2015
 .Dt PS 1
 .Os
 .Sh NAME
@@ -350,6 +350,9 @@ the include file
 .In sys/proc.h :
 .Bl -column P2_INHERIT_PROTECTED 0x0001
 .It Dv P2_INHERIT_PROTECTED Ta No 0x0001 Ta New children get 
P_PROTECTED
+.It Dv P2_NOTRACE Ta No 0x0002 Ta No ptrace(2) attach or coredumps
+.It Dv P2_NOTRACE_EXEC Ta No 0x0004 Ta Keep P2_NOPTRACE on exec(2)
+.It Dv P2_AST_SU Ta No 0x0008 Ta Handles SU ast for kthreads
 .El
 .It Cm label
 The MAC label of the process.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r283328 - head/sys/sys

2015-05-23 Thread Sergey Kandaurov
Author: pluknet
Date: Sat May 23 21:04:15 2015
New Revision: 283328
URL: https://svnweb.freebsd.org/changeset/base/283328

Log:
  Update P_TOTAL_STOP commentary.

Modified:
  head/sys/sys/proc.h

Modified: head/sys/sys/proc.h
==
--- head/sys/sys/proc.h Sat May 23 20:54:25 2015(r283327)
+++ head/sys/sys/proc.h Sat May 23 21:04:15 2015(r283328)
@@ -660,7 +660,7 @@ struct proc {
 #defineP_SINGLE_BOUNDARY 0x40 /* Threads should suspend at user 
boundary. */
 #defineP_HWPMC 0x80 /* Process is using HWPMCs */
 #defineP_JAILED0x100 /* Process is in jail. */
-#defineP_TOTAL_STOP0x200 /* Stopped in proc_stop_total. */
+#defineP_TOTAL_STOP0x200 /* Stopped in stop_all_proc. */
 #defineP_INEXEC0x400 /* Process is in execve(). */
 #defineP_STATCHILD 0x800 /* Child process stopped or exited. */
 #defineP_INMEM 0x1000 /* Loaded into memory. */
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r282914 - head/share/vt/keymaps

2015-05-14 Thread Sergey Kandaurov
On 14 May 2015 at 21:09, Ed Maste ema...@freebsd.org wrote:
 Author: emaste
 Date: Thu May 14 18:09:56 2015
 New Revision: 282914
 URL: https://svnweb.freebsd.org/changeset/base/282914

 Log:
   kbdmap(1): Correct menu title: keyboards have a layout, not a language

   MFC after:2 weeks
   Sponsored by: The FreeBSD Foundation
   Differential Revision:https://reviews.freebsd.org/D2545

 Modified:
   head/share/vt/keymaps/INDEX.keymaps


What about syscons?

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r282472 - head/lib/libc/stdlib

2015-05-05 Thread Sergey Kandaurov
Author: pluknet
Date: Tue May  5 10:44:17 2015
New Revision: 282472
URL: https://svnweb.freebsd.org/changeset/base/282472

Log:
  Fix major copy/paste and other style errors.

Modified:
  head/lib/libc/stdlib/reallocarray.3

Modified: head/lib/libc/stdlib/reallocarray.3
==
--- head/lib/libc/stdlib/reallocarray.3 Tue May  5 10:35:29 2015
(r282471)
+++ head/lib/libc/stdlib/reallocarray.3 Tue May  5 10:44:17 2015
(r282472)
@@ -1,6 +1,5 @@
-.\
 .\ Copyright (c) 1980, 1991, 1993
-.\The Regents of the University of California.  All rights reserved.
+.\The Regents of the University of California.  All rights reserved.
 .\
 .\ This code is derived from software contributed to Berkeley by
 .\ the American National Standards Committee X3, on Information
@@ -44,6 +43,9 @@
 .Sh DESCRIPTION
 The
 .Fn reallocarray
+function is similar to the
+.Fn realloc
+function
 except it operates on
 .Fa nmemb
 members of size
@@ -53,8 +55,9 @@ and checks for integer overflow in the c
 *
 .Fa size .
 .Sh RETURN VALUES
+The
 .Fn reallocarray
-return a pointer to the allocated space; otherwise, a
+function returns a pointer to the allocated space; otherwise, a
 .Dv NULL
 pointer is returned and
 .Va errno
@@ -132,6 +135,8 @@ if ((newp = reallocarray(p, num, size)) 
 .Xr realloc 3
 .Sh HISTORY
 The
-.Fn reallocf
+.Fn reallocarray
 function first appeared in
-.Ox 5.6 .
+.Ox 5.6
+and
+.Fx 11.0 .
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r282314 - in head: include lib/libc/stdlib

2015-05-01 Thread Sergey Kandaurov
On 1 May 2015 at 21:32, Baptiste Daroussin b...@freebsd.org wrote:
 Author: bapt
 Date: Fri May  1 18:32:16 2015
 New Revision: 282314
 URL: https://svnweb.freebsd.org/changeset/base/282314

 Log:
   Import reallocarray(3) from OpenBSD

   Add a manpage for it, assign the copyright to the OpenBSD project on it 
 since it
   is mostly copy/paste from OpenBSD manpage.
   style(9) fixes
[..]

 Added: head/lib/libc/stdlib/reallocarray.3
 ==
 --- /dev/null   00:00:00 1970   (empty, because file is newly added)
 +++ head/lib/libc/stdlib/reallocarray.3 Fri May  1 18:32:16 2015
 (r282314)
 @@ -0,0 +1,136 @@
 +.\ Copyright (c) 2015 OpenBSD
 +.\ All rights reserved.

This copyright notice looks suspicious.

 +.\
 +.\ This code is derived from software contributed to Berkeley by
 +.\ the American National Standards Committee X3, on Information
 +.\ Processing Systems.
 +.\
 +.\ Redistribution and use in source and binary forms, with or without
 +.\ modification, are permitted provided that the following conditions
 +.\ are met:
 +.\ 1. Redistributions of source code must retain the above copyright
 +.\notice, this list of conditions and the following disclaimer.
 +.\ 2. Redistributions in binary form must reproduce the above copyright
 +.\notice, this list of conditions and the following disclaimer in the
 +.\documentation and/or other materials provided with the distribution.
 +.\
 +.\ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 +.\ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 +.\ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
 PURPOSE
 +.\ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 +.\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 CONSEQUENTIAL
 +.\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 +.\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 +.\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
 STRICT
 +.\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 +.\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 +.\ SUCH DAMAGE.
 +.\
 +.\ $FreeBSD$
 +.\
 +.Dd May 1, 2015
 +.Dt REALLOCARRAY 3
 +.Os
 +.Sh NAME
 +.Nm reallocarray
 +.Nd memory reallocation function
 +.Sh LIBRARY
 +.Lb libc
 +.Sh SYNOPSIS
 +.In stdlib.h
 +.Ft void *
 +.Fn reallocarray void *ptr size_t nmemb size_t size
 +.Sh DESCRIPTION
 +The
 +.Fn reallocarray
 +except it operates on

This is not parseable.

 +.Fa nmemb
 +members of size
 +.Fa size
 +and checks for integer overflow in the calculation
 +.Fa nmemb
 +*
 +.Fa size .

 +.Sh RETURN VALUES
 +.Fn reallocarray
 +return a pointer to the allocated space; otherwise, a
 +.Dv NULL
 +pointer is returned and
 +.Va errno
 +is set to
 +.Er ENOMEM .
 +.Sh EXAMPLES
 +Consider
 +.Fn reallocarray
 +when there is multiplication in the
 +.Fa size
 +argument of
 +.Fn malloc
 +or
 +.Fn realloc .
 +For example, avoid this common idiom as it may lead to integer overflow:
 +.Bd -literal -offset indent
 +if ((p = malloc(num * size)) == NULL)
 +   err(1, malloc);
 +.Ed
 +.Pp
 +A drop-in replacement is the
 +.Ox
 +extension
 +.Fn reallocarray :
 +.Bd -literal -offset indent
 +if ((p = reallocarray(NULL, num, size)) == NULL)
 +   err(1, reallocarray);
 +.Ed
 +.Pp
 +When using
 +.Fn realloc ,
 +be careful to avoid the following idiom:
 +.Bd -literal -offset indent
 +size += 50;
 +if ((p = realloc(p, size)) == NULL)
 +   return (NULL);
 +.Ed
 +.Pp
 +Do not adjust the variable describing how much memory has been allocated
 +until the allocation has been successful.
 +This can cause aberrant program behavior if the incorrect size value is used.
 +In most cases, the above sample will also result in a leak of memory.
 +As stated earlier, a return value of
 +.Dv NULL
 +indicates that the old object still remains allocated.
 +Better code looks like this:
 +.Bd -literal -offset indent
 +newsize = size + 50;
 +if ((newp = realloc(p, newsize)) == NULL) {
 +   free(p);
 +   p = NULL;
 +   size = 0;
 +   return (NULL);
 +}
 +p = newp;
 +size = newsize;
 +.Ed
 +.Pp
 +As with
 +.Fn malloc ,
 +it is important to ensure the new size value will not overflow;
 +i.e. avoid allocations like the following:
 +.Bd -literal -offset indent
 +if ((newp = realloc(p, num * size)) == NULL) {
 +   ...
 +.Ed
 +.Pp
 +Instead, use
 +.Fn reallocarray :
 +.Bd -literal -offset indent
 +if ((newp = reallocarray(p, num, size)) == NULL) {
 +   ...
 +.Ed
 +.Sh SEE ALSO
 +.Xr realloc 3
 +.Sh HISTORY
 +The
 +.Fn reallocf
 +function first appeared in
 +.Ox 5.6 .

This looks unrelative and untrue.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to 

Re: svn commit: r281922 - head/usr.bin/nfsstat

2015-04-24 Thread Sergey Kandaurov
On 24 April 2015 at 10:58, Edward Tomasz Napierala tr...@freebsd.org wrote:
 Author: trasz
 Date: Fri Apr 24 07:57:59 2015
 New Revision: 281922
 URL: https://svnweb.freebsd.org/changeset/base/281922

 Log:
   Make nfsstat(1) build with WARNS=6.

   Sponsored by: The FreeBSD Foundation

 Modified:
   head/usr.bin/nfsstat/Makefile
   head/usr.bin/nfsstat/nfsstat.c

 Modified: head/usr.bin/nfsstat/Makefile
 ==
 --- head/usr.bin/nfsstat/Makefile   Fri Apr 24 07:52:21 2015
 (r281921)
 +++ head/usr.bin/nfsstat/Makefile   Fri Apr 24 07:57:59 2015
 (r281922)
 @@ -6,6 +6,4 @@ CFLAGS+=-DNFS

  LIBADD=kvm

 -WARNS?=3
 -
  .include bsd.prog.mk

 Modified: head/usr.bin/nfsstat/nfsstat.c
 ==
 --- head/usr.bin/nfsstat/nfsstat.c  Fri Apr 24 07:52:21 2015
 (r281921)
 +++ head/usr.bin/nfsstat/nfsstat.c  Fri Apr 24 07:57:59 2015
 (r281922)
 @@ -70,15 +70,6 @@ static const char rcsid[] =
  #include paths.h
  #include err.h

 -struct nlist nl[] = {
 -#defineN_NFSSTAT   0
 -   { .n_name = nfsstats },
 -#defineN_NFSRVSTAT 1
 -   { .n_name = nfsrvstats },
 -   { .n_name = NULL },
 -};
 -kvm_t *kd;
 -
  static int widemode = 0;
  static int zflag = 0;
  static int printtitle = 1;


Now that nfsstat no longer uses kvm to extract statistics, it could be
further trimmed.
- no longer link with kvm
- un-document -M/-N options but still kept (?) for backward compatibility
- cleanup from the previous sysctl/kvm usage.

Index: Makefile
===
--- Makefile(revision 281924)
+++ Makefile(working copy)
@@ -2,8 +2,5 @@
 # $FreeBSD$

 PROG=  nfsstat
-CFLAGS+=-DNFS

-LIBADD=kvm
-
 .include bsd.prog.mk
Index: nfsstat.1
===
--- nfsstat.1   (revision 281924)
+++ nfsstat.1   (working copy)
@@ -39,8 +39,6 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl cemszW
-.Op Fl M Ar core
-.Op Fl N Ar system
 .Op Fl w Ar wait
 .Sh DESCRIPTION
 The
@@ -60,19 +58,12 @@
 .It Fl e
 Report the extra statistics collected by the NFS client and
 server for NFSv4.
-.It Fl M
-Extract values associated with the name list from the specified core
-instead of the default
-.Pa /dev/kmem .
 .It Fl m
 Report the mount options for all new NFS client mounts.
 This option overrides all others and
 .Nm
 will exit after completing the report.
 This option is only supported by the new NFS client.
-.It Fl N
-Extract the name list from the specified system instead of the default
-.Pa /boot/kernel/kernel .
 .It Fl s
 Only display server side statistics.
 .It Fl W
@@ -92,19 +83,11 @@
 .It Fl z
 Reset statistics after displaying them.
 .El
-.Sh FILES
-.Bl -tag -width .Pa /boot/kernel/kernel -compact
-.It Pa /boot/kernel/kernel
-default kernel namelist
-.It Pa /dev/kmem
-default memory file
-.El
 .Sh SEE ALSO
 .Xr fstat 1 ,
 .Xr netstat 1 ,
 .Xr ps 1 ,
 .Xr systat 1 ,
-.Xr sysctl 3 ,
 .Xr iostat 8 ,
 .Xr nfsdumpstate 8 ,
 .Xr pstat 8 ,
Index: nfsstat.c
===
--- nfsstat.c   (revision 281924)
+++ nfsstat.c   (working copy)
@@ -48,26 +48,16 @@
 #include sys/module.h
 #include sys/mount.h
 #include sys/time.h
-#include sys/sysctl.h
 #include nfs/nfsproto.h
-#include nfsclient/nfs.h
-#include nfsserver/nfs.h
 #include nfs/nfssvc.h

 #include fs/nfs/nfsport.h

-#include signal.h
-#include fcntl.h
-#include ctype.h
 #include errno.h
-#include kvm.h
-#include limits.h
-#include nlist.h
 #include unistd.h
 #include stdio.h
 #include stdlib.h
 #include string.h
-#include paths.h
 #include err.h

 static int widemode = 0;
@@ -93,18 +83,15 @@
int clientOnly = -1;
int serverOnly = -1;
int ch;
-   char *memf, *nlistf;
int mntlen, i;
char buf[1024];
struct statfs *mntbuf;
struct nfscl_dumpmntopts dumpmntopts;

interval = 0;
-   memf = nlistf = NULL;
while ((ch = getopt(argc, argv, cesWM:mN:w:z)) != -1)
switch(ch) {
case 'M':
-   memf = optarg;
break;
case 'm':
/* Display mount options for NFS mount points. */
@@ -128,7 +115,6 @@
}
exit(0);
case 'N':
-   nlistf = optarg;
break;
case 'W':
widemode = 1;
@@ -159,17 +145,6 @@
argc -= optind;
argv += optind;

-#defineBACKWARD_COMPATIBILITY
-#ifdef BACKWARD_COMPATIBILITY
-   if (*argv) {
-   interval = atoi(*argv);
-   if (*++argv) {
-   nlistf = *argv;
-   if (*++argv)
-   

Re: svn commit: r281922 - head/usr.bin/nfsstat

2015-04-24 Thread Sergey Kandaurov
On 24 April 2015 at 15:03, Edward Tomasz Napierala tr...@freebsd.org wrote:
 On 0424T1431, Sergey Kandaurov wrote:
[..]
 @@ -159,17 +145,6 @@
 argc -= optind;
 argv += optind;

 -#defineBACKWARD_COMPATIBILITY
 -#ifdef BACKWARD_COMPATIBILITY
 -   if (*argv) {
 -   interval = atoi(*argv);
 -   if (*++argv) {
 -   nlistf = *argv;
 -   if (*++argv)
 -   memf = *argv;
 -   }
 -   }
 -#endif

 Doesn't this chunk break usage like nfsstat 1?


Sure, thanks.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r281847 - stable/10/sys/kern

2015-04-22 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Apr 22 10:25:08 2015
New Revision: 281847
URL: https://svnweb.freebsd.org/changeset/base/281847

Log:
  Fix r281843 mis-merge.
  
  Reported by:  Thomas Mueller tmueller at sysgo com

Modified:
  stable/10/sys/kern/init_main.c

Modified: stable/10/sys/kern/init_main.c
==
--- stable/10/sys/kern/init_main.c  Wed Apr 22 09:52:51 2015
(r281846)
+++ stable/10/sys/kern/init_main.c  Wed Apr 22 10:25:08 2015
(r281847)
@@ -708,7 +708,7 @@ start_init(void *dummy)
vfs_mountroot();
 
/* Wipe GELI passphrase from the environment. */
-   kern_unsetenv(kern.geom.eli.passphrase);
+   unsetenv(kern.geom.eli.passphrase);
 
/*
 * Need just enough stack to hold the faked-up execve() arguments.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r281730 - stable/10/share/man/man4

2015-04-19 Thread Sergey Kandaurov
Author: pluknet
Date: Sun Apr 19 07:49:39 2015
New Revision: 281730
URL: https://svnweb.freebsd.org/changeset/base/281730

Log:
  MFC r280688 (by ru):
  
  Corrected descriptions of net.inet.icmp.icmplim and icmplim_output.

Modified:
  stable/10/share/man/man4/icmp.4
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/share/man/man4/icmp.4
==
--- stable/10/share/man/man4/icmp.4 Sun Apr 19 07:46:32 2015
(r281729)
+++ stable/10/share/man/man4/icmp.4 Sun Apr 19 07:49:39 2015
(r281730)
@@ -32,7 +32,7 @@
 .\ @(#)icmp.4 8.1 (Berkeley) 6/5/93
 .\ $FreeBSD$
 .\
-.Dd September 30, 2014
+.Dd March 26, 2015
 .Dt ICMP 4
 .Os
 .Sh NAME
@@ -181,13 +181,11 @@ Defaults to 0.
 .It Va icmplim
 .Pq Vt integer
 Bandwidth limit for ICMP replies in packets/second.
-Used when
-.Va icmplim_output
-is non-zero.
+If set to zero, no limiting will occur.
 Defaults to 200.
 .It Va icmplim_output
 .Pq Vt boolean
-Enable/disable bandwidth limiting of ICMP replies.
+Enable/disable logging of ICMP replies bandwidth limiting.
 Defaults to true.
 .It Va drop_redirect
 .Pq Vt boolean
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r281729 - stable/10/lib/libc/sys

2015-04-19 Thread Sergey Kandaurov
Author: pluknet
Date: Sun Apr 19 07:46:32 2015
New Revision: 281729
URL: https://svnweb.freebsd.org/changeset/base/281729

Log:
  MFC r274933 (by bapt), r281470:
  
  r274933 - Ta is only allowed with Bl -column not in Bl -item
  r281470 - Remove obsolete bits about maximum number of file systems.

Modified:
  stable/10/lib/libc/sys/mount.2
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/sys/mount.2
==
--- stable/10/lib/libc/sys/mount.2  Sun Apr 19 07:35:18 2015
(r281728)
+++ stable/10/lib/libc/sys/mount.2  Sun Apr 19 07:46:32 2015
(r281729)
@@ -28,7 +28,7 @@
 .\ @(#)mount.28.3 (Berkeley) 5/24/95
 .\ $FreeBSD$
 .\
-.Dd January 26, 2010
+.Dd April 13, 2015
 .Dt MOUNT 2
 .Os
 .Sh NAME
@@ -86,7 +86,7 @@ containing
 .Fa niov
 elements.
 The following options are required by all file systems:
-.Bl -item -offset indent -compact
+.Bl -column fstype -offset indent
 .It
 .Li fstype Ta file system type name (e.g., Dq Li procfs )
 .It
@@ -351,11 +351,6 @@ The
 argument
 points outside the process's allocated address space.
 .El
-.Pp
-A
-.Em ufs
-mount can also fail if the maximum number of file systems are currently
-mounted.
 .Sh SEE ALSO
 .Xr lsvfs 1 ,
 .Xr mksnap_ffs 8 ,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r281734 - head/usr.sbin/inetd

2015-04-19 Thread Sergey Kandaurov
On 19 April 2015 at 12:07, Eitan Adler ead...@freebsd.org wrote:
 Author: eadler
 Date: Sun Apr 19 09:07:57 2015
 New Revision: 281734
 URL: https://svnweb.freebsd.org/changeset/base/281734

 Log:
   identd: remove redundant zeroing
 se_rpc_lowvers was set to 0 twice, so remove one of them
 I can not find any other variable which they may have been a typo of.

   Reported by:  gcc5.1

 Modified:
   head/usr.sbin/inetd/inetd.c

 Modified: head/usr.sbin/inetd/inetd.c
 ==
 --- head/usr.sbin/inetd/inetd.c Sun Apr 19 08:45:37 2015(r281733)
 +++ head/usr.sbin/inetd/inetd.c Sun Apr 19 09:07:57 2015(r281734)
 @@ -1752,8 +1752,7 @@ more:
  memmove(sep-se_proto, sep-se_proto + 4,
  strlen(sep-se_proto) + 1 - 4);
  sep-se_rpc = 1;
 -sep-se_rpc_prog = sep-se_rpc_lowvers =
 -   sep-se_rpc_lowvers = 0;
 +sep-se_rpc_prog = sep-se_rpc_lowvers = 0;
 memcpy(sep-se_ctrladdr4, bind_sa4,
sizeof(sep-se_ctrladdr4));
  if ((versp = strrchr(sep-se_service, '/'))) {


se_rpc_highvers ?
They both seem to be used prezeroed in a later sscanf().

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r281470 - head/lib/libc/sys

2015-04-12 Thread Sergey Kandaurov
Author: pluknet
Date: Sun Apr 12 21:14:58 2015
New Revision: 281470
URL: https://svnweb.freebsd.org/changeset/base/281470

Log:
  Remove obsolete bits about maximum number of file systems.
  NMOUNT has gone together with static mount table in 4.3BSD-Reno.
  
  MFC after:1 week

Modified:
  head/lib/libc/sys/mount.2

Modified: head/lib/libc/sys/mount.2
==
--- head/lib/libc/sys/mount.2   Sun Apr 12 16:43:55 2015(r281469)
+++ head/lib/libc/sys/mount.2   Sun Apr 12 21:14:58 2015(r281470)
@@ -28,7 +28,7 @@
 .\ @(#)mount.28.3 (Berkeley) 5/24/95
 .\ $FreeBSD$
 .\
-.Dd January 26, 2010
+.Dd April 13, 2015
 .Dt MOUNT 2
 .Os
 .Sh NAME
@@ -351,11 +351,6 @@ The
 argument
 points outside the process's allocated address space.
 .El
-.Pp
-A
-.Em ufs
-mount can also fail if the maximum number of file systems are currently
-mounted.
 .Sh SEE ALSO
 .Xr lsvfs 1 ,
 .Xr mksnap_ffs 8 ,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r281086 - head/sys/kern

2015-04-04 Thread Sergey Kandaurov
On 5 April 2015 at 00:47, Jilles Tjoelker jil...@freebsd.org wrote:
 Author: jilles
 Date: Sat Apr  4 21:47:54 2015
 New Revision: 281086
 URL: https://svnweb.freebsd.org/changeset/base/281086

 Log:
   utimensat: Correct Capsicum required capability rights.

 Modified:
   head/sys/kern/vfs_syscalls.c

 Modified: head/sys/kern/vfs_syscalls.c
 ==
 --- head/sys/kern/vfs_syscalls.cSat Apr  4 21:34:26 2015
 (r281085)
 +++ head/sys/kern/vfs_syscalls.cSat Apr  4 21:47:54 2015
 (r281086)
 @@ -3294,6 +3294,7 @@ kern_utimensat(struct thread *td, int fd
  {
 struct nameidata nd;
 struct timespec ts[2];
 +   cap_rights_t rights;
 int error, flags;

 if (flag  ~AT_SYMLINK_NOFOLLOW)
 @@ -3301,8 +3302,9 @@ kern_utimensat(struct thread *td, int fd

 if ((error = getutimens(tptr, tptrseg, ts, flags)) != 0)
 return (error);
 -   NDINIT_AT(nd, LOOKUP, ((flag  AT_SYMLINK_NOFOLLOW) ? NOFOLLOW :
 -   FOLLOW) | AUDITVNODE1, pathseg, path, fd, td);
 +   NDINIT_ATRIGHTS(nd, LOOKUP, ((flag  AT_SYMLINK_NOFOLLOW) ? NOFOLLOW 
 :
 +   FOLLOW) | AUDITVNODE1, pathseg, path, fd,
 +   cap_rights_init(rights, CAP_FUTIMES), td);
 if ((error = namei(nd)) != 0)
 return (error);
 /*


What about kern_lutimes()?
It seems it needs CAP_FUTIMES as well due its path argument.

-- 
wbr,
pluknets
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r280690 - head/sys/netpfil/pf

2015-03-26 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Mar 26 13:31:04 2015
New Revision: 280690
URL: https://svnweb.freebsd.org/changeset/base/280690

Log:
  Static'ize pf_fillup_fragment body to match its declaration.
  
  Missed in 278925.

Modified:
  head/sys/netpfil/pf/pf_norm.c

Modified: head/sys/netpfil/pf/pf_norm.c
==
--- head/sys/netpfil/pf/pf_norm.c   Thu Mar 26 12:58:30 2015
(r280689)
+++ head/sys/netpfil/pf/pf_norm.c   Thu Mar 26 13:31:04 2015
(r280690)
@@ -386,7 +386,7 @@ pf_create_fragment(u_short *reason)
return (frent);
 }
 
-struct pf_fragment *
+static struct pf_fragment *
 pf_fillup_fragment(struct pf_fragment_cmp *key, struct pf_frent *frent,
u_short *reason)
 {
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r279699 - in head/sys: amd64/amd64 i386/i386

2015-03-06 Thread Sergey Kandaurov
On 6 March 2015 at 23:34, John Baldwin j...@freebsd.org wrote:
 Author: jhb
 Date: Fri Mar  6 20:34:28 2015
 New Revision: 279699
 URL: https://svnweb.freebsd.org/changeset/base/279699

 Log:
   Only schedule interrupts on a single hyperthread of a modern Intel CPU core
   by default.  Previously we used a single hyperthread on Pentium4-era
   cores but used both hyperthreads on more recent CPUs.

   MFC after:2 weeks

 Modified:
   head/sys/amd64/amd64/mp_machdep.c
   head/sys/i386/i386/mp_machdep.c

 Modified: head/sys/amd64/amd64/mp_machdep.c
 ==
 --- head/sys/amd64/amd64/mp_machdep.c   Fri Mar  6 16:43:54 2015
 (r279698)
 +++ head/sys/amd64/amd64/mp_machdep.c   Fri Mar  6 20:34:28 2015
 (r279699)
 @@ -828,8 +828,8 @@ set_interrupt_apic_ids(void)
 continue;

 /* Don't let hyperthreads service interrupts. */
 -   if (hyperthreading_cpus  1 
 -   apic_id % hyperthreading_cpus != 0)
 +   if (cpu_logical  1 
 +   apic_id % cpu_logical != 0)
 continue;

 intr_add_cpu(i);

 Modified: head/sys/i386/i386/mp_machdep.c
 ==
 --- head/sys/i386/i386/mp_machdep.c Fri Mar  6 16:43:54 2015
 (r279698)
 +++ head/sys/i386/i386/mp_machdep.c Fri Mar  6 20:34:28 2015
 (r279699)
 @@ -842,8 +842,8 @@ set_interrupt_apic_ids(void)
 continue;

 /* Don't let hyperthreads service interrupts. */
 -   if (hyperthreading_cpus  1 
 -   apic_id % hyperthreading_cpus != 0)
 +   if (cpu_logical  1 
 +   apic_id % cpu_logical != 0)
 continue;

 intr_add_cpu(i);


There are another two similar cases at sys/i386/xen/mp_machdep.c
Both look like a no-op: static global never gets written data,
the condition is never satisfied.
I guess these variables can be safely reduced for clarity there:
hyperthreading_cpus, hyperthreading_cpus_mask under i386/xen.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r279568 - head/usr.sbin/syslogd

2015-03-03 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Mar  3 20:23:59 2015
New Revision: 279568
URL: https://svnweb.freebsd.org/changeset/base/279568

Log:
  Update .Dd, sync usage() for -F.  Missed in previous change.

Modified:
  head/usr.sbin/syslogd/syslogd.8
  head/usr.sbin/syslogd/syslogd.c

Modified: head/usr.sbin/syslogd/syslogd.8
==
--- head/usr.sbin/syslogd/syslogd.8 Tue Mar  3 20:07:59 2015
(r279567)
+++ head/usr.sbin/syslogd/syslogd.8 Tue Mar  3 20:23:59 2015
(r279568)
@@ -28,7 +28,7 @@
 .\ @(#)syslogd.8  8.1 (Berkeley) 6/6/93
 .\ $FreeBSD$
 .\
-.Dd May 13, 2008
+.Dd March 3, 2015
 .Dt SYSLOGD 8
 .Os
 .Sh NAME

Modified: head/usr.sbin/syslogd/syslogd.c
==
--- head/usr.sbin/syslogd/syslogd.c Tue Mar  3 20:07:59 2015
(r279567)
+++ head/usr.sbin/syslogd/syslogd.c Tue Mar  3 20:23:59 2015
(r279568)
@@ -718,7 +718,7 @@ usage(void)
 {
 
fprintf(stderr, %s\n%s\n%s\n%s\n,
-   usage: syslogd [-468ACcdknosTuv] [-a allowed_peer],
+   usage: syslogd [-468ACcdFknosTuv] [-a allowed_peer],
   [-b bind_address] [-f config_file],
   [-l [mode:]path] [-m mark_interval],
   [-P pid_file] [-p log_socket]);
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r279201 - stable/10/usr.bin/kdump

2015-02-23 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Feb 23 08:45:42 2015
New Revision: 279201
URL: https://svnweb.freebsd.org/changeset/base/279201

Log:
  MFC r278857:
 kdump: sendfile(2) flags argument needs casting on 64-bit platforms.
  
  Sponsored by: Nginx, Inc.

Modified:
  stable/10/usr.bin/kdump/kdump.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/kdump/kdump.c
==
--- stable/10/usr.bin/kdump/kdump.c Mon Feb 23 07:35:27 2015
(r279200)
+++ stable/10/usr.bin/kdump/kdump.c Mon Feb 23 08:45:42 2015
(r279201)
@@ -1076,7 +1076,7 @@ ktrsyscall(struct ktr_syscall *ktr, u_in
print_number(ip, narg, c);
print_number(ip, narg, c);
putchar(',');
-   sendfileflagsname(*ip);
+   sendfileflagsname(*(int *)ip);
ip++;
narg--;
break;
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r278831 - head/sys/netpfil/pf

2015-02-17 Thread Sergey Kandaurov
On 17 February 2015 at 20:31, John-Mark Gurney j...@funkthat.com wrote:
 Gleb Smirnoff wrote this message on Mon, Feb 16, 2015 at 03:38 +:
 Author: glebius
 Date: Mon Feb 16 03:38:27 2015
 New Revision: 278831
 URL: https://svnweb.freebsd.org/changeset/base/278831

 Log:
   Update the pf fragment handling code to closer match recent OpenBSD.
   That partially fixes IPv6 fragment handling. Thanks to Kristof for
   working on that.

   Submitted by:   Kristof Provost
   Tested by:  peter
   Differential Revision:  D1765

 Looks like pf_flush_fragments still called in !INET case, though only
 defined for INET case:
 /scratch/tmp/jmg/src.head/sys/modules/pf/../../netpfil/pf/pf_norm.c:385:3: 
 error: implicit declaration of function 'pf_flush_fragments' is invalid in 
 C99 [-Werror,-Wimplicit-function-declaration]
 pf_flush_fragments();

 when compiling LINT-NOINET kernel..

With the changes attached I got all three kernels with both cc compiled
(tested on MINI w/ MODULES_OVERRIDE=pf). Basically,
- pf_flush_fragments is improperly INET-only
- pf_find_fragment is properly declared, but its body is under INET
- pf_refragment6 / pf_reassemble6 are properly under INET6,
  which is also under INET (the latter is wrong).
- bonus: some functions may be / were static'ized.

-- 
wbr,
pluknet
Index: sys/netpfil/pf/pf_norm.c
===
--- sys/netpfil/pf/pf_norm.c(revision 278917)
+++ sys/netpfil/pf/pf_norm.c(working copy)
@@ -138,17 +138,17 @@ static void   pf_free_fragment(struct pf_fragment *)
 static voidpf_remove_fragment(struct pf_fragment *);
 static int pf_normalize_tcpopt(struct pf_rule *, struct mbuf *,
struct tcphdr *, int, sa_family_t);
-struct pf_frent*pf_create_fragment(u_short *);
+static struct pf_frent *pf_create_fragment(u_short *);
 static struct pf_fragment *
pf_find_fragment(struct pf_fragment_cmp *key,
struct pf_frag_tree *tree);
 static struct pf_fragment *
pf_fillup_fragment(struct pf_fragment_cmp *, struct pf_frent *, 
u_short *);
 static int pf_isfull_fragment(struct pf_fragment *);
-struct mbuf*pf_join_fragment(struct pf_fragment *);
+static struct mbuf *pf_join_fragment(struct pf_fragment *);
+static voidpf_flush_fragments(void);
 #ifdef INET
 static voidpf_scrub_ip(struct mbuf **, uint32_t, uint8_t, uint8_t);
-static voidpf_flush_fragments(void);
 static int pf_reassemble(struct mbuf **, struct ip *, int, u_short *);
 static struct mbuf *
pf_fragcache(struct mbuf **, struct ip*, struct pf_fragment **,
@@ -267,7 +267,6 @@ pf_purge_expired_fragments(void)
PF_FRAG_UNLOCK();
 }
 
-#ifdef INET
 /*
  * Try to flush old fragments to make space for new ones
  */
@@ -292,7 +291,6 @@ pf_flush_fragments(void)
break;
}
 }
-#endif /* INET */
 
 /* Frees the fragments and all associated entries */
 static void
@@ -329,7 +327,6 @@ pf_free_fragment(struct pf_fragment *frag)
pf_remove_fragment(frag);
 }
 
-#ifdef INET
 static struct pf_fragment *
 pf_find_fragment(struct pf_fragment_cmp *key, struct pf_frag_tree *tree)
 {
@@ -352,10 +349,8 @@ pf_find_fragment(struct pf_fragment_cmp *key, stru
 
return (frag);
 }
-#endif /* INET */
 
 /* Removes a fragment from the fragment queue and frees the fragment */
-
 static void
 pf_remove_fragment(struct pf_fragment *frag)
 {
@@ -373,7 +368,7 @@ pf_remove_fragment(struct pf_fragment *frag)
}
 }
 
-struct pf_frent *
+static struct pf_frent *
 pf_create_fragment(u_short *reason)
 {
struct pf_frent *frent;
@@ -393,7 +388,7 @@ pf_create_fragment(u_short *reason)
return (frent);
 }
 
-struct pf_fragment *
+static struct pf_fragment *
 pf_fillup_fragment(struct pf_fragment_cmp *key, struct pf_frent *frent,
u_short *reason)
 {
@@ -570,7 +565,7 @@ pf_isfull_fragment(struct pf_fragment *frag)
return (1);
 }
 
-struct mbuf *
+static struct mbuf *
 pf_join_fragment(struct pf_fragment *frag)
 {
struct mbuf *m, *m2;
@@ -666,6 +661,7 @@ pf_reassemble(struct mbuf **m0, struct ip *ip, int
DPFPRINTF((complete: %p(%d)\n, m, ntohs(ip-ip_len)));
return (PF_PASS);
 }
+#endif /* INET */
 
 #ifdef INET6
 static int
@@ -789,6 +785,7 @@ fail:
 }
 #endif /* INET6 */
 
+#ifdef INET
 static struct mbuf *
 pf_fragcache(struct mbuf **m0, struct ip *h, struct pf_fragment **frag, int 
mff,
 int drop, int *nomem)
@@ -1090,6 +1087,7 @@ pf_fragcache(struct mbuf **m0, struct ip *h, struc
m_freem(m);
return (NULL);
 }
+#endif /* INET */
 
 #ifdef INET6
 int
@@ -1162,6 +1160,7 @@ pf_refragment6(struct ifnet *ifp, struct mbuf **m0
 }
 #endif /* INET6 */
 
+#ifdef INET
 int
 pf_normalize_ip(struct mbuf **m0, int dir, struct pfi_kif *kif, u_short 
*reason,
 struct pf_pdesc *pd)

svn commit: r278857 - head/usr.bin/kdump

2015-02-16 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Feb 16 17:19:28 2015
New Revision: 278857
URL: https://svnweb.freebsd.org/changeset/base/278857

Log:
  kdump: sendfile(2) flags argument needs casting on 64-bit platforms.
  
  MFC after:1 week
  Sponsored by: Nginx, Inc.

Modified:
  head/usr.bin/kdump/kdump.c

Modified: head/usr.bin/kdump/kdump.c
==
--- head/usr.bin/kdump/kdump.c  Mon Feb 16 17:05:59 2015(r278856)
+++ head/usr.bin/kdump/kdump.c  Mon Feb 16 17:19:28 2015(r278857)
@@ -1155,7 +1155,7 @@ ktrsyscall(struct ktr_syscall *ktr, u_in
print_number(ip, narg, c);
print_number(ip, narg, c);
putchar(',');
-   sendfileflagsname(*ip);
+   sendfileflagsname(*(int *)ip);
ip++;
narg--;
break;
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r278831 - head/sys/netpfil/pf

2015-02-16 Thread Sergey Kandaurov
On 16 February 2015 at 06:38, Gleb Smirnoff gleb...@freebsd.org wrote:
 Author: glebius
 Date: Mon Feb 16 03:38:27 2015
 New Revision: 278831
 URL: https://svnweb.freebsd.org/changeset/base/278831

 Log:
   Update the pf fragment handling code to closer match recent OpenBSD.
   That partially fixes IPv6 fragment handling. Thanks to Kristof for
   working on that.

[...]

 @@ -125,15 +140,25 @@ static voidpf_remove_fragment(struct
  static int  pf_normalize_tcpopt(struct pf_rule *, struct mbuf *,
 struct tcphdr *, int, sa_family_t);
  #ifdef INET
 -static void pf_ip2key(struct pf_fragment *, struct ip *);
It's still called under #ifdef INET only.

[...]
 @@ -145,6 +170,18 @@ static void pf_scrub_ip6(struct mbuf *
 }   \
  } while(0)

 +static void
 +pf_ip2key(struct ip *ip, int dir, struct pf_fragment_cmp *key)
 +{
 +
 +   key-frc_src.v4 = ip-ip_src;
 +   key-frc_dst.v4 = ip-ip_dst;
 +   key-frc_af = AF_INET;
 +   key-frc_proto = ip-ip_p;
 +   key-frc_id = ip-ip_id;
 +   key-frc_direction = dir;
 +}
 +
  void
  pf_normalize_init(void)
  {
[...]

 @@ -296,26 +331,14 @@ pf_free_fragment(struct pf_fragment *fra
  }

  #ifdef INET
 -static void
 -pf_ip2key(struct pf_fragment *key, struct ip *ip)
 -{
 -   key-fr_p = ip-ip_p;
 -   key-fr_id = ip-ip_id;
 -   key-fr_src.s_addr = ip-ip_src.s_addr;
 -   key-fr_dst.s_addr = ip-ip_dst.s_addr;
 -}
 -

You seem to move pf_ip2key out of INET scope intentionally (why?).
But this breaks gcc w/INET6 only kernel.

netpfil/pf/pf_norm.c:176: warning: 'pf_ip2key' defined but not used

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r277694 - head/sys/amd64/conf

2015-01-25 Thread Sergey Kandaurov
On 25 January 2015 at 15:02, Dag-Erling Smørgrav d...@freebsd.org wrote:
 Author: des
 Date: Sun Jan 25 12:02:38 2015
 New Revision: 277694
 URL: https://svnweb.freebsd.org/changeset/base/277694

 Log:
   Remove ISA NICs.  Anyone still using these on amd64 can build their
   own kernel.

 Modified:
   head/sys/amd64/conf/GENERIC


If so, what about i386? (I'd rather not pc98)
What about device isa in DEFAULTS?

 Modified: head/sys/amd64/conf/GENERIC
 ==
 --- head/sys/amd64/conf/GENERIC Sun Jan 25 11:57:18 2015(r277693)
 +++ head/sys/amd64/conf/GENERIC Sun Jan 25 12:02:38 2015(r277694)
 @@ -260,16 +260,6 @@ device vr  # VIA Rhine, 
 Rhine II
  device wb  # Winbond W89C840F
  device xl  # 3Com 3c90x (``Boomerang'', 
 ``Cyclone'')

 -# ISA Ethernet NICs.  pccard NICs included.
 -device cs  # Crystal Semiconductor CS89x0 NIC
 -# 'device ed' requires 'device miibus'
 -device ed  # NE[12]000, SMC Ultra, 3c503, DS8390 
 cards
 -device ex  # Intel EtherExpress Pro/10 and 
 Pro/10+
 -device ep  # Etherlink III based cards
 -device fe  # Fujitsu MB8696x based cards
 -device sn  # SMC's 9000 series of Ethernet chips
 -device xe  # Xircom pccard Ethernet
 -
  # Wireless NIC cards
  device wlan# 802.11 support
  optionsIEEE80211_DEBUG # enable debug msgs


-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r275044 - head/lib/libc/net

2014-11-25 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Nov 25 15:09:34 2014
New Revision: 275044
URL: https://svnweb.freebsd.org/changeset/base/275044

Log:
  Fix ifa_data description.
  
  PR:   176583
  Discussed with:   glebius
  MFC after:1 week
  Sponsored by: Nginx, Inc.

Modified:
  head/lib/libc/net/getifaddrs.3

Modified: head/lib/libc/net/getifaddrs.3
==
--- head/lib/libc/net/getifaddrs.3  Tue Nov 25 14:40:38 2014
(r275043)
+++ head/lib/libc/net/getifaddrs.3  Tue Nov 25 15:09:34 2014
(r275044)
@@ -24,7 +24,7 @@
 .\
 .\ $FreeBSD$
 .\
-.Dd May 21, 2013
+.Dd November 25, 2014
 .Dt GETIFADDRS 3
 .Os
 .Sh NAME
@@ -110,19 +110,17 @@ if one exists, otherwise it is NULL.
 .Pp
 The
 .Li ifa_data
-field references address family specific data.
-For
-.Dv AF_LINK
-addresses it contains a pointer to the
+field references address family specific data
+in a pointer to the
 .Fa struct if_data
 (as defined in include file
-.In net/if.h )
-which contains various interface attributes and statistics.
-For all other address families, it contains a pointer to the
-.Fa struct ifa_data
-(as defined in include file
-.In net/if.h )
-which contains per-address interface statistics.
+.In net/if.h ) .
+For
+.Dv AF_LINK
+addresses,
+it contains various interface attributes and statistics.
+For all other address families,
+it contains per-address interface statistics.
 .Pp
 The data returned by
 .Fn getifaddrs
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r274494 - head/sys/kern

2014-11-14 Thread Sergey Kandaurov
On 14 November 2014 09:02, Gleb Smirnoff gleb...@freebsd.org wrote:
 Author: glebius
 Date: Fri Nov 14 06:02:29 2014
 New Revision: 274494
 URL: https://svnweb.freebsd.org/changeset/base/274494

 Log:
   There should not be zero length mbufs in socket buffers.  The code comes
   from r1451, and thus can't be explained.  A patch with explicit panic()
   here survived all tests.


For the record, the original commit says:
probably unnecessary now.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r273861 - head/sbin/mount_nfs

2014-10-30 Thread Sergey Kandaurov
On 30 October 2014 17:05, Edward Tomasz Napierala tr...@freebsd.org wrote:
 Author: trasz
 Date: Thu Oct 30 14:05:48 2014
 New Revision: 273861
 URL: https://svnweb.freebsd.org/changeset/base/273861

 Log:
   Remove two functions unused after r273848.  Would be nice if clang
   or at least scan-build yelled about it.

It does but with WARNS=3, -Wunused-function is disabled.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r273815 - stable/10/contrib/pf/authpf

2014-10-29 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Oct 29 09:32:36 2014
New Revision: 273815
URL: https://svnweb.freebsd.org/changeset/base/273815

Log:
  MFC r261271:
  
Ressurect the local change documenting
authpf's requirement for a mounted fdescfs(5).
  
  PR:   docs/186250

Modified:
  stable/10/contrib/pf/authpf/authpf.8
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/pf/authpf/authpf.8
==
--- stable/10/contrib/pf/authpf/authpf.8Wed Oct 29 09:27:24 2014
(r273814)
+++ stable/10/contrib/pf/authpf/authpf.8Wed Oct 29 09:32:36 2014
(r273815)
@@ -15,7 +15,7 @@
 .\ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 .\ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\
-.Dd January 6 2009
+.Dd January 29 2014
 .Dt AUTHPF 8
 .Os
 .Sh NAME
@@ -43,7 +43,11 @@ It is meant to be used with users who ca
 .Xr ssh 1
 only, and requires the
 .Xr pf 4
-subsystem to be enabled.
+subsystem and an
+.Xr fdescfs 5
+file system mounted at
+.Pa /dev/fd
+to be enabled.
 .Pp
 .Nm authpf-noip
 is a user shell
@@ -558,6 +562,7 @@ pass out on $internal_if from (self) to 
 .El
 .Sh SEE ALSO
 .Xr pf 4 ,
+.Xr fdescfs 5 ,
 .Xr pf.conf 5 ,
 .Xr securelevel 7 ,
 .Xr ftp-proxy 8
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r273333 - head/share/misc

2014-10-20 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Oct 20 15:41:11 2014
New Revision: 27
URL: https://svnweb.freebsd.org/changeset/base/27

Log:
  Mac OS X 10.10 added.

Modified:
  head/share/misc/bsd-family-tree

Modified: head/share/misc/bsd-family-tree
==
--- head/share/misc/bsd-family-tree Mon Oct 20 14:48:20 2014
(r273332)
+++ head/share/misc/bsd-family-tree Mon Oct 20 15:41:11 2014
(r27)
@@ -315,6 +315,8 @@ FreeBSD 5.2   |  |  
  |  FreeBSD   |  | |   |
  |9.3 |  | |   |
  ||  | |   DragonFly 3.8.2
+ | Mac OS X  | |   |
+ |   10.10   | |   |
  ||  | |   |
  ||  | |   |
  ||  | |   |
@@ -653,6 +655,7 @@ DragonFly 3.8.1 2014-06-16 [DFB]
 DragonFly 3.6.32014-06-17 [DFB]
 FreeBSD 9.32014-07-05 [FBD]
 DragonFly 3.8.22014-08-08 [DFB]
+Mac OS X 10.10 2014-10-16 [APL]
 
 Bibliography
 
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r272171 - head/share/man/man4

2014-09-26 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Sep 26 11:13:19 2014
New Revision: 272171
URL: http://svnweb.freebsd.org/changeset/base/272171

Log:
  Add smsc(4) to the list of drivers use the miibus interface.
  
  X-MFC with:   r272165
  Sponsored by: Nginx, Inc.

Modified:
  head/share/man/man4/miibus.4
  head/share/man/man4/smsc.4

Modified: head/share/man/man4/miibus.4
==
--- head/share/man/man4/miibus.4Fri Sep 26 11:01:04 2014
(r272170)
+++ head/share/man/man4/miibus.4Fri Sep 26 11:13:19 2014
(r272171)
@@ -8,7 +8,7 @@
 .\
 .\ $FreeBSD$
 .\
-.Dd January 15, 2011
+.Dd September 26, 2014
 .Dt MIIBUS 4
 .Os
 .Sh NAME
@@ -103,6 +103,8 @@ Silicon Integrated Systems SiS190/191 Et
 Silicon Integrated Systems SiS 900/SiS 7016
 .It Xr sk 4
 SysKonnect SK-984x and SK-982x Gigabit Ethernet
+.It Xr smsc 4
+SMSC LAN9xxx USB Fast Ethernet
 .It Xr ste 4
 Sundance ST201 (D-Link DFE-550TX)
 .It Xr stge 4
@@ -166,6 +168,7 @@ but as a result are not well behaved new
 .Xr sge 4 ,
 .Xr sis 4 ,
 .Xr sk 4 ,
+.Xr smsc 4 ,
 .Xr ste 4 ,
 .Xr stge 4 ,
 .Xr tl 4 ,

Modified: head/share/man/man4/smsc.4
==
--- head/share/man/man4/smsc.4  Fri Sep 26 11:01:04 2014(r272170)
+++ head/share/man/man4/smsc.4  Fri Sep 26 11:13:19 2014(r272171)
@@ -47,6 +47,7 @@ following lines in your kernel configura
 .Cd device uhci
 .Cd device ohci
 .Cd device usb
+.Cd device miibus
 .Cd device smsc
 .Ed
 .Sh DESCRIPTION
@@ -73,6 +74,7 @@ SMSC LAN951x Ethernet adapters with inte
 .Sh SEE ALSO
 .Xr arp 4 ,
 .Xr intro 4 ,
+.Xr miibus 4 ,
 .Xr netintro 4 ,
 .Xr usb 4 ,
 .Xr ifconfig 8
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r272153 - head/lib/libthr

2014-09-25 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Sep 26 04:33:27 2014
New Revision: 272153
URL: http://svnweb.freebsd.org/changeset/base/272153

Log:
  Fix description of mutex acquisition.
  
  Reviewed by:  kib
  X-MFC with:   r272070
  Sponsored by: Nginx, Inc.

Modified:
  head/lib/libthr/libthr.3

Modified: head/lib/libthr/libthr.3
==
--- head/lib/libthr/libthr.3Fri Sep 26 03:03:58 2014(r272152)
+++ head/lib/libthr/libthr.3Fri Sep 26 04:33:27 2014(r272153)
@@ -29,7 +29,7 @@
 .\
 .\ $FreeBSD$
 .\
-.Dd September 20, 2014
+.Dd September 26, 2014
 .Dt LIBTHR 3
 .Os
 .Sh NAME
@@ -85,8 +85,14 @@ owning the lock.
 .Nm
 performs a contested mutex acquisition in three stages, each of which
 is more resource-consuming than the previous.
+The first two stages are only applied for a mutex of
+.Dv PTHREAD_MUTEX_ADAPTIVE_NP
+type and
+.Dv PTHREAD_PRIO_NONE
+protocol (see
+.Xr pthread_mutexattr 3 ) .
 .Pp
-First, a spin loop
+First, on SMP systems, a spin loop
 is performed, where the library attempts to acquire the lock by
 .Xr atomic 9
 operations.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r270812 - stable/6/share/zoneinfo

2014-08-29 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Aug 29 13:22:56 2014
New Revision: 270812
URL: http://svnweb.freebsd.org/changeset/base/270812

Log:
  MFC r270728, tzdata2014f
  
  - Parts of Russia will change times on 2014-10-26.
  - Time zone name changes for Asia/Novokuznetsk and Xinjiang and Samoa
and America/Metlakatla, new zones Asia/Chita and Asia/Srednekolymsk.
  - Australia will now use Axxx.
  - New zone tab data format.
  
  And lots of historical changes (See
  http://mm.icann.org/pipermail/tz-announce/2014-August/23.html
  for the full details.)

Added:
  stable/6/share/zoneinfo/zone1970.tab
 - copied unchanged from r270728, head/contrib/tzdata/zone1970.tab
Modified:
  stable/6/share/zoneinfo/africa
  stable/6/share/zoneinfo/antarctica
  stable/6/share/zoneinfo/asia
  stable/6/share/zoneinfo/australasia
  stable/6/share/zoneinfo/backward
  stable/6/share/zoneinfo/etcetera
  stable/6/share/zoneinfo/europe
  stable/6/share/zoneinfo/factory
  stable/6/share/zoneinfo/leap-seconds.list   (contents, props changed)
  stable/6/share/zoneinfo/northamerica
  stable/6/share/zoneinfo/southamerica
  stable/6/share/zoneinfo/systemv
  stable/6/share/zoneinfo/yearistype.sh
  stable/6/share/zoneinfo/zone.tab
Directory Properties:
  stable/6/share/zoneinfo/   (props changed)

Modified: stable/6/share/zoneinfo/africa
==
--- stable/6/share/zoneinfo/africa  Fri Aug 29 13:12:45 2014
(r270811)
+++ stable/6/share/zoneinfo/africa  Fri Aug 29 13:22:56 2014
(r270812)
@@ -1,4 +1,3 @@
-# pre
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.
 
@@ -35,13 +34,13 @@
 # Previous editions of this database used WAT, CAT, SAT, and EAT
 # for +0:00 through +3:00, respectively,
 # but Mark R V Murray reports that
-# `SAST' is the official abbreviation for +2:00 in the country of South Africa,
-# `CAT' is commonly used for +2:00 in countries north of South Africa, and
-# `WAT' is probably the best name for +1:00, as the common phrase for
-# the area that includes Nigeria is ``West Africa''.
-# He has heard of ``Western Sahara Time'' for +0:00 but can find no reference.
+# 'SAST' is the official abbreviation for +2:00 in the country of South Africa,
+# 'CAT' is commonly used for +2:00 in countries north of South Africa, and
+# 'WAT' is probably the best name for +1:00, as the common phrase for
+# the area that includes Nigeria is West Africa.
+# He has heard of Western Sahara Time for +0:00 but can find no reference.
 #
-# To make things confusing, `WAT' seems to have been used for -1:00 long ago;
+# To make things confusing, 'WAT' seems to have been used for -1:00 long ago;
 # I'd guess that this was because people needed _some_ name for -1:00,
 # and at the time, far west Africa was the only major land area in -1:00.
 # This usage is now obsolete, as the last use of -1:00 on the African
@@ -54,7 +53,7 @@
 #   2:00   SASTSouth Africa Standard Time
 # and Murray suggests the following abbreviation:
 #   1:00   WAT West Africa Time
-# I realize that this leads to `WAT' being used for both -1:00 and 1:00
+# I realize that this leads to 'WAT' being used for both -1:00 and 1:00
 # for times before 1976, but this is the best I can think of
 # until we get more information.
 #
@@ -131,9 +130,7 @@ ZoneAfrica/Gaborone 1:43:40 -   LMT 1885
2:00-   CAT
 
 # Burkina Faso
-# Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone Africa/Ouagadougou-0:06:04 -  LMT 1912
-0:00   -   GMT
+# See Africa/Abidjan.
 
 # Burundi
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -161,7 +158,7 @@ ZoneAfrica/Bangui   1:14:20 -   LMT 1912
 
 # Chad
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone   Africa/Ndjamena 1:00:12 -   LMT 1912
+Zone   Africa/Ndjamena 1:00:12 -   LMT 1912 # N'Djamena
1:00-   WAT 1979 Oct 14
1:001:00WAST1980 Mar  8
1:00-   WAT
@@ -183,10 +180,20 @@ Zone Africa/Lubumbashi1:49:52 -   LMT 189
 Zone Africa/Brazzaville1:01:08 -   LMT 1912
1:00-   WAT
 
-# Cote D'Ivoire
+# Côte D'Ivoire / Ivory Coast
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Abidjan  -0:16:08 -  LMT 1912
 0:00   -   GMT
+Link Africa/Abidjan Africa/Bamako  # Mali
+Link Africa/Abidjan Africa/Banjul  # Gambia
+Link Africa/Abidjan Africa/Conakry # Guinea
+Link Africa/Abidjan Africa/Dakar   # Senegal
+Link Africa/Abidjan Africa/Freetown# Sierra Leone
+Link Africa/Abidjan Africa/Lome# Togo
+Link Africa/Abidjan Africa/Nouakchott  # Mauritania
+Link Africa/Abidjan Africa/Ouagadougou # Burkina Faso
+Link Africa/Abidjan 

svn commit: r270813 - stable/7/share/zoneinfo

2014-08-29 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Aug 29 13:24:49 2014
New Revision: 270813
URL: http://svnweb.freebsd.org/changeset/base/270813

Log:
  MFC r270728, tzdata2014f
  
  - Parts of Russia will change times on 2014-10-26.
  - Time zone name changes for Asia/Novokuznetsk and Xinjiang and Samoa
and America/Metlakatla, new zones Asia/Chita and Asia/Srednekolymsk.
  - Australia will now use Axxx.
  - New zone tab data format.
  
  And lots of historical changes (See
  http://mm.icann.org/pipermail/tz-announce/2014-August/23.html
  for the full details.)

Added:
  stable/7/share/zoneinfo/zone1970.tab
 - copied unchanged from r270728, head/contrib/tzdata/zone1970.tab
Modified:
  stable/7/share/zoneinfo/africa
  stable/7/share/zoneinfo/antarctica
  stable/7/share/zoneinfo/asia
  stable/7/share/zoneinfo/australasia
  stable/7/share/zoneinfo/backward
  stable/7/share/zoneinfo/etcetera
  stable/7/share/zoneinfo/europe
  stable/7/share/zoneinfo/factory
  stable/7/share/zoneinfo/leap-seconds.list   (contents, props changed)
  stable/7/share/zoneinfo/northamerica
  stable/7/share/zoneinfo/southamerica
  stable/7/share/zoneinfo/systemv
  stable/7/share/zoneinfo/yearistype.sh
  stable/7/share/zoneinfo/zone.tab
Directory Properties:
  stable/7/share/zoneinfo/   (props changed)

Modified: stable/7/share/zoneinfo/africa
==
--- stable/7/share/zoneinfo/africa  Fri Aug 29 13:22:56 2014
(r270812)
+++ stable/7/share/zoneinfo/africa  Fri Aug 29 13:24:49 2014
(r270813)
@@ -1,4 +1,3 @@
-# pre
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.
 
@@ -35,13 +34,13 @@
 # Previous editions of this database used WAT, CAT, SAT, and EAT
 # for +0:00 through +3:00, respectively,
 # but Mark R V Murray reports that
-# `SAST' is the official abbreviation for +2:00 in the country of South Africa,
-# `CAT' is commonly used for +2:00 in countries north of South Africa, and
-# `WAT' is probably the best name for +1:00, as the common phrase for
-# the area that includes Nigeria is ``West Africa''.
-# He has heard of ``Western Sahara Time'' for +0:00 but can find no reference.
+# 'SAST' is the official abbreviation for +2:00 in the country of South Africa,
+# 'CAT' is commonly used for +2:00 in countries north of South Africa, and
+# 'WAT' is probably the best name for +1:00, as the common phrase for
+# the area that includes Nigeria is West Africa.
+# He has heard of Western Sahara Time for +0:00 but can find no reference.
 #
-# To make things confusing, `WAT' seems to have been used for -1:00 long ago;
+# To make things confusing, 'WAT' seems to have been used for -1:00 long ago;
 # I'd guess that this was because people needed _some_ name for -1:00,
 # and at the time, far west Africa was the only major land area in -1:00.
 # This usage is now obsolete, as the last use of -1:00 on the African
@@ -54,7 +53,7 @@
 #   2:00   SASTSouth Africa Standard Time
 # and Murray suggests the following abbreviation:
 #   1:00   WAT West Africa Time
-# I realize that this leads to `WAT' being used for both -1:00 and 1:00
+# I realize that this leads to 'WAT' being used for both -1:00 and 1:00
 # for times before 1976, but this is the best I can think of
 # until we get more information.
 #
@@ -131,9 +130,7 @@ ZoneAfrica/Gaborone 1:43:40 -   LMT 1885
2:00-   CAT
 
 # Burkina Faso
-# Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone Africa/Ouagadougou-0:06:04 -  LMT 1912
-0:00   -   GMT
+# See Africa/Abidjan.
 
 # Burundi
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -161,7 +158,7 @@ ZoneAfrica/Bangui   1:14:20 -   LMT 1912
 
 # Chad
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone   Africa/Ndjamena 1:00:12 -   LMT 1912
+Zone   Africa/Ndjamena 1:00:12 -   LMT 1912 # N'Djamena
1:00-   WAT 1979 Oct 14
1:001:00WAST1980 Mar  8
1:00-   WAT
@@ -183,10 +180,20 @@ Zone Africa/Lubumbashi1:49:52 -   LMT 189
 Zone Africa/Brazzaville1:01:08 -   LMT 1912
1:00-   WAT
 
-# Cote D'Ivoire
+# Côte D'Ivoire / Ivory Coast
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Abidjan  -0:16:08 -  LMT 1912
 0:00   -   GMT
+Link Africa/Abidjan Africa/Bamako  # Mali
+Link Africa/Abidjan Africa/Banjul  # Gambia
+Link Africa/Abidjan Africa/Conakry # Guinea
+Link Africa/Abidjan Africa/Dakar   # Senegal
+Link Africa/Abidjan Africa/Freetown# Sierra Leone
+Link Africa/Abidjan Africa/Lome# Togo
+Link Africa/Abidjan Africa/Nouakchott  # Mauritania
+Link Africa/Abidjan Africa/Ouagadougou # Burkina Faso
+Link Africa/Abidjan 

svn commit: r270814 - stable/8/share/zoneinfo

2014-08-29 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Aug 29 13:26:11 2014
New Revision: 270814
URL: http://svnweb.freebsd.org/changeset/base/270814

Log:
  MFC r270728, tzdata2014f
  
  - Parts of Russia will change times on 2014-10-26.
  - Time zone name changes for Asia/Novokuznetsk and Xinjiang and Samoa
and America/Metlakatla, new zones Asia/Chita and Asia/Srednekolymsk.
  - Australia will now use Axxx.
  - New zone tab data format.
  
  And lots of historical changes (See
  http://mm.icann.org/pipermail/tz-announce/2014-August/23.html
  for the full details.)

Added:
  stable/8/share/zoneinfo/zone1970.tab
 - copied unchanged from r270728, head/contrib/tzdata/zone1970.tab
Modified:
  stable/8/share/zoneinfo/africa
  stable/8/share/zoneinfo/antarctica
  stable/8/share/zoneinfo/asia
  stable/8/share/zoneinfo/australasia
  stable/8/share/zoneinfo/backward
  stable/8/share/zoneinfo/etcetera
  stable/8/share/zoneinfo/europe
  stable/8/share/zoneinfo/factory
  stable/8/share/zoneinfo/leap-seconds.list   (contents, props changed)
  stable/8/share/zoneinfo/northamerica
  stable/8/share/zoneinfo/pacificnew
  stable/8/share/zoneinfo/southamerica
  stable/8/share/zoneinfo/systemv
  stable/8/share/zoneinfo/yearistype.sh
  stable/8/share/zoneinfo/zone.tab
Directory Properties:
  stable/8/share/zoneinfo/   (props changed)

Modified: stable/8/share/zoneinfo/africa
==
--- stable/8/share/zoneinfo/africa  Fri Aug 29 13:24:49 2014
(r270813)
+++ stable/8/share/zoneinfo/africa  Fri Aug 29 13:26:11 2014
(r270814)
@@ -1,4 +1,3 @@
-# pre
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.
 
@@ -35,13 +34,13 @@
 # Previous editions of this database used WAT, CAT, SAT, and EAT
 # for +0:00 through +3:00, respectively,
 # but Mark R V Murray reports that
-# `SAST' is the official abbreviation for +2:00 in the country of South Africa,
-# `CAT' is commonly used for +2:00 in countries north of South Africa, and
-# `WAT' is probably the best name for +1:00, as the common phrase for
-# the area that includes Nigeria is ``West Africa''.
-# He has heard of ``Western Sahara Time'' for +0:00 but can find no reference.
+# 'SAST' is the official abbreviation for +2:00 in the country of South Africa,
+# 'CAT' is commonly used for +2:00 in countries north of South Africa, and
+# 'WAT' is probably the best name for +1:00, as the common phrase for
+# the area that includes Nigeria is West Africa.
+# He has heard of Western Sahara Time for +0:00 but can find no reference.
 #
-# To make things confusing, `WAT' seems to have been used for -1:00 long ago;
+# To make things confusing, 'WAT' seems to have been used for -1:00 long ago;
 # I'd guess that this was because people needed _some_ name for -1:00,
 # and at the time, far west Africa was the only major land area in -1:00.
 # This usage is now obsolete, as the last use of -1:00 on the African
@@ -54,7 +53,7 @@
 #   2:00   SASTSouth Africa Standard Time
 # and Murray suggests the following abbreviation:
 #   1:00   WAT West Africa Time
-# I realize that this leads to `WAT' being used for both -1:00 and 1:00
+# I realize that this leads to 'WAT' being used for both -1:00 and 1:00
 # for times before 1976, but this is the best I can think of
 # until we get more information.
 #
@@ -131,9 +130,7 @@ ZoneAfrica/Gaborone 1:43:40 -   LMT 1885
2:00-   CAT
 
 # Burkina Faso
-# Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone Africa/Ouagadougou-0:06:04 -  LMT 1912
-0:00   -   GMT
+# See Africa/Abidjan.
 
 # Burundi
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -161,7 +158,7 @@ ZoneAfrica/Bangui   1:14:20 -   LMT 1912
 
 # Chad
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone   Africa/Ndjamena 1:00:12 -   LMT 1912
+Zone   Africa/Ndjamena 1:00:12 -   LMT 1912 # N'Djamena
1:00-   WAT 1979 Oct 14
1:001:00WAST1980 Mar  8
1:00-   WAT
@@ -183,10 +180,20 @@ Zone Africa/Lubumbashi1:49:52 -   LMT 189
 Zone Africa/Brazzaville1:01:08 -   LMT 1912
1:00-   WAT
 
-# Cote D'Ivoire
+# Côte D'Ivoire / Ivory Coast
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Abidjan  -0:16:08 -  LMT 1912
 0:00   -   GMT
+Link Africa/Abidjan Africa/Bamako  # Mali
+Link Africa/Abidjan Africa/Banjul  # Gambia
+Link Africa/Abidjan Africa/Conakry # Guinea
+Link Africa/Abidjan Africa/Dakar   # Senegal
+Link Africa/Abidjan Africa/Freetown# Sierra Leone
+Link Africa/Abidjan Africa/Lome# Togo
+Link Africa/Abidjan Africa/Nouakchott  # Mauritania
+Link Africa/Abidjan Africa/Ouagadougou # Burkina 

svn commit: r270815 - stable/9/contrib/tzdata

2014-08-29 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Aug 29 13:27:49 2014
New Revision: 270815
URL: http://svnweb.freebsd.org/changeset/base/270815

Log:
  MFC r270728, tzdata2014f
  
  - Parts of Russia will change times on 2014-10-26.
  - Time zone name changes for Asia/Novokuznetsk and Xinjiang and Samoa
and America/Metlakatla, new zones Asia/Chita and Asia/Srednekolymsk.
  - Australia will now use Axxx.
  - New zone tab data format.
  
  And lots of historical changes (See
  http://mm.icann.org/pipermail/tz-announce/2014-August/23.html
  for the full details.)

Added:
  stable/9/contrib/tzdata/zone1970.tab
 - copied unchanged from r270728, head/contrib/tzdata/zone1970.tab
Modified:
  stable/9/contrib/tzdata/africa
  stable/9/contrib/tzdata/antarctica
  stable/9/contrib/tzdata/asia
  stable/9/contrib/tzdata/australasia
  stable/9/contrib/tzdata/backward
  stable/9/contrib/tzdata/etcetera
  stable/9/contrib/tzdata/europe
  stable/9/contrib/tzdata/factory
  stable/9/contrib/tzdata/leap-seconds.list   (contents, props changed)
  stable/9/contrib/tzdata/northamerica
  stable/9/contrib/tzdata/pacificnew
  stable/9/contrib/tzdata/southamerica
  stable/9/contrib/tzdata/systemv
  stable/9/contrib/tzdata/yearistype.sh
  stable/9/contrib/tzdata/zone.tab
Directory Properties:
  stable/9/contrib/tzdata/   (props changed)

Modified: stable/9/contrib/tzdata/africa
==
--- stable/9/contrib/tzdata/africa  Fri Aug 29 13:26:11 2014
(r270814)
+++ stable/9/contrib/tzdata/africa  Fri Aug 29 13:27:49 2014
(r270815)
@@ -1,4 +1,3 @@
-# pre
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.
 
@@ -35,13 +34,13 @@
 # Previous editions of this database used WAT, CAT, SAT, and EAT
 # for +0:00 through +3:00, respectively,
 # but Mark R V Murray reports that
-# `SAST' is the official abbreviation for +2:00 in the country of South Africa,
-# `CAT' is commonly used for +2:00 in countries north of South Africa, and
-# `WAT' is probably the best name for +1:00, as the common phrase for
-# the area that includes Nigeria is ``West Africa''.
-# He has heard of ``Western Sahara Time'' for +0:00 but can find no reference.
+# 'SAST' is the official abbreviation for +2:00 in the country of South Africa,
+# 'CAT' is commonly used for +2:00 in countries north of South Africa, and
+# 'WAT' is probably the best name for +1:00, as the common phrase for
+# the area that includes Nigeria is West Africa.
+# He has heard of Western Sahara Time for +0:00 but can find no reference.
 #
-# To make things confusing, `WAT' seems to have been used for -1:00 long ago;
+# To make things confusing, 'WAT' seems to have been used for -1:00 long ago;
 # I'd guess that this was because people needed _some_ name for -1:00,
 # and at the time, far west Africa was the only major land area in -1:00.
 # This usage is now obsolete, as the last use of -1:00 on the African
@@ -54,7 +53,7 @@
 #   2:00   SASTSouth Africa Standard Time
 # and Murray suggests the following abbreviation:
 #   1:00   WAT West Africa Time
-# I realize that this leads to `WAT' being used for both -1:00 and 1:00
+# I realize that this leads to 'WAT' being used for both -1:00 and 1:00
 # for times before 1976, but this is the best I can think of
 # until we get more information.
 #
@@ -131,9 +130,7 @@ ZoneAfrica/Gaborone 1:43:40 -   LMT 1885
2:00-   CAT
 
 # Burkina Faso
-# Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone Africa/Ouagadougou-0:06:04 -  LMT 1912
-0:00   -   GMT
+# See Africa/Abidjan.
 
 # Burundi
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -161,7 +158,7 @@ ZoneAfrica/Bangui   1:14:20 -   LMT 1912
 
 # Chad
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone   Africa/Ndjamena 1:00:12 -   LMT 1912
+Zone   Africa/Ndjamena 1:00:12 -   LMT 1912 # N'Djamena
1:00-   WAT 1979 Oct 14
1:001:00WAST1980 Mar  8
1:00-   WAT
@@ -183,10 +180,20 @@ Zone Africa/Lubumbashi1:49:52 -   LMT 189
 Zone Africa/Brazzaville1:01:08 -   LMT 1912
1:00-   WAT
 
-# Cote D'Ivoire
+# Côte D'Ivoire / Ivory Coast
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Abidjan  -0:16:08 -  LMT 1912
 0:00   -   GMT
+Link Africa/Abidjan Africa/Bamako  # Mali
+Link Africa/Abidjan Africa/Banjul  # Gambia
+Link Africa/Abidjan Africa/Conakry # Guinea
+Link Africa/Abidjan Africa/Dakar   # Senegal
+Link Africa/Abidjan Africa/Freetown# Sierra Leone
+Link Africa/Abidjan Africa/Lome# Togo
+Link Africa/Abidjan Africa/Nouakchott  # Mauritania
+Link Africa/Abidjan Africa/Ouagadougou # Burkina 

svn commit: r270817 - stable/10/contrib/tzdata

2014-08-29 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Aug 29 13:41:21 2014
New Revision: 270817
URL: http://svnweb.freebsd.org/changeset/base/270817

Log:
  MFC r270728, tzdata2014f
  
  - Parts of Russia will change times on 2014-10-26.
  - Time zone name changes for Asia/Novokuznetsk and Xinjiang and Samoa
and America/Metlakatla, new zones Asia/Chita and Asia/Srednekolymsk.
  - Australia will now use Axxx.
  - New zone tab data format.
  
  And lots of historical changes (See
  http://mm.icann.org/pipermail/tz-announce/2014-August/23.html
  for the full details.)

Added:
  stable/10/contrib/tzdata/zone1970.tab
 - copied unchanged from r270728, head/contrib/tzdata/zone1970.tab
Modified:
  stable/10/contrib/tzdata/africa
  stable/10/contrib/tzdata/antarctica
  stable/10/contrib/tzdata/asia
  stable/10/contrib/tzdata/australasia
  stable/10/contrib/tzdata/backward
  stable/10/contrib/tzdata/etcetera
  stable/10/contrib/tzdata/europe
  stable/10/contrib/tzdata/factory
  stable/10/contrib/tzdata/leap-seconds.list   (contents, props changed)
  stable/10/contrib/tzdata/northamerica
  stable/10/contrib/tzdata/pacificnew
  stable/10/contrib/tzdata/southamerica
  stable/10/contrib/tzdata/systemv
  stable/10/contrib/tzdata/yearistype.sh
  stable/10/contrib/tzdata/zone.tab
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/tzdata/africa
==
--- stable/10/contrib/tzdata/africa Fri Aug 29 13:37:01 2014
(r270816)
+++ stable/10/contrib/tzdata/africa Fri Aug 29 13:41:21 2014
(r270817)
@@ -1,4 +1,3 @@
-# pre
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.
 
@@ -35,13 +34,13 @@
 # Previous editions of this database used WAT, CAT, SAT, and EAT
 # for +0:00 through +3:00, respectively,
 # but Mark R V Murray reports that
-# `SAST' is the official abbreviation for +2:00 in the country of South Africa,
-# `CAT' is commonly used for +2:00 in countries north of South Africa, and
-# `WAT' is probably the best name for +1:00, as the common phrase for
-# the area that includes Nigeria is ``West Africa''.
-# He has heard of ``Western Sahara Time'' for +0:00 but can find no reference.
+# 'SAST' is the official abbreviation for +2:00 in the country of South Africa,
+# 'CAT' is commonly used for +2:00 in countries north of South Africa, and
+# 'WAT' is probably the best name for +1:00, as the common phrase for
+# the area that includes Nigeria is West Africa.
+# He has heard of Western Sahara Time for +0:00 but can find no reference.
 #
-# To make things confusing, `WAT' seems to have been used for -1:00 long ago;
+# To make things confusing, 'WAT' seems to have been used for -1:00 long ago;
 # I'd guess that this was because people needed _some_ name for -1:00,
 # and at the time, far west Africa was the only major land area in -1:00.
 # This usage is now obsolete, as the last use of -1:00 on the African
@@ -54,7 +53,7 @@
 #   2:00   SASTSouth Africa Standard Time
 # and Murray suggests the following abbreviation:
 #   1:00   WAT West Africa Time
-# I realize that this leads to `WAT' being used for both -1:00 and 1:00
+# I realize that this leads to 'WAT' being used for both -1:00 and 1:00
 # for times before 1976, but this is the best I can think of
 # until we get more information.
 #
@@ -131,9 +130,7 @@ ZoneAfrica/Gaborone 1:43:40 -   LMT 1885
2:00-   CAT
 
 # Burkina Faso
-# Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone Africa/Ouagadougou-0:06:04 -  LMT 1912
-0:00   -   GMT
+# See Africa/Abidjan.
 
 # Burundi
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -161,7 +158,7 @@ ZoneAfrica/Bangui   1:14:20 -   LMT 1912
 
 # Chad
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone   Africa/Ndjamena 1:00:12 -   LMT 1912
+Zone   Africa/Ndjamena 1:00:12 -   LMT 1912 # N'Djamena
1:00-   WAT 1979 Oct 14
1:001:00WAST1980 Mar  8
1:00-   WAT
@@ -183,10 +180,20 @@ Zone Africa/Lubumbashi1:49:52 -   LMT 189
 Zone Africa/Brazzaville1:01:08 -   LMT 1912
1:00-   WAT
 
-# Cote D'Ivoire
+# Côte D'Ivoire / Ivory Coast
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Abidjan  -0:16:08 -  LMT 1912
 0:00   -   GMT
+Link Africa/Abidjan Africa/Bamako  # Mali
+Link Africa/Abidjan Africa/Banjul  # Gambia
+Link Africa/Abidjan Africa/Conakry # Guinea
+Link Africa/Abidjan Africa/Dakar   # Senegal
+Link Africa/Abidjan Africa/Freetown# Sierra Leone
+Link Africa/Abidjan Africa/Lome# Togo
+Link Africa/Abidjan Africa/Nouakchott  # Mauritania
+Link Africa/Abidjan Africa/Ouagadougou # 

svn commit: r270818 - stable/10/release/doc/en_US.ISO8859-1/relnotes

2014-08-29 Thread Sergey Kandaurov
Author: pluknet
Date: Fri Aug 29 13:46:30 2014
New Revision: 270818
URL: http://svnweb.freebsd.org/changeset/base/270818

Log:
  Document r270817, tzdata2014f.

Modified:
  stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml

Modified: stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
==
--- stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml  Fri Aug 29 
13:41:21 2014(r270817)
+++ stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml  Fri Aug 29 
13:46:30 2014(r270818)
@@ -1168,7 +1168,7 @@
has been updated to 8.14.9./para
 
   para revision=267477The timezone database has been updated
-   to version tzdata2014e./para
+   to version tzdata2014f./para
 
   para revision=268515The man.file.1; utility and
man.libmagic.3; library have been updated to 5.19./para
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r270725 - vendor/tzdata/dist

2014-08-27 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Aug 27 18:49:41 2014
New Revision: 270725
URL: http://svnweb.freebsd.org/changeset/base/270725

Log:
  Vendor import of tzdata2014f.
  
  - Russia time zone changes.
  - New zones: Asia/Chita and Asia/Srednekolymsk.
  - Lots of changes wrt. time zone abbreviations and historical data.
  - New zone tab data format.
  
  Obtained from:ftp://ftp.iana.org/tz/releases/

Added:
  vendor/tzdata/dist/zone1970.tab
Modified:
  vendor/tzdata/dist/africa
  vendor/tzdata/dist/antarctica
  vendor/tzdata/dist/asia
  vendor/tzdata/dist/australasia
  vendor/tzdata/dist/backward
  vendor/tzdata/dist/etcetera
  vendor/tzdata/dist/europe
  vendor/tzdata/dist/factory
  vendor/tzdata/dist/iso3166.tab
  vendor/tzdata/dist/leap-seconds.list
  vendor/tzdata/dist/northamerica
  vendor/tzdata/dist/pacificnew
  vendor/tzdata/dist/southamerica
  vendor/tzdata/dist/systemv
  vendor/tzdata/dist/yearistype.sh
  vendor/tzdata/dist/zone.tab

Modified: vendor/tzdata/dist/africa
==
--- vendor/tzdata/dist/africa   Wed Aug 27 18:25:14 2014(r270724)
+++ vendor/tzdata/dist/africa   Wed Aug 27 18:49:41 2014(r270725)
@@ -1,4 +1,3 @@
-# pre
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.
 
@@ -35,13 +34,13 @@
 # Previous editions of this database used WAT, CAT, SAT, and EAT
 # for +0:00 through +3:00, respectively,
 # but Mark R V Murray reports that
-# `SAST' is the official abbreviation for +2:00 in the country of South Africa,
-# `CAT' is commonly used for +2:00 in countries north of South Africa, and
-# `WAT' is probably the best name for +1:00, as the common phrase for
-# the area that includes Nigeria is ``West Africa''.
-# He has heard of ``Western Sahara Time'' for +0:00 but can find no reference.
+# 'SAST' is the official abbreviation for +2:00 in the country of South Africa,
+# 'CAT' is commonly used for +2:00 in countries north of South Africa, and
+# 'WAT' is probably the best name for +1:00, as the common phrase for
+# the area that includes Nigeria is West Africa.
+# He has heard of Western Sahara Time for +0:00 but can find no reference.
 #
-# To make things confusing, `WAT' seems to have been used for -1:00 long ago;
+# To make things confusing, 'WAT' seems to have been used for -1:00 long ago;
 # I'd guess that this was because people needed _some_ name for -1:00,
 # and at the time, far west Africa was the only major land area in -1:00.
 # This usage is now obsolete, as the last use of -1:00 on the African
@@ -54,7 +53,7 @@
 #   2:00   SASTSouth Africa Standard Time
 # and Murray suggests the following abbreviation:
 #   1:00   WAT West Africa Time
-# I realize that this leads to `WAT' being used for both -1:00 and 1:00
+# I realize that this leads to 'WAT' being used for both -1:00 and 1:00
 # for times before 1976, but this is the best I can think of
 # until we get more information.
 #
@@ -131,9 +130,7 @@ ZoneAfrica/Gaborone 1:43:40 -   LMT 1885
2:00-   CAT
 
 # Burkina Faso
-# Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone Africa/Ouagadougou-0:06:04 -  LMT 1912
-0:00   -   GMT
+# See Africa/Abidjan.
 
 # Burundi
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -161,7 +158,7 @@ ZoneAfrica/Bangui   1:14:20 -   LMT 1912
 
 # Chad
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone   Africa/Ndjamena 1:00:12 -   LMT 1912
+Zone   Africa/Ndjamena 1:00:12 -   LMT 1912 # N'Djamena
1:00-   WAT 1979 Oct 14
1:001:00WAST1980 Mar  8
1:00-   WAT
@@ -183,10 +180,20 @@ Zone Africa/Lubumbashi1:49:52 -   LMT 189
 Zone Africa/Brazzaville1:01:08 -   LMT 1912
1:00-   WAT
 
-# Cote D'Ivoire
+# Côte D'Ivoire / Ivory Coast
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Abidjan  -0:16:08 -  LMT 1912
 0:00   -   GMT
+Link Africa/Abidjan Africa/Bamako  # Mali
+Link Africa/Abidjan Africa/Banjul  # Gambia
+Link Africa/Abidjan Africa/Conakry # Guinea
+Link Africa/Abidjan Africa/Dakar   # Senegal
+Link Africa/Abidjan Africa/Freetown# Sierra Leone
+Link Africa/Abidjan Africa/Lome# Togo
+Link Africa/Abidjan Africa/Nouakchott  # Mauritania
+Link Africa/Abidjan Africa/Ouagadougou # Burkina Faso
+Link Africa/Abidjan Africa/Sao_Tome# São Tomé and Príncipe
+Link Africa/Abidjan Atlantic/St_Helena # St Helena
 
 # Djibouti
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -231,13 +238,9 @@ Rule   Egypt   19901994-   May  1  
1:001:00
 # Egyptians would approve the cancellation.
 #
 # Egypt to cancel daylight saving time
-# a 

svn commit: r270726 - vendor/tzdata/tzdata2014f

2014-08-27 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Aug 27 18:51:54 2014
New Revision: 270726
URL: http://svnweb.freebsd.org/changeset/base/270726

Log:
  Tag of tzdata2014f

Added:
  vendor/tzdata/tzdata2014f/
 - copied from r270725, vendor/tzdata/dist/
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r270728 - head/contrib/tzdata

2014-08-27 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Aug 27 19:26:35 2014
New Revision: 270728
URL: http://svnweb.freebsd.org/changeset/base/270728

Log:
  MFV of r270725, tzdata2014f
  
  - Russia time zone changes.
  - New zones: Asia/Chita and Asia/Srednekolymsk.
  - Lots of changes wrt. time zone abbreviations and historical data.
  - New zone tab data format.

Added:
  head/contrib/tzdata/zone1970.tab
 - copied, changed from r270725, vendor/tzdata/dist/zone1970.tab
Modified:
  head/contrib/tzdata/africa
  head/contrib/tzdata/antarctica
  head/contrib/tzdata/asia
  head/contrib/tzdata/australasia
  head/contrib/tzdata/backward
  head/contrib/tzdata/etcetera
  head/contrib/tzdata/europe
  head/contrib/tzdata/factory
  head/contrib/tzdata/leap-seconds.list
  head/contrib/tzdata/northamerica
  head/contrib/tzdata/pacificnew
  head/contrib/tzdata/southamerica
  head/contrib/tzdata/systemv
  head/contrib/tzdata/yearistype.sh
  head/contrib/tzdata/zone.tab
Directory Properties:
  head/contrib/tzdata/   (props changed)

Modified: head/contrib/tzdata/africa
==
--- head/contrib/tzdata/africa  Wed Aug 27 18:56:12 2014(r270727)
+++ head/contrib/tzdata/africa  Wed Aug 27 19:26:35 2014(r270728)
@@ -1,4 +1,3 @@
-# pre
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.
 
@@ -35,13 +34,13 @@
 # Previous editions of this database used WAT, CAT, SAT, and EAT
 # for +0:00 through +3:00, respectively,
 # but Mark R V Murray reports that
-# `SAST' is the official abbreviation for +2:00 in the country of South Africa,
-# `CAT' is commonly used for +2:00 in countries north of South Africa, and
-# `WAT' is probably the best name for +1:00, as the common phrase for
-# the area that includes Nigeria is ``West Africa''.
-# He has heard of ``Western Sahara Time'' for +0:00 but can find no reference.
+# 'SAST' is the official abbreviation for +2:00 in the country of South Africa,
+# 'CAT' is commonly used for +2:00 in countries north of South Africa, and
+# 'WAT' is probably the best name for +1:00, as the common phrase for
+# the area that includes Nigeria is West Africa.
+# He has heard of Western Sahara Time for +0:00 but can find no reference.
 #
-# To make things confusing, `WAT' seems to have been used for -1:00 long ago;
+# To make things confusing, 'WAT' seems to have been used for -1:00 long ago;
 # I'd guess that this was because people needed _some_ name for -1:00,
 # and at the time, far west Africa was the only major land area in -1:00.
 # This usage is now obsolete, as the last use of -1:00 on the African
@@ -54,7 +53,7 @@
 #   2:00   SASTSouth Africa Standard Time
 # and Murray suggests the following abbreviation:
 #   1:00   WAT West Africa Time
-# I realize that this leads to `WAT' being used for both -1:00 and 1:00
+# I realize that this leads to 'WAT' being used for both -1:00 and 1:00
 # for times before 1976, but this is the best I can think of
 # until we get more information.
 #
@@ -131,9 +130,7 @@ ZoneAfrica/Gaborone 1:43:40 -   LMT 1885
2:00-   CAT
 
 # Burkina Faso
-# Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone Africa/Ouagadougou-0:06:04 -  LMT 1912
-0:00   -   GMT
+# See Africa/Abidjan.
 
 # Burundi
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -161,7 +158,7 @@ ZoneAfrica/Bangui   1:14:20 -   LMT 1912
 
 # Chad
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
-Zone   Africa/Ndjamena 1:00:12 -   LMT 1912
+Zone   Africa/Ndjamena 1:00:12 -   LMT 1912 # N'Djamena
1:00-   WAT 1979 Oct 14
1:001:00WAST1980 Mar  8
1:00-   WAT
@@ -183,10 +180,20 @@ Zone Africa/Lubumbashi1:49:52 -   LMT 189
 Zone Africa/Brazzaville1:01:08 -   LMT 1912
1:00-   WAT
 
-# Cote D'Ivoire
+# Côte D'Ivoire / Ivory Coast
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
 Zone   Africa/Abidjan  -0:16:08 -  LMT 1912
 0:00   -   GMT
+Link Africa/Abidjan Africa/Bamako  # Mali
+Link Africa/Abidjan Africa/Banjul  # Gambia
+Link Africa/Abidjan Africa/Conakry # Guinea
+Link Africa/Abidjan Africa/Dakar   # Senegal
+Link Africa/Abidjan Africa/Freetown# Sierra Leone
+Link Africa/Abidjan Africa/Lome# Togo
+Link Africa/Abidjan Africa/Nouakchott  # Mauritania
+Link Africa/Abidjan Africa/Ouagadougou # Burkina Faso
+Link Africa/Abidjan Africa/Sao_Tome# São Tomé and Príncipe
+Link Africa/Abidjan Atlantic/St_Helena # St Helena
 
 # Djibouti
 # Zone NAMEGMTOFF  RULES   FORMAT  [UNTIL]
@@ -231,13 +238,9 @@ Rule   Egypt   19901994-   May  1  
1:001:00
 # Egyptians would approve the 

svn commit: r270729 - head/share/zoneinfo

2014-08-27 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Aug 27 19:34:49 2014
New Revision: 270729
URL: http://svnweb.freebsd.org/changeset/base/270729

Log:
  Fix comments on updating tzdata releases.

Modified:
  head/share/zoneinfo/Makefile

Modified: head/share/zoneinfo/Makefile
==
--- head/share/zoneinfo/MakefileWed Aug 27 19:26:35 2014
(r270728)
+++ head/share/zoneinfo/MakefileWed Aug 27 19:34:49 2014
(r270729)
@@ -17,15 +17,15 @@
 # $ cd ~/svn/vendor/tzdata
 # $ svn cp svn+ssh://svn.freebsd.org/base/vendor/tzdata/dist \
 #  svn+ssh://svn.freebsd.org/base/vendor/tzdata/tzdata2008X
-# $ svn update # Commit message: Tag of tzdata2008X
+# $ svn commit # Commit message: Tag of tzdata2008X
 #
 # Merge-from-vendor
 #
-# $ cd ~/svn/head/share/zoneinfo
+# $ cd ~/svn/head/contrib/tzdata
 # $ svn update
 # $ svn merge -c X --accept=postpone \
 #  svn+ssh://svn.freebsd.org/base/vendor/tzdata/dist .
-# $ svn update # Commit message: MFV of tzdata2008X
+# $ svn commit # Commit message: MFV of tzdata2008X
 #
 
 CLEANFILES+=   yearistype
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r270659 - head/usr.bin/lock

2014-08-26 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Aug 26 11:04:51 2014
New Revision: 270659
URL: http://svnweb.freebsd.org/changeset/base/270659

Log:
  Missed comma.

Modified:
  head/usr.bin/lock/lock.1

Modified: head/usr.bin/lock/lock.1
==
--- head/usr.bin/lock/lock.1Tue Aug 26 10:56:51 2014(r270658)
+++ head/usr.bin/lock/lock.1Tue Aug 26 11:04:51 2014(r270659)
@@ -75,7 +75,7 @@ virtual terminal.
 .El
 .Sh SEE ALSO
 .Xr vidcontrol 1 ,
-.Xr syscons 4
+.Xr syscons 4 ,
 .Xr vt 4
 .Sh HISTORY
 The
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r270149 - head/sys/geom

2014-08-18 Thread Sergey Kandaurov
On 18 August 2014 23:27, Scott Long sco...@freebsd.org wrote:
 Author: scottl
 Date: Mon Aug 18 19:27:47 2014
 New Revision: 270149
 URL: http://svnweb.freebsd.org/changeset/base/270149

 Log:
   Deal explicitly with possible failures of make_dev_alias_p() in GEOM.

   Submitted by:   Mariusz Zaborski osho...@freebsd.org
   MFC after:  3 days

 Modified:
   head/sys/geom/geom_dev.c

 Modified: head/sys/geom/geom_dev.c
 ==
 --- head/sys/geom/geom_dev.cMon Aug 18 18:07:28 2014(r270148)
 +++ head/sys/geom/geom_dev.cMon Aug 18 19:27:47 2014(r270149)
[...]
 @@ -263,6 +264,7 @@ g_dev_taste(struct g_class *mp, struct g
 if (adev != NULL) {
 adev-si_iosize_max = MAXPHYS;
 adev-si_drv2 = cp;
 +   adev-si_flags |= SI_UNMAPPED;
 }

 g_dev_attrchanged(cp, GEOM::physpath);


This part looks unrelated.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r270149 - head/sys/geom

2014-08-18 Thread Sergey Kandaurov
On 19 August 2014 00:05, Alexander Kabaev kab...@gmail.com wrote:
 On Mon, 18 Aug 2014 23:51:32 +0400
 Sergey Kandaurov pluk...@freebsd.org wrote:

 On 18 August 2014 23:27, Scott Long sco...@freebsd.org wrote:
  Author: scottl
  Date: Mon Aug 18 19:27:47 2014
  New Revision: 270149
  URL: http://svnweb.freebsd.org/changeset/base/270149
 
  Log:
Deal explicitly with possible failures of make_dev_alias_p() in
  GEOM.
 
Submitted by:   Mariusz Zaborski osho...@freebsd.org
MFC after:  3 days
 
  Modified:
head/sys/geom/geom_dev.c
 
  Modified: head/sys/geom/geom_dev.c
  ==
  --- head/sys/geom/geom_dev.cMon Aug 18 18:07:28 2014
  (r270148) +++ head/sys/geom/geom_dev.cMon Aug 18 19:27:47
  2014(r270149)
 [...]
  @@ -263,6 +264,7 @@ g_dev_taste(struct g_class *mp, struct g
  if (adev != NULL) {
  adev-si_iosize_max = MAXPHYS;
  adev-si_drv2 = cp;
  +   adev-si_flags |= SI_UNMAPPED;
  }
 
  g_dev_attrchanged(cp, GEOM::physpath);
 

 This part looks unrelated.


 Commit says that it deals with consequences of make_dev_alias_p
 failing. Preventing trap happening on said failure seems to be
 pretty much related to the stated goal.

I missed setting SI_UNMAPPED was already there, nevermind.

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r269942 - head/lib/libc/gen

2014-08-13 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Aug 13 14:49:51 2014
New Revision: 269942
URL: http://svnweb.freebsd.org/changeset/base/269942

Log:
  Fixed ENOMEM description.
  
  MFC after:1 week
  Sponsored by: Nginx, Inc.

Modified:
  head/lib/libc/gen/posix_spawnattr_init.3

Modified: head/lib/libc/gen/posix_spawnattr_init.3
==
--- head/lib/libc/gen/posix_spawnattr_init.3Wed Aug 13 12:58:15 2014
(r269941)
+++ head/lib/libc/gen/posix_spawnattr_init.3Wed Aug 13 14:49:51 2014
(r269942)
@@ -100,7 +100,7 @@ The
 function will fail if:
 .Bl -tag -width Er
 .It Bq Er ENOMEM
-Insufficient memory exists to initialize the spawn file actions object.
+Insufficient memory exists to initialize the spawn attributes object.
 .El
 .Sh SEE ALSO
 .Xr posix_spawn 3 ,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r269663 - stable/9/sys/amd64/conf

2014-08-07 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Aug  7 12:19:42 2014
New Revision: 269663
URL: http://svnweb.freebsd.org/changeset/base/269663

Log:
  Fix amd64 LINT.
  
  hyperv is not in stable/9, thus partially revert MFC r257277.

Modified:
  stable/9/sys/amd64/conf/NOTES

Modified: stable/9/sys/amd64/conf/NOTES
==
--- stable/9/sys/amd64/conf/NOTES   Thu Aug  7 11:44:30 2014
(r269662)
+++ stable/9/sys/amd64/conf/NOTES   Thu Aug  7 12:19:42 2014
(r269663)
@@ -472,8 +472,6 @@ device  virtio_blk  # VirtIO Block device
 device virtio_scsi # VirtIO SCSI device
 device virtio_balloon  # VirtIO Memory Balloon device
 
-device hyperv  # HyperV drivers
-
 # Xen HVM Guest Optimizations
 optionsXENHVM  # Xen HVM kernel infrastructure 
 device xenpci  # Xen HVM Hypervisor services driver
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r269462 - head/sys/kern

2014-08-03 Thread Sergey Kandaurov
Author: pluknet
Date: Sun Aug  3 07:59:19 2014
New Revision: 269462
URL: http://svnweb.freebsd.org/changeset/base/269462

Log:
  vn_path_to_global_path: update comment.

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==
--- head/sys/kern/vfs_cache.c   Sun Aug  3 05:53:53 2014(r269461)
+++ head/sys/kern/vfs_cache.c   Sun Aug  3 07:59:19 2014(r269462)
@@ -1424,7 +1424,7 @@ cache_enter(struct vnode *dvp, struct vn
  * This function updates path string to vnode's full global path
  * and checks the size of the new path string against the pathlen argument.
  *
- * Requires a locked, referenced vnode and GIANT lock held.
+ * Requires a locked, referenced vnode.
  * Vnode is re-locked on success or ENODEV, otherwise unlocked.
  *
  * If sysctl debug.disablefullpath is set, ENODEV is returned,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r269323 - head/usr.bin/m4

2014-07-31 Thread Sergey Kandaurov
On 31 July 2014 09:56, Baptiste Daroussin b...@freebsd.org wrote:
 Author: bapt
 Date: Thu Jul 31 05:56:15 2014
 New Revision: 269323
 URL: http://svnweb.freebsd.org/changeset/base/269323

 Log:
   lower warning level to fix build with gcc

 Modified:
   head/usr.bin/m4/Makefile

 Modified: head/usr.bin/m4/Makefile
 ==
 --- head/usr.bin/m4/MakefileThu Jul 31 05:12:21 2014(r269322)
 +++ head/usr.bin/m4/MakefileThu Jul 31 05:56:15 2014(r269323)
 @@ -16,6 +16,7 @@ NO_WMISSING_VARIABLE_DECLARATIONS=
  SRCS=  eval.c expr.c look.c main.c misc.c gnum4.c trace.c parser.y 
 tokenizer.l
  .PATH: ${.CURDIR}/lib
  SRCS+= ohash.c
 +WARNS= 3

  tokenizer.o: parser.h



I am suspicious of this approach.
Unless objections, I'd like to commit the following one
(it also follows the NetBSD way in fixing up .Ox m4 import).
Although it is low quality as well, it allows to keep WARNS.

Index: lib/ohash.c
===
--- lib/ohash.c(revision 269324)
+++ lib/ohash.c(working copy)
@@ -120,7 +120,7 @@
 void *
 ohash_remove(struct ohash *h, unsigned int i)
 {
-void*result = (void *)h-t[i].p;
+void*result = __DECONST(void *, h-t[i].p);

 if (result == NULL || result == DELETED)
 return NULL;
@@ -141,7 +141,7 @@
 if (h-t[i].p == DELETED)
 return NULL;
 else
-return (void *)h-t[i].p;
+return __DECONST(void *, h-t[i].p);
 }

 void *
@@ -180,7 +180,7 @@
 {
 for (; *pos  h-size; (*pos)++)
 if (h-t[*pos].p != DELETED  h-t[*pos].p != NULL)
-return (void *)h-t[(*pos)++].p;
+return __DECONST(void *, h-t[(*pos)++].p);
 return NULL;
 }

Index: misc.c
===
--- misc.c(revision 269324)
+++ misc.c(working copy)
@@ -265,7 +265,7 @@
 extern char *__progname;

 void
-m4errx(int eval, const char *fmt, ...)
+m4errx(int exval, const char *fmt, ...)
 {
 fprintf(stderr, %s: , __progname);
 fprintf(stderr, %s at line %lu: , CURRENT_NAME, CURRENT_LINE);
@@ -277,7 +277,7 @@
 va_end(ap);
 }
 fprintf(stderr, \n);
-exit(eval);
+exit(exval);
 }

 /*


-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r269225 - stable/10/usr.bin/mkimg

2014-07-29 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul 29 07:36:38 2014
New Revision: 269225
URL: http://svnweb.freebsd.org/changeset/base/269225

Log:
  MFC r268727 (by delphij):
  
  Add a bandaid to fix GCC build (on sparc64 et al).

Modified:
  stable/10/usr.bin/mkimg/vhd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/mkimg/vhd.c
==
--- stable/10/usr.bin/mkimg/vhd.c   Tue Jul 29 07:13:03 2014
(r269224)
+++ stable/10/usr.bin/mkimg/vhd.c   Tue Jul 29 07:36:38 2014
(r269225)
@@ -320,6 +320,7 @@ vhd_dyn_write(int fd)
 
blk = 0;
blkcnt = VHD_BLOCK_SIZE / secsz;
+   error = 0;
nblks = image_get_size();
while (blk  nblks) {
if (!image_data(blk, blkcnt)) {
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r269162 - in head/usr.bin/m4: . lib

2014-07-29 Thread Sergey Kandaurov
On 28 July 2014 02:54, Baptiste Daroussin b...@freebsd.org wrote:
 Author: bapt
 Date: Sun Jul 27 22:54:13 2014
 New Revision: 269162
 URL: http://svnweb.freebsd.org/changeset/base/269162

 Log:
   Sync with OpenBSD
   This brings:
   - check for integer overflows in custom allocs
   - fix potential integer overflows in memory allocation
   - annotate regexp error messages with source string
   - better error handling in mkstemp/unlink/fdopen logic

 Added:
   head/usr.bin/m4/lib/ohash.c   (contents, props changed)
[...]

This broke gcc build.

In file included from /src/usr.bin/m4/look.c:49:
/src/usr.bin/m4/lib/ohash.h:62: warning: '__bounded__' attribute
directive ignored

http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-mips-mips.brief

-- 
wbr,
pluknet
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r269240 - in head: . share/man/man9

2014-07-29 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul 29 13:40:33 2014
New Revision: 269240
URL: http://svnweb.freebsd.org/changeset/base/269240

Log:
  Add VOP_GETVOBJECT.9 to obsolete files, un-xref.
  
  X-MFC with:   r269160

Modified:
  head/ObsoleteFiles.inc
  head/share/man/man9/vnode.9

Modified: head/ObsoleteFiles.inc
==
--- head/ObsoleteFiles.inc  Tue Jul 29 13:26:24 2014(r269239)
+++ head/ObsoleteFiles.inc  Tue Jul 29 13:40:33 2014(r269240)
@@ -38,6 +38,10 @@
 #   xargs -n1 | sort | uniq -d;
 # done
 
+# 20140728: Remove an obsolete man page
+OLD_FILES+=usr/share/man/man9/VOP_GETVOBJECT.9.gz
+OLD_FILES+=usr/share/man/man9/VOP_CREATEVOBJECT.9.gz
+OLD_FILES+=usr/share/man/man9/VOP_DESTROYVOBJECT.9.gz
 # 20140723: renamed to PCBGROUP.9
 OLD_FILES+=usr/share/man/man9/PCBGROUPS.9.gz
 # 20140718: Remove obsolete man pages

Modified: head/share/man/man9/vnode.9
==
--- head/share/man/man9/vnode.9 Tue Jul 29 13:26:24 2014(r269239)
+++ head/share/man/man9/vnode.9 Tue Jul 29 13:40:33 2014(r269240)
@@ -170,7 +170,6 @@ intertwining of VM Objects and Vnodes.
 .Xr VOP_GETACL 9 ,
 .Xr VOP_GETEXTATTR 9 ,
 .Xr VOP_GETPAGES 9 ,
-.Xr VOP_GETVOBJECT 9 ,
 .Xr VOP_INACTIVE 9 ,
 .Xr VOP_IOCTL 9 ,
 .Xr VOP_LINK 9 ,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r269022 - head/share/man/man9

2014-07-23 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Jul 23 18:54:18 2014
New Revision: 269022
URL: http://svnweb.freebsd.org/changeset/base/269022

Log:
  - Use Rs/Re mdoc macros.
  - Remove duplicate and/or redundant content.

Modified:
  head/share/man/man9/PCBGROUP.9

Modified: head/share/man/man9/PCBGROUP.9
==
--- head/share/man/man9/PCBGROUP.9  Wed Jul 23 18:05:39 2014
(r269021)
+++ head/share/man/man9/PCBGROUP.9  Wed Jul 23 18:54:18 2014
(r269022)
@@ -64,28 +64,9 @@
 .Fa struct inpcbinfo *pcbinfo u_int hashtype uint32_t hash
 .Fc
 .Sh DESCRIPTION
-PCBGROUP, or connection groups, are based on Willman, Rixner, and Cox's
-2006 USENIX paper,
-.Qo
-An Evaluation of Network Stack Parallelization Strategies in Modern
-Operating Systems
-.Qc .
-.Pp
-The PCBGROUP paper describes two main kind of connection groups.
-The first, called ConnP-T, uses a pool of worker threads which
-implement the network stack.
-Serialization occurs when queuing work into and completing work from
-the network stack.
-No locking is required inside each worker thread.
-.Pp
-The second type of connection group, called ConnP-L, uses an array
-of PCB groups rather than a single list.
-Each PCB group is protected by its own lock.
-.Pp
-This implementation differs significantly from that described in the
-paper, in that it attempts to introduce not just notions of affinity
+This implementation introduces notions of affinity
 for connections and distribute work so as to reduce lock contention,
-but also align those notions with hardware work distribution strategies
+with hardware work distribution strategies
 such as RSS.
 In this construction, connection groups supplement, rather than replace,
 existing reservation tables for protocol 4-tuples, offering CPU-affine
@@ -99,7 +80,7 @@ This indicates to the connection group c
 a particular group.
 This must be aligned with any hardware-offloaded distribution model,
 such as RSS or similar approaches taken in embedded network boards.
-Wildcard sockets require special handling, as in Willman 2006, and
+Wildcard sockets require special handling, as in Willmann 2006, and
 are shared between connection groups while being protected by
 group-local locks.
 Connection establishment and teardown can be signficantly more
@@ -204,17 +185,18 @@ receive path in
 .Xr mbuf 9 ,
 .Xr netisr 9 ,
 .Xr RSS 9
+.Rs
+.%A Paul Willmann
+.%A Scott Rixner
+.%A Alan L. Cox
+.%T An Evaluation of Network Stack Parallelization Strategies in Modern 
Operating Systems
+.%J 2006 USENIX Annual Technical Conference
+.%D 2006
+.%U http://www.ece.rice.edu/~willmann/pubs/paranet_usenix.pdf
+.Re
 .Sh HISTORY
 PCBGROUP first appeared in
 .Fx 9.0 .
-.Pp
-The PCBGROUP implementation is inspired by Willman, Rixner, and Cox's
-2006 USENIX paper,
-.Qo
-An Evaluation of Network Stack Parallelization Strategies in Modern
-Operating Systems
-.Qc :
-.Li http://www.ece.rice.edu/~willmann/pubs/paranet_usenix.pdf
 .Sh AUTHORS
 .An -nosplit
 The PCBGROUP implementation was written by
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268988 - head/share/man/man4

2014-07-22 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul 22 19:37:38 2014
New Revision: 268988
URL: http://svnweb.freebsd.org/changeset/base/268988

Log:
  Grammar and spelling fixes.

Modified:
  head/share/man/man4/ddb.4

Modified: head/share/man/man4/ddb.4
==
--- head/share/man/man4/ddb.4   Tue Jul 22 18:37:59 2014(r268987)
+++ head/share/man/man4/ddb.4   Tue Jul 22 19:37:38 2014(r268988)
@@ -1124,7 +1124,7 @@ abbreviations.
 .It Ic capture status
 .Nm
 supports a basic output capture facility, which can be used to retrieve the
-results of debugging commands from userpsace using
+results of debugging commands from userspace using
 .Xr sysctl 2 .
 .Ic capture on
 enables output capture;
@@ -1429,7 +1429,7 @@ diagnose problems.
 Other bus' bridge chipsets may be able to generate NMI using bus specific
 methods.
 .Sh FILES
-Header files mention in this manual page can be found below
+Header files mentioned in this manual page can be found below
 .Pa /usr/include
 directory.
 .Pp
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268995 - in head: . share/man/man9

2014-07-22 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul 22 22:16:23 2014
New Revision: 268995
URL: http://svnweb.freebsd.org/changeset/base/268995

Log:
  s/PCBGROUPS/PCBGROUP/ manpage to match options PCBGROUP.

Added:
  head/share/man/man9/PCBGROUP.9
 - copied, changed from r268994, head/share/man/man9/PCBGROUPS.9
Deleted:
  head/share/man/man9/PCBGROUPS.9
Modified:
  head/ObsoleteFiles.inc
  head/share/man/man9/Makefile

Modified: head/ObsoleteFiles.inc
==
--- head/ObsoleteFiles.inc  Tue Jul 22 20:49:58 2014(r268994)
+++ head/ObsoleteFiles.inc  Tue Jul 22 22:16:23 2014(r268995)
@@ -38,6 +38,8 @@
 #   xargs -n1 | sort | uniq -d;
 # done
 
+# 20140723: renamed to PCBGROUP.9
+OLD_FILES+=usr/share/man/man9/PCBGROUPS.9.gz
 # 20140719: libsbuf version bump
 OLD_LIBS+=lib/libsbuf.so.6
 # 20140718: Remove obsolete man pages

Modified: head/share/man/man9/Makefile
==
--- head/share/man/man9/MakefileTue Jul 22 20:49:58 2014
(r268994)
+++ head/share/man/man9/MakefileTue Jul 22 22:16:23 2014
(r268995)
@@ -188,7 +188,7 @@ MAN=accept_filter.9 \
osd.9 \
panic.9 \
pbuf.9 \
-   PCBGROUPS.9 \
+   PCBGROUP.9 \
p_candebug.9 \
p_cansee.9 \
pci.9 \

Copied and modified: head/share/man/man9/PCBGROUP.9 (from r268994, 
head/share/man/man9/PCBGROUPS.9)
==
--- head/share/man/man9/PCBGROUPS.9 Tue Jul 22 20:49:58 2014
(r268994, copy source)
+++ head/share/man/man9/PCBGROUP.9  Tue Jul 22 22:16:23 2014
(r268995)
@@ -27,10 +27,10 @@
 .\ $FreeBSD$
 .\
 .Dd July 18, 2014
-.Dt PCBGROUPS 9
+.Dt PCBGROUP 9
 .Os
 .Sh NAME
-.Nm PCBGROUPS
+.Nm PCBGROUP
 .Nd Distributed Protocol Control Block Groups
 .Sh SYNOPSIS
 .Ft void
@@ -58,16 +58,16 @@
 .Fa struct inpcbinfo *pcbinfo u_int hashtype uint32_t hash
 .Fc
 .Pp
-.Cd options PCBGROUPS
+.Cd options PCBGROUP
 .Sh DESCRIPTION
-PCBGROUPS, or connection groups, are based on Willman, Rixner, and Cox's
+PCBGROUP, or connection groups, are based on Willman, Rixner, and Cox's
 2006 USENIX paper,
 .Qo
 An Evaluation of Network Stack Parallelization Strategies in Modern
 Operating Systems
 .Qc .
 .Pp
-The PCBGROUPS paper describes two main kind of connection groups.
+The PCBGROUP paper describes two main kind of connection groups.
 The first, called ConnP-T, uses a pool of worker threads which
 implement the network stack.
 Serialization occurs when queuing work into and completing work from
@@ -102,7 +102,7 @@ Connection establishment and teardown ca
 expensive than without connection groups, but that steady-state
 processing can be significantly faster.
 .Pp
-Enabling PCBGROUPS in the kernel only provides the infrastructure
+Enabling PCBGROUP in the kernel only provides the infrastructure
 required to create and manage multiple PCB groups.
 An implementation needs to fill in a few functions to provide PCB
 group hash information in order for PCBs to be placed in a PCB group.
@@ -133,9 +133,9 @@ wildcard table.
 The PCBGROUP tables operate in conjunction with the normal single PCB list
 in a PCB info block.
 Thus, inserting and removing a PCB will still incur the same costs
-as without PCBGROUPS.
-A protocol which uses PCBGROUPS should fall back to the normal PCB list
-lookup if a call to the PCBGROUPS layer does not yield a lookup hit.
+as without PCBGROUP.
+A protocol which uses PCBGROUP should fall back to the normal PCB list
+lookup if a call to the PCBGROUP layer does not yield a lookup hit.
 .Ss Usage
 Initialize a PCBGROUP in a PCB info block
 .Pq Vt struct pcbinfo
@@ -165,7 +165,7 @@ The PCB code in
 .Pa sys/netinet
 and
 .Pa sys/netinet6
-is aware of PCBGROUPS and will call into the PCBGROUPS code to do
+is aware of PCBGROUP and will call into the PCBGROUP code to do
 PCBGROUP assignment and lookup, preferring a PCBGROUP lookup to the
 default global PCB info table.
 .Pp
@@ -201,10 +201,10 @@ receive path in
 .Xr netisr 9 ,
 .Xr RSS 9
 .Sh HISTORY
-PCBGROUPS first appeared in
+PCBGROUP first appeared in
 .Fx 9.0 .
 .Pp
-The PCBGROUPS implementation is inspired by Willman, Rixner, and Cox's
+The PCBGROUP implementation is inspired by Willman, Rixner, and Cox's
 2006 USENIX paper,
 .Qo
 An Evaluation of Network Stack Parallelization Strategies in Modern
@@ -213,7 +213,7 @@ Operating Systems
 .Li http://www.ece.rice.edu/~willmann/pubs/paranet_usenix.pdf
 .Sh AUTHORS
 .An -nosplit
-The PCBGROUPS implementation was written by
+The PCBGROUP implementation was written by
 .An Robert N. M. Watson Aq Mt rwat...@freebsd.org
 under contract to Juniper Networks, Inc.
 .Pp
@@ -224,12 +224,12 @@ The
 .Xr RSS 9
 implementation currently uses
 .Ic #ifdef
-blocks to tie into PCBGROUPS.
+blocks to tie into PCBGROUP.
 This is a sign that a more abstract programming API 

svn commit: r268996 - head/share/man/man9

2014-07-22 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul 22 22:39:59 2014
New Revision: 268996
URL: http://svnweb.freebsd.org/changeset/base/268996

Log:
  Re-sort synopsis, add includes.

Modified:
  head/share/man/man9/PCBGROUP.9

Modified: head/share/man/man9/PCBGROUP.9
==
--- head/share/man/man9/PCBGROUP.9  Tue Jul 22 22:16:23 2014
(r268995)
+++ head/share/man/man9/PCBGROUP.9  Tue Jul 22 22:39:59 2014
(r268996)
@@ -26,13 +26,18 @@
 .\
 .\ $FreeBSD$
 .\
-.Dd July 18, 2014
+.Dd July 23, 2014
 .Dt PCBGROUP 9
 .Os
 .Sh NAME
 .Nm PCBGROUP
 .Nd Distributed Protocol Control Block Groups
 .Sh SYNOPSIS
+.Cd options PCBGROUP
+.Pp
+.In sys/param.h
+.In netinet/in.h
+.In netinet/in_pcb.h
 .Ft void
 .Fo in_pcbgroup_init
 .Fa struct inpcbinfo *pcbinfo u_int hashfields int hash_nelements
@@ -53,12 +58,11 @@
 .Fn in_pcbgroup_remove struct inpcb *inp
 .Ft int
 .Fn in_pcbgroup_enabled struct inpcbinfo *pcbinfo
+.In netinet6/in6_pcb.h
 .Ft struct inpcbgroup *
 .Fo in6_pcbgroup_byhash
 .Fa struct inpcbinfo *pcbinfo u_int hashtype uint32_t hash
 .Fc
-.Pp
-.Cd options PCBGROUP
 .Sh DESCRIPTION
 PCBGROUP, or connection groups, are based on Willman, Rixner, and Cox's
 2006 USENIX paper,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268938 - head/share/man/man9

2014-07-21 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Jul 21 08:42:35 2014
New Revision: 268938
URL: http://svnweb.freebsd.org/changeset/base/268938

Log:
  [mdoc] cleanup

Modified:
  head/share/man/man9/PCBGROUPS.9

Modified: head/share/man/man9/PCBGROUPS.9
==
--- head/share/man/man9/PCBGROUPS.9 Mon Jul 21 06:45:19 2014
(r268937)
+++ head/share/man/man9/PCBGROUPS.9 Mon Jul 21 08:42:35 2014
(r268938)
@@ -34,23 +34,29 @@
 .Nd Distributed Protocol Control Block Groups
 .Sh SYNOPSIS
 .Ft void
-.Fn in_pcbgroup_init(struct inpcbinfo *pcbinfo, u_int hashfields, int 
hash_nelements);
+.Fo in_pcbgroup_init
+.Fa struct inpcbinfo *pcbinfo u_int hashfields int hash_nelements
+.Fc
 .Ft void
-.Fn in_pcbgroup_destroy(struct inpcbinfo *pcbinfo);
+.Fn in_pcbgroup_destroy struct inpcbinfo *pcbinfo
 .Ft struct inpcbgroup *
-.Fn in_pcbgroup_byhash(struct inpcbinfo *pcbinfo, u_int hashtype, uint32_t 
hash);
+.Fo in_pcbgroup_byhash
+.Fa struct inpcbinfo *pcbinfo u_int hashtype uint32_t hash
+.Fc
 .Ft struct inpcbgroup *
-.Fn in_pcbgroup_byinpcb(struct inpcb *inp);
+.Fn in_pcbgroup_byinpcb struct inpcb *inp
 .Ft void
-.Fn in_pcbgroup_update(struct inpcb *inp);
+.Fn in_pcbgroup_update struct inpcb *inp
 .Ft void
-.Fn in_pcbgroup_update_mbuf(struct inpcb *inp, struct mbuf *m);
+.Fn in_pcbgroup_update_mbuf struct inpcb *inp struct mbuf *m
 .Ft void
-.Fn in_pcbgroup_remove(struct inpcb *inp);
+.Fn in_pcbgroup_remove struct inpcb *inp
 .Ft int
-.Fn in_pcbgroup_enabled(struct inpcbinfo *pcbinfo);
+.Fn in_pcbgroup_enabled struct inpcbinfo *pcbinfo
 .Ft struct inpcbgroup *
-.Fn in6_pcbgroup_byhash(struct inpcbinfo *pcbinfo, u_int hashtype, uint32_t 
hash);
+.Fo in6_pcbgroup_byhash
+.Fa struct inpcbinfo *pcbinfo u_int hashtype uint32_t hash
+.Fc
 .Pp
 .Cd options PCBGROUPS
 .Sh DESCRIPTION
@@ -111,7 +117,7 @@ By default, a PCBGROUP table is created 
 The PCBGROUP code attempts to calculate a hash value from the given
 PCB or mbuf when looking up a PCBGROUP.
 While processing a received frame,
-.Fn in_pcbgroup_byhash()
+.Fn in_pcbgroup_byhash
 can be used in conjunction with either a hardware-provided hash
 value
 .Po
@@ -192,10 +198,11 @@ receive path in
 .El
 .Sh SEE ALSO
 .Xr mbuf 9 ,
-.Xr RSS 9 ,
-.Xr netisr 9
+.Xr netisr 9 ,
+.Xr RSS 9
 .Sh HISTORY
-PCBGROUPS first appeared in FreeBSD 9.0.
+PCBGROUPS first appeared in
+.Fx 9.0.
 .Pp
 The PCBGROUPS implementation is inspired by Willman, Rixner, and Cox's
 2006 USENIX paper,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268939 - head/share/man/man9

2014-07-21 Thread Sergey Kandaurov
Author: pluknet
Date: Mon Jul 21 08:47:54 2014
New Revision: 268939
URL: http://svnweb.freebsd.org/changeset/base/268939

Log:
  Fixed fallout from previous change.

Modified:
  head/share/man/man9/PCBGROUPS.9

Modified: head/share/man/man9/PCBGROUPS.9
==
--- head/share/man/man9/PCBGROUPS.9 Mon Jul 21 08:42:35 2014
(r268938)
+++ head/share/man/man9/PCBGROUPS.9 Mon Jul 21 08:47:54 2014
(r268939)
@@ -202,7 +202,7 @@ receive path in
 .Xr RSS 9
 .Sh HISTORY
 PCBGROUPS first appeared in
-.Fx 9.0.
+.Fx 9.0 .
 .Pp
 The PCBGROUPS implementation is inspired by Willman, Rixner, and Cox's
 2006 USENIX paper,
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r268745 - in head/usr.bin: . timeout

2014-07-16 Thread Sergey Kandaurov
On Wed, Jul 16, 2014 at 09:55:36AM +, Baptiste Daroussin wrote:
 Author: bapt
 Date: Wed Jul 16 09:55:36 2014
 New Revision: 268745
 URL: http://svnweb.freebsd.org/changeset/base/268745
 
 Log:
   New BSDL timeout(1) utility compatible with GNU timeout

The purpose of this utility is unclear.

[...]
 +.Ar args
 +and kills if it is still runs after
 +.Ar duration .
 +.Bl -tag -width -k time, --kill-after time

mdoc warning: A .Bl directive has no matching .El

 +.It Fl -preserve-status
 +Always exist with the same status as
 +.Ar command
 +even if it times out.
 +.It Fl -foreground
 +Do not propagate timeout to the
 +.Ar command
 +children.
 +.It Fl s Ar sig , Fl -signal Ar sig
 +Speficy the signal to send on timeout by default
 +.Ar SIGTERM .
 +.It Fl k Ar time , Fl -kill-after Ar time
 +Send a second kill if the
 +.Ar command
 +is still running after
 +.Ar time
 +seconds after the first signal was sent
 +.Sh SEE ALSO
 +.Xr signal 3 ,
 +.Xr kill 1
 
 Added: head/usr.bin/timeout/timeout.c
 ==
 --- /dev/null 00:00:00 1970   (empty, because file is newly added)
 +++ head/usr.bin/timeout/timeout.cWed Jul 16 09:55:36 2014
 (r268745)
 @@ -0,0 +1,336 @@
 +/*-
 + * Copyright (c) 2014 Baptiste Daroussin b...@freebsd.org
 + * Copyright (c) 2014 Vsevolod Stakhov vsevo...@freebsd.org
 + * All rights reserved.
 + *~

hah? looks like an editor issue

 + * Redistribution and use in source and binary forms, with or without
 + * modification, are permitted provided that the following conditions
 + * are met:
 + * 1. Redistributions of source code must retain the above copyright
 + *notice, this list of conditions and the following disclaimer
 + *in this position and unchanged.
 + * 2. Redistributions in binary form must reproduce the above copyright
 + *notice, this list of conditions and the following disclaimer in the
 + *documentation and/or other materials provided with the distribution.
 + *~

same here



pgpm2RFoTuERI.pgp
Description: PGP signature


Re: svn commit: r268745 - in head/usr.bin: . timeout

2014-07-16 Thread Sergey Kandaurov
On 16 July 2014 13:55, Baptiste Daroussin b...@freebsd.org wrote:
 Author: bapt
 Date: Wed Jul 16 09:55:36 2014
 New Revision: 268745
 URL: http://svnweb.freebsd.org/changeset/base/268745

 Log:
   New BSDL timeout(1) utility compatible with GNU timeout
[...]
(sorry, missed this in a previous reply)

 Added: head/usr.bin/timeout/timeout.1
 ==
 --- /dev/null   00:00:00 1970   (empty, because file is newly added)
 +++ head/usr.bin/timeout/timeout.1  Wed Jul 16 09:55:36 2014
 (r268745)
 @@ -0,0 +1,70 @@
 +.\ Copyright (c) 2014 Baptiste Daroussin b...@freebsd.org
 +.\ All rights reserved.
 +.\
 +.\ Redistribution and use in source and binary forms, with or without
 +.\ modification, are permitted provided that the following conditions
 +.\ are met:
 +.\ 1. Redistributions of source code must retain the above copyright
 +.\notice, this list of conditions and the following disclaimer.
 +.\ 2. Redistributions in binary form must reproduce the above copyright
 +.\notice, this list of conditions and the following disclaimer in the
 +.\documentation and/or other materials provided with the distribution.
 +.\
 +.\ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 +.\ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 +.\ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
 PURPOSE
 +.\ ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 +.\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 CONSEQUENTIAL
 +.\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 +.\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 +.\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
 STRICT
 +.\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 +.\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 +.\ SUCH DAMAGE.
 +.\
 +.\ $FreeBSD$
 +.\
 +.Dd July 16, 2014
 +.Dt TIMEOUT 1
 +.Os
 +.Sh NAME
 +.Nm timeout
 +.Nd run a command with a time limit
 +.Sh SYNOPSIS
 +.Nm
 +.Op Fl -signal Ar sig | Fl s Ar sig
 +.Op Fl -preserve-status
 +.Op Fl -kill-after Ar time | Fl k Ar time
 +.Op Fl -foreground
 +.Ao Ar duration Ac
 +.Ao Ar command Ac
 +.Ao Ar args ... Ac
 +.Sh DESCRIPTION
 +.Nm

please

The
.Nm
utility

 +starts the
 +.Ar command
 +with its
 +.Ar args
 +and kills if it is still runs after

and kills _it_ ?

 +.Ar duration .

in what units?

 +.Bl -tag -width -k time, --kill-after time
 +.It Fl -preserve-status
 +Always exist with the same status as
 +.Ar command
 +even if it times out.
 +.It Fl -foreground
 +Do not propagate timeout to the
 +.Ar command
 +children.
 +.It Fl s Ar sig , Fl -signal Ar sig
 +Speficy the signal to send on timeout by default
 +.Ar SIGTERM .
 +.It Fl k Ar time , Fl -kill-after Ar time
 +Send a second kill if the
 +.Ar command
 +is still running after
 +.Ar time
 +seconds after the first signal was sent
 +.Sh SEE ALSO
 +.Xr signal 3 ,
 +.Xr kill 1

The entries are unsorted.


 Added: head/usr.bin/timeout/timeout.c
 ==
 --- /dev/null   00:00:00 1970   (empty, because file is newly added)
 +++ head/usr.bin/timeout/timeout.c  Wed Jul 16 09:55:36 2014
 (r268745)
 @@ -0,0 +1,336 @@
 +/*-
 + * Copyright (c) 2014 Baptiste Daroussin b...@freebsd.org
 + * Copyright (c) 2014 Vsevolod Stakhov vsevo...@freebsd.org
 + * All rights reserved.
 + *~
 + * Redistribution and use in source and binary forms, with or without
 + * modification, are permitted provided that the following conditions
 + * are met:
 + * 1. Redistributions of source code must retain the above copyright
 + *notice, this list of conditions and the following disclaimer
 + *in this position and unchanged.
 + * 2. Redistributions in binary form must reproduce the above copyright
 + *notice, this list of conditions and the following disclaimer in the
 + *documentation and/or other materials provided with the distribution.
 + *~
 + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
 + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 + * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 + */
 +
 +#include sys/cdefs.h
 +__FBSDID($FreeBSD$);
 +
 +#include sys/types.h
 +#include 

svn commit: r268585 - head/contrib/ipfilter/lib

2014-07-13 Thread Sergey Kandaurov
Author: pluknet
Date: Sun Jul 13 10:38:01 2014
New Revision: 268585
URL: http://svnweb.freebsd.org/changeset/base/268585

Log:
  Unbreak with gcc.
  
  I'm tired to see tinderbox spamming.  Feel free to fix it your way.

Modified:
  head/contrib/ipfilter/lib/printipfexpr.c

Modified: head/contrib/ipfilter/lib/printipfexpr.c
==
--- head/contrib/ipfilter/lib/printipfexpr.cSun Jul 13 10:31:29 2014
(r268584)
+++ head/contrib/ipfilter/lib/printipfexpr.cSun Jul 13 10:38:01 2014
(r268585)
@@ -3,7 +3,9 @@
 static void printport __P((int *));
 static void printhosts __P((int *));
 static void printsingle __P((int *));
+#ifdef USE_INET6
 static void printhostsv6 __P((int *));
+#endif
 
 void
 printipfexpr(array)
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268457 - head/usr.sbin/ctladm

2014-07-09 Thread Sergey Kandaurov
Author: pluknet
Date: Wed Jul  9 09:51:14 2014
New Revision: 268457
URL: http://svnweb.freebsd.org/changeset/base/268457

Log:
  Fix typos.

Modified:
  head/usr.sbin/ctladm/ctladm.8

Modified: head/usr.sbin/ctladm/ctladm.8
==
--- head/usr.sbin/ctladm/ctladm.8   Wed Jul  9 09:15:08 2014
(r268456)
+++ head/usr.sbin/ctladm/ctladm.8   Wed Jul  9 09:51:14 2014
(r268457)
@@ -499,7 +499,7 @@ Specify relative addressing for the star
 relative addressing, since it only works for linked commands, and CTL
 does not support linked commands.
 .It Fl i
-Tell the target to return status immediately after issuing the SYHCHRONIZE 
CACHE
+Tell the target to return status immediately after issuing the SYNCHRONIZE 
CACHE
 command rather than waiting for the cache to finish syncing.  CTL does not
 support this bit.
 .It Fl c Ar cdbsize
@@ -948,7 +948,7 @@ Specifies LUN revision string up to 4 ch
 .It Va scsiname
 Specifies LUN SCSI name string.
 .It Va eui
-Specifies LUN EUI-64 identified.
+Specifies LUN EUI-64 identifier.
 .It Va naa
 Specifies LUN NAA identifier.
 .It Va unmap
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268393 - head/lib/libc/stdlib

2014-07-08 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul  8 12:19:34 2014
New Revision: 268393
URL: http://svnweb.freebsd.org/changeset/base/268393

Log:
  [mdoc] Fix previous change.

Modified:
  head/lib/libc/stdlib/getopt.3

Modified: head/lib/libc/stdlib/getopt.3
==
--- head/lib/libc/stdlib/getopt.3   Tue Jul  8 12:16:28 2014
(r268392)
+++ head/lib/libc/stdlib/getopt.3   Tue Jul  8 12:19:34 2014
(r268393)
@@ -74,7 +74,7 @@ word, or
 .Dv NULL
 if there were no more characters in the current word.
 This is a
-.It Tn GNU
+.Tn GNU
 extension.
 For example, an option string
 .Li \x
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268396 - stable/10/lib/libc/stdlib

2014-07-08 Thread Sergey Kandaurov
Author: pluknet
Date: Tue Jul  8 13:16:03 2014
New Revision: 268396
URL: http://svnweb.freebsd.org/changeset/base/268396

Log:
  MFC r268393: [mdoc] Fix previous.

Modified:
  stable/10/lib/libc/stdlib/getopt.3
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/stdlib/getopt.3
==
--- stable/10/lib/libc/stdlib/getopt.3  Tue Jul  8 13:01:36 2014
(r268395)
+++ stable/10/lib/libc/stdlib/getopt.3  Tue Jul  8 13:16:03 2014
(r268396)
@@ -74,7 +74,7 @@ word, or
 .Dv NULL
 if there were no more characters in the current word.
 This is a
-.It Tn GNU
+.Tn GNU
 extension.
 For example, an option string
 .Li \x
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268223 - stable/10/lib/libc/sys

2014-07-03 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Jul  3 17:35:01 2014
New Revision: 268223
URL: http://svnweb.freebsd.org/changeset/base/268223

Log:
  MFC r267909: Document EINVAL.
  
  PR:   191382

Modified:
  stable/10/lib/libc/sys/bind.2
  stable/10/lib/libc/sys/connect.2
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/sys/bind.2
==
--- stable/10/lib/libc/sys/bind.2   Thu Jul  3 16:34:01 2014
(r268222)
+++ stable/10/lib/libc/sys/bind.2   Thu Jul  3 17:35:01 2014
(r268223)
@@ -28,7 +28,7 @@
 .\ @(#)bind.2 8.1 (Berkeley) 6/4/93
 .\ $FreeBSD$
 .\
-.Dd June 4, 1993
+.Dd June 26, 2014
 .Dt BIND 2
 .Os
 .Sh NAME
@@ -85,6 +85,10 @@ is not a valid descriptor.
 .It Bq Er EINVAL
 The socket is already bound to an address, and the protocol does not support
 binding to a new address; or the socket has been shut down.
+.It Bq Er EINVAL
+The
+.Fa addrlen
+argument is not a valid length for the address family.
 .It Bq Er ENOTSOCK
 The
 .Fa s

Modified: stable/10/lib/libc/sys/connect.2
==
--- stable/10/lib/libc/sys/connect.2Thu Jul  3 16:34:01 2014
(r268222)
+++ stable/10/lib/libc/sys/connect.2Thu Jul  3 17:35:01 2014
(r268223)
@@ -28,7 +28,7 @@
 .\ @(#)connect.2  8.1 (Berkeley) 6/4/93
 .\ $FreeBSD$
 .\
-.Dd September 5, 2010
+.Dd June 26, 2014
 .Dt CONNECT 2
 .Os
 .Sh NAME
@@ -80,6 +80,10 @@ The
 .Fa s
 argument
 is not a valid descriptor.
+.It Bq Er EINVAL
+The
+.Fa namelen
+argument is not a valid length for the address family.
 .It Bq Er ENOTSOCK
 The
 .Fa s
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r268225 - stable/9/lib/libc/sys

2014-07-03 Thread Sergey Kandaurov
Author: pluknet
Date: Thu Jul  3 17:37:51 2014
New Revision: 268225
URL: http://svnweb.freebsd.org/changeset/base/268225

Log:
  MFC r267909: Document EINVAL.
  
  PR:   191382

Modified:
  stable/9/lib/libc/sys/bind.2
  stable/9/lib/libc/sys/connect.2
Directory Properties:
  stable/9/lib/libc/   (props changed)
  stable/9/lib/libc/sys/   (props changed)

Modified: stable/9/lib/libc/sys/bind.2
==
--- stable/9/lib/libc/sys/bind.2Thu Jul  3 17:36:59 2014
(r268224)
+++ stable/9/lib/libc/sys/bind.2Thu Jul  3 17:37:51 2014
(r268225)
@@ -28,7 +28,7 @@
 .\ @(#)bind.2 8.1 (Berkeley) 6/4/93
 .\ $FreeBSD$
 .\
-.Dd June 4, 1993
+.Dd June 26, 2014
 .Dt BIND 2
 .Os
 .Sh NAME
@@ -85,6 +85,10 @@ is not a valid descriptor.
 .It Bq Er EINVAL
 The socket is already bound to an address, and the protocol does not support
 binding to a new address; or the socket has been shut down.
+.It Bq Er EINVAL
+The
+.Fa addrlen
+argument is not a valid length for the address family.
 .It Bq Er ENOTSOCK
 The
 .Fa s

Modified: stable/9/lib/libc/sys/connect.2
==
--- stable/9/lib/libc/sys/connect.2 Thu Jul  3 17:36:59 2014
(r268224)
+++ stable/9/lib/libc/sys/connect.2 Thu Jul  3 17:37:51 2014
(r268225)
@@ -28,7 +28,7 @@
 .\ @(#)connect.2  8.1 (Berkeley) 6/4/93
 .\ $FreeBSD$
 .\
-.Dd September 5, 2010
+.Dd June 26, 2014
 .Dt CONNECT 2
 .Os
 .Sh NAME
@@ -80,6 +80,10 @@ The
 .Fa s
 argument
 is not a valid descriptor.
+.It Bq Er EINVAL
+The
+.Fa namelen
+argument is not a valid length for the address family.
 .It Bq Er ENOTSOCK
 The
 .Fa s
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


  1   2   3   4   5   6   7   >