On Tue, May 10, 2016 at 3:47 PM, Ted Unangst wrote:
> memcpy is newer and better.
ok guenther@
On 19:55:48, 11.05.16, Ingo Schwarze wrote:
> Hi,
>
> Michal Mazurek wrote on Wed, May 11, 2016 at 10:41:03AM +0200:
>
> > * add explicit RETURN VALUES section
> > * add an EXAMPLES section, from NetBSD and FreeBSD
> > * mention memmem(3)
>
> Committed without the EXAMPLES. I agree with tedu@ t
> I've recently noticed that two of five fans in my G5 don't spin up.
> That's because smu(4) currently just supports RPM fans.
> The attached diff adds initial support for PWM fans as well.
fcu(4) could benefit from a similar change, as there may be pwm fans
there too. At least RackMac3,1 has tw
It seems that we don't correctly read the RPM fan speed in smu(4).
I've noticed this because in my G5 the Front Fan is missing, but
sysctl though displays a value for it:
# sysctl -a | grep fan
hw.sensors.smu0.fan0=994 RPM (Rear Fan 0)
hw.sensors.smu0.fan1=994 RPM (Rear fan 1)
hw.sensors.smu0.fan2
Hi,
Michal Mazurek wrote on Wed, May 11, 2016 at 10:41:03AM +0200:
> * add explicit RETURN VALUES section
> * add an EXAMPLES section, from NetBSD and FreeBSD
> * mention memmem(3)
Committed without the EXAMPLES. I agree with tedu@ that this
example is trivial and doesn't add value.
Thanks,
this improves the realloc loop. there is no need to constantly call realloc to
resize the memory. if we have enough, we have enough. also no need to penny
pinch the initial allocation.
calling sysctl all the time is still wasteful, but harder to fix.
Index: machine.c
=
Michal Mazurek wrote:
> * add explicit RETURN VALUES section
> * add an EXAMPLES section, from NetBSD and FreeBSD
> * mention memmem(3)
does it really need an example? is strcpy next? other changes make sense.
As discussed off list, "if (!term)" is redundant, as the caller does the
check.
Also fix whitespace in some unrelated places.
Index: usr.bin/top/display.c
===
RCS file: /cvs/src/usr.bin/top/display.c,v
retrieving revision 1.50
diff -
* add explicit RETURN VALUES section
* add an EXAMPLES section, from NetBSD and FreeBSD
* mention memmem(3)
Index: lib/libc/string/strstr.3
===
RCS file: /cvs/src/lib/libc/string/strstr.3,v
retrieving revision 1.12
diff -u -p -r1.12 s
On Fri, Apr 29, 2016 at 08:42:00AM +0200, Otto Moerbeek wrote:
> Hi,
>
> new diff in http://www.drijf.net/openbsd/malloc/
>
> Should fix the issue Ted spotted and contains initial code to only set
> up multiple pools if threaded. This one is only lightly tested by me,
> but I wanted to post this
10 matches
Mail list logo