Fix MacBook Air 2010 speakers

2012-11-29 Thread Ray Lai
Adapted from http://marc.info/?l=openbsd-miscm=128919130029011w=2 OK? Index: dev/pci/azalia_codec.c === RCS file: /home/cvs/src/sys/dev/pci/azalia_codec.c,v retrieving revision 1.151 diff -u -p -r1.151 azalia_codec.c ---

Clean up regress/usr.bin/sdiff

2016-05-30 Thread Ray Lai
Okan reminded me that my old regress tests used systrace policy files as example text, which weren't the easiest to decypher. I've replaced them with simpler files that should make life easier for any future regress test writers. Comments? Suggestions? Ray Index: Iflag12.out

Re: New scheduler for OpenBSD

2016-03-19 Thread Ray Lai
With this diff on my X200, YouTube used to be a stuttering mess on both chrome and firefox, and is now buttery smooth, even at 1080p. Thanks!

lpd systrace policy update

2016-03-28 Thread Ray Lai
Probably going to be obsolete once lpd gets pledged, but as it stands, the lpd systrace policy is missing these system calls. Index: usr_sbin_lpd === RCS file: /home/cvs/src/etc/systrace/usr_sbin_lpd,v retrieving revision 1.9 diff

New man page: fuse_opt.3

2016-05-20 Thread Ray Lai
with more fuse knowledge, feel free to chime in! Ray .\" $OpenBSD$ .\" .\" Copyright (c) Ray Lai <r...@raylai.com> .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided

improve fuse_parse_opt() parsing

2016-05-21 Thread Ray Lai
This fixes "sshfs -o idmap=user". The "if (o->off != ULONG_MAX)" logic is basically "if (!FUSE_OPT_IS_OPT_KEY(o))" from above, so I stuck it into an else. Ideas from Helg: https://marc.info/?l=openbsd-tech=142451814811631=2 Ray Index: fuse_opt.c

Missing strdup NULL checks in libfuse

2016-05-21 Thread Ray Lai
Index: fuse.c === RCS file: /home/cvs/src/lib/libfuse/fuse.c,v retrieving revision 1.27 diff -u -p -u -p -r1.27 fuse.c --- fuse.c 24 Dec 2015 17:02:37 - 1.27 +++ fuse.c 21 May 2016 09:05:20 - @@ -424,6 +424,8 @@

Re: libfuse: null-terminate argv (fuse_opt_insert_arg)

2016-05-20 Thread Ray Lai
On Thu, 19 May 2016 18:57:50 +0200 Hiltjo Posthuma wrote: > Hi peoples, > > This diff makes sure to NUL-terminate argv when parsing options in libfuse. > The upstream/other libfuse does it this way. This fixes an issue with the > sysutils/sshfs port, it uses execvp(3) on

libfuse has moved to github

2016-05-17 Thread Ray Lai
Also separate out the specification (does that count as a "standard"?) and the implementation. Index: fuse_main.3 === RCS file: /home/cvs/src/lib/libfuse/fuse_main.3,v retrieving revision 1.1 diff -u -p -r1.1 fuse_main.3 ---

Re: libfuse has moved to github

2016-05-18 Thread Ray Lai
Looks good to me > On May 18, 2016, at 11:14 PM, Jason McIntyre <j...@kerhand.co.uk> wrote: > >> On Wed, May 18, 2016 at 12:13:14AM +0800, Ray Lai wrote: >> Also separate out the specification (does that count as a "standard"?) >> and the implementat

Re: Scheduler with a single runqueue

2016-07-08 Thread Ray Lai
On Wed, 6 Jul 2016 21:14:05 +0200 Martin Pieuchot wrote: > By using a single runqueue I prioritise latency over throughput. That > means your performance might degrade, but at least I can watch my HD > video while doing a "make -j4". When I run borgbackup, audio (and my mouse)

Fix exponential glob

2017-04-28 Thread Ray Lai
As reported in https://research.swtch.com/glob, matching aaa with a*a*a*a*a*a*...etc takes exponential time. Tested with rsc's program: https://news.ycombinator.com/item?id=14187948 I copied the glob implementation from one of the BSDs - I believe FreeBSD - into a

UPDATE: net/wifind 0.5 -> 0.7

2017-09-15 Thread Ray Lai
Hi ports, Attached is a diff to update wifind to 0.7. This release merges changes from and fixes bugs reported by qbit, iandarwin, and kpcyrd: - support percentage-based signal strength reporting (iwm) - support for interface descriptions - don't die if we don't have an existing hostname.if -