Commit Graph

11997 Commits

Author SHA1 Message Date
mlelstv
f52084a9af print quota pointers in superblock 2018-03-06 07:45:38 +00:00
msaitoh
c27ae56af8 Calculate way and number of entries correctly from CPUID leaf 18H. 2018-03-05 10:54:05 +00:00
msaitoh
cfe5ab1fa2 - Parse the TLB info from `cpuid leaf 18H' on Intel processor. Currently,
this change doesn't decode perfectly.  Tested with Gemini Lake. It has
  two L2 Shared TLB. One is 4MB and another is 2MB/4MB but former isn't
  printed yet:

	cpu0: ITLB 1 4KB entries 48-way
	cpu0: DTLB 1 4KB entries 32-way
	cpu0: L2 STLB 8 4MB entries 4-way

  Need some rework for struct x86_cache_info.
- Use aprint_error_dev() for error output.
2018-03-05 05:50:37 +00:00
mlelstv
8f6bdb48b6 Align with DDB. 2018-03-04 07:15:37 +00:00
mrg
2e19323388 add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts
to bsd.prog.mk.  use them instead of hard coding various lists
of libraries for krb5.

this fixes static builds.
2018-02-25 00:16:48 +00:00
wiz
ec5498f5ad Sort some lists. Use EXIT STATUS instead of RETURN VALUES. 2018-02-14 10:13:25 +00:00
maxv
d33dbf4b86 Use .Cm instead of .Li, same as arp.8. 2018-02-14 06:52:41 +00:00
martin
1ff701ef77 Adapt to ar_tha() changes in if_arp.h rev1.31. 2018-02-13 10:17:04 +00:00
christos
2188bc148a No RC5 for OpenSSL-1.1 2018-02-09 02:51:32 +00:00
christos
26640e8b73 disable compat api setting for openssl 1.1 2018-02-09 02:37:20 +00:00
christos
a00715fdd5 only set api compat for 1.0 2018-02-09 02:23:32 +00:00
jakllsch
57ef96115f define OPENSSL_API_COMPAT
(doesn't entirely unbreak build yet)
2018-02-08 18:28:42 +00:00
christos
e569ada8da include dh.h in the right spot. 2018-02-08 17:45:29 +00:00
dholland
32cded6cc9 Typos. 2018-02-08 09:05:16 +00:00
christos
3123832b23 needs the OpenSSL-1.1 api to build 2018-02-07 13:16:50 +00:00
maya
d17a36957e Correct misleading indentation. 2018-02-06 22:04:22 +00:00
christos
4d91e6767f Adjust to OpenSSL-1.1 2018-02-06 21:36:46 +00:00
mrg
aa20739e7d fixes for GCC 6.4:
mail's execute() needs a volatile for setjmp().

telnet has a missing {} issue.

isdnd's print_config() has a missing/wrong {} issue, and
its p_q931bc() has inconsistent indentation (but not any
actual problem.)

map-mbone's accept_neighbors2() compares a vs. a instead
of a vs. b.

sysinst's pm_cgd_check() has missing {} issue.

timed's main() has missing {} issue.
2018-02-04 09:01:12 +00:00
martin
a9abe48acc Cosmetics: fix the order of calloc() arguments. 2018-01-29 16:24:23 +00:00
maya
c66c60f8a9 Fix copy paste error. from coverity. 2018-01-28 14:34:26 +00:00
sevan
afa0bbc877 Need strings.h for ffs() 2018-01-27 02:07:33 +00:00
christos
a3bd874609 make this build again. 2018-01-26 09:38:26 +00:00
uwe
44fdebe499 .Li is superfluous inside .Bd -literal 2018-01-25 19:15:10 +00:00
sevan
0042c4a241 typo, remove extra bracket 2018-01-24 14:45:44 +00:00
uwe
ad8c206f39 Try to use proper semantic markup. Fix a few formatting nits. 2018-01-24 12:05:50 +00:00
skrll
ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
sevan
0f795805f6 Missed another main() prototype. 2018-01-23 23:02:40 +00:00
sevan
23b04ffd61 Restore rcstag. 2018-01-23 22:40:06 +00:00
sevan
7a75668892 drop main() prototype 2018-01-23 22:12:52 +00:00
sevan
4e188220ed More K&R style prototypes missed in the previous run 2018-01-23 21:27:20 +00:00
sevan
421949a31f ansify - drop the K&R style prototypes & implementations. 2018-01-23 21:06:24 +00:00
sevan
179d97fa32 Ansify 2018-01-23 19:01:33 +00:00
joerg
be61e1101a Ignore pragma warnings with clang for the zfs code. 2018-01-22 01:34:42 +00:00
maxv
d569f28840 Fix build failure, the structure is already defined now. 2018-01-19 14:30:09 +00:00
christos
2966117648 PR/47615: Dr. W. Stukenbrock: Always zero out the result structs in the
svc procs to avoid returning stale request data to the client.
XXX: pullup-6,7,8
2018-01-17 03:16:10 +00:00
mrg
8ea873287d implement cpuctl identify for sparc and sparc64.
sparc:
- move enum vactype and struct cacheinfo into cpu.h
- move the cache flags from cpuinfo.flags into CACHEINFO.c_flags
  (this allows the new cache_printf_backend() to see them.)
  remove unused CPUFLG_CACHEIOMMUTABLES and CPUFLG_CACHEDVMA.
- align xmpsg to 64 bytes
- move cache_print() into cache_print.h so it can be shared with
  cpuctl.  it only depends upon a working printf().
- if found, store the CPU node's "name" into cpu_longname.  this
  changes the default output to show the local CPU not the
  generic CPU family.  eg:
  cpu0 at mainbus0: mid 8: Ross,RT625 @ 90 MHz, on-chip FPU
  vs the generic "RT620/625" previously shown.
- for each CPU export these things:
  - name
  - fpuname
  - mid
  - cloc
  - freq
  - psr impl and version
  - mmu impl, version, and number of contexts
  - cacheinfo structure (which changed for the first time ever
    with this commit.)

sparc64:
- add a minimal "cacheinfo" structure to export the i/d/e-cache
  size and linesize.
- store %ver, cpu node "name" and cacheinfo in cpu_info.
- set cpu_info ver, name and cacheinfo in cpu_attach(), and
  export them via sysctl, as well as CPU ID and clock freq

cpuctl:
- add identifycpu_bind() that returns false on !x86 as their
  identify routines do not need to run on a particular CPU to
  obtain its information, and use it to avoid trying to set
  affinity when not needed.
- add sparc and sparc64 cpu identify support using the newly
  exported values.
2018-01-16 08:23:17 +00:00
maya
e3a81445cb Returns void, mark noreturn.
From Eitan Adler in PR bin/52925
2018-01-16 07:57:58 +00:00
christos
243229af21 avoid passing literal string to unconst. 2018-01-15 14:38:06 +00:00
christos
651232dac7 sprinkle unconst 2018-01-15 00:46:16 +00:00
uwe
252235664d .An -nosplit 2018-01-14 03:17:28 +00:00
uwe
f989de5924 Fix accidental trailing whitespace. 2018-01-14 03:14:46 +00:00
uwe
842435d53f Vertical space before an example in .Dl 2018-01-14 03:09:47 +00:00
uwe
c74ee2dcc5 .An -nosplit 2018-01-14 02:54:55 +00:00
mrg
faba61de75 note the default path for ucode updates can be found in sysctl. 2018-01-14 00:45:54 +00:00
christos
d131c53716 add more __dead/EXIT_FAILURE 2018-01-13 12:36:35 +00:00
nat
ffcb8cef5c Set size of mtusize before calling getsockopt to obtain mtu size. 2018-01-13 10:20:45 +00:00
christos
47cdb20d40 missing printflike 2018-01-12 17:54:36 +00:00
christos
d7d7f74c03 sprinkle __dead, use EXIT_{SUCCESS,FAILURE} 2018-01-11 13:44:26 +00:00
msaitoh
5bd8e5c45d Print Intel cpuid 7 %edx.
Example output of cpuctl -v identify 0:

+cpu0: 00000007: 00000000 000027ab 00000000 0c000000
(snip)
+cpu0: SEF edx 0xc000000<IBRS,STIBP>
2018-01-10 07:08:35 +00:00
martin
1e774d3bb5 Use fseeko instead of fseek to fix the build on some 32bit architectures 2018-01-09 10:47:57 +00:00
wiz
f24dbfeb68 File system police. Add RCS Id. Improve SYNOPSIS. Use more markup. 2018-01-09 09:41:29 +00:00
wiz
2df58e1698 File system police. Sort options. Add RCS Id. Use more markup. Wording. 2018-01-09 09:39:07 +00:00
wiz
67dee3c787 Mostly formatting improvements. 2018-01-09 09:33:00 +00:00
wiz
3d7c11903b file system police. 2018-01-09 09:27:41 +00:00
christos
b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
christos
09f2d229ee factor out common code from Poul-Henning Kamp. 2017-12-31 03:04:44 +00:00
hannken
d1244e2808 Use stat() information to decide if the backing store is a directory.
Depending on open() returning EISDIR fails for mount points.
2017-12-21 15:52:19 +00:00
wiz
ae3489c219 Add width arguments to tagget lists. 2017-12-21 12:25:03 +00:00
plunky
42f8a9c2e1 for Read_Local_Version, print also the HCI revision 2017-12-21 09:31:22 +00:00
plunky
1bf21e871d fix width/indent of list 2017-12-21 09:00:19 +00:00
plunky
25d91cf46c fix width of list 2017-12-21 08:59:58 +00:00
christos
743f435a2d PR/52828: Mark Johnston: makefs UFS2 lazy inode initialization is buggy
makefs(8) emulates UFS2 in performing lazy initialization of inode
blocks when allocating and writing inodes. However, it only ever
initializes one inode block at a time, which may be insufficient.
If so, a later initialization may clobber an inode, resulting in
an inconsistent filesystem.

I committed a minimal fix for the problem to FreeBSD:
https://svnweb.freebsd.org/changeset/base/326912
2017-12-16 23:08:40 +00:00
christos
ab39b7f428 use uintmax_t for nlink_t from FreeBSD 2017-12-14 18:34:41 +00:00
skrll
ba7c07c65b Fix RPI kernel file after FDTisation.
From Harold Gutch
2017-12-14 14:12:39 +00:00
wiz
4b01aa4e24 Remove superfluous Pp. 2017-12-11 23:07:49 +00:00
rmind
bd05c4c470 npfctl: add support for the 'no-ports' flag in the 'map' statements.
This allows us to create a NAT policy without the port translation.
2017-12-10 22:04:41 +00:00
leot
add6cc459e Fix a typo 2017-12-10 20:45:26 +00:00
bouyer
878cb1cfc5 Fix fallout from hid factorisation:
- need to install sys/dev/hid/hid.h for userland
- include it where needed - most of the time in place if usb/usbhid.h
2017-12-10 20:38:13 +00:00
christos
9e9f13a4e0 Add things implemented 2017-12-10 20:30:45 +00:00
mlelstv
808b264de6 allow PASS opt_proto ALL syntax in map statement. 2017-12-03 23:48:03 +00:00
martin
ee3280f977 Bump MAXARGV from 20 to 64 - with bozohttpd and all config on the command
line it is easy to hit the (silent) limit.
2017-11-28 11:51:11 +00:00
abhinav
357f7b44ef Encapsulate all the arguments required by the query callback function in a struct.
If we want to add or remove arguments from the callback functions, it requires
changing the callback interface all over the place. By letting the callback simply
expect a single struct argument, it would clean things up a bit.

ok christos
2017-11-25 14:29:38 +00:00
kre
a33d800447 When sending log messages to stderr, append the \n that syslog does not need. 2017-11-25 02:37:04 +00:00
nonaka
c7f80e628d Initialize boot_catalog_entry's entry_type properly.
This had been missing but the type was used in cd9660_setup_boot().

From OpenBSD usr.sbin/makefs/cd9660/cd9660_eltorito.c r1.10.
2017-11-09 01:28:05 +00:00
joerg
9a76d3f972 Mark expandm as preserving format strings. 2017-11-06 19:12:23 +00:00
christos
4c18e5f405 Change the meaning of the 'D' flag to print errors to stderr instead of
syslog(3) and exit if poll(2) fails (intended to be used with unit-tests).
2017-11-06 15:15:04 +00:00
abhinav
b0184879c2 Casting variable of type int * to size_t *, may cause
alignment issues on some platforms (e.g. Sparc64)
So, Use a temporary variable to avoid the cast.

Thanks to Martin@ for noticing the issue and also suggesting the issue.
Fixes PR bin/52678
2017-10-31 10:14:27 +00:00
ozaki-r
2acd285552 Fix showing translated port (ntohs-ed twice wrongly) 2017-10-30 04:53:43 +00:00
wiz
3ba65d3d58 New sentence, new line. 2017-10-23 01:07:27 +00:00
abhinav
c59c6bd4a8 Add rtsol to the NAME section as well 2017-10-22 18:09:33 +00:00
abhinav
ec2df1b139 Add quotadump to the NAME section 2017-10-22 18:00:45 +00:00
abhinav
92d8b712af Add irda to the NAME section as well 2017-10-22 17:58:10 +00:00
msaitoh
4a84e4a57f Update from Intel SDM:
0x55: Xeon Scalable (Skylake)
 0x57: Xeon Phi [357]200 (Knights Landing)
 0x66: Future Core (Cannon Lake)
 0x85: Future Xeon Phi (Knights Mill)
2017-10-19 03:09:55 +00:00
msaitoh
798eec36f8 Update from the latest Intel SDM:
0x5c: Atom (Goldmont)
 0x5f: Atom (Goldmont, Denverton)
 0x7a: Atom (Goldmont Plus)
2017-10-17 14:48:42 +00:00
ozaki-r
37c5cac096 Don't setup SPs if no policy sepecifier is specified
We expect that SPs are set up iff some policy sepecifier(s) are specified.

Found on investigating an issue reported by Robert Swindells
2017-10-17 07:13:19 +00:00
christos
5bf5a8b9c7 Treat EOF as a condition to re-open the pcap socket. Since we've been woken
up by poll(2), there must be data to read. If there is not, our socket might
not be ok anymore.
2017-10-16 11:18:43 +00:00
christos
531fc46210 Add a message when we are re-opening the pcap socket. 2017-10-16 11:17:45 +00:00
msaitoh
379e4ad141 - Print ci_feat_val[5] (Structured Extended Feature leaf Fn0000_0007 %ebx) on
AMD, too.
- Print ci_feat_val[6] (Fn0000_0007 %ecx) on Intel.
2017-10-16 10:10:48 +00:00
christos
c06842d6f7 try to re-open the pcap connection on error. 2017-10-15 15:26:10 +00:00
christos
837bece478 PR/52618: Shinichi Doyashiki: Don't exit if adding interface to multicast
group fails. This happens with empty vlan interfaces

- make syscalls checks against -1
- fix errors to print %s: instead of <%s>

XXX: if_vlan is the only pseudo interface in net/ that returns such an
error..
2017-10-14 19:16:26 +00:00
christos
e68fbebd32 use librumpres 2017-10-10 19:30:41 +00:00
msaitoh
761e1e94b4 Print ACPI_HEST_GHES_ASSIST flag (ACPI 6.2). 2017-09-28 06:55:08 +00:00
msaitoh
0fd02e45f9 Cosmetic change (tab and newline). 2017-09-27 08:14:18 +00:00
msaitoh
597a86a670 - Print SAPIC EID of Processor Local APIC/SAPIC Affinity.
- Print GIC Interrupt Translation Service(ITS) Affinity (ACPI 6.2)
- KNF
- Whilte space cleanup.
2017-09-27 05:43:55 +00:00
gson
0eb663cba7 Clear the screen after running installboot. If we don't, there will
be a leftover line saying "Status: Finished" at the top of the next
screen, along with some random punctuation in the left and right
margins.  Inspired by ../landisk/md.c 1.3.
2017-09-11 15:24:28 +00:00
christos
11aeb6ae69 Don't start another copy of rtadvd if one is running. 2017-09-11 14:12:28 +00:00
christos
7931fdd27d KNF, fix time printing formats. 2017-09-11 14:12:07 +00:00
ginsbach
b68988e2c2 Use looked up remote host for remote message without a hostname
An incoming remote message may not necessarily have a hostname
between the timestamp and the message. The the source of the remote
sender is already looked up so use that hostname/IP address rather
than the local hostname.

XXX: pullup-8
XXX: pullup-7
XXX: pullup-6
2017-09-10 17:01:07 +00:00
wiz
96dff12048 Fix enumeration. 2017-09-10 10:13:47 +00:00
mrg
e7f4cf6f3c two minor fixes for -x and -y mode:
- the header is only 1 line not 2, account for this when calculating
  when to display the next header.
- when ndrives > 1, don't display the header every time, but only when
  the previous one disappears.

now i don't feel the need to run "iostat -x wd0 1 & iostat -c wd1 1"
to get less repeated header output on my display.
2017-09-09 23:51:58 +00:00
sevan
5bd038bb6e Remove the ability to generate a signature database with the hash algorithms
MD5, SHA1 & RMD160 which are either broken or on their way to being broken.

Discussed on tech-security
http://mail-index.netbsd.org/tech-security/2017/08/21/msg000936.html

ok riastradh
2017-09-09 21:27:23 +00:00
msaitoh
ed892e9a7b Define CPUID Fn00000001 %ebx bits and use them. No functional change. 2017-09-07 06:40:42 +00:00
msaitoh
50d91653ef Don't define GAS adddess ID constants in acpidump.h and use actypes.h's
definitions. No functional change.
2017-09-07 04:40:56 +00:00
nakayama
d1ef03659a Don't modify strings stored in hash, otherwise filling up of
directory hierarchy stops if the same hash value occurs in
directory and leaf.

Fix the issue that
"./usr/share/locale/pl/LC_MESSAGES/gettext-tools.mo" isn't included
in sets file in the case of MKUNPRIVED=no.
2017-09-07 04:04:13 +00:00
msaitoh
0f0f0fe40a - Space, tab and newline change for consistency output.
- Print a type number for unknown HEST sub entry ID.
2017-09-04 08:12:29 +00:00
msaitoh
084106f3ab - Calculate offset of a sub header correctly in acpi_handle_hest() to print
all of sub entries in HEST correctly.
- Print a SpaceID number for unknown ID in acpi_print_gas().
- Use PRINTFLAG() in acpi_print_hest_notify().
- Use %u instead of %d for unsgined values in acpi_print_hest_generic().
2017-09-04 08:08:41 +00:00
msaitoh
8dabdd9fc2 Fix calculation the offset of the Action Table in WDAT to print each
entries correctly.
2017-09-04 07:59:15 +00:00
nat
866993a422 Fix copyright error.
Ok plunky@.
2017-09-03 22:54:12 +00:00
msaitoh
5d527485aa Decode the following entries:
- DBG2 (Debug Port Table 2)
 - SPMI (Server Platform Management Interface Table)
 - WDDT (Watchdog Timer Description Table)
 - UEFI (UEFI, not fully decoded yet)
2017-09-01 18:35:50 +00:00
msaitoh
ff98ea4622 - Add "Performance Server" and "Tablet" for Preferred_PM_Profile.
- Don't print FADT_RESET_REG if FADT version is 1.
- Print FADT ArmBootFlags, MinorRevision, SleepControl, SleepStatus and
  HypervisorId.
- Print "{}" even if any flags aren't set.
2017-09-01 05:53:09 +00:00
msaitoh
1c01428a98 Part of FreeBSD r323045:
- Print Valid Field in ACPI_NFIT_CONTROL_REGION with 0x%02x.
 - Fix Flags of ACPI_NFIT_CONTROL_REGION.
2017-08-31 09:27:51 +00:00
msaitoh
792e611dc6 - Decode ACPI_HEST_GENERIC_V2.
- Decode ACPI_MADT_GENERIC_MSI_FRAME.
- Add NMI, CMCI, MCE, GPIO-Signal, ARMv8 SEA, ARMv8 SEI and GSIV
  in acpi_print_hest_notify().
- Add ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS and ACPI_EINJ_GET_EXECUTE_TIMINGS
  in acpi_print_einj_action().
- Add ACPI_ERST_EXECUTE_TIMINGS in acpi_print_erst_action().
- Decode NFIT (NVDIMM Firmware Interface Table) from FreeBSD.
2017-08-31 06:53:58 +00:00
wiz
68fe156435 New sentence, new line. Remove superfluous Pp. 2017-08-27 20:45:47 +00:00
nat
eeb06bda56 Connection state machine improvement upon transition from AVDTP_OPEN to
AVDTP_START/SUSPEND.
2017-08-27 10:39:18 +00:00
jmcneill
ae2cfe2a2a Try to use standard wsdisplay ioctls when HPCFBIO_GCONF is not available. 2017-08-27 02:19:08 +00:00
ginsbach
a6da7f121b Support -4 and -6. 2017-08-26 19:26:32 +00:00
ginsbach
6b34aef124 Sort options alphabetically. 2017-08-26 18:16:05 +00:00
christos
b766bbedd5 don't lock for RUMP 2017-08-21 17:01:04 +00:00
msaitoh
8f0f46f919 Add new function acpi_select_address() derived from acpi_get_fadt_revision().
On some systems, 32bit address is used for (X)Dsdt even if (X)Facs uses 64bit.
Don't assume an address size from FADT revision.
2017-08-21 02:58:49 +00:00
msaitoh
9ffd944419 Check DSDT signature in acpi_handle_fadt() for broken ACPI table. 2017-08-18 09:49:24 +00:00
christos
39c7ca3b3a fix path to the warmstart file. 2017-08-17 07:45:24 +00:00
ginsbach
b683e9a94a Fix compile warnings.
(Restore changes clobbered by merge of FreeBSD changes. Hi christos!)
2017-08-17 00:08:10 +00:00
ginsbach
16400a904e Revert accidently committed enabling WARMSTART. 2017-08-17 00:06:00 +00:00
ginsbach
5f912a847a Write the "warm start" file to /var/run rather than /tmp.
(Restore changes clobbered by merge of FreeBSD changes. Hi christos!)
2017-08-16 23:38:16 +00:00
wiz
8b8f265dcd Use today's date. Sort options. Remove superfluous Tn macro. Wording improvement. 2017-08-16 18:23:03 +00:00
christos
6f43c19b6f fix typo, date, document -L 2017-08-16 14:22:58 +00:00
christos
34b7ffd922 merge FreeBSD changes:
- fixes CVE-2015-7236
- adds -h hostip to bind, -6 for only ipv6 access, -a for abort gracefully
- documents -w (warmstart)
XXX: should fix warmstart file to go to /var/run instead of /tmp
2017-08-16 08:44:40 +00:00
wiz
e217b7d046 Remove superfluous Tn macros. 2017-08-15 21:21:18 +00:00
mrg
c62a157eb2 merge the rest of sbmips into evbmips. install the stand files in
/usr/mdec/sbmips/ and document them in installboot(8) even though
it isn't really ported yet.  also build the SBMIPS kernels.

unfortunately, sbmips has been broken since mips64 merge, but the
fix can happen in the evbmips version, which we might merge into
the older trees anyway.

XXX: releng can turn off sbmips* builds now for -current.
2017-08-15 10:11:31 +00:00
nat
52943eab20 Set controller clock based on baud rate. 2017-08-14 05:28:23 +00:00
wiz
3ee579e3bc Indent to avoid line breaks in tag; give tag width in table; use Nm
to refer to hciattach because we'll probably never have hciattach(8).
2017-08-13 18:34:03 +00:00
ginsbach
94951b0fc5 PR bin/42464: Timothy McIntosh: Fix timed interoperability
Fix is a combination of FreeBSD fix and submitted patch.

[From the FreeBSD change]
The timed protocol is not implemented in a compatible way by all
vendors; the size of the tsp_name field is OS-dependent.  4.3BSD
used a 32-byte field, FreeBSD uses MAXHOSTNAMELEN and RedHat
apparently uses a 64-byte field.  As a result, sanity checking code
added a few months ago to detect short packets will fail when
interoperating with one of these other vendors.

Change the short packet detection code to expect a minimum packet
size corresponding to the 4.3BSD implementation, which should be
a safe minimum size.
2017-08-11 16:47:42 +00:00
jmcneill
6ad4d0f8e5 Make the "bcm43xx" type use H4 transport and add a new "bcm43xx-3wire"
type for use with H5 transport. The naming of the types here matches
those used in a series of BlueZ patches from the Raspberry Pi foundation.
2017-08-11 11:54:08 +00:00
jmcneill
8622efc43c Derive the firmware name from the device's local name instead of
hard-coding BCM4340A1. Search hw.firmware.path for the firmware image
instead of loading it from the current directory.
2017-08-10 20:43:12 +00:00
jakllsch
6598524cdc remove currently-unused variables that trip up the build 2017-08-10 18:45:20 +00:00
nat
e5d9803b71 Add support for bcm 43xx devices using the btuart h5 protocol.
Currently It will only load 1 firmware image for rpi3.

To use change to the directory containing the firmware BCM4340A1.hcd.
Then issue: btattach -FPi 115200 bcm43xx /dev/ttydevice 921600.

Then you can use the bluetooth device btfive0.

This enables the embedded bluetooth controller on rpi3.
2017-08-10 13:34:29 +00:00
maya
7db80fab74 evbmips can "boot root FFSv2"
It typically uses a non-NetBSD bootloader (PMON, u-boot...) and those
don't differentiate from v1 from v2 - both are unsupported and it requires
a separate boot partition.
2017-08-09 23:01:06 +00:00
ginsbach
7333bec30e Make use of the defined YP errors when ypbind encounters one rather than
just returning an empty (successful) RPC result.

Don't exit when allocating memory for a new bound domain received via a RPC.
2017-08-09 01:56:42 +00:00
ginsbach
19bce2a53d Fix compile warnings. 2017-08-06 01:55:21 +00:00
ginsbach
17894e71a8 Write the "warm start" file to /var/run rather than /tmp. 2017-08-06 01:02:44 +00:00
wiz
406adb2faa Fix punctuation markup, remove superfluous Pp. 2017-08-05 20:24:17 +00:00
msaitoh
c359a2130c Sync with FreeBSD's r321294:
- Dump TCG ACPI spec table (TCPA) more.
 - Dump DMA Remapping Reporting table (DMAR).
 - Consistently cast ACPICA 64-bit integer types when we print them.
 - Display the 'Flags' field in the HPET Description Table.
 - Do not crash when RSDT/XSDT contains an empty entry.
 - Print 64-bit addresses clearly with leading zeros to avoid confusions.
 - Create temp file safely.
 - Add missing flags into FADT.
 - Print some new ACPI 5.1 MADT entries.
 - Use __arraycount().
 - Warn and exit loop on invalid subtable length.
 - Fix the type used to hold the value returned from getopt. On arm64 char is
   unsigned so will never be -1.
2017-08-04 06:30:36 +00:00
ginsbach
fdcd803e08 Expand the traceroute6 man page
- Add a proper description paragraph before launching into describing the
  options.  More closely follow format of the traceroute(8) man page.
- Improve the wording for some option descriptions.
- Add description what what is printed and define what the possible
  annotations mean.
2017-08-04 02:08:21 +00:00
msaitoh
9b32f8487a On UEFI environment, ACPI table is not at low address. Get ACPI root pointer
from hw.acpi.root first. Same as FreeBSD. This change fixes a problem that
acpidump(8) showed "acpidump: Can't find ACPI information".

XXX pullup-8
2017-08-03 05:54:45 +00:00
jmcneill
1385e4296e Make the 'no results found' message sound less harsh.
Changes "try using better keywords" to "try using different keywords".
2017-08-02 12:52:18 +00:00
abhinav
f56c37233e Don't use the custom tokenizer when compiled with debugging on
Using the custom tokenizer means one cannot interactively query the database
through the SQLite shell, thus thwarting the purpose of the debug build option.

Thanks to leot@ for reporting it.

(While there change the debug macro from DEBUG to APROPOS_DEBUG)
2017-08-01 16:16:32 +00:00
nakayama
1d43d3952b sparc has db_machdep.c now. 2017-07-21 20:58:44 +00:00
wiz
2b8372dc3b Simplify. 2017-07-20 07:42:54 +00:00
dholland
fbbc1f22f4 Rework previous (and the text it modified) for clarity. 2017-07-19 16:37:17 +00:00
gson
c7fa9ad5c0 Clear the screen after running installboot. If we don't, there will
be a leftover line saying "Status: Finished" at the top of subsequent
screens, and the message "Hit enter to continue" will be redrawn after
the set selection is complete, which confuses literal-minded robotic
users such as anita.
2017-07-18 17:15:45 +00:00
christos
fbbb03bfac don't complain if the mbr was all 0's. 2017-07-17 18:43:45 +00:00
wiz
575625986e New sentence, new line. 2017-07-16 21:19:38 +00:00
christos
3aa843808a PR/52412: Edgar Pettijohn: Describe the service/port syntax. 2017-07-16 21:05:19 +00:00
christos
2725a625f8 PR/52396: Edgar Pettijohn: Spell daemon consistently. 2017-07-12 01:57:43 +00:00
simonb
106425b701 Add npfd to the list of rc.d scripts to check. 2017-07-10 00:27:32 +00:00
mlelstv
245a1a4599 Use I/O timestamps to compute disk statistics for better precision.
Disk statistics are collected in a fixed size array, that got corrupted
when a disk was detached. Adapt by skipping entries of detached disks
and detect reused disknames at the array end.
2017-07-04 21:19:33 +00:00
wiz
f8e5212cee Use Ex. 2017-07-04 07:13:18 +00:00
wiz
4827dcf9ca Add EXIT STATUS section. Use Ex. 2017-07-04 07:12:18 +00:00
wiz
597b141c6c Use Ex. 2017-07-04 07:08:42 +00:00
wiz
01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
ozaki-r
3f42983046 Enable to remove multiple ARP/NDP entries for one destination
The kernel can have multiple ARP/NDP entries which have an indentical
destination on different interfaces. This is normal and can be
reproduce easily by ping -I or ping6 -S. We should be able to remove
such entries.

arp -d <ip> and ndp -d <ip> are changed to fetch all ARP/NDP entries
and remove matched entries. So we can remove multiple entries
described above. This fetch all and selective removal behavior is
the same as arp <ip> and ndp <ip>; they also do fetch all entries
and show only matched entries.

Related to PR 51179
2017-06-28 08:17:50 +00:00
ozaki-r
60f1157fbd Fix usage of routing messages on arp -d and ndp -d
It didn't work as we expected; we should set RTA_GATEWAY not
RTA_IFP on RTM_GET to return an if_index and the kernel should
use it on RTM_DELETE.
2017-06-26 03:13:40 +00:00
macallan
023c931755 - don't use embedded font name if -N is given
- assume mono bitmap font when reading from stdin
2017-06-23 18:40:03 +00:00
macallan
6722e01bac avoid sign compare error 2017-06-23 17:40:15 +00:00
macallan
dd033bdda9 load files from ttf2wsfont 2017-06-23 02:16:39 +00:00
abhinav
188f922ddf Add a custom tokenizer which does not stem certain keywords.
Which keywords should not be stemmed is specified in the nostem.txt file.
(Right now I have taken all the man page names, split them if they had
underscores, removed common English words and converted everything to
lowercase.)

The tokenizer itself is based on the Porter stemming tokenizer shipped with
Sqlite. The code in custom_apropos_tokenizer.c is copy of that code with
some modifications to prevent stemming keywords specified in nostem.txt.

Additionally, it now uses underscore `_' also as a token delimiter. Therefore,
now it's possible to do query for `lwp' and all `_lwp_*' man page names
will be matched. Or the query can be `unconst' and `__UNCONST' will be matched.
This was not possible earlier, because underscore was not a delimiter and therefore
the index would have __UNCONST as a key rather than UNCONST.

The tokenizer needs fts3_tokenizer.h file, which is not shipped with the
amalgamation build of Sqlite, therefore it needs to be added here (unless
we decide there is a better place for it).

To enforce using the new tokenizer, a schema version bump is needed

Since the tokenization is done both at the indexing time (via makemandb) and
also while query time (via apropos or whatis), it will be needed to bump
the schema version everytime nostem.txt is modified. Otherwise the
index will consist of old tokens and desired changes will not be seen with
apropos.

This should also fix the issue reported in PR bin/46255. Similar suggestion was
also made on tech-userlevel@ recently:
<http://mail-index.netbsd.org/tech-userlevel/2017/06/08/msg010620.html>

Thanks to christos@ for multiple rounds of reviews of the tokenizer code.
2017-06-18 16:24:10 +00:00
christos
49ec0324b7 add missing pam items (cron, racoon) 2017-06-16 22:58:38 +00:00
chs
6347f22e62 this file uses the <sys/queue.h> macros so it should include
that header itself, rather than relying on getting it indirectly
by including some other header (which will soon be changed
to not do that anymore).
2017-06-08 03:25:03 +00:00
ryo
1a52494ae8 whitespace police 2017-06-06 19:59:10 +00:00
sborrill
308836c5eb Only match first instance of name and rcvar in file. 2017-06-05 09:20:05 +00:00
christos
823b06f593 remove my copyright. 2017-06-03 14:44:12 +00:00
nat
b38268fc93 Streaming channel is now opened in blocking mode again.
Removal of a hack in sbc_encode now that pad(4) is fixed.
2017-05-27 10:04:57 +00:00
hauke
01510a9c7f Enable carp packets early during boot, to avoid gratuitous failovers.
Okayed by christos@
2017-05-26 15:40:27 +00:00
abhinav
2f6fb75f1b Make the name comparison case insensitive.
(The old whatis(1) also used to do case insensitive string comparisons).
2017-05-23 15:27:54 +00:00
riastradh
ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
riastradh
09956316a6 Remove MKCRYPTO_RC5. Unconditionally include RC5 in libcrypto.so.
This option existed only because RC5 is covered by patents that, twenty
years ago, we had reason to suspect the patent holder, RSA, Inc., might
litigate.  The two US patents in question are 5,724,428 and 5,835,600.

According to the USPTO Patent Term Calculator web site at
<https://www.uspto.gov/patent/laws-and-regulations/patent-term-calculator#heading-5>
(retrieved 2017-05-21), patents filed after 1995-06-07 expire twenty
years after the filing date.

number          filing date
5,724,428       1995-11-01
5,835,600       1997-04-21

Thus, these patents appear to be expired.

As proposed on tech-crypto and tech-security:

https://mail-index.netbsd.org/tech-crypto/2017/05/05/msg000718.html
https://mail-index.netbsd.org/tech-security/2017/05/05/msg000927.html
2017-05-21 14:20:44 +00:00
christos
b4b0a6b177 set "testing mode" for ioctl I/O 2017-05-17 18:55:13 +00:00
christos
01920ad36e don't print decimal and parse hex! 2017-05-14 21:38:23 +00:00
abhinav
a46498cbc0 Get rid of unnecessary variable. 2017-05-10 12:09:52 +00:00
sevan
f7a3540ecf Drop main() prototype. 2017-05-04 16:26:09 +00:00
christos
0b0b181ad5 Limit size of buffer:
https://github.com/guidovranken/rpcbomb/blob/master/rpcbind_patch.txt
XXX: pullup-7
2017-05-03 21:28:00 +00:00
abhinav
0b6c27b077 We do need to copy the return value from dirname(3) since there it is a static
buffer and can be overwritten in between. I overzealously removed this in one
of my previous commits.
2017-05-02 13:54:08 +00:00
abhinav
520f86ec72 Avoid dereferencing pointer at multiple places, instead use a local variable. 2017-05-01 06:56:00 +00:00
abhinav
05f4872247 Remove the table name parameter from the check_md5 function.
There is only one table storing the md5 checksums, so we can hardcode the table
name instead of passing it as a function argument.
2017-05-01 06:43:56 +00:00
abhinav
1d50c960ff Avoid copying strings where it is not needed. 2017-05-01 05:52:33 +00:00
abhinav
1373f782a3 Simplify handling of the section arguments in apropos(1).
Earlier, a white space separated string was generated containing all the section
numbers passed through command line arguments. Later on that would have to be
tokenized and processed. Instead of that, use a NULL terminated array of strings.

Thanks to christos@ for reviewing and suggesting further improvements.
2017-05-01 05:28:00 +00:00
abhinav
c08af49426 Simplify 2017-04-30 16:56:30 +00:00
abhinav
b8c9b20183 Instead of dereferencing the pointer passed in as function argument, use a
temporary local buffer. Saves the cost of pointer dereferencing at so many places.
2017-04-30 15:27:24 +00:00
abhinav
ba948c919e Update the comment to be in sync with the code. 2017-04-30 14:53:58 +00:00
abhinav
3c0134393a Use sqlite3_mprintf() to generate SQL query instead of asprintf. 2017-04-30 14:49:26 +00:00
abhinav
e62bbc5df1 Avoid a call to strncmp when comparing only the first character of the string. 2017-04-30 08:41:18 +00:00
abhinav
116a5447e2 Bring the comment in sync with code (after changes brought by the last commit). 2017-04-29 16:49:51 +00:00
abhinav
c376a38e5b Don't parse Nm macro when it occurs anywhere outside the NAME section.
mandoc(3) already generates the text node representing the value for the .Nm macro.
Doing our own parsing for .Nm on top of that leads to large duplication of text
in the database. This gets specially worse for man pages with large NAME sections,
such as queue(3).
2017-04-29 14:43:09 +00:00
abhinav
231f71fb95 Disable the database compression if DEBUG is defined.
When debugging makemandb(8), it helps to be able to view the text being
stored in the database.
2017-04-27 08:02:24 +00:00
abhinav
b2c6ef38f4 Teach whatis(1) to handle MLINKS
Similar to apropos(1), whatis did not utilise the mandb_links table till now.
Therefore, if it was asked about one of the links to a man page, it would
error out. This change teaches whatis(1) to look up both the FTS table
as well as the links table, thus ensuring that it is able to answer queries
about MLINKS as well.

Comparision between outputs before this change and after this change:

#Before change
$ whatis realloc
realloc: not found

#after change
$ ./whatis realloc
realloc(3) - general memory allocation operations
realloc(3) - general purpose memory allocation functions
realloc(9) - general-purpose kernel memory allocator
2017-04-23 16:56:49 +00:00
abhinav
e70b83fc18 Better handle MLINKS in apropos(1).
apropos(1) only indexes the first .Nm entry from the NAME section in the full
text index. Rest of the .Nm entries are stored in a separate table: mandb_links.

Till now apropos(1) did not use the mandb_links table. So whenever a query
was being made for one of the man page links, such as realloc(3), it was showing
malloc(3) in the results but not as the first result. And, also the result would
show up as malloc(3), rather than realloc(3) (which can be confusing).

With this change, for single keyword queries, apropos(1) would now utilise the
mandb_links table as well. If the query is for one of the links of a man page,
it would show as the first result. Also, the result would show up as the name
of the link rather than the original man page name. For example, if the query
was for realloc, the output would be realloc(3), rather than malloc(3).

Following are some example queries showing difference in the output before this
change and after this change:

#Before changes
$ apropos -n 5 -M realloc
reallocarr (3)    reallocate array
reallocarray (3)  reallocate memory for an array of elements checking
for overflow
fgetwln (3)       get a line of wide characters from a stream
fgetln (3)        get a line from a stream
posix_memalign (3)        aligned memory allocation

#After changes
$ ./apropos -n 5 -M realloc
realloc (3)       general memory allocation operations
realloc (3)       general purpose memory allocation functions
realloc (9)       general-purpose kernel memory allocator
reallocarr (3)    reallocate array
reallocarray (3)  reallocate memory for an array of elements checking
for overflow

#Before changes
$ apropos -n 5 -M TAILQ_REMOVE
SLIST_HEAD (3) implementations of singly-linked lists, lists, simple
queues, tail queues, and singly-linked tail queues

#After changes
$ ./apropos -n 5 -M TAILQ_REMOVE
TAILQ_REMOVE (3)  implementations of singly-linked lists, lists,
simple queues, tail queues, and singly-linked tail queues

#Before changes
$ apropos -n 5 -M falloc
filedesc (9)      file descriptor tables and operations
file (9)  operations on file entries

#After changes
$ ./apropos -n 5 -M falloc
falloc (9)        file descriptor tables and operations
file (9)  operations on file entries

ok christos@
2017-04-23 13:52:57 +00:00
christos
dec46a9666 libarchive now needs crypto 2017-04-21 23:07:45 +00:00
joerg
c57cca78b1 Use libarchive 3.x interface and not obsolete 2.x versions. 2017-04-20 13:11:35 +00:00
martin
3933c9575a If -x (xsrc location) is passed for "check", display it also in the
"how to fix" invocation instructions.
2017-04-17 18:41:48 +00:00
hannken
256581e1f9 Cleanup after mountlist iterator:
- remove now unused field mnt_list.
- rename mount_list to mountlist and make it local to vfs_mount.c.
- make mountlist_lock local to vfs_mount.c.

Change pstat.c to retrieve vnodes by lru lists.
2017-04-17 08:29:58 +00:00
christos
3bf4d13e2d leave the size alone and set the create_size to include the offset. It
does not matter anyway, but it makes more sense this way.
2017-04-14 15:40:35 +00:00
wiz
0d97bd8ae2 Whitespace fixes. 2017-04-14 07:09:43 +00:00
christos
c02e58cd9e Explain the 's' image size better. 2017-04-13 17:21:29 +00:00
christos
e919fde2d0 for consistency with ffs, don't count the offset into the size. 2017-04-13 17:20:59 +00:00
christos
820702f055 Fix error handling; msdosfs_wfile is supposed to return errno. 2017-04-13 17:10:12 +00:00
roy
de09325dff Use RO_MSGFILTER. 2017-04-12 17:02:51 +00:00
roy
fcede00eff Use RO_MSGFILTER. 2017-04-12 16:47:39 +00:00
roy
08bcff5614 Use RO_MSGFILTER. 2017-04-11 14:29:23 +00:00
roy
f2128fd5cf Use RO_MSGFILTER. 2017-04-11 14:15:08 +00:00
christos
ddac911e7d Protect the right part. 2017-04-10 12:05:52 +00:00
christos
ec999e2a0c fix syntax 2017-04-09 21:57:59 +00:00
christos
1bba784bf1 stack protector issue on sparc 2017-04-09 20:34:00 +00:00
roy
470d822ff7 Move dhcpcd lease files to new location. 2017-04-01 20:14:53 +00:00
roy
27a2ea4c9b Move dhcpcd's rdm monotonic file if it exists. 2017-04-01 20:03:31 +00:00
roy
47092efcec Pluck dhcpcd.conf from dist/src
Move dhcpcd.duid and dhcpcd.secret from /etc to /var/db/dhcpcd/{duid,secret}
2017-04-01 19:14:10 +00:00
christos
624bfdf064 can't call pcap_datalink before activate. 2017-03-25 11:00:27 +00:00
christos
c8429e33e6 Change duplicate 'D' option to 'm'. From Ed Maste @ FreeBSD 2017-03-15 15:33:54 +00:00
wiz
27790f6369 Bump date for previous. 2017-03-15 11:22:47 +00:00
ozaki-r
7c181550a9 Fix build of puffs 2017-03-14 14:05:52 +00:00
bad
4046b64730 Document option console=auto. Works since at least NetBSD 6. [i386,amd64] 2017-03-14 13:50:40 +00:00
mlelstv
ba576b71a7 Enhance disk metrics by calculating a weighted sum that is incremented
by the number of concurrent I/O requests. Also introduce a new disk_wait()
function to measure requests waiting in a bufq.
iostat -y now reports data about waiting and active requests.

So far only drivers using dksubr and dk, ccd, wd and xbd collect data about
waiting requests.
2017-03-05 23:07:12 +00:00
ozaki-r
cd58b07d6c Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.

PR bin/51994
2017-02-27 05:41:36 +00:00
wiz
2b9a593e7e Fix Dd argument. 2017-02-26 22:18:58 +00:00
mbalmer
57e869fa25 shorten hardware address wording 2017-02-26 19:58:38 +00:00
ozaki-r
00a9cf741d Remove mkludge stuffs
For unknown reasons, IPv6 multicast addresses are linked to a first
IPv6 address assigned to an interface. Due to the design, when removing
a first address having multicast addresses, we need to save them to
somewhere and later restore them once a new IPv6 address is activated.
mkludge stuffs support the operations.

This change links multicast addresses to an interface directly and
throws the kludge away.

Note that as usual some obsolete member variables remain for kvm(3)
users. And also sysctl net.inet6.multicast_kludge remains to avoid
breaking old ifmcstat.

TODO: currently ifnet has a list of in6_multi but obviously the list
should be protocol independent. Provide a common structure (if_multi
or something) to handle in6_multi and in_multi together as well as
ifaddr does for in_ifaddr and in6_ifaddr.
2017-02-23 07:57:09 +00:00
abhinav
8ab56b2aac Fix typo. 2017-02-22 14:15:15 +00:00
maya
b0f6bc04c6 GC some GCC 4.8 specific sh3 HACKS entries.
These existed to avoid compile errors, and haven't been effect
since gcc.old was removed.
2017-02-22 12:17:16 +00:00
abhinav
11852aa12f Remove duplicate word from the sentence. 2017-02-21 18:36:39 +00:00
abhinav
901279cdf1 Fix typos. 2017-02-21 18:28:28 +00:00
abhinav
7197d240e2 Fix spelling of "occurs". 2017-02-21 15:15:19 +00:00
christos
375072cc9c allow 0 timestamp 2017-02-16 22:44:06 +00:00
christos
d372863cc1 need <sys/stat.h> 2017-02-16 22:10:50 +00:00
christos
639cd04dc3 fix msdos reproducible builds! 2017-02-16 19:11:13 +00:00
christos
e93222b74e start fixing msdosfs for reproducible builds; does not work yet. 2017-02-16 18:50:04 +00:00
elric
e8ad4c8a7e Increase buffer size reported to strlcpy() to be one larger than the
length of the string we copy in so that there is space for the '\0'.
2017-02-15 02:48:31 +00:00
wiz
5ef8e05441 file system police. 2017-02-12 14:45:09 +00:00
nat
29b2495b54 RTP timestamp is now set correctly. The streaming socket is set to non
block blocking and connection state machinre improvement.
2017-02-12 08:25:31 +00:00
uwe
13be1262d3 Don't use slow file_exists_exact if we don't have to.
file_exists_exact function was introduced in 1.26 for the benefit of
cross-building on OS X case-insensitive file system.  It is extremely
slow on diskless machines.  That becomes especially noticeable when
you upgrade a system that has a lot of obsolete files, it can take
literally hours.
2017-02-11 19:35:45 +00:00
christos
49c3d03fa6 untorture language. 2017-02-11 16:04:59 +00:00
christos
2bb798b1d6 mention timezone change for -T timestamp 2017-02-11 15:32:51 +00:00
kre
0368fad281 Revert the part of mkfs.c 1.36 that "gutted the const" (while
retaining the part that added a different one).

That is, re-constipate makefs (well, just a bit, no real pain here.)
2017-02-09 04:42:53 +00:00
christos
683c28c5f2 If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).
2017-02-08 21:33:12 +00:00
christos
f9f791fd0d stampst.st_ion consistent treatment (non-zero vs zero instead of testing == 1) 2017-02-08 21:27:26 +00:00
christos
b4ccad3ff2 gut const for now. 2017-02-08 16:00:30 +00:00
christos
db38a065ef Don't store random (from ASLR) pointers into the superblock. Should be the
last (famous last words) problem with reproducible builds!
2017-02-08 04:08:53 +00:00
christos
7450df85ed no, this is wrong. 2017-02-08 02:23:45 +00:00
christos
86c77ab60f zero out the superblock so that it does not contain random stuff in the
spare fields.
2017-02-08 02:20:35 +00:00
christos
834cf8f0c2 KNF. 2017-01-30 15:56:44 +00:00
christos
5b72d547e7 dedup. 2017-01-30 15:50:21 +00:00
jakllsch
140f4d60f8 Improve portability baseline of bta2dpd's cosdata-gen and sbc_crc-gen hostprogs.
XXX why are these being generated at build time?
2017-01-30 14:55:17 +00:00
christos
2e57ffe4d0 fix function argument. 2017-01-29 04:12:52 +00:00
christos
f8006a404c Always print the rule id associated with a rule. 2017-01-29 00:18:15 +00:00
wiz
3c1a929df9 Sort SYNOPSIS, descriptions, SEE ALSO.
Use more macros.
Fix sections.
New sentence, new line.
Various other improvements.
2017-01-28 23:52:45 +00:00
christos
ce31bd9da4 add sqlite3 2017-01-28 23:42:36 +00:00
christos
d36af5dd0c Fix the build (objdirs) 2017-01-28 23:19:20 +00:00
nat
b6121f8d46 bta2dpd - Bluetooth Advand Audio Distribution (A2DP) Profile Daemon.
bta2dpd allows you to stream audio to and from bluetooth devices.
It features high quality stereo audio and is intended for use with pad(4)
device.

As discussed on current-users@ and tech-userlevel@
2017-01-28 16:55:54 +00:00
christos
043ad880a5 fix signed compare 2017-01-24 20:25:08 +00:00
christos
ec23b4d29e output every 5 seconds instead of 60 or every 100 packets 2017-01-24 20:24:59 +00:00
nonaka
d01ec60946 makefs(8): add cd9660 eltorito-alt-boot option for EFI boot. 2017-01-24 11:22:43 +00:00
rmind
82fad0d6ea npfctl: fix shift/reduce conflicts, thanks to riastradh@. 2017-01-20 23:00:30 +00:00
wiz
857253ed15 Bump date for previous. 2017-01-20 08:48:14 +00:00
kre
786e74973e Add missing ; - hopefully unbreak build. 2017-01-20 03:16:40 +00:00
rmind
60a0ec10c4 npfctl:
- Add protocol filter option for "map".
- Print user-friendly error if table contains an entry with invalid netmask.
- Add support for inline ports.
2017-01-19 20:18:17 +00:00
christos
2c6ed7a648 another buffer overflow. 2017-01-13 05:49:27 +00:00
christos
4dd10bdd36 - allocate space dynamically instead of putting structs in BSS.
- change some wrong strncat to strlcat.
2017-01-12 17:38:08 +00:00
wiz
c747e8df7d Document msdos-specific options directly.
From jmc@OpenBSD.

Bump date.
2017-01-11 13:47:27 +00:00
wiz
38d4f70efc Some changes and sorting based on diff sent from jmc@OpenBSD. 2017-01-11 13:44:24 +00:00
joerg
f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
joerg
8ef27f1e3d Avoid access to unaligned data. 2017-01-11 12:18:22 +00:00
hannken
dcc198a3f8 Move vnode member v_mntvnodes as vi_mntvnodes to vnode_impl.h.
Add an ugly hack so pstat.c may still traverse the list.
2017-01-11 09:07:57 +00:00
christos
103b31ec3d more todo 2017-01-11 02:13:54 +00:00
christos
f07757667e Don't silently take the first element of multiple element variables. 2017-01-11 02:11:21 +00:00
christos
5da201fb8b fix hint. 2017-01-11 02:10:44 +00:00
christos
6aea766547 need <time.h> for clock_gettime 2017-01-10 21:07:17 +00:00
christos
9009c648c6 need <sys/stat.h> 2017-01-10 21:04:06 +00:00
christos
59d9f8355d need <sys/types.h> 2017-01-10 21:03:36 +00:00
christos
22e2f96812 need <sys/stat.h> 2017-01-10 20:57:26 +00:00
christos
0f64b50934 need <sys/stat.h> for chmod(2) 2017-01-10 20:56:41 +00:00
ozaki-r
26e6c607e9 Don't give up just because inet6 sysctl knobs aren't available
It can happen normally, for example run a kernel without INET6 or
run a rump_server without librumpnet_netinet6.so.
2017-01-10 05:43:27 +00:00
kamil
2fe964ca6f Include <unistd.h> for R_OK W_OK STDOUT_FILENO access(2)
These symbols are undefined after switch to new zlib.
2017-01-10 04:34:07 +00:00
kamil
1eec2c6197 Include missing header <unistd.h> for write(2) read(2) close(2)
These functions are undefined after switch to new zlib.
2017-01-10 04:27:02 +00:00
christos
3b9bb00dc5 don't try to install rc scripts for programs not installed 2017-01-09 19:51:31 +00:00
wiz
33271d5eb0 Whitespace, fix xref, remove unnecessary macro, sort SEE ALSO. 2017-01-08 13:59:53 +00:00
christos
09e56bb693 add nsd 2017-01-07 19:55:35 +00:00
christos
b083914cc2 add example. 2017-01-07 18:48:47 +00:00
christos
3f2d359121 descend to npfd 2017-01-07 17:27:02 +00:00
christos
cec127882c add man page, lint cleanups. 2017-01-07 16:48:03 +00:00
christos
177e6c06dd restrict permissions on log file 2017-01-07 16:36:54 +00:00
christos
9ed7390988 Add log validation 2017-01-06 19:20:24 +00:00
christos
d20e855db5 don't try to run a non-existing nbcat 2017-01-06 17:25:32 +00:00
christos
83809af30d set the timeout to 1 second so we can see packets flowing in real time. 2017-01-05 16:23:31 +00:00
rmind
f095afd741 npfctl: dynamic interface address handling; update npf.conf(8). 2017-01-03 01:29:49 +00:00
jnemeth
5c7485e31c add rtsold to rc_obsolete_files :-( 2017-01-03 00:35:07 +00:00
christos
d8571daf5b flesh this out more. 2016-12-30 19:55:46 +00:00
rmind
f97363cc85 Improve 'npfctl debug' a little bit. 2016-12-29 20:48:50 +00:00
christos
f069472cf9 starts running 2016-12-28 03:02:54 +00:00
christos
204834d4f3 Add some flesh. 2016-12-28 01:25:48 +00:00
rmind
8334b9bc82 npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any 2016-12-27 22:35:33 +00:00
rmind
61e84d3fc1 Add some very preliminary npfd(8) code. 2016-12-27 22:20:00 +00:00
christos
bc388aee45 Document list 2016-12-27 20:55:11 +00:00
wiz
00bae140fd Sort options in usage. 2016-12-27 20:24:32 +00:00
christos
a0cedf0df5 Add a list command to iterate over connection and nat endpoints. 2016-12-27 20:14:35 +00:00
christos
ef70bf3819 We don't use openssl for NPF in NetBSD, so don't include the header, and
provide a compatibility define.
2016-12-27 13:43:38 +00:00
christos
f75d79eb69 Sync NPF with the version on github: backport standalone NPF changes,
which allow us to create and run separate NPF instances. Minor fixes.
(from rmind@)
2016-12-26 23:05:05 +00:00
abhinav
93422f00ef Remove xref to signal(7).
As noted by wiz, it is probably not a good idea to mention signal(7) in SEE ALSO
every time a signal name is used in a man page.
2016-12-24 08:26:57 +00:00
mrg
0537635d0c for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00
abhinav
c8a3a46962 Add xrefs to ipsec_set_policy(3) and signal(7) 2016-12-22 09:44:56 +00:00
wiz
154b520e6c New sentence, new line. 2016-12-21 22:49:14 +00:00
abhinav
fe663009fc Move information about exit status to its own section. 2016-12-21 17:45:07 +00:00
abhinav
2abbc56adb s/results/result
Also remove .Pp before .Bl
2016-12-21 17:29:22 +00:00
abhinav
585f9e85b5 Add xref for ethers(5) and hosts(5).
Remove extra white space in the middle of a sentence.
Use more markup for AUTHORS section.

ok wiz@
2016-12-21 12:03:48 +00:00
abhinav
01c3d3dc7f Escape hyphen when parsing .Nd 2016-12-19 14:10:57 +00:00
riastradh
513e90a6d7 Need <stdint.h> for uintmax_t.
From debidi in #netbsd on Freenode.
2016-12-18 18:32:24 +00:00
abhinav
e4137a4e3a Don't ignore symlinks.
There can be symlinks which are pointing to man pages not installed in
one of the _default locations mentioned in man.conf or MANPATH. For example
there are man pages in /usr/pkg/man which are symlinked to pages in
/usr/pkg/lib/perl5/man. If we ignore symlinks, we would not be able to
index such pages installed outside the default set of directories.

(Also, the symlink test was incorecct, so we never noticed this issue)

Ok christos@, wiz@
2016-12-17 17:04:38 +00:00
ozaki-r
0739b470cb Support -p <pidfile> option
It's needed to avoid using /var/run/rtadvd.pid on ATF tests and
run multiple instances of rump.rtadvd on a test.
2016-12-16 09:09:38 +00:00
mrg
f1582e88f7 scandir/alphasort take "const struct dirent **" not "const void *" in
modern unix.  since we claim to be 'IEEE Std 1003.1-2008', make it so.
2016-12-16 04:45:04 +00:00
roy
87cdadbd3f ping is not a reliable means of testing if connectivity to download sets
actually works, so remove it.
Hopefully fixes PR kern/51531.
2016-12-13 19:03:49 +00:00
alnsn
66e93929b7 Add aes-xts to sysinst(8). 2016-12-11 00:56:34 +00:00
mrg
0ef38b0092 note that crash/sparc is unstable 2016-12-10 23:21:02 +00:00
rin
a3ee12347a s/LIButil/LIBUTIL/ in DPADD 2016-12-10 13:55:55 +00:00
mrg
20888c6f10 enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.
2016-12-10 10:42:43 +00:00
christos
5235206633 PR/51652: Sevan Janiyan: makefs dies due to segmentation fault
Don't dereference NULL when running out of nodes during rename.
2016-11-25 23:02:44 +00:00
christos
67f5543283 nothing is executable. 2016-11-23 17:25:11 +00:00
christos
07e020dd99 - protect against node not found SEGV
- fix reversed logic; if we find it in the cache we return it, otherwise
  we create it.
2016-11-23 17:22:44 +00:00
roy
bdebc53a9a Fix PR kern/51531 by using ifconfig to wait for addresses to become
valid rather than sleeping a fixed ammount of time.
2016-11-22 12:04:35 +00:00
shm
612d8cdf6f Add couple FALLTHROUGHs CIDs: 976559, 976560, 976561
No functional change.
2016-11-17 09:29:01 +00:00
shm
03c939ad6c CID 978587: Removed unnecessary check against NULL. 2016-11-17 09:21:34 +00:00
wiz
5027e397c4 New sentence, new line. 2016-11-08 08:21:52 +00:00
pgoyette
1cbf65cf52 Merge changes from David H. Gutteridge in PR misc/51612
Thanks!
2016-11-08 03:20:07 +00:00
flxd
9ff8fe6273 Add new USB-enabled kernel config(s) based upon GENERIC for pmax, include it as kernel set in the build and make it a choice in sysinst.
OK simonb@
2016-11-04 19:18:50 +00:00
ryo
cc1c85bff6 fix column alignment of "intrctl list [-c]" 2016-11-02 11:03:33 +00:00
christos
294f6fea81 we keep version in a separate file now 2016-10-20 17:39:08 +00:00
christos
3f8d0834f4 we keep version separately now 2016-10-20 17:38:28 +00:00
christos
fe9ab5cd08 rename populate_rc to update_rc and copy if source is newer. 2016-10-19 22:17:08 +00:00
christos
82c75ae659 remove dup function 2016-10-19 01:31:05 +00:00
manu
edb96218ee Make FUSE socket buffer tunable
When dealing with high I/O throughput, we could run out of buffer
space if the filesystem was not consuming requests fast enough.
Here we slightly raise the buffer size, and we make it tunable
through the PERFUSE_BUFSIZE environment variable so that we can
cope with higher requirement later.

While there, document PERFUSE_OPTIONS environment variable.
2016-10-18 15:06:17 +00:00
wiz
02b19f3777 Add missing verb. New sentence, new line. 2016-10-16 05:32:30 +00:00
jdolecek
4db570fea8 getopt() result is int; fixes build on arm, pointed out by Rin Okuyama 2016-10-15 22:23:50 +00:00
jdolecek
efdf03ed86 reduce the affinity column to just 5 chars for compact list 2016-10-15 12:14:00 +00:00
jdolecek
8804f261c0 add -c option to list command for compact list, it displays totals rather then
per-CPU stats
2016-10-15 12:06:27 +00:00
jdolecek
fa9d657255 add HISTORY and AUTHORS 2016-10-12 21:47:37 +00:00
roy
520b96bc5f Document our RFC 5227 implementation. 2016-10-12 08:43:17 +00:00
msaitoh
eedad4ff5c Update from the latest Intel SDM:
- Denverton
 - Future Xeon Phi
 - 7th gen Core (Kaby Lake)
2016-10-11 04:16:28 +00:00
christos
61f8de607e Handle tools build 2016-10-07 21:55:29 +00:00
christos
4a4baf005d PR/514612: Mateusz Paszwa: When no more data, bail out (reading from empty
files) instead of stuck looping.
2016-10-07 21:09:57 +00:00
christos
ec9f40cce0 CID 1373516: Missing breaks
Also delete perror, fix fprintf to be syslog.
2016-10-07 15:49:58 +00:00
christos
deba1fd5a8 update for tzcode 2016g 2016-10-07 15:30:01 +00:00
roy
bfbe23745b Inhibit initial up should only apply at program start, not for hot plugged interfaces while it's running. 2016-10-06 11:13:57 +00:00
roy
5bf9473939 Remove rescan_interfaces as the interface announcement message
contains the interface index.
2016-10-06 11:08:55 +00:00
roy
10e2b68c80 Simplify logic - invoke script when address is added and ready or
when removed.
2016-10-06 10:33:05 +00:00