Commit Graph

13408 Commits

Author SHA1 Message Date
grog
1728b4a358 Spelling. 2017-09-02 23:17:35 +00:00
cem
d3cbb51a52 tail(1): Do not print bogus errno string
In the case where write(2) does not return -1, it does not initialize errno.
This can happen when a broken pipe causes a short write.

I attempted to adapt the submitted test case to ATF but could not figure out
how to make the test run in the ATF environment.  So the aborted test is
left disabled, in case someone would like to run it manually or fix it.

PR:		221976
Submitted by:	<martin AT lispworks.com> (earlier version)
Sponsored by:	Dell EMC Isilon
2017-09-01 22:37:49 +00:00
grog
a4ebbc6d5f Spelling. 2017-08-30 23:49:14 +00:00
jhb
12b7246200 Decode signal information returned by system calls.
Specifically, decode the siginfo structure returned by sigtimedwait(),
sigwaitinfo(), and wait6().  While here, also decode the signal number
returned in the second argument to sigwait().
2017-08-30 15:45:23 +00:00
jhb
f856f221ac Trim stale prototype for ioctlname(). 2017-08-30 15:32:47 +00:00
bapt
32dca7a62d Don't call kresolv_list() if using netstat on live kernel
kresolve_list() is calling many kldsym(2). Removing that call on when collecting
stats for the running kernel improves the startup time and CPU usage.

Submitted by:	Nikita Kozlov (nikita.kozlov@blade-group.com)
Reviewed by:	cem
MFC after:	2 weeks
Sponsored by:	blade
Differential Revision:	https://reviews.freebsd.org/D12151
2017-08-30 07:58:33 +00:00
ed
5301a361dc Complete the CloudABI networking refactoring.
Now that all of the packaged software has been adjusted to either use
Flower (https://github.com/NuxiNL/flower) for making incoming/outgoing
network connections or can have connections injected, there is no longer
need to keep accept() around. It is now a lot easier to write networked
services that are address family independent, dual-stack, testable, etc.

Remove all of the bits related to accept(), but also to
getsockopt(SO_ACCEPTCONN).
2017-08-30 07:30:06 +00:00
pizzamig
c0dcbc8b2b Adding personal information about pizzamig as port committer
Approved by:	olivier (mentor)
Approved by:	lme (mentor)
Differential Revision:	https://reviews.freebsd.org/D12145
2017-08-28 19:34:39 +00:00
jhb
f632b50e46 Decode extra signal information for caught signals.
Decode fields from the siginfo_t stored in the PT_LWPINFO structure when a
signal is caught by a traced process.  This includes the signal code
(si_code) as well as additional members such as si_addr, si_pid, etc.
2017-08-28 02:42:20 +00:00
sbruno
d0208bfad0 Use counter(9) for PLPMTUD counters.
Remove unused PLPMTUD sysctl counters.

Bump UPDATING and FreeBSD Version to indicate a rebuild is required.

Submitted by:	kevin.bowling@kev009.com
Reviewed by:	jtl
Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D12003
2017-08-25 19:41:38 +00:00
jhb
f24b1ff3e9 Decode arguments passed to thr_set_name().
MFC after:	1 month
2017-08-25 19:06:36 +00:00
ed
e7e032eef9 Make entries for the United States more consistent.
MFC after:	1 week
2017-08-25 12:28:34 +00:00
ae
dbe99aa78d Add melifaro@ to the calendar.freebsd
Submitted by:	melifaro
2017-08-25 11:24:45 +00:00
ed
7558b39c55 Sync CloudABI compatibility against the latest upstream version (v0.13).
With Flower (CloudABI's network connection daemon) becoming more
complete, there is no longer any need for creating any unconnected
sockets. Socket pairs in combination with file descriptor passing is all
that is necessary, as that is what is used by Flower to pass network
connections from the public internet to listening processes.

Remove all of the kernel bits that were used to implement socket(),
listen(), bindat() and connectat(). In principle, accept() and
SO_ACCEPTCONN may also be removed, but there are still some consumers
left.

Obtained from:	https://github.com/NuxiNL/cloudabi
MFC after:	1 month
2017-08-25 11:01:39 +00:00
smh
d2ef879902 Add myself (smh) to calendar.freebsd
Sponsored by:	Multiplay
2017-08-25 08:21:02 +00:00
kevans
17df4eb706 bsdgrep: add a primitive literal matcher
fgrep/grep -F will error out at runtime if compiled with a regex(3)
that does not define REG_NOSPEC or REG_LITERAL. glibc is one such regex(3)
implementation, and as it turns out they don't support literal matching at
all.

Provide a primitive literal matcher for use with glibc and other
implementations that don't support literal matching so that we don't
completely lose fgrep/grep -F if compiled against libgnuregex on stable/10,
stable/11, or other systems that we don't necessarily support.

This is a wholly unoptimized implementation with no plans to optimize it as
of now. This is due to both its use-case being primarily on unsupported
systems in the near-distant future and that it's reinventing the wheel that
we already have available as a feature of regex(3).

Reviewed by:	cem, emaste, ngie
Approved by:	emaste (mentor)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D12056
2017-08-24 01:23:33 +00:00
jhb
054937d661 Improve the coverage of debug symbols for MK_DEBUG_FILES.
- Include debug symbols in static libraries.  This permits binaries
  to include debug symbols for functions obtained from static libraries.
- Permit the C/C++ compiler flags added for MK_DEBUG_FILES to be
  overridden by setting DEBUG_FILES_CFLAGS.  Use this to limit the debug
  information for llvm libraries and binaries.

Reviewed by:	emaste
Sponsored by:	DARPA / AFRL
Differential Revision:	https://reviews.freebsd.org/D12025
2017-08-23 23:30:25 +00:00
ngie
f048d1fbbe Clarify the fact that Andrey (ache) passed away in Moscow
Take care friend <3.
2017-08-18 07:34:34 +00:00
grog
b283701459 Goodbye, ache. 2017-08-18 00:25:27 +00:00
kevans
6dbe6995bd bsdgrep: cast pmatch.rm_so to fix build when linking against libgnuregex
Reported by:	many
Approved by:	emaste (mentor)
MFC after:	immediate
2017-08-17 13:40:45 +00:00
ngie
18951eee49 Add supporting changes for Add limited sandbox capability to "make check"
Non-tests/... changes:
- Add HAS_TESTS= to Makefiles with libraries and programs to enable iteration
  and propagate the appropriate environment down to *.test.mk.

tests/... changes:
- Add appropriate support Makefile.inc's to set HAS_TESTS in a minimal manner,
  since tests/... is a special subdirectory tree compared to the others.

MFC after:	2 months
MFC with:	r322511
Reviewed by:	arch (silence), testing (silence)
Differential Revision:	D12014
2017-08-14 19:21:37 +00:00
bhughes
5437c9637a Add myself
Reported by:	mckusick
2017-08-14 05:31:51 +00:00
ohauer
690dc66968 - Add myswlf
Reported by:	mckusick
2017-08-13 18:59:19 +00:00
sevan
980cec33a6 Set usage() to show -d flag
mkesdb supports the -d flag for enabling debug mode, as documented in the manual.

PR:		209865
Submitted by:	Maya Rashish <coypu AT sdf DOT org>
Reviewed by:	imp
Approved by:	bcr (mentor)
Obtained from:	NetBSD
MFC after:	7 days
Differential Revision:	https://reviews.freebsd.org/D11987
2017-08-12 15:51:46 +00:00
sevan
f06b4f22e5 Correct the -H longopt equivillant
PR:		209876
Submitted by:	<kdrakehp AT zoho DOT com>
Approved by:	bcr (mentor)
Differential Revision:	https://reviews.freebsd.org/D11988
2017-08-12 12:17:38 +00:00
bhd
b938692a5c add myself to calendar.freebsd
Requested by:	mckusick
2017-08-11 20:44:17 +00:00
ken
14889916c3 Add historical notes on QIC tape drives and fix a couple of issues in mt(1).
o Density code 0x5 is also known as QIC-11, and should have a footnote
   reference.
 o Add notes on QIC tape drives from the bug report.  These may help anyone
   trying to use a QIC drive.
 o Take out a "more more" instance found by igor.
 o Bump the man page date.

The PR is 14 years old, so it's past time to retire it.

PR:		doc/53596
Submitted by:	tedm@toybox.placo.com
Reviewed by:	bcr
Sponsored by:	Spectra Logic
2017-08-11 18:43:52 +00:00
rcyu
0a03e37475 Add myself.
Reported by:	mckusick
2017-08-10 15:31:45 +00:00
oleg
5a81bce259 Add myself.
Reported by:	mckusick
2017-08-10 12:31:55 +00:00
royger
7808b8f1ec calendars: add myself to the FreeBSD calendar
Reported by:	mckusick
2017-08-10 09:17:16 +00:00
sbruno
0b3aa1c5cc Add sbruno@ birthday information.
Reported by:	mckusick
2017-08-10 02:55:22 +00:00
rlibby
961d30ab04 Add myself (rlibby) to calendar.freebsd
Reported by:	mckusick
Approved by:	markj (mentor)
Differential Revision:	https://reviews.freebsd.org/D11947
2017-08-10 02:15:40 +00:00
kevans
efd032862b Add myself to calendar.freebsd
Requested by:	mckusick
Approved by:	emaste (mentor)
Differential Revision:	https://reviews.freebsd.org/D11936
2017-08-09 21:44:55 +00:00
jonathan
717f329846 Add birthday information for jonathan@.
As requested by mckusick@...
2017-08-09 13:25:27 +00:00
kevans
c8e2bceb13 du(1): Add --si option to display in terms of powers of 1000
Reviewed by:	cem (earlier version), emaste
Approved by:	emaste (mentor)
Differential Revision:	https://reviews.freebsd.org/D11748
2017-08-09 01:19:19 +00:00
jlh
674b952dc4 rwho/ruptime/rwhod shouldn't be gated by RCMDS.
As peter@ points out in pr/220953:
"rwho, rwhod and ruptime are not part of the remote login suite (rsh, rlogin
etc).

They should *not* be in the rcmds package which is disabled by default.  We
rely on rwho/rwhod/ruptime in the freebsd.org cluster."

This commit is a re-commit of r322029 and r322031 with a better commit log, as
pointed out by ngie@.

This also includes the necesary changes to OptionalObsoleteFiles.inc, as
requested by jhb@.

PR:		220953
Reported by:	peter@, jhb@
Differential Revision:	https://reviews.freebsd.org/D11743
2017-08-08 20:17:07 +00:00
jlh
9e620e4de2 Revert r322029 and r322031 so as to recommit them with a better commit log.
PR:		220953
Reported by:	ngie@
2017-08-08 20:07:08 +00:00
manu
5088098db8 vmstat: Always emit a space after the free-memory column
When displaying in non-human form, if the free-memory number
is large (more than 7 digits), there is no space between it and
the page fault column.

PR:		221290
Submitted by:	Josuah Demangeon <mail@josuah.net> (Original version)
2017-08-08 12:18:11 +00:00
kevans
a4ae416ed3 Respect SIMPLE_BACKUP_SUFFIX environment variable in indent(1)
Instead of using a non-configurable ".BAK" suffix, respect the
SIMPLE_BACKUP_SUFFIX environment variable also used by patch(1). This
simplifies cleanup operations in some patch/indent workflows.

Reviewed by:	cem (earlier version), emaste, pstef
Approved by:	emaste (mentor)
Differential Revision:	https://reviews.freebsd.org/D10921
2017-08-07 18:01:27 +00:00
br
3364e8aea9 o Replace __riscv__ with __riscv
o Replace __riscv64 with (__riscv && __riscv_xlen == 64)

This is required to support new GCC 7.1 compiler.
This is compatible with current GCC 6.1 compiler.

RISC-V is extensible ISA and the idea here is to have built-in define
per each extension, so together with __riscv we will have some subset
of these as well (depending on -march string passed to compiler):

__riscv_compressed
__riscv_atomic
__riscv_mul
__riscv_div
__riscv_muldiv
__riscv_fdiv
__riscv_fsqrt
__riscv_float_abi_soft
__riscv_float_abi_single
__riscv_float_abi_double
__riscv_cmodel_medlow
__riscv_cmodel_medany
__riscv_cmodel_pic
__riscv_xlen

Reviewed by:	ngie
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D11901
2017-08-07 14:09:57 +00:00
gahr
29c7f118b8 Enhance top(1) to filter on multiple usernames
Reviewed by:	cognet, bapt
Approved by:	cognet
MFC after:	1 week
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D11840
2017-08-07 08:45:08 +00:00
avos
cc64291eb4 Add myself to the calendar.freebsd.
Reported by:	mckusick
2017-08-05 19:57:45 +00:00
cmt
c87317d85a add myself to calendar.freebsd
Reported by:	mckusick
2017-08-05 10:03:47 +00:00
ngie
dabaa523f9 MFhead@r322057 2017-08-04 17:41:49 +00:00
alc
0786bf28b9 Add myself. 2017-08-04 03:20:01 +00:00
markj
0f3de828e3 Fix procstat --libxo -L.
- Use the title role for column headers.
- Fix a typo in a field name (lpwid -> lwpid).
- Place the fields of different threads in separate containers.
2017-08-03 22:41:34 +00:00
jlh
fdc90dc18a Remove deprecation notice for ruptime/rwho/rwhod.
PR:		220953
Reported by:	peter
2017-08-03 21:37:57 +00:00
jlh
6223643187 rwho/ruptime/rwhod shouldn't be gated by RCMDS.
PR:		220953
Reported by:	peter@
Differential Revision:	https://reviews.freebsd.org/D11743
2017-08-03 21:30:12 +00:00
ngie
f458f4f81d MFhead@r322021 2017-08-03 17:43:26 +00:00
phil
cc13ae8060 Update from libxo-0.8.1 to 0.8.4:
0.8.4:
    - void anchor width optimization when we have a custom formatter (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221130)
    - make "{[:/18}" do the right thing (also allows "{[:/%s}", wide ? 40 : 10)
    - Can't skip anchor formatting in non-display styles
    - add test case for {[:/18}
    - add upload-xohtml-files to 'make upload'
  0.8.3:
    - xohtml: Add "-w" option to pull support files from gh_pages
    - Add "upload-xohtml-files" target to publish support files in gh_pages/
    - add HISTORY/AUTHORS section to man pages
  0.8.2:
    - xohtml: Add div.units as standard CSS text
    - Don't treat values as format strings; they are not
    - add "-p" to "mkdir -p build" in setup.sh
    - add test case for {U:%%} (from df.c)
    - detect end-of-string in '%' and '' escaping
    - make xo_simple_field, for common simple cases
    - xohtml: nuke "n" in "echo" commands
    - rename "format" to "fmt" for consistency; same for "str" to "value"

Submitted by:	phil
2017-08-03 15:47:42 +00:00
ken
39d7c459be Oracle T10000 tape drives use PRML encoding.
Source:  	Oracle T10000 SCSI reference guide.
MFC after:	3 days
Sponsored by:	Spectra Logic
2017-08-03 15:04:54 +00:00
sevan
da8d91e3dd Document -w flag is an extension to POSIX.
PR:		201937
Submitted by:	<fullermd AT over-yonder DOT net>
Approved by:	bcr (mentor)
Differential Revision:	https://reviews.freebsd.org/D11842
2017-08-03 14:35:02 +00:00
ngie
416ebf2b05 MFhead@r321993 2017-08-03 13:54:46 +00:00
loos
3cd6bd877a Add myself to the calendar.freebsd.
Reported by:	mckusick
2017-08-03 13:26:51 +00:00
hselasky
d99f9a6e6c Add myself to the calendar.
Requested by:	mckusick
2017-08-03 08:03:22 +00:00
ak
287ed0d027 Add entry to the calendar
Requested by:	mckusick
2017-08-03 07:00:55 +00:00
ngie
d739d878b2 MFhead@r321967 2017-08-03 03:45:48 +00:00
rmacklem
0b9bf52bea Added entry as requested by Kirk. 2017-08-03 02:08:01 +00:00
ngie
7ec8e284a3 MFhead@r321960 2017-08-02 22:28:12 +00:00
rstone
a4105c1b53 Add my birthdate to the calendar
Requested by:	mckusick
2017-08-02 19:45:09 +00:00
ngie
d26727d972 Add HAS_TESTS to all Makefiles that are currently using the
`SUBDIR.${MK_TESTS}+= tests` idiom.

This is a follow up to r321912.
2017-08-02 08:50:42 +00:00
ngie
734d081ed1 MFhead@r321912 2017-08-02 08:38:36 +00:00
ngie
d810089ddf Convert traditional ${MK_TESTS} conditional idiom for including test
directories to SUBDIR.${MK_TESTS} idiom

This is being done to pave the way for future work (and homogenity) in
^/projects/make-check-sandbox .

No functional change intended.

MFC after:	1 weeks
2017-08-02 08:35:51 +00:00
ngie
a871f00559 Add HAS_TESTS to all Makefiles that use the SUBDIR.${MK_TESTS}+= tests idiom 2017-08-02 08:14:06 +00:00
ngie
1956658333 Revert accidental character conversion for pfg's entry, done in r321886 2017-08-02 00:51:56 +00:00
taras
71e80dd5ec + Add myself to calendar.freebsd. 2017-08-01 20:16:00 +00:00
tcberner
09ccc05ee3 Add joneum to the calendar.freebsd
Reported by:	mckusick
Submitted by:	joneum
2017-08-01 19:29:16 +00:00
emax
0ec63cd4cd fix sort order 2017-08-01 18:48:09 +00:00
emax
58ec2898f2 add myself
Requested by:	mckusick
2017-08-01 18:46:24 +00:00
mckusick
3e6e87b1e5 Add Anne Dickison.
Requested by: Anne Dickison
2017-08-01 18:25:04 +00:00
lev
80995dbda3 Add myself to the calendar.freebsd
Reported by:	mckusick
2017-08-01 18:05:19 +00:00
mizhka
54840f8fc4 [calendar.freebsd] Add myselft into freebsd.calendar 2017-08-01 11:51:35 +00:00
mw
704acff5e9 Add myself to calendar
Approved by: cognet (mentor)
2017-08-01 10:11:20 +00:00
tuexen
a16ac90db0 Add myself to calendar.
Reminded by:	mckusick
2017-08-01 09:26:22 +00:00
wulf
bc2a83e63a Add myself to the calendar
Reminded by:	mckusick
Approved by:	gonzo (mentor)
2017-08-01 07:05:29 +00:00
jah
f5002f5e5f Add myself to FreeBSD calendar
Requested by:	mckusick
2017-08-01 01:39:54 +00:00
pfg
d75e955612 Bring my aging self to calendar.freebsd.
Requested by: mckusick
2017-08-01 01:35:23 +00:00
tcberner
bde05dcc6c Add myself to the calendar.freebsd
Reported by:    mckusick
2017-07-31 21:08:31 +00:00
pawel
52f7a9e23e Add myself to the calendar.freebsd
Reported by:	mckusick
2017-07-31 20:54:23 +00:00
mjg
70e6315647 Add myself to the calendar.
Prodded by:	invisible peer pressure
2017-07-31 20:15:11 +00:00
bapt
dd9739bfe0 Update mandoc to 1.14.2 2017-07-31 19:34:38 +00:00
mjoras
c08248f45e Add myself to the calendar.
Reported by:	mckusick
Approved by:	rstone (mentor)
Differential Revision:	https://reviews.freebsd.org/D11797
2017-07-31 18:10:10 +00:00
erj
6aea966f82 Add myself to calendar.freebsd
Reported by:	mckusick
2017-07-31 17:57:44 +00:00
dru
03cab33c0e Add myself to calendar. 2017-07-31 17:49:47 +00:00
scottl
bb91959983 Add an entry to the freebsd calendar for myself.
Reported by:	kirk
2017-07-31 15:50:58 +00:00
jamie
376a9ed0b9 Add myself to the birthday calendar.
Reminded by:	mckusick
2017-07-31 15:29:44 +00:00
asomers
9a2ffa2f4a spellcheck jhale's calendar entry 2017-07-31 15:21:26 +00:00
nyan
a535821da5 Add myself.
Reminded by:	mckusick
2017-07-31 14:53:03 +00:00
asomers
6c7d1b3d97 Add myself to the calendar
Reported by:	mckusick
2017-07-31 14:50:42 +00:00
mm
e3653ad30b Add myself to the calendar
Reminded by:	mckusick
2017-07-31 14:49:44 +00:00
rpokala
72d9432bb6 Add my birthday to the FreeBSD calendar
Requested by:	mckusick
2017-07-31 14:42:38 +00:00
jhibbits
152a042fad Add myself to the calendar
Reminded by:	mckusick
2017-07-31 14:16:35 +00:00
wen
8a2deb2e1b add myself to calendar.freebsd 2017-07-31 13:32:35 +00:00
lifanov
b6b9c8dd29 add myself to calendar.freebsd 2017-07-31 13:08:47 +00:00
sgalabov
ea66615958 Add myself to calendar
Reminded by: mckusick
2017-07-31 09:46:48 +00:00
eugen
8b219d4e6a Add myself.
Reminded by:    mckusick
Approved by:	vsevolod (mentor)
2017-07-31 09:18:53 +00:00
kp
c3f660b9ce Add myself to calendar
Reminded by:  mckusick
2017-07-31 09:13:18 +00:00
n_hibma
6a4713ebfd Add my birthday entry to the calendar file. 2017-07-31 08:16:12 +00:00
romain
df250380e5 Add myself
Reminded by:	mckusick
2017-07-31 08:11:58 +00:00
tsoome
639ed02a4c Add myself to calendar
Reminded by:  mckusick
2017-07-31 08:11:05 +00:00