git: libc: Replace vis(3) and unvis(3) files with NetBSD versions

2018-04-09 Thread Francois Tigeot

commit 4be4de019fe4a28d5378192245290895096def17
Author: François Tigeot 
Date:   Mon Apr 9 21:54:26 2018 +0200

libc: Replace vis(3) and unvis(3) files with NetBSD versions

* Rendering the corresponding APIs compatible with NetBSD and FreeBSD.

* Keep strnvis() as-is, keeping it compatible with previous DragonFly
  versions, OpenBSD and libbsd

* We already had the original OpenBSD version of strnvis(), which
  predates the NetBSD one by more than 10 years

* New userland utilities code partially obtained from FreeBSD.

Reviewed-by: swildner

Summary of changes:
 include/vis.h |  64 +++-
 lib/libc/gen/Makefile.inc |   6 +-
 lib/libc/gen/Symbol.map   |  13 +
 lib/libc/gen/unvis.3  | 178 ++---
 lib/libc/gen/unvis.c  | 517 --
 lib/libc/gen/vis.3| 426 -
 lib/libc/gen/vis.c| 841 ++
 usr.bin/showmount/showmount.c |   4 +-
 usr.sbin/fstyp/fstyp.c|   5 +-
 9 files changed, 1606 insertions(+), 448 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4be4de019fe4a28d5378192245290895096def17


-- 
DragonFly BSD source repository


git: Remove a number of duplicated includes in userland.

2018-04-09 Thread Sascha Wildner

commit 1b11ea06a427d663e12e6a7a5083df6209e4cda2
Author: Sascha Wildner 
Date:   Mon Apr 9 22:26:14 2018 +0200

Remove a number of duplicated includes in userland.

Summary of changes:
 sbin/ifconfig/iflagg.c| 2 --
 sbin/init/init.c  | 1 -
 usr.bin/localedef/charmap.c   | 1 -
 usr.bin/localedef/localedef.c | 1 -
 usr.bin/pkill/pkill.c | 1 -
 usr.bin/vmstat/vmstat.c   | 1 -
 usr.sbin/ppp/chap_ms.c| 6 ++
 usr.sbin/rtadvctl/rtadvctl.c  | 1 -
 usr.sbin/sysvipcd/shmd.c  | 1 -
 9 files changed, 2 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1b11ea06a427d663e12e6a7a5083df6209e4cda2


-- 
DragonFly BSD source repository


git: ipfw3nat: func to get new alias

2018-04-09 Thread Bill Yuan

commit 6e433a953cbb9347a2f74931091a82fa4daa1e2d
Author: Bill Yuan 
Date:   Mon Apr 9 14:13:58 2018 +

ipfw3nat: func to get new alias

Summary of changes:
 sys/net/ipfw3_nat/ip_fw3_nat.c | 12 
 1 file changed, 12 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6e433a953cbb9347a2f74931091a82fa4daa1e2d


-- 
DragonFly BSD source repository


git: ipfw3nat: show config in userland

2018-04-09 Thread Bill Yuan

commit 793fbe86ed44dba712cec23371ab1c7ae18e82e7
Author: Bill Yuan 
Date:   Mon Apr 9 14:26:18 2018 +

ipfw3nat: show config in userland

Summary of changes:
 sbin/ipfw3/ipfw3nat.c | 58 ---
 sbin/ipfw3/ipfw3nat.h |  4 +---
 2 files changed, 47 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/793fbe86ed44dba712cec23371ab1c7ae18e82e7


-- 
DragonFly BSD source repository


git: ipfw3nat: show nat config in kernel

2018-04-09 Thread Bill Yuan

commit ca8ec5ce630b76d0b704e736e1755efaab9d4290
Author: Bill Yuan 
Date:   Mon Apr 9 14:33:05 2018 +

ipfw3nat: show nat config in kernel

Summary of changes:
 sys/net/ipfw3_nat/ip_fw3_nat.c | 32 +++-
 1 file changed, 31 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ca8ec5ce630b76d0b704e736e1755efaab9d4290


-- 
DragonFly BSD source repository


git: libc: Sort unvis.3 MLINKS alphabetically, too.

2018-04-09 Thread Sascha Wildner

commit dd5b5b5f02485da8ad4f5ead38cd5002a94ed793
Author: Sascha Wildner 
Date:   Tue Apr 10 07:54:41 2018 +0200

libc: Sort unvis.3 MLINKS alphabetically, too.

Summary of changes:
 lib/libc/gen/Makefile.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dd5b5b5f02485da8ad4f5ead38cd5002a94ed793


-- 
DragonFly BSD source repository


Re: git: libc: Replace vis(3) and unvis(3) files with NetBSD versions

2018-04-09 Thread Tomohiro Kusumi
nice updates

2018-04-10 5:24 GMT+09:00 Francois Tigeot :
>
> commit 4be4de019fe4a28d5378192245290895096def17
> Author: François Tigeot 
> Date:   Mon Apr 9 21:54:26 2018 +0200
>
> libc: Replace vis(3) and unvis(3) files with NetBSD versions
>
> * Rendering the corresponding APIs compatible with NetBSD and FreeBSD.
>
> * Keep strnvis() as-is, keeping it compatible with previous DragonFly
>   versions, OpenBSD and libbsd
>
> * We already had the original OpenBSD version of strnvis(), which
>   predates the NetBSD one by more than 10 years
>
> * New userland utilities code partially obtained from FreeBSD.
>
> Reviewed-by: swildner
>
> Summary of changes:
>  include/vis.h |  64 +++-
>  lib/libc/gen/Makefile.inc |   6 +-
>  lib/libc/gen/Symbol.map   |  13 +
>  lib/libc/gen/unvis.3  | 178 ++---
>  lib/libc/gen/unvis.c  | 517 --
>  lib/libc/gen/vis.3| 426 -
>  lib/libc/gen/vis.c| 841 
> ++
>  usr.bin/showmount/showmount.c |   4 +-
>  usr.sbin/fstyp/fstyp.c|   5 +-
>  9 files changed, 1606 insertions(+), 448 deletions(-)
>
> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4be4de019fe4a28d5378192245290895096def17
>
>
> --
> DragonFly BSD source repository


git: libc: Fix up MLINKS for the recent upgrade of vis.3 and unvis.3.

2018-04-09 Thread Sascha Wildner

commit cc3012b296d4dcd0d988289a9ff15cba8c91b38b
Author: Sascha Wildner 
Date:   Tue Apr 10 07:51:57 2018 +0200

libc: Fix up MLINKS for the recent upgrade of vis.3 and unvis.3.

MLINKS have the format:

MLINKS+=...

Summary of changes:
 lib/libc/gen/Makefile.inc | 10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cc3012b296d4dcd0d988289a9ff15cba8c91b38b


-- 
DragonFly BSD source repository


git: ipfw3nat: standardize the function names prefix: ip_fw3_ - function in kernel space ipfw3_ - function in userland.

2018-04-09 Thread Bill Yuan

commit aad10cc678c9714bef0bd1da647c3a89627a74b2
Author: Bill Yuan 
Date:   Mon Apr 9 10:03:20 2018 +

ipfw3nat: standardize the function names
prefix:
ip_fw3_  - function in kernel space
ipfw3_   - function in userland.

Summary of changes:
 sys/net/ipfw3_nat/ip_fw3_nat.c | 41 -
 1 file changed, 20 insertions(+), 21 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/aad10cc678c9714bef0bd1da647c3a89627a74b2


-- 
DragonFly BSD source repository


git: gcc50: Deal with -Wnarrowing when compiled by gcc80.

2018-04-09 Thread Rimvydas Jasinskas

commit 4e3e32a391a3187bd15dc30f0c8d1fd3d1bc48dd
Author: zrj 
Date:   Mon Jan 22 09:46:00 2018 +0200

gcc50: Deal with -Wnarrowing when compiled by gcc80.

Cherry-pick to 5.2

Summary of changes:
 gnu/usr.bin/cc50/libbackend/Makefile| 5 +
 gnu/usr.bin/cc50/support-libs/libcommon-target/Makefile | 6 ++
 2 files changed, 11 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4e3e32a391a3187bd15dc30f0c8d1fd3d1bc48dd


-- 
DragonFly BSD source repository


git: ncurses: Allow for easier bootstrap of libtic.

2018-04-09 Thread Rimvydas Jasinskas

commit a5875dd436959804793539029ecadb480be7e6c2
Author: zrj 
Date:   Sun Apr 8 14:52:47 2018 +0300

ncurses: Allow for easier bootstrap of libtic.

Mainly as backwards compat for gcc80.

Cherry-pick to 5.2

Summary of changes:
 lib/libncurses/libtic/Makefile | 3 +++
 1 file changed, 3 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a5875dd436959804793539029ecadb480be7e6c2


-- 
DragonFly BSD source repository


git: ipfw3nat: add conf in kernel

2018-04-09 Thread Bill Yuan

commit df0c223e23cf6ec002175a0cabe4039392043517
Author: Bill Yuan 
Date:   Mon Apr 9 10:39:07 2018 +

ipfw3nat: add conf in kernel

Summary of changes:
 sys/net/ipfw3_nat/ip_fw3_nat.c | 33 +++--
 sys/net/ipfw3_nat/ip_fw3_nat.h |  2 ++
 2 files changed, 33 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/df0c223e23cf6ec002175a0cabe4039392043517


-- 
DragonFly BSD source repository


git: ipfw3nat: nat_config func in userland.

2018-04-09 Thread Bill Yuan

commit 55463125809bb369d2d24faf89b9573f9bb636fe
Author: Bill Yuan 
Date:   Mon Apr 9 10:22:06 2018 +

ipfw3nat: nat_config func in userland.

Summary of changes:
 sbin/ipfw3/ipfw3nat.c | 87 +--
 sbin/ipfw3/ipfw3nat.h | 30 +++---
 2 files changed, 26 insertions(+), 91 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/55463125809bb369d2d24faf89b9573f9bb636fe


-- 
DragonFly BSD source repository


git: ipfw3nat: check_nat func

2018-04-09 Thread Bill Yuan

commit a9e52100a5db864a9de6697e684bafd6283a0901
Author: Bill Yuan 
Date:   Mon Apr 9 12:31:05 2018 +

ipfw3nat: check_nat func

Summary of changes:
 sys/net/ipfw3_nat/ip_fw3_nat.c | 26 --
 1 file changed, 24 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a9e52100a5db864a9de6697e684bafd6283a0901


-- 
DragonFly BSD source repository


git: ipfw3nat: nat func to replace the src or dst

2018-04-09 Thread Bill Yuan

commit 29f13cb6490754babc4058fa2e432c23471f53a9
Author: Bill Yuan 
Date:   Mon Apr 9 13:02:55 2018 +

ipfw3nat: nat func to replace the src or dst

The `src` will be replaced by `alias` when a packet is leaving the system.
Hence, the packet is from `src` to `dst` before been translated. And after
been translated, the packet is from `alias` to `dst`.

The state for outgoing packet will be stored in the nat_context of current
CPU. But due to the nature of the NAT, the returning packet may be handled
by another CPU. Hence, a state for the returning packet will be prepared and
store into the nat_context of the right CPU.

Summary of changes:
 sys/net/ipfw3_nat/ip_fw3_nat.c | 242 -
 1 file changed, 240 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/29f13cb6490754babc4058fa2e432c23471f53a9


-- 
DragonFly BSD source repository