Commit Graph

250569 Commits

Author SHA1 Message Date
sevan
979875ac74 Revert previous change so builds can resume.
_KERNTYPES needs to be defined for NetBSD builds to succeed.
_KERNTYPES must not be defined for buildrum.sh builds to succeed.
2017-05-10 08:48:46 +00:00
msaitoh
182021eabb KNF. No functional change. 2017-05-10 08:46:39 +00:00
msaitoh
4029805dcf Print package ID, core ID and SMT ID. 2017-05-10 08:02:37 +00:00
mbalmer
e6b9421d36 Clarify gpio example. 2017-05-10 07:51:07 +00:00
mbalmer
acc324c63c Fix flags for DB open. 2017-05-10 07:37:33 +00:00
mbalmer
0f3108288c Guard against double freeing of objects (explicit by the Lua program, then
later by the garbage collector).
This fixes PR bin/52218.
2017-05-10 07:36:01 +00:00
sevan
a3692735fe Match the ioconf name in sys/modules.
Resolves rumprun build process.
Put together with the help & direction of riastradh & paulg.
2017-05-10 06:22:15 +00:00
riastradh
9c32900485 regen 2017-05-10 06:19:47 +00:00
kre
be0a98abf6 I noticed!
POSIX requires that the output of the "set" command (with no args -- it
gives a list of variables, and their values) be sorted according to
the collating sequence defined by the current locale.

Now I'm not aware of any locale where the collating sequence order of
ascii letters, digits, and '_' are any different than they are in the
C locale (and those are the only characters that can occur in variable
names - unless there is perhaps a locale that defines "dictionary" order
as the sort order) but never mind, that isn't the bug...

What "collating sequence order" does mean however, if not "collating
sequence order, except when we happen to have two variable names, where
one name is a prefix of the other (say X and XY) and the first character
of the 'Y' part of the longer name happens to be a digit..."

"set" is not a frequently used command (particularly in scripts where
it matters - that is, the no args form, nothing here alters anything
about any use of set with args) and is already a bit slow (sluggish...)
because of the sort requirement, so let's make it fractionally even
slower, but correct.
2017-05-10 06:18:43 +00:00
riastradh
913618cd04 Forward-declare struct lwp' so we can use struct lwp *' here. 2017-05-10 06:08:56 +00:00
ozaki-r
0eb085d9dc Introduce check_sa_entries to remove lots of duplicated codes 2017-05-10 04:46:13 +00:00
knakahara
408cf9521a unify implementation of crypto_unregister() and crypto_unregister_all() 2017-05-10 03:26:33 +00:00
msaitoh
54b0121fed Fix typos. 2017-05-10 03:24:31 +00:00
knakahara
f7fc02af1d refactor crypto_unregister()
- separate logic to crypto_unregister_locked()
    - refactor cryptocap cleanup condition
2017-05-10 03:23:26 +00:00
knakahara
0ab4de07a8 use macro instead of immediate value 2017-05-10 03:15:32 +00:00
msaitoh
c4659e5b0a Use pci_intr_establish_xname(). 2017-05-10 02:46:33 +00:00
msaitoh
da419f9608 - Use pci_intr_establish_xname().
- Style change.
2017-05-10 02:46:06 +00:00
sevan
af86655625 Add PSA
Submitted in PR misc/52224 by Nikolai Lifanov
2017-05-10 01:24:32 +00:00
sevan
9204518573 Do not define _KERNTYPES as this breaks build with buildrump.sh due to
conflicting types for register_t.
Closes PR kern/52206
Steered in the right direction by christos.
2017-05-10 01:11:51 +00:00
kamil
33078560c6 Minor and non-functional enhancements in mount_portal(8)
Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
2017-05-09 23:26:49 +00:00
kamil
f068e68728 Fix distribution build for MKCATPAGES=yes
Add: cat3/signalname.0, cat3/signalnext.0, cat3/signalnumber.0
2017-05-09 22:43:09 +00:00
kamil
53e8e965f1 Sync example portal.conf with reality
Since day0 nobody implemented pipe, tcplisten, exec modes - eliminate them.
2017-05-09 21:42:35 +00:00
christos
21e6c9452c fp == NULL in the DIAGNOSTIC, so use the real fp and also print the errno. 2017-05-09 21:18:51 +00:00
christos
ab25bee7cd prevent hang on vnode EOF. 2017-05-09 21:17:54 +00:00
christos
518a4ef5c5 Only add a write filter for sockets. It is not supported for vnodes, or
for 1/2 closed fifos (which we both have now).
2017-05-09 21:15:30 +00:00
msaitoh
a2616f414a A device except Root Complex integrated has a link, so print link related
registers on device except Root Complex Integrated Endpoint and Root Complex
Event Collector.
2017-05-09 11:17:07 +00:00
kre
486691905e Add the new signalname/signalnext/signalnumber interface to libc.
This as discussed on current-users in the thread
entitled:
  Proposal: new libc/libutil functions to map SIGXXXX <-> "XXXX"
that can be found (starting at):
  http://mail-index.netbsd.org/current-users/2017/04/28/msg031600.html

These functions provide the mechanism to enable applications
to divorce themselves from internal details of the signal
implementation.

Libc minor bumped, prototypes in <signal.h>, sets lists updated (and sorted).

One and all: feel free to improve the sources & man page (etc), but
please do not change the function signatures without discussion.
2017-05-09 11:14:16 +00:00
abhinav
d531aa96de Add missing word. 2017-05-09 06:41:56 +00:00
msaitoh
feb6d69f6c - Fix a bug that a device which has no PCIe capability incorrectly
accessess the PCI config area in ppbdetach().
- Don't add event counters if slot interrupt isn't used.
2017-05-09 06:29:20 +00:00
ozaki-r
6ecd19b1e3 Fix kernel build with IPSEC 2017-05-09 05:38:50 +00:00
kre
aa563ca425 If we are going to permit
! ! pipeline
(And for now the other places where ! is permitted)
we should at least generate the logically correct exit
status:
	! ! (exit 5); echo $?
should print 1, not 5.   ksh and bosh do it this way - and it makes sense.
bash and the FreeBSD sh echo "5" (as did we until now.)
dash, zsh, yash all enforce the standard syntax, and prohibit this.
2017-05-09 05:14:03 +00:00
ozaki-r
63d8d68bc2 Test flushing SAD/SPD entries 2017-05-09 04:25:28 +00:00
ozaki-r
808b116a48 Add missing KEY_FREESP to ip6_forward 2017-05-09 04:24:10 +00:00
ozaki-r
9569f32e68 Add debugging facilities for refcnt of SA/SP 2017-05-09 04:20:11 +00:00
ozaki-r
fa05cc7c46 Provide foreach macros for SA states (NFCI) 2017-05-09 04:18:51 +00:00
ozaki-r
d9a74b87d3 Use LIST_* functions (NFC) 2017-05-09 04:17:13 +00:00
kre
504ff72d98 Remove a now unnecessary (ater the changes in 1.136) clearing of EV_EXIT.
(NFC, but should save a byte or two of code space.)
2017-05-09 04:08:37 +00:00
kre
1eb14abbf3 NFC: whitespace (indentation). 2017-05-09 03:41:18 +00:00
kre
5e63d1ce35 Fix some bogus usage of EV_EXIT in evaltree(). Fix (somewhat) inspired
by FreeBSD sh (though different, for other reasons) - but the bug discovered
while searching for why a (nonsense) attempted test of the forthcoming
code to handle "! ! pipeline" properly wasn't working...  (it was how I was
testing it that was broken, but until I achieved enlightenment, I was bug
hunting, and found this...)

Most likely the bugs here wouldn't have affected any real code (no bug
reports anyway), but ...
2017-05-09 03:38:24 +00:00
maya
9c26aa2ea4 Avoid shift of negative signed integer. this is UB. NFC.
from gcc8, ok riastradh
2017-05-09 02:56:44 +00:00
kre
09a5470484 Remove bogus extra \n from syntax error message. 2017-05-09 02:47:47 +00:00
maya
6db625eb59 ++bool to bool=true to appease GCC 8. NFC
ok riastradh
2017-05-09 02:30:49 +00:00
maya
468489bfea Correct misleading indentation. NFC
This isn't a functional difference because huge + x > one is
always true for a small x, and is probably a magical incantation
to raise inexact if x != 0

Found by GCC 8.0
2017-05-09 02:04:38 +00:00
sevan
fb09d7af54 Allow gpio children for any parent which offers the gpiobus attribute.
Resolves issue with gpiosim(4)
gpiosim0: simulating 64 pins
gpiobus at gpiosim0 not configured

Reviewed by pgoyette
2017-05-09 01:57:04 +00:00
christos
048b91431b use the symbolic M_ALL and trim with M_MASK 2017-05-08 14:42:16 +00:00
msaitoh
879a63dd87 Fix a bug that if_obytes and if_omcasts aren't counted. This bug was added
in ixgbe.c rev. 1.27 by me. Reported by Uwe Toenjes.
2017-05-08 10:00:41 +00:00
martin
0dcaa3783b Complete the namespace dance 2017-05-08 09:25:03 +00:00
martin
9bce32444d Add missing namespace.h include 2017-05-08 08:21:56 +00:00
msaitoh
a84a926d28 - Add RICOH R5C576 SD Card Controller.
- Add some SiS devices. Taken from OpenBSD.
- Change SiS 0x6325 from 6325 AGP VGA to 650 AGP VGA.
2017-05-08 07:34:33 +00:00
martin
16d63f73c4 Fix a debugging message 2017-05-08 07:31:34 +00:00