Author: ache
Date: Sun May 22 06:18:59 2016
New Revision: 300397
URL: https://svnweb.freebsd.org/changeset/base/300397
Log:
1) POSIX prohibits printing errors to stderr here and require
returning NULL:
"Upon successful completion, initstate() and setstate() shall return a
pointer to the
> On May 21, 2016, at 22:36, Joel Dahl wrote:
>
> On Sun, May 22, 2016 at 04:17:01AM +, Garrett Cooper wrote:
>> Author: ngie
>> Date: Sun May 22 04:17:00 2016
>> New Revision: 300395
>> URL: https://svnweb.freebsd.org/changeset/base/300395
>>
>> Log:
>> Silence top(1) compiler warnings
>>
On Sun, May 22, 2016 at 04:17:01AM +, Garrett Cooper wrote:
> Author: ngie
> Date: Sun May 22 04:17:00 2016
> New Revision: 300395
> URL: https://svnweb.freebsd.org/changeset/base/300395
>
> Log:
> Silence top(1) compiler warnings
>
> The contrib/top code is no longer maintained upstrea
Author: ngie
Date: Sun May 22 04:17:00 2016
New Revision: 300395
URL: https://svnweb.freebsd.org/changeset/base/300395
Log:
Silence top(1) compiler warnings
The contrib/top code is no longer maintained upstream (last pulled 16 years
ago). The K&R-style followed by the code spews -Wimplici
Author: loos
Date: Sun May 22 04:09:05 2016
New Revision: 300394
URL: https://svnweb.freebsd.org/changeset/base/300394
Log:
Remove a couple of extra blank lines.
Modified:
head/sys/dev/iicbus/iicbb_if.m
head/sys/dev/iicbus/iiconf.c
Modified: head/sys/dev/iicbus/iicbb_if.m
=
Author: loos
Date: Sun May 22 04:02:34 2016
New Revision: 300393
URL: https://svnweb.freebsd.org/changeset/base/300393
Log:
Sort and remove a couple of unnecessary headers.
Modified:
head/sys/dev/gpio/gpioiic.c
Modified: head/sys/dev/gpio/gpioiic.c
===
Author: loos
Date: Sun May 22 03:55:57 2016
New Revision: 300392
URL: https://svnweb.freebsd.org/changeset/base/300392
Log:
Get rid of two consumers of gpiobus acquire/release.
The GPIO hardware should not be owned by a single device, this defeats any
chance of use of the GPIO controller
Author: loos
Date: Sun May 22 03:34:18 2016
New Revision: 300391
URL: https://svnweb.freebsd.org/changeset/base/300391
Log:
Use a better prefix for defines, return BUS_PROBE_DEFAULT for probe routine.
Refuse to attach if the number of given pins is not enough for our needs.
Modified:
hea
Author: loos
Date: Sun May 22 03:12:49 2016
New Revision: 300390
URL: https://svnweb.freebsd.org/changeset/base/300390
Log:
Fix probe routine to return BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC.
While here fix a few style(9) issues.
Modified:
head/sys/dev/gpio/gpioled.c
Modified:
On Sun, 22 May 2016, Andrey Chernov wrote:
On 22.05.2016 3:06, Bruce Evans wrote:
...
FreeBSD still has the ACM version in libkern, and has a fixed copy
of that in libc, with the bad old version under an ifdef.
The libc version now adjusts the range from [0, 0x7fff] to
0, 0x7ffd] and r
Author: ngie
Date: Sun May 22 03:05:27 2016
New Revision: 300389
URL: https://svnweb.freebsd.org/changeset/base/300389
Log:
nis_rpcent: don't leak resultbuf from yp_first(..)/yp_next(..)
If the buffer couldn't be adequately resized to accomodate an additional "\n",
it would leak resultbuf
> Il giorno 21/mag/2016, alle ore 21:15, Bruce Evans ha
> scritto:
>
> On Sun, 22 May 2016, Pedro F. Giffuni wrote:
>
>> Log:
>> ndis(4): adjustments for our random() specific implementation.
>>
>> - Revert r300377: The implementation claims to return a value
>> within the range. [1]
>> -
Author: ngie
Date: Sun May 22 02:53:11 2016
New Revision: 300388
URL: https://svnweb.freebsd.org/changeset/base/300388
Log:
Call endnetconfig on nc_handle sooner to avoid leaking nc_handle if tmpnconf
was NULL
This would theoretically happen if the netconfig protocol family and protocol
On 22.05.2016 3:29, Pedro F. Giffuni wrote:
> static void
> srand(unsigned int seed)
> {
>
> + if (seed == 0)
> + seed = 1;
> srandom(seed);
> }
IMHO it is not needed. srandom() already handles seed == 0 case, there
is no point to remap it to another constant.
_
On 22.05.2016 3:06, Bruce Evans wrote:
> On Sat, 21 May 2016, Pedro Giffuni wrote:
>
>> On 05/21/16 16:55, Conrad Meyer wrote:
>>> On Sat, May 21, 2016 at 1:40 PM, Pedro Giffuni wrote:
On 05/21/16 14:05, Conrad Meyer wrote:
> Won't this still return a negative integer in many c
Author: ngie
Date: Sun May 22 02:24:38 2016
New Revision: 300387
URL: https://svnweb.freebsd.org/changeset/base/300387
Log:
getnetid(..): consistently fclose fd at the end of the function
This mutes a false positive with cppcheck, but also helps eliminate future
potential issues with this
On Sun, 22 May 2016, Pedro F. Giffuni wrote:
Log:
ndis(4): adjustments for our random() specific implementation.
- Revert r300377: The implementation claims to return a value
within the range. [1]
- Adjust the value for the case of a zero seed, whihc according
to standards should be e
Author: ngie
Date: Sun May 22 02:02:18 2016
New Revision: 300386
URL: https://svnweb.freebsd.org/changeset/base/300386
Log:
Don't leak `handle` if svc_tp_create(..) succeeds and allocating a new
struct xlist object fails
MFC after: 1 week
Reported by: Coverity
CID: 978277
Sponsored
Author: ngie
Date: Sun May 22 01:45:15 2016
New Revision: 300385
URL: https://svnweb.freebsd.org/changeset/base/300385
Log:
Don't leak `tmp` if `p->nc_lookups` can't be malloced
MFC after: 1 week
Reported by: cppcheck
Sponsored by: EMC / Isilon Storage Division
Modified:
head/lib/lib
>> Can you explain a little bit about the badly behaved ordering of
>> unsigned integers? I am not familiar with that.
>
>The strongest ordering properties for real numbers depend on the existence
>of negative numbers (and zero). E.g., x >= y if and only if x - y >= 0.
>To apply that, you need th
On Sat, 21 May 2016, Conrad Meyer wrote:
On Fri, May 20, 2016 at 9:13 PM, Bruce Evans wrote:
On Fri, 20 May 2016, Conrad Meyer wrote:
On Fri, May 20, 2016 at 6:10 PM, Bruce Evans wrote:
Signed integers are easier to understand provided calculations with them
don't overflow.
How?
For
Author: pfg
Date: Sun May 22 00:29:25 2016
New Revision: 300384
URL: https://svnweb.freebsd.org/changeset/base/300384
Log:
ndis(4): adjustments for our random() specific implementation.
- Revert r300377: The implementation claims to return a value
within the range. [1]
- Adjust the v
Tested with wpi(4) and urtwn(4) in STA mode.
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
On Sat, 21 May 2016, Pedro Giffuni wrote:
On 05/21/16 16:55, Conrad Meyer wrote:
On Sat, May 21, 2016 at 1:40 PM, Pedro Giffuni wrote:
On 05/21/16 14:05, Conrad Meyer wrote:
Won't this still return a negative integer in many cases?
random(9) returns u_long, whereas this rand() routine ret
Author: avos
Date: Sat May 21 23:21:42 2016
New Revision: 300383
URL: https://svnweb.freebsd.org/changeset/base/300383
Log:
net80211: send RTM_IEEE80211_SCAN event when scan was cancelled.
wpa_supplicant(8) expects to see 'scan complete' event after every
scan command; in case, when event
Author: alc
Date: Sat May 21 23:18:23 2016
New Revision: 300382
URL: https://svnweb.freebsd.org/changeset/base/300382
Log:
When descending a shadow chain of objects, it makes no sense to update
the current offset (spelled: "fs.pindex") until it is known whether a
backing object exists. In f
On 05/21/16 16:55, Conrad Meyer wrote:
On Sat, May 21, 2016 at 1:40 PM, Pedro Giffuni wrote:
On 05/21/16 14:05, Conrad Meyer wrote:
Won't this still return a negative integer in many cases?
random(9) returns u_long, whereas this rand() routine returns 'int'.
Even on architectures where l
On Fri, May 20, 2016 at 9:13 PM, Bruce Evans wrote:
> On Fri, 20 May 2016, Conrad Meyer wrote:
>
>> On Fri, May 20, 2016 at 6:10 PM, Bruce Evans wrote:
>>>
>>>
>>> Signed integers are easier to understand provided calculations with them
>>> don't overflow.
>>
>>
>> How?
>
>
> For the same reasons
On Sat, May 21, 2016 at 1:40 PM, Pedro Giffuni wrote:
>
>
> On 05/21/16 14:05, Conrad Meyer wrote:
>> Won't this still return a negative integer in many cases?
>>
>> random(9) returns u_long, whereas this rand() routine returns 'int'.
>>
>> Even on architectures where long is the same size as ordi
On 05/21/16 14:05, Conrad Meyer wrote:
On Sat, May 21, 2016 at 10:52 AM, Pedro F. Giffuni wrote:
Author: pfg
Date: Sat May 21 17:52:44 2016
New Revision: 300377
URL: https://svnweb.freebsd.org/changeset/base/300377
Log:
ndis(4): Avoid overflow.
This is a long standing problem: our rando
Author: pfg
Date: Sat May 21 19:54:10 2016
New Revision: 300378
URL: https://svnweb.freebsd.org/changeset/base/300378
Log:
libc/regex: fix two buffer underruns.
Fix some rather complex regex issues found on OpenBSD as part of some
ongoing work to fix a sed(1) bug.
Curiously the OpenB
On Sat, May 21, 2016 at 10:52 AM, Pedro F. Giffuni wrote:
> Author: pfg
> Date: Sat May 21 17:52:44 2016
> New Revision: 300377
> URL: https://svnweb.freebsd.org/changeset/base/300377
>
> Log:
> ndis(4): Avoid overflow.
>
> This is a long standing problem: our random() function returns an
>
Author: pfg
Date: Sat May 21 17:52:44 2016
New Revision: 300377
URL: https://svnweb.freebsd.org/changeset/base/300377
Log:
ndis(4): Avoid overflow.
This is a long standing problem: our random() function returns an
unsigned integer but the rand provided by ndis(4) returns an int.
Scale i
Author: pfg
Date: Sat May 21 17:38:43 2016
New Revision: 300376
URL: https://svnweb.freebsd.org/changeset/base/300376
Log:
ndis(4): Better mimic the behavior of rand() on Windows.
In ndis(4) we expose a rand() function that was constantly reseeding
with a time depending function every tim
freebsd-arm@ added to cc list.
On Sat, 2016-05-21 at 19:01 +0200, Joerg Sonnenberger wrote:
> On Sat, May 21, 2016 at 04:52:38PM +, Ian Lepore wrote:
> > Author: ian
> > Date: Sat May 21 16:52:38 2016
> > New Revision: 300375
> > URL: https://svnweb.freebsd.org/changeset/base/300375
> >
> > L
On Sat, May 21, 2016 at 3:36 AM, Hans Petter Selasky wrote:
> On 05/18/16 06:35, Scott Long wrote:
>>
>> Author: scottl
>> Date: Wed May 18 04:35:58 2016
>> New Revision: 300113
>> URL: https://svnweb.freebsd.org/changeset/base/300113
>>
>> Log:
>> Import the 'iflib' API library for network driv
On Sat, May 21, 2016 at 04:52:38PM +, Ian Lepore wrote:
> Author: ian
> Date: Sat May 21 16:52:38 2016
> New Revision: 300375
> URL: https://svnweb.freebsd.org/changeset/base/300375
>
> Log:
> Adjust _ALIGNBYTES to the proper value for arm and armv6 arches. Modern
> compilers can emit arm
Author: ian
Date: Sat May 21 16:52:38 2016
New Revision: 300375
URL: https://svnweb.freebsd.org/changeset/base/300375
Log:
Adjust _ALIGNBYTES to the proper value for arm and armv6 arches. Modern
compilers can emit arm instructions that require 8-byte alignment. The
alignment-sensitive inst
Author: emaste
Date: Sat May 21 15:38:40 2016
New Revision: 300374
URL: https://svnweb.freebsd.org/changeset/base/300374
Log:
elftoolchain: backwards compatability for ELFOSABI_CLOUDABI definition
It is not provided by sys/elf_common.h on older releases or -current
before March 2015.
Author: avg
Date: Sat May 21 14:51:49 2016
New Revision: 300372
URL: https://svnweb.freebsd.org/changeset/base/300372
Log:
fix loss of taskqueue wakeups (introduced in r300113)
Submitted by: kmacy
Tested by:dchagin
Modified:
head/sys/kern/subr_taskqueue.c
head/sys/sys/_task.h
h
Author: kib
Date: Sat May 21 11:40:41 2016
New Revision: 300371
URL: https://svnweb.freebsd.org/changeset/base/300371
Log:
Same as for UFS, remove drop/reacquire of Giant, and use si_mountpt as
the mount semaphore.
Sponsored by: The FreeBSD Foundation
MFC after:2 weeks
Modified:
Author: trasz
Date: Sat May 21 11:26:03 2016
New Revision: 300370
URL: https://svnweb.freebsd.org/changeset/base/300370
Log:
Properly reset session state when using proxy and fail_on_disconnection=1.
Without it the reconnection would fail due to mismatched sequence numbers.
MFC after:
Author: trasz
Date: Sat May 21 11:10:48 2016
New Revision: 300369
URL: https://svnweb.freebsd.org/changeset/base/300369
Log:
Provide a way for ICL modules to declare they support PIM_UNMAPPED.
MFC after:1 month
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/cxgbe/cxgbe
Author: trasz
Date: Sat May 21 10:59:36 2016
New Revision: 300368
URL: https://svnweb.freebsd.org/changeset/base/300368
Log:
Pass maxtags value to the ICL module. iSER needs it.
MFC after:1 month
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/iscsi/icl.h
head/sys/de
On 05/18/16 06:35, Scott Long wrote:
Author: scottl
Date: Wed May 18 04:35:58 2016
New Revision: 300113
URL: https://svnweb.freebsd.org/changeset/base/300113
Log:
Import the 'iflib' API library for network drivers. From the author:
"iflib is a library to eliminate the need for frequently d
Author: kib
Date: Sat May 21 10:13:25 2016
New Revision: 300366
URL: https://svnweb.freebsd.org/changeset/base/300366
Log:
Stop dropping and reacquiring Giant around geom calls in UFS.
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/ufs/ffs/ffs_vfsops.c
Modified: head/sys/ufs/ff
Author: kib
Date: Sat May 21 09:55:32 2016
New Revision: 300365
URL: https://svnweb.freebsd.org/changeset/base/300365
Log:
Remove zero assignments in the cdev allocator. cdp memory is
requested with M_ZERO.
Sponsored by: The FreeBSD Foundation
MFC after:2 weeks
Modified:
head/sy
Author: kib
Date: Sat May 21 09:49:35 2016
New Revision: 300364
URL: https://svnweb.freebsd.org/changeset/base/300364
Log:
Improve handling of rdev->si_mountpt on mount and unmount of FFS
volumes. Treat the field as a semaphore protecting availability of
the device for mounting. Do no acce
Author: dchagin
Date: Sat May 21 08:03:13 2016
New Revision: 300360
URL: https://svnweb.freebsd.org/changeset/base/300360
Log:
Regen after r300359 (struct l_sched_param removal).
MFC after:1 week
Modified:
head/sys/amd64/linux/linux_proto.h
head/sys/amd64/linux/linux_syscall.h
he
Author: dchagin
Date: Sat May 21 08:01:14 2016
New Revision: 300359
URL: https://svnweb.freebsd.org/changeset/base/300359
Log:
Correct an argument param of linux_sched_* system calls as a struct
l_sched_param
does not defined due to it's nature.
MFC after:1 week
Modified:
head/sys
50 matches
Mail list logo