Commit Graph

243364 Commits

Author SHA1 Message Date
pgoyette
5be0c85005 Merge updates from PR bin/42576
XXX Any typos are mine, not those of the PR submitter!
2016-06-28 00:15:40 +00:00
maya
dcb772676a Mention -d flag in mkesdb(1) usage
PR bin/24001
2016-06-27 20:15:16 +00:00
maya
aeb2930556 Add man page for mkesdb
Imported from FreeBSD
2016-06-27 20:09:18 +00:00
maya
dca09610a7 Add man page for mkcsmapper.
Imported from FreeBSD.

PR bin/24001
2016-06-27 20:07:26 +00:00
christos
9471dccf97 CID 1362905: Initialize ifp early, so that we don't if_put garbage in the
IPSEC case.
2016-06-27 18:35:54 +00:00
christos
e319ead632 CID 1362902: forward null
CID 136290{3,4}: missing break
2016-06-27 18:27:51 +00:00
pgoyette
e69a365802 Regen 2016-06-27 12:01:03 +00:00
pgoyette
3d995c26a8 Add a couple more devices, from PR kern/40987 2016-06-27 11:59:39 +00:00
martin
07615c3492 Apply upstream r8705: fix logic error.
Reported by Henning Petersen in PR toolchain/51283.
2016-06-27 11:35:21 +00:00
knakahara
d5a6877789 fix spelling mistake pointed out by roy@n.o 2016-06-27 10:09:02 +00:00
knakahara
c261887dfc gif(4) does not need link state changing interrupts 2016-06-27 09:06:56 +00:00
knakahara
48648fbd1f reduce link state changing softint if it is not required
ok by ozaki-r@n.o
2016-06-27 08:58:50 +00:00
dholland
cbe436060d Do not pass usleep() values >= 1 million. From Henning Petersen in PR 51286 2016-06-27 08:46:04 +00:00
abhinav
2ed9602dad Fix function prototype in the SYNOPSIS
Also, fix function name in the RETURN VALUES section.

From Henning Petersen in PR lib/51284
2016-06-27 08:18:34 +00:00
pgoyette
d9448903f2 Add license, copied from the companion file dev/ic/spic.c
Addresses PR kern/25173 (the $NetBSD$ had previously been added in
rev 1.7 by dyoung)
2016-06-27 07:37:54 +00:00
skrll
5fbe71481c Fix a bug introduced by me in 1.214 where unmanaged mappings would be
affected by calls to pmap_page_protect which is wrong.  Now PV_KENTER
mappings are left intact.

Thanks to chuq for spotting my mistake and reviewing this diff.

Thanks to everyone who tested it as well.
2016-06-27 07:12:18 +00:00
pgoyette
b1b83700cd Do this more cleanly - put the do-we-have-crypto check inside the actual
do-the-test code rather than in a test's head() code.  This way, if we
ever add more tests, we simply need to invoke the common do-the-test code
with an appropriate flag argument rather than duplicating the test.
2016-06-27 05:29:32 +00:00
pgoyette
7f7ba5ce4b Split each test into its own test case.
For test case loop2, where there are multiple prime factors greater
than 65535, skip the test if the program was not built with crypto
support.  We need crypto/openssl for large factors.

Should address PR bin/23663
2016-06-27 05:08:18 +00:00
christos
4cfa4299d0 PR/51277: Fix compat32 coredumping that broke with the aux vector note
addition.
2016-06-27 01:46:04 +00:00
sevan
efb5f2c4e7 PR bin/4841 was filed regarding the handling of blank lines when cat was invoked
with -be, the test case however did not utilise any blank lines, only testing
that the text was aligned.
2016-06-26 22:50:46 +00:00
mlelstv
f72ec5db06 Drop extra argument not used by format string. 2016-06-26 15:46:42 +00:00
mlelstv
ec520c2878 fix build 2016-06-26 14:44:10 +00:00
mlelstv
1a0b28067b Create a dedicated thread for the initial scsibus discovery instead
of using the completion thread. This prevents a deadlock when a
command fails during discovery which needs to be handled by the
completion thread.
2016-06-26 07:31:35 +00:00
mlelstv
f16f2cde63 Avoid NULL deref in case no bufq has been set. 2016-06-26 07:22:15 +00:00
mlelstv
b66056e8a0 Print release also in hex.
Print device class information if -v is used twice.
2016-06-26 07:10:24 +00:00
kre
0a924e39aa Remove dawn/sunup/sunset/sundown (sunrise was never there...)
If 06:00 or 18:00 are wanted, just say "06:00" (etc).  If these
are ever added back, they really should determine location, and
calculate actual sunrise/sunset times for the location and date.
That's not likely to happen...
2016-06-26 07:09:24 +00:00
isaki
0989c2e255 Add SCSI host adaptor selector to "boot" command of /boot.
By this function, /boot which booted from non-SCSI
(in other words, floppy) can load SCSI kernel.
Now, single /boot can load kernel of all supported filesystems
of all supported boot devices.

---
New "boot" command's syntax is: boot [hostadaptor@][dev:][file]

If you booted from SCSI, hostadaptor is already set (from IOCS)
and you can omit hostadaptor in this case.  You can type like
"boot sd0a:netbsd" as before.

If you booted from floppy (hostadaptor is not set) and want to
load the SCSI kernel (hostadaptor is needed), you have to select
your hostadaptor in boot command, like "boot spc0@sd0a:netbsd".
2016-06-26 04:17:17 +00:00
dholland
ece47fa390 Don't assume that getaddrinfo sets the result pointer to null when it
fails. (In fact it probably doesn't...)
2016-06-26 04:01:30 +00:00
dholland
a4b908377f Document external unmount programs. PR 698. Bump date. 2016-06-26 03:59:11 +00:00
dholland
383d022f18 Fix previous to avoid using an uninitialized pointer when using -R (raw). 2016-06-26 03:51:28 +00:00
dholland
4cc121caa5 If an external unmount program of the form "umount_TYPE" exists
(e.g. umount_ffs, umount_nfs, etc.) exec it instead of calling
unmount(2).

Closes PR 698.

Note that the original plan for the PR also involved adding a generic
facility to store an alternate FS type name in the kernel to use when
unmounting. This was intended to support filesystems implemented as
loopback nfs servers, where the visible mount would be of type "nfs"
pointing at localhost; in that case one would want to be able to
provide an additional string in order to run an unmount program that
would both remove that mount and also shut down the loopback nfs
server daemon.

However, in the 21+ years since the PR was filed, loopback nfs servers
have gone out of favor (for good reasons) so I don't see any need to
worry about this case at present, especially since the PR has been
hanging around this long anyway. (If anyone still has a loopback nfs
server that they want to use a custom unmount program with, file a new
PR and assign it to me and I'll deal with it specifically in the nfs
mount args structure, which unmount already knows how to retrieve and
examine.)

It is my understanding that filesystems implemented with fuse (which
has displaced the loopback nfs server model) can already set the FS
type field so no further work is needed to allow them to use a custom
unmount program. If this is not the case, please let me know and I'll
attend to it.

There is no longer any need that I see to provide a general facility
for storing an alternate filesystem type name.

(One might also ask whether there's any real need for this
functionality at all any more; this is a fair question, but (a) the
change is small and (b) there are certainly cases when doing FS
research where you want a custom unmount program; been there & done
that.)
2016-06-26 03:40:39 +00:00
dholland
75cbf5e12c When SMALL, if realpath() fails, warn() using the failing path instead
of the buffer realpath has declined to write anything into.
2016-06-26 03:05:52 +00:00
dholland
c2f6e94e93 Double the threshold for crashing out with "too many words". 2016-06-25 23:15:41 +00:00
dholland
7c65f75810 +wok 2016-06-25 22:54:46 +00:00
maya
2732ba09ec Delete bpm(1)
It hasn't worked in a long time.

PR bin/51268
2016-06-25 18:05:57 +00:00
skrll
a320a8dd5d Fix build 2016-06-25 17:31:45 +00:00
isaki
c3ca747d7e Fix my mistake of previous commit. 2016-06-25 16:05:43 +00:00
isaki
721fcb5753 Unify netboot and boot (into boot).
Now boot becomes to be able to load the NFS kernel and
netboot also becomes to be able to load the local kernel.
The only difference is the default kernel which loads.
I.e., netboot's default is nfs.

Bump boot_ustar's BOOT_MAXSIZE.
2016-06-25 14:35:58 +00:00
palle
0579302b5d sun4v: fix previous fix - no need to protect "struct inthand" with "#if defined(_KERNEL)" + use proper include file name - sparc64/bus_defs.h -> machine/bus_defs.h 2016-06-25 13:52:04 +00:00
isaki
82b5f6482c Fix typo. 2016-06-25 04:53:32 +00:00
isaki
e44999df0a Define BOOT_MAXSIZE instead of magic number.
Present size 56832 is 65536 - 8192 - 0x200 and is the same size
as before.
2016-06-25 04:08:57 +00:00
pgoyette
1cd7e75a4d Simplfy insertion of newly-activated modules into the list. There's no
good reason to treat modules without dependencies differently from those
which do require other modules.
2016-06-24 23:04:09 +00:00
macallan
04b499a3be alternate clock.c implementation for loongson2f which supports
CPU clock scaling. Based on pwmclock but uses the cycle counter interrupt
instead, so it is no longer gdium-specific.
This will likely need changes to support other loongson models.
2016-06-24 21:41:37 +00:00
christos
26488304cc Add new files 2016-06-24 21:31:30 +00:00
christos
6125bf59b0 tidy up error messages 2016-06-24 19:24:11 +00:00
christos
26c7e22f4a GSoC 2016 (Hrishikesh Goyal): Htree index support from FreeBSD 2016-06-24 17:21:30 +00:00
christos
11c9d0a8b0 diff reduction with openbsd; turn debugging on. 2016-06-24 16:08:54 +00:00
nonaka
f4d1a8371c fix free memory size. 2016-06-24 15:25:43 +00:00
skrll
148e3ecbb9 Don't define {USB,[EO]HCI,UHUB}_DEBUG when there is no usb 2016-06-24 12:22:09 +00:00
abhinav
dcf78ec2af Add a FILES section and add references to terminfo(3), terminfo(5) in SEE ALSO.
Ok by wiz
2016-06-24 12:03:22 +00:00