]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 years agocxgbe(4): Fix the tid range shown for T6 cards in misc.tids.
np [Wed, 14 Dec 2016 07:36:36 +0000 (07:36 +0000)]
cxgbe(4): Fix the tid range shown for T6 cards in misc.tids.

MFC after: 3 days

7 years agohyperv: Implement "enlightened" time counter, which is rdtsc based.
sephe [Wed, 14 Dec 2016 03:20:57 +0000 (03:20 +0000)]
hyperv: Implement "enlightened" time counter, which is rdtsc based.

Reviewed by: kib
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8763

7 years ago- Resize FreeBSD to the size of the OpenStack flavor (growfs).
gjb [Wed, 14 Dec 2016 03:01:15 +0000 (03:01 +0000)]
- Resize FreeBSD to the size of the OpenStack flavor (growfs).
- Speeds up the boot process by disabling sendmail.
- Allows an user to ssh as root with a public key.
- Make ssh(1) respond faster by disabling DNS lookups.
- Enable DHCP on the vtnet(4) interface.

Note: The CLOUDWARE list has not yet been changed to include the
OpenStack target by default yet.

Submitted by: Diego Casati
PR: 215258
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

7 years agoAdd 'const' to fn_name's return type to remove a cast.
jhb [Wed, 14 Dec 2016 00:21:06 +0000 (00:21 +0000)]
Add 'const' to fn_name's return type to remove a cast.

7 years agoUse casts to force an unsigned comparison in db_search_symbol().
jhb [Wed, 14 Dec 2016 00:18:12 +0000 (00:18 +0000)]
Use casts to force an unsigned comparison in db_search_symbol().

On all of our platforms, db_expr_t is a signed integer while
db_addr_t is an unsigned integer value.  db_search_symbol used variables
of type db_expr_t to hold the current offset of the requested address from
the "best" symbol found so far.  This value was initialized to '~0'.
When a new symbol is found from a symbol table, the associated diff for the
new symbol is compared against the existing value as 'if (newdiff < diff)'
to determine if the new symbol had a smaller diff and was thus a closer
match.

On 64-bit MIPS, the '~0' was treated as a negative value (-1).  A lookup
that found a perfect match of an address against a symbol returned a diff
of 0.  However, in signed comparisons, 0 is not less than -1.  As a result,
DDB on 64-bit MIPS never resolved any addresses to symbols.  Workaround
this by using casts to force an unsigned comparison.

Probably the diff returned from db_search_symbol() and X_db_search_symbol()
should be changed to a db_addr_t instead of a db_expr_t as it is an
unsigned value (and is an offset of an address, so should fit in the same
size as an address).

Sponsored by: DARPA / AFRL

7 years agoRevert r309918 -- modern POSIX has deprecated -<#>/+<#> syntax
dteske [Tue, 13 Dec 2016 22:31:49 +0000 (22:31 +0000)]
Revert r309918 -- modern POSIX has deprecated -<#>/+<#> syntax

Special thanks to: jilles

7 years agoFix stack traces in DDB for the debugger thread.
jhb [Tue, 13 Dec 2016 22:30:48 +0000 (22:30 +0000)]
Fix stack traces in DDB for the debugger thread.

When the kernel debugger is entered, makectx() is called to store
appropriate state from the trapframe for the debugger into a global
kdb_pcb used as the thread context of the thread entering the
debugger.  Stack unwinders for DDB called via db_trace_thread() are
supposed to then use this saved context so that the stack trace for
the current thread starts at the location of the event that triggered
debugger entry.

MIPS was instead starting the stack trace of the current thread from
the context of db_trace_thread itself and unwinding back out through
the debugger to the original frame.  Fix a couple of things to bring
MIPS inline with other platforms:
- Fix makectx() to store the PC, SP, and RA in the right portion of
  the PCB used by db_trace_thread().
- Fix db_trace_thread() to always use kdb_thr_ctx() (and thus kdb_pcb
  for the debugger thread).
- Move the logic for tracing curthread from within the current
  function into db_trace_self() to match other architectures.

Sponsored by: DARPA / AFRL

7 years agoMFV: r309561
jkim [Tue, 13 Dec 2016 22:16:02 +0000 (22:16 +0000)]
MFV: r309561

Merge byacc 20161202.

7 years agoRemove an extra "break" which could incorrectly terminate an
hrs [Tue, 13 Dec 2016 20:55:46 +0000 (20:55 +0000)]
Remove an extra "break" which could incorrectly terminate an
STAILQ_FOREACH() loop when an AF_INET6 rule matched.

Spotted by: cem

7 years agocxgbe(4): Retire t4_bus_space_read_8 and t4_bus_space_write_8.
np [Tue, 13 Dec 2016 20:35:57 +0000 (20:35 +0000)]
cxgbe(4): Retire t4_bus_space_read_8 and t4_bus_space_write_8.

MFC after: 3 days
Sponsored by: Chelsio Communications

7 years agoZero return value when counter_rate() switches over to next second and
glebius [Tue, 13 Dec 2016 20:11:45 +0000 (20:11 +0000)]
Zero return value when counter_rate() switches over to next second and
value is positive, but below the limit.

7 years agolinuxkpi: Fix not-found case of linux_pci_find_irq_dev
cem [Tue, 13 Dec 2016 19:58:21 +0000 (19:58 +0000)]
linuxkpi: Fix not-found case of linux_pci_find_irq_dev

Linux list_for_each_entry() does not neccessarily end with the iterator
NULL (it may be an offset from NULL if the list member is not the first
element of the member struct).

Reported by: Coverity
CID: 1366940
Reviewed by: hselasky@
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D8780

7 years agoUse register_t instead of uintptr_t for register values in backtraces.
jhb [Tue, 13 Dec 2016 19:36:05 +0000 (19:36 +0000)]
Use register_t instead of uintptr_t for register values in backtraces.

This fixes backtraces from DDB in n32 kernels as uintptr_t is only a
uint32_t.  In particular, the upper 32-bits of each register value were
treated as the register's value breaking both the output of register
values, but also the values of 'ra' and 'sp' required to walk up to the
previous frame.

Sponsored by: DARPA / AFRL

7 years agoFix remove_userlocal_code() for n32.
jhb [Tue, 13 Dec 2016 19:27:31 +0000 (19:27 +0000)]
Fix remove_userlocal_code() for n32.

n32 kernels use a 64-bit store to the TLS register rather than a 32-bit
store.

Sponsored by: DARPA / AFRL

7 years agoUse db_lookup_proc() in the DDB 'show procvm' command.
jhb [Tue, 13 Dec 2016 19:22:43 +0000 (19:22 +0000)]
Use db_lookup_proc() in the DDB 'show procvm' command.

This allows processes to be identified by PID as well as a pointer address.

MFC after: 2 weeks
Sponsored by: DARPA / AFRL

7 years agoFix bug in r309712, do not leak gem object pin count in case of error
kib [Tue, 13 Dec 2016 19:04:05 +0000 (19:04 +0000)]
Fix bug in r309712, do not leak gem object pin count in case of error
or retry.

Reported and tested by: Michael Butler <imb@protected-networks.net>
Sponsored by: The FreeBSD Foundation
MFC after: 16 days

7 years agoLanguage and mdoc cleanup.
brueffer [Tue, 13 Dec 2016 18:15:11 +0000 (18:15 +0000)]
Language and mdoc cleanup.

7 years agoTake write lock for rtld_bind before modifying obj_list in dl_iterate_phdr().
bdrewery [Tue, 13 Dec 2016 18:05:14 +0000 (18:05 +0000)]
Take write lock for rtld_bind before modifying obj_list in dl_iterate_phdr().

This avoids a race with readers such as dladdr(3)/dlinfo(3)/dlsym(3) and
the atexit(3) handler.  This race was introduced in r294373.

Reviewed by: markj, kib, kan
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon

7 years agoadd myself as a ports committer and update mentor/mentee relationship
lifanov [Tue, 13 Dec 2016 16:53:58 +0000 (16:53 +0000)]
add myself as a ports committer and update mentor/mentee relationship

Reviewed by: matthew
Approved by: matthew (mentor)
Differential Revision: https://reviews.freebsd.org/D8774

7 years agoReduce diff from Illumos by better variables mapping.
mav [Tue, 13 Dec 2016 16:20:10 +0000 (16:20 +0000)]
Reduce diff from Illumos by better variables mapping.

7 years agoUse the platform_*_t typedefs to help check the platform function types are
andrew [Tue, 13 Dec 2016 13:46:09 +0000 (13:46 +0000)]
Use the platform_*_t typedefs to help check the platform function types are
correct.

Sponsored by: ABT Systems Ltd

7 years agoAdd the missing void to function signatures in much of the arm code.
andrew [Tue, 13 Dec 2016 13:43:22 +0000 (13:43 +0000)]
Add the missing void to function signatures in much of the arm code.

Sponsored by: ABT Systems Ltd

7 years agoUse platform_*_t to check the platform function signatures are correct in
andrew [Tue, 13 Dec 2016 13:07:17 +0000 (13:07 +0000)]
Use platform_*_t to check the platform function signatures are correct in
the Rockchip platform code and correct the one place they differ.

Sponsored by: ABT Systems Ltd

7 years agoSwitch Rockchip RK3188 SoC to use the platform code.
ganbold [Tue, 13 Dec 2016 11:43:46 +0000 (11:43 +0000)]
Switch Rockchip RK3188 SoC to use the platform code.

Reviewed by: andrew, manu
Differential Revision: https://reviews.freebsd.org/D8769

7 years ago[gpiospi] add clock delay to avoid smashing of bits
mizhka [Tue, 13 Dec 2016 10:03:29 +0000 (10:03 +0000)]
[gpiospi] add clock delay to avoid smashing of bits

Submitted by: Hiroki Mori <yamori83@yahoo.co.jp>
Reviewed by: loos, ray, mizhka
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D8749

7 years ago[spi] reformat message and ar5315_spi minor fix
mizhka [Tue, 13 Dec 2016 09:53:43 +0000 (09:53 +0000)]
[spi] reformat message and ar5315_spi minor fix

This commit corrects print of nomatch (newline was too early) and fix
unit number for new child in ar5315_spi (was 0, now is -1 to calculate it
according to actual system state)

Submitted by: Hiroki Mori <yamori813@yahoo.co.jp>
Reviewed by: ray, loos, mizhka
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D8749

7 years agoRemove the only user of sysctl_add_oid().
ed [Tue, 13 Dec 2016 07:58:30 +0000 (07:58 +0000)]
Remove the only user of sysctl_add_oid().

My plan is to change this function's prototype at some point in the
future to add a new label argument, which can be used to export all of
sysctl as metrics that can be scraped by Prometheus. Switch over this
caller to use the macro wrapper counterpart.

7 years agoCheck that blkfront devices have a non-zero number of sectors and a
cperciva [Tue, 13 Dec 2016 06:54:13 +0000 (06:54 +0000)]
Check that blkfront devices have a non-zero number of sectors and a
non-zero sector size.  Such a device would be a virtual disk of zero
bytes; clearly not useful, and not something we should try to attach.

As a fortuitous side effect, checking that these values are non-zero
here results in them not *becoming* zero later on the function.  This
odd behaviour began with r309124 (clang 3.9.0) but is challenging to
debug; making any changes to this function whatsoever seems to affect
the llvm optimizer behaviour enough to make the unexpected zeroing of
the sector_size variable cease.

PR: 215209
Security: The potential for variables to unexpectedly become zero
has worrying consequences for security in general, but
not so much in this particular context.

7 years ago[iMX6] Add compatibility string for GPT timer on i.MX6 Dual
gonzo [Tue, 13 Dec 2016 05:09:49 +0000 (05:09 +0000)]
[iMX6] Add compatibility string for GPT timer on i.MX6 Dual

Up until r295436 GPT timer in i.MX6 Dual dts used the same compatiblity
string as i.MX6 Quad. After the sync up with Linux in r295436, GPT timer
stopped getting attached on the i.MX6 Dual

MFC after: 3 days

7 years agoRemove a too strict test and instead, just filter the passed flags with the
loos [Tue, 13 Dec 2016 03:36:41 +0000 (03:36 +0000)]
Remove a too strict test and instead, just filter the passed flags with the
supported capabilities.

Spotted by: yamori813@yahoo.co.jp (Hiroki Mori)
MFC after: 2 weeks

7 years ago[iMX6] Fix platform compatibility string for i.MX6 Dual
gonzo [Tue, 13 Dec 2016 03:26:12 +0000 (03:26 +0000)]
[iMX6] Fix platform compatibility string for i.MX6 Dual

i.MX6 Dual boot was broken since r308533 because ofw_bus_node_is_compatible
is more strict than fdt_is_compatible and does not accept partial matches

7 years agoIt's completely pointless to replace newlines with space
dteske [Tue, 13 Dec 2016 02:56:52 +0000 (02:56 +0000)]
It's completely pointless to replace newlines with space
(this is done automatically for you upon shell expansion)

7 years agoThe flags of a WLAN need to be quoted (they contain things like brackets)
dteske [Tue, 13 Dec 2016 02:54:44 +0000 (02:54 +0000)]
The flags of a WLAN need to be quoted (they contain things like brackets)

7 years agoSimplify single-line if statements
dteske [Tue, 13 Dec 2016 02:48:14 +0000 (02:48 +0000)]
Simplify single-line if statements

7 years agoSimplify loop by moving predicate to clause
dteske [Tue, 13 Dec 2016 02:47:39 +0000 (02:47 +0000)]
Simplify loop by moving predicate to clause

7 years agoWordsmithing
dteske [Tue, 13 Dec 2016 02:46:36 +0000 (02:46 +0000)]
Wordsmithing

7 years agoWhy test $? when you can test the command
dteske [Tue, 13 Dec 2016 02:45:52 +0000 (02:45 +0000)]
Why test $? when you can test the command

7 years agoRestore previous comment
dteske [Tue, 13 Dec 2016 02:45:07 +0000 (02:45 +0000)]
Restore previous comment

7 years agoBoth simplify bringup of interface after changes and catch errors in debug
dteske [Tue, 13 Dec 2016 02:44:33 +0000 (02:44 +0000)]
Both simplify bringup of interface after changes and catch errors in debug

7 years agoCalculate proper size of menu list dialog
dteske [Tue, 13 Dec 2016 02:42:10 +0000 (02:42 +0000)]
Calculate proper size of menu list dialog

7 years agoThere's an API function for catching errors and displaying them or
dteske [Tue, 13 Dec 2016 02:40:54 +0000 (02:40 +0000)]
There's an API function for catching errors and displaying them or
logging them to debug output

7 years agoThere's an API function for displaying pauses
dteske [Tue, 13 Dec 2016 02:30:24 +0000 (02:30 +0000)]
There's an API function for displaying pauses

7 years agoThere's an API function for displaying yes/no dialogs
dteske [Tue, 13 Dec 2016 02:29:20 +0000 (02:29 +0000)]
There's an API function for displaying yes/no dialogs

7 years agoThere's an API function for displaying errors
dteske [Tue, 13 Dec 2016 02:27:38 +0000 (02:27 +0000)]
There's an API function for displaying errors

7 years agoComment
dteske [Tue, 13 Dec 2016 02:25:23 +0000 (02:25 +0000)]
Comment

7 years agoWhitespace alignment
dteske [Tue, 13 Dec 2016 02:23:48 +0000 (02:23 +0000)]
Whitespace alignment

7 years agoRelying on dialog auto-sizing (width/height/rows = 0) is a mistake
dteske [Tue, 13 Dec 2016 02:22:21 +0000 (02:22 +0000)]
Relying on dialog auto-sizing (width/height/rows = 0) is a mistake
Use the provided API for calculating the appropriate size of menus

7 years agoRemove unnecessary quotes
dteske [Tue, 13 Dec 2016 02:16:00 +0000 (02:16 +0000)]
Remove unnecessary quotes

7 years agoAdd missing quotes
dteske [Tue, 13 Dec 2016 02:15:36 +0000 (02:15 +0000)]
Add missing quotes

7 years agoIn awk, if you're going to append a newline to your printf
dteske [Tue, 13 Dec 2016 02:14:40 +0000 (02:14 +0000)]
In awk, if you're going to append a newline to your printf
AND you're going to print only the argument, just use print

7 years agoThis statement has too many backslashes
dteske [Tue, 13 Dec 2016 02:13:20 +0000 (02:13 +0000)]
This statement has too many backslashes

7 years agoNeither printf (and as is commonly known) nor print need parens in awk
dteske [Tue, 13 Dec 2016 02:12:00 +0000 (02:12 +0000)]
Neither printf (and as is commonly known) nor print need parens in awk

7 years agoWhitespace and alignment
dteske [Tue, 13 Dec 2016 02:11:09 +0000 (02:11 +0000)]
Whitespace and alignment

7 years agoYou don't need parentheses for awk's printf
dteske [Tue, 13 Dec 2016 02:07:12 +0000 (02:07 +0000)]
You don't need parentheses for awk's printf

7 years agoContinued resolution of conveluted statement
dteske [Tue, 13 Dec 2016 02:04:50 +0000 (02:04 +0000)]
Continued resolution of conveluted statement
We shouldn't be coding things like "x || (x && x) || x || x || x ..."

7 years agoThese two error messages have always been backwards since inception
dteske [Tue, 13 Dec 2016 02:02:14 +0000 (02:02 +0000)]
These two error messages have always been backwards since inception

7 years agoWhy use $? when you can use the command itself
dteske [Tue, 13 Dec 2016 01:59:35 +0000 (01:59 +0000)]
Why use $? when you can use the command itself

7 years agoIf the first ping succeeded, why on Earth should we ping it again?
dteske [Tue, 13 Dec 2016 01:56:28 +0000 (01:56 +0000)]
If the first ping succeeded, why on Earth should we ping it again?

7 years agoStart deconstructing a conveluted hunk of code
dteske [Tue, 13 Dec 2016 01:54:44 +0000 (01:54 +0000)]
Start deconstructing a conveluted hunk of code

7 years agoRemove completely unnecesary parentheses
dteske [Tue, 13 Dec 2016 01:52:10 +0000 (01:52 +0000)]
Remove completely unnecesary parentheses

7 years agoWhy repeat yourself when you can send stderr to the same place as stdout?
dteske [Tue, 13 Dec 2016 01:50:22 +0000 (01:50 +0000)]
Why repeat yourself when you can send stderr to the same place as stdout?

7 years agoProperly quote variable
dteske [Tue, 13 Dec 2016 01:44:18 +0000 (01:44 +0000)]
Properly quote variable

7 years agoUse more generic f_yesno() from provided API
dteske [Tue, 13 Dec 2016 01:42:13 +0000 (01:42 +0000)]
Use more generic f_yesno() from provided API

7 years agoThe output of dialog needs to be sanitized
dteske [Tue, 13 Dec 2016 01:41:06 +0000 (01:41 +0000)]
The output of dialog needs to be sanitized
for portability/compatibility requirements

7 years agoWhitespace alignment
dteske [Tue, 13 Dec 2016 01:39:09 +0000 (01:39 +0000)]
Whitespace alignment

7 years agoSort the domains
dteske [Tue, 13 Dec 2016 01:36:46 +0000 (01:36 +0000)]
Sort the domains

7 years agoThe --no-items and --stdout options are non-standard and should be avoided
dteske [Tue, 13 Dec 2016 01:35:26 +0000 (01:35 +0000)]
The --no-items and --stdout options are non-standard and should be avoided

From the dialog(1) manual:
using [--stdout] in portable scripts is not recommended

7 years agoMore efficiently make use of the exit status
dteske [Tue, 13 Dec 2016 00:27:56 +0000 (00:27 +0000)]
More efficiently make use of the exit status

7 years agoStop repeating strings (centralize prompt string)
dteske [Tue, 13 Dec 2016 00:22:01 +0000 (00:22 +0000)]
Stop repeating strings (centralize prompt string)
NB: Changes to strings now only affect a single line

7 years agoAdd missing backslash (no real effect; it's pedantic and correct for
dteske [Tue, 13 Dec 2016 00:18:51 +0000 (00:18 +0000)]
Add missing backslash (no real effect; it's pedantic and correct for
the interpolation level)

7 years agoUse the oft-neglected awk syntax "startcondition, stopcondition { ... }" to
dteske [Tue, 13 Dec 2016 00:02:59 +0000 (00:02 +0000)]
Use the oft-neglected awk syntax "startcondition, stopcondition { ... }" to
process the range of country labels which appear as columnar list from the
"ifconfig DEV list countries" command. Not only improving maintainability,
but also properly encapsulating arguments in single-quotes instead of
trying to escape whitespace. It is also completely unnecessary to collapse
newlines into whitespace (shell will do this for you automatically upon
expansion of the contents where necessary).

NB: This also changes the sorting algorithm to sort on the country code,
not the country name. The type-ahead feature of dialog is destroyed if the
tags are not sorted properly.

7 years agoQuote WLAN_IFACE (pedantic)
dteske [Mon, 12 Dec 2016 22:57:07 +0000 (22:57 +0000)]
Quote WLAN_IFACE (pedantic)

7 years agoAdd tests for reaper receiving SIGCHLD (r309886).
jilles [Mon, 12 Dec 2016 22:51:29 +0000 (22:51 +0000)]
Add tests for reaper receiving SIGCHLD (r309886).

PR: 213928
MFC after: 2 weeks

7 years agoIn awk, casting a variable as a boolean condition is the same as testing if
dteske [Mon, 12 Dec 2016 21:29:48 +0000 (21:29 +0000)]
In awk, casting a variable as a boolean condition is the same as testing if
the length of the variable contents is greater than zero

This allows us to also move the secondary condition into the action clause

7 years agoRemove an unnecessary call to f_dialog_title_restore()
dteske [Mon, 12 Dec 2016 21:27:29 +0000 (21:27 +0000)]
Remove an unnecessary call to f_dialog_title_restore()

7 years agoWhitespace
dteske [Mon, 12 Dec 2016 21:26:36 +0000 (21:26 +0000)]
Whitespace

7 years agoUtilize provided i18n strings
dteske [Mon, 12 Dec 2016 21:23:47 +0000 (21:23 +0000)]
Utilize provided i18n strings

7 years agoRemove incomplete and unnecessary creation of fd3
dteske [Mon, 12 Dec 2016 21:20:56 +0000 (21:20 +0000)]
Remove incomplete and unnecessary creation of fd3

The provided API already provides a passthru descriptor and even
gives you a varaible for referring to it.

7 years agoRemove unnecessary semi-colons
dteske [Mon, 12 Dec 2016 21:18:24 +0000 (21:18 +0000)]
Remove unnecessary semi-colons

7 years agoUse awk the following (more succinct) awk syntax:
dteske [Mon, 12 Dec 2016 21:16:37 +0000 (21:16 +0000)]
Use awk the following (more succinct) awk syntax:

condition1 { action1 }
condition2 { action2 }

instead of the following syntax:

{
if (condition1) { action1 }
else if (condition2) { action2 }
}

7 years ago1 is the default descriptor for redirects without an fd prefix
dteske [Mon, 12 Dec 2016 21:11:55 +0000 (21:11 +0000)]
1 is the default descriptor for redirects without an fd prefix

7 years agoFix invalid parameter expansion (change $@ to "$@")
dteske [Mon, 12 Dec 2016 21:04:11 +0000 (21:04 +0000)]
Fix invalid parameter expansion (change $@ to "$@")

Without quotes, $@ loses its special meanining (see below)

% sh -c 'echo $@' /bin/sh "   1   " "   2   "
1 2
% sh -c 'echo "$@"' /bin/sh "   1   " "   2   "
   1       2

The quotes are required to get ARGV to be unperterped

7 years agoAllow the script path to contain whitespace and special characters
dteske [Mon, 12 Dec 2016 21:01:20 +0000 (21:01 +0000)]
Allow the script path to contain whitespace and special characters

7 years agoUse provided API to centralize dialog title strings
dteske [Mon, 12 Dec 2016 21:00:09 +0000 (21:00 +0000)]
Use provided API to centralize dialog title strings

7 years agoReorder dialog parameters based on commonality for readability
dteske [Mon, 12 Dec 2016 20:54:20 +0000 (20:54 +0000)]
Reorder dialog parameters based on commonality for readability

7 years agoFix incorrect use of provided API
dteske [Mon, 12 Dec 2016 20:49:49 +0000 (20:49 +0000)]
Fix incorrect use of provided API
The result of which was incorrectly sized menu dialogs

7 years agoUse provided API (change "dialog" to "$DIALOG")
dteske [Mon, 12 Dec 2016 20:43:09 +0000 (20:43 +0000)]
Use provided API (change "dialog" to "$DIALOG")

7 years agoWhitespace (dialog options separated to minimize diffs)
dteske [Mon, 12 Dec 2016 20:41:27 +0000 (20:41 +0000)]
Whitespace (dialog options separated to minimize diffs)

7 years agoed(1): Simplify some checks.
pfg [Mon, 12 Dec 2016 20:25:59 +0000 (20:25 +0000)]
ed(1): Simplify some checks.

The return type for both fread(3) and fwrite(3) cannot be negative, this
renders some checks invalid and variable 'ct' unnecessary.
Also bump 'len' to size_t to avoid signed/unsigned comparison warnings.

7 years agoUse the spibus accessor when applicable.
manu [Mon, 12 Dec 2016 20:04:31 +0000 (20:04 +0000)]
Use the spibus accessor when applicable.

MFC after: 3 days

7 years agoConsolidate redirects into here documents, with proper code indentation
dteske [Mon, 12 Dec 2016 19:46:49 +0000 (19:46 +0000)]
Consolidate redirects into here documents, with proper code indentation

7 years ago- Refactor listening socket list. All of the listening sockets are
hrs [Mon, 12 Dec 2016 19:33:40 +0000 (19:33 +0000)]
- Refactor listening socket list.  All of the listening sockets are
  now maintained in a single linked-list in a transport-independent manner.
- Use queue.h for linked-list structure.
- Use linked-list for AllowedPeers.
- Use getaddrinfo(8) even for Unix Domain sockets.
- Use macros to type-casting from/to struct sockaddr{,_in,_in6}.
- Define fu_* macro for union f_un to shorten the member names.
- Remove an extra #include <sys/type.h>.
- Add "static" to non-exported symbols.
- !INET support is still incomplete but will be fixed later.

There is no functional change except for some minor debug messages.

7 years agoRemove an unnecessary "return $?" at end of function
dteske [Mon, 12 Dec 2016 19:26:55 +0000 (19:26 +0000)]
Remove an unnecessary "return $?" at end of function

7 years agoTemporarily backout the previous commit because it was totally broken due to
hrs [Mon, 12 Dec 2016 19:24:52 +0000 (19:24 +0000)]
Temporarily backout the previous commit because it was totally broken due to
unresolved merge conflicts.

Pointy hat to: hrs

7 years agoUse ternary operator
dteske [Mon, 12 Dec 2016 19:24:32 +0000 (19:24 +0000)]
Use ternary operator

7 years agovfs: use vrefact in getcwd and fchdir
mjg [Mon, 12 Dec 2016 19:16:35 +0000 (19:16 +0000)]
vfs: use vrefact in getcwd and fchdir

7 years agoIf you're not going to make use of the products of a match() in awk
dteske [Mon, 12 Dec 2016 19:12:31 +0000 (19:12 +0000)]
If you're not going to make use of the products of a match() in awk
(e.g., RSTART and RLENGTH variables) then use ~ instead of match()

7 years agoUndo r309891. Konstantin is right in that this condition normally
trasz [Mon, 12 Dec 2016 19:11:04 +0000 (19:11 +0000)]
Undo r309891.  Konstantin is right in that this condition normally
cannot happen - the um_dev field is assigned at mount and never written
to afterwards.

7 years agoNow that these variables do not contain the --default-item flag itself,
dteske [Mon, 12 Dec 2016 19:10:39 +0000 (19:10 +0000)]
Now that these variables do not contain the --default-item flag itself,
change the name of the variable from $def_item_... to $default_...

7 years ago- Refactor listening socket list. All of the listening sockets are
hrs [Mon, 12 Dec 2016 19:10:14 +0000 (19:10 +0000)]
- Refactor listening socket list.  All of the listening sockets are
  now maintained in a single linked-list in a transport-independent manner.
- Use queue.h for linked-list structure.
- Use linked-list for AllowedPeers.
- Use getaddrinfo(8) even for Unix Domain sockets.
- Use macros to type-casting from/to struct sockaddr{,_in,_in6}.
- Define fu_* macro for union f_un to shorten the member names.
- Remove an extra #include <sys/type.h>.
- Add "static" to non-exported symbols.
- !INET support is still incomplete but will be fixed later.

There is no functional change except for some minor debug messages.