Re: switch /usr/share/locale to different layout

2013-05-31 Thread Stefan Sperling
On Fri, May 31, 2013 at 01:05:08AM -0430, Andres Perera wrote: Besides being redundant, it's generally better to bail on open() error instead of checking if the length is less than PATH_MAX in anticipation. [Unrelated to your patch, but since we are on the subject of path checks in

Re: switch /usr/share/locale to different layout

2013-05-31 Thread Vladimir Támara Patiño
On Thu, May 30, 2013 at 10:05:45PM +0200, Stefan Sperling wrote: Does anyone see problems with this plan? Sounds good. I agree with Andres, that a structure should be required for the locale name, I guess fine starting with C, POSIX, C.encoding, POSIX.encoding, ll.encoding or

Re: switch /usr/share/locale to different layout

2013-05-31 Thread Stefan Sperling
On Fri, May 31, 2013 at 07:30:20AM -0500, Vladimir Támara Patiño wrote: I agree with Andres, that a structure should be required for the locale name, I guess fine starting with C, POSIX, C.encoding, POSIX.encoding, ll.encoding or ll_CC.encoding, with CC according to ISO 3166-1 alfa-2, and ll

Re: [NEW] ugold(4) driver for Microdia's USB TEMPer variant (take 2)

2013-05-31 Thread Luis Coronado
Upgraded my icinga/cacti box to -current, latest ugold patch applied. All good: from dmesg OpenBSD 5.3-current (GENERIC.MP) #0: Wed May 29 09:47:39 CST 2013 r...@sbrnms..xxx:/usr/src/sys/arch/amd64/compile/GENERIC.MP uhidev0 at uhub3 port 1 configuration 1 interface 0 RDing TEMPerV1.2

Apple USB touchpad

2013-05-31 Thread Martin Pieuchot
Diff below moves tpms(4) from arch/macppc/dev to dev/usb because early MacBooks (Core and Core2 duo machines) also come with an Apple Touchpad and may use this driver. I didn't add this driver to i386 and amd64's GENERIC yet because I don't think it will work without a bit more love. But I'd

Re: Apple USB touchpad

2013-05-31 Thread Martin Pieuchot
On 31/05/13(Fri) 13:00, Martin Pieuchot wrote: Diff below moves tpms(4) from arch/macppc/dev to dev/usb because early MacBooks (Core and Core2 duo machines) also come with an Apple Touchpad and may use this driver. I didn't add this driver to i386 and amd64's GENERIC yet because I don't

vmxnet3

2013-05-31 Thread Masao Uebayashi
This is a newly written driver for VMware VMXNET3 ethernet controller. - vic(4) was not used as a base because VMXNET3 is very different from previous VMXNET versions. - Simple test shows that performance is comparable to VMXNET3 driver from open-vm-tools. - Man page is missing (ongoing).

Re: vmxnet3

2013-05-31 Thread Reyk Floeter
Hi, this is some nice work! The new virtual VMXNET3 chipset supports a few features that haven't been available in the previous chipsets, including VLAN Guest Tagging (VGT), or simply the ability to pass tagged VLANs from VMware hosts to external switches, and checksum offloading (hint, hint).

Re: vmxnet3

2013-05-31 Thread Theo de Raadt
I'm voting for committing it and to do further changes in the tree. that's the right process.

ping6: format time consistently

2013-05-31 Thread Christian Weisgerber
This is not very pretty: 16 bytes from 2001:638:208:ef1b:0:ff:fe00:4, icmp_seq=13 hlim=51 time=40.682 ms 16 bytes from 2001:638:208:ef1b:0:ff:fe00:4, icmp_seq=14 hlim=51 time=40.235 ms 16 bytes from 2001:638:208:ef1b:0:ff:fe00:4, icmp_seq=15 hlim=51 time=41.13 ms 16 bytes from

Re: vmxnet3

2013-05-31 Thread Reyk Floeter
Hi, On Fri, May 31, 2013 at 02:23:01PM -0400, Masao Uebayashi wrote: This is a newly written driver for VMware VMXNET3 ethernet controller. I created a manpage that I will commit shortly after the driver is in. reyk Index: vmx.4

Re: UPDATE: xf86-input-synaptics 1.7.0

2013-05-31 Thread Martin Pieuchot
On 20/05/13(Mon) 23:57, Alexandr Shadchin wrote: On Thu, May 02, 2013 at 10:11:23PM +0600, Alexandr Shadchin wrote: Hi, This update xf86-input-synaptics to the latest release 1.7.0. http://koba.devio.us/distfiles/xf86-input-synaptics-1.7.0.diff Tested on amd64 and i386.

Re: UPDATE: xf86-input-synaptics 1.7.0

2013-05-31 Thread joshua stein
Prepare diff for xf86-input-synaptics 1.7.1 http://koba.devio.us/distfiles/xf86-input-synaptics-1.7.1.diff Tested with an ALPS touchpad, no regression, I'm ok with this going in. tested on elantech v4, no problems. ok jcs@

catopen(3) improvements

2013-05-31 Thread Stefan Sperling
The base system supports localization of error messages in strerror(). catopen(3) is used to read files that contain translated versions of error messages. Currently these files have arbitrary encodings. Most are latin1, one is UTF-8, one is KOI8. These encodings are currently used regardless of

Re: switch /usr/share/locale to different layout

2013-05-31 Thread Stefan Sperling
On Thu, May 30, 2013 at 10:05:45PM +0200, Stefan Sperling wrote: Does anyone see problems with this plan? Haven't heard any objections. Updated diff which contains small tweaks and patches an mtree file to no longer create directories for arbitrary locales, some of which we don't even support.

Re: catopen(3) improvements

2013-05-31 Thread Matthew Dempsky
On Fri, May 31, 2013 at 5:19 PM, Stefan Sperling s...@openbsd.org wrote: Existing lib/libc/nls/*.msg files are renamed to the names shown in the libc/Makefile part of the diff, and new ones are added to support the UTF-8 locale (converted from the existing .msg files with iconv). I'm not

Re: catopen(3) improvements

2013-05-31 Thread Stefan Sperling
On Fri, May 31, 2013 at 05:34:34PM -0700, Matthew Dempsky wrote: On Fri, May 31, 2013 at 5:19 PM, Stefan Sperling s...@openbsd.org wrote: Existing lib/libc/nls/*.msg files are renamed to the names shown in the libc/Makefile part of the diff, and new ones are added to support the UTF-8

Re: catopen(3) improvements

2013-05-31 Thread Matthew Dempsky
On Fri, May 31, 2013 at 5:43 PM, Stefan Sperling s...@openbsd.org wrote: Yes. Conversion currently depends on the GNU iconv port. If iconv existed in base we could use just the UTF-8 source files. Hmm, I see. In that case, I guess committing converted files makes sense. In your man page diff,

Re: catopen(3) improvements

2013-05-31 Thread Alexander Bluhm
On Sat, Jun 01, 2013 at 02:19:26AM +0200, Stefan Sperling wrote: -NLS= C.msg Pig.msg da.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg ru.msg sv.msg it.msg +NLS= C.msg Pig.msg da-ISO8859-1.msg da-UTF-8.msg de-ISO8859-1.msg \ + de-UTF-8.msg es-ISO8859-1.msg es-UTF-8.msg

Re: catopen(3) improvements

2013-05-31 Thread Stefan Sperling
On Fri, May 31, 2013 at 06:01:14PM -0700, Matthew Dempsky wrote: In your man page diff, you should make use of .Dv and .Ev to identify the defines and environment variables. Instead of setting FD_CLOEXEC with fcntl(), just use O_CLOEXEC when opening. It looks like parse_lang() won't handle

mg(1) M-} forward para diff

2013-05-31 Thread Mark Lumsden
A while back, I committed a diff that fixed scrolling backwards by paragraph in mg. I thought I would give it a while before writing the corresponding diff for going forwards, just to make sure there were no problems with the first diff. So here it is. Before you compile this diff, (and if you