tcpbench pledge

2015-11-10 Thread David Hill
Hello - pledge starts after getopt because of setrtable. rpath needed incase -k (kvm_openfile) proc needed for drop_gid (setresgid) I believe I've hit every code path. More eyes are welcome. Index: tcpbench.c === RCS file:

restore -t with file size

2015-11-10 Thread Manuel Giraud
Hi, Here's a patch that add the file size in the first column of the 't' command of restore. With this, one can do: $ restore -tf mydump | sort -n to see what files are eating up all space. The patch is a bit ugly because the file size computation is piggy backed on the extractfile

sdhc(4) on APU2

2015-11-10 Thread Mark Kettenis
The SDHC on this machine comes with a 64-bit BAR, so we need to fix that XXX. I did change the error handling a bit such that we give up after the first unmappable BAR. It seems multi-slot controllers are rare and it is questionable whether higher numbered slots work if we can't properly

Re: sunfire v120 gem interfaces

2015-11-10 Thread Ryan Freeman
On Tue, Nov 10, 2015 at 08:27:36PM +1000, David Gwynne wrote: > any joy? i mean, failure? Last night my script triggered three times, hooray ;) unfortunately my eyes do not even notice much of a difference outside of system load values in the systat output :( gem0:

file(1) no longer tells if a file is stripped (www/faq/ports/guide.html patch)

2015-11-10 Thread Adam Wolk
Hi tech@ http://www.openbsd.org/faq/ports/guide.html still suggests that file(1) can be used to determine whether a file was stripped or not: > Install the application with make fake. Libraries should never be > stripped. Executables are stripped by default; this is governed by >

[3/3] replace creat(3) by open(2) - usr.bin

2015-11-10 Thread Frederic Nowak
Hi there, creat(3) "is made obsolete by: open(2)". The diff below replaces all occurrences of creat(path, mode) with open(path, O_CREAT|O_TRUNC|O_WRONLY, mode) in usr.bin. Cheers, Frederic Index: usr.bin/indent/indent.c === RCS

[1/3] replace creat(3) by open(2) - games

2015-11-10 Thread Frederic Nowak
Hi there, creat(3) "is made obsolete by: open(2)". The diff below replaces all occurrences of creat(path, mode) with open(path, O_CREAT | O_TRUNC | O_WRONLY, mode) in games. Cheers, Frederic Index: backgammon/common_source/save.c

[2/3] replace creat(3) by open(2) - libutil

2015-11-10 Thread Frederic Nowak
Hi there, creat(3) "is made obsolete by: open(2)". The diff below replaces one occurrence of creat(path, mode) with open(path, O_CREAT | O_TRUNC | O_WRONLY, mode) in libutil. Cheers, Frederic Index: lib/libutil/uucplock.c ===

Re: sdhc(4) on APU2

2015-11-10 Thread Miod Vallat
> The SDHC on this machine comes with a 64-bit BAR, so we need to fix > that XXX. I did change the error handling a bit such that we give up > after the first unmappable BAR. It seems multi-slot controllers are > rare and it is questionable whether higher numbered slots work if we > can't

Re: file(1) no longer tells if a file is stripped (www/faq/ports/guide.html patch)

2015-11-10 Thread Stuart Henderson
On 2015/11/10 21:23, Adam Wolk wrote: > Hence I rewrote the docs to use objdump(1) with the --syms flag which > reports if the provided input binary was stripped of symbols like > initially intended. Thanks, diff applied.

[patch] gprof(1): fix incompatible pointer types

2015-11-10 Thread Serguey Parkhomovsky
Hi tech@, Some of the comparator functions in gprof(1) have incompatible pointer types and generate compiler warnings. The following diff fixes the problem. Thanks, Serguey Index: arcs.c === RCS file:

Re: export directive in make

2015-11-10 Thread Ted Unangst
Carlin Bingham wrote: > GNU make and NetBSD's bmake (which is also used by FreeBSD) > support this. > > This is based on the implementation from bmake. Do you have a makefile that needs this? I think adding features that exist elsewhere, but not adding all of GNU compat (which we're clearly not

tcpdump: checksums are 4 hexits

2015-11-10 Thread Matthew Martin
Dropping leading zeros doesn't make sense for checksums. Only odd case is print-mobile.c which previously printed checksums as decimal. print-gre.c also sticks out as the only one that prepends "0x". - Matthew Martin Index: usr.sbin/tcpdump/print-carp.c

Re: sunfire v120 gem interfaces

2015-11-10 Thread David Gwynne
any joy? i mean, failure? > On 9 Nov 2015, at 10:40 AM, Ryan Freeman wrote: > > On Mon, Nov 09, 2015 at 10:07:31AM +1000, David Gwynne wrote: >> can you get the ifconfig output when its locked up? and a copy of what >> systat mb is showing? >> >> cheers, >> dlg > > Thanks

ksh(1): utf8 in emacs editing mode

2015-11-10 Thread Frederic Nowak
Hi there, I got annoyed with ksh(1) for messing up my command line after accidentally entering an umlaut and decided to take a stab at teaching it some utf8. The diff is inspired by Ted Unangst's recent patches for e.g. rs[0]. It works for my use cases and seems to handle 2-byte (ßüöä) and

Re: export directive in make

2015-11-10 Thread Carlin Bingham
On Wed, 11 Nov 2015, at 12:55 PM, Ted Unangst wrote: > Carlin Bingham wrote: > > GNU make and NetBSD's bmake (which is also used by FreeBSD) > > support this. > > > > This is based on the implementation from bmake. > > Do you have a makefile that needs this? I think adding features that > exist

pledge(2) fortune(6)

2015-11-10 Thread Ricardo Mestre
Hi! Thought this one done already, fortune(6) only needs "stdio rpath" from the beginning and "rpath" can be dropped once the fortune file is loaded. I tested all the command line parameters and didn't see any regressions, anything I might have missed? Index: fortune.c

Re: [PATCH 1/2] flex 2.5.39

2015-11-10 Thread Stuart Henderson
On 2015/11/09 08:38, Serguey Parkhomovsky wrote: > On Sun, Nov 08, 2015 at 01:23:13PM +, Stuart Henderson wrote: > > On 2015/11/08 11:47, Stuart Henderson wrote: > > > I'll put this into a ports bulk build. > > Thanks! No major problems. Fixed 2, removed 1, the only remaining breakage is

Thanks for pair(4)

2015-11-10 Thread gwes
Thanks very much to reyk@ and everyone else who helped create pair(4). It makes my configuration much simpler and (more) maintainable. Geoff Steckel