dragonfly.git
4 years agoAdd a missing file to make upgrade's list.
Sascha Wildner [Wed, 27 Jan 2016 09:52:38 +0000 (10:52 +0100)]
Add a missing file to make upgrade's list.

4 years ago<sys/unistd.h>: Comment some POSIX options.
Sascha Wildner [Wed, 27 Jan 2016 09:23:17 +0000 (10:23 +0100)]
<sys/unistd.h>: Comment some POSIX options.

4 years agoprivatize libedit (used by numerous base programs)
John Marino [Wed, 27 Jan 2016 00:24:52 +0000 (01:24 +0100)]
privatize libedit (used by numerous base programs)

Besides affecting far more programs than the first two conversions,
this privatization requires a modification to bin/sh which is a bootstrap
program.  If bootstrapping, it will use libedit.* if it exists, otherwise
it will use libprivate_edit.*.  After "make upgrade", /usr/lib/libedit will
no longer be on the system so the private version will then be used in all
cases.

4 years ago<limits.h>: Several changes related to Issue 7 of the standard.
Sascha Wildner [Tue, 26 Jan 2016 23:06:38 +0000 (00:06 +0100)]
<limits.h>: Several changes related to Issue 7 of the standard.

* NL_NMAX was removed, so change its visibility accordingly.

* NL_ARGMAX, NL_MSGMAX, NL_SETMAX and NL_TEXTMAX were moved from XSI
  into the base. Adjust for that too. The change history does not
  mention NL_ARGMAX but the [XSI] margin code was removed from it so
  I think this is just an oversight.

The 32 ports that reference NL_NMAX, which is the only of these
defines where visibility was restricted with this commit, all still
build.

4 years agoprivatize libssh (used by several secure applications)
John Marino [Tue, 26 Jan 2016 22:35:47 +0000 (23:35 +0100)]
privatize libssh (used by several secure applications)

Renames libssh.* to libprivate_ssh.*
The original libssh.* libraries are unavoidable removed by make upgrade.
While here, remove an obsolete libldns.a from the profiles directory as
this was forgotten in the previous commit.

4 years agoprivatize ldns library (only used for drill(1))
John Marino [Tue, 26 Jan 2016 21:00:09 +0000 (22:00 +0100)]
privatize ldns library (only used for drill(1))

This is the first conversion in a series to rename base libraries
so that they are only used by base assets.  Libraries such as ldns and
ssh have been getting picked up by dports with undesirable results.

These libraries are getting renamed to libprivate_<name>.*.
Coincidentially, FreeBSD-CURRENT is using a similar scheme with
libprivate<name>.*.  FreeBSD Release 10 used the scheme
/usr/lib/private/lib<name>* and DF did not want to follow that.

There may be some breakage for any third party software (including
dports) that have linked to libldns erroneously.  Recompiling and
linking against port libldns should resolve those issues.  Removing
the base libldns.* files is necessary and unavoidable.

4 years agoinstall(1): Add an override DONTSTRIP
zrj [Fri, 22 Jan 2016 14:48:26 +0000 (16:48 +0200)]
install(1): Add an override DONTSTRIP

This allows to easily install debugable binaries when
one cannot simply edit a package's Makefiles and/or
maintainer feeling lazy.

While there document STRIPBIN environment variable
that could use touch or true but not always usable.

Taken-from: FreeBSD

4 years agoinstall(1): Add -U option from FreeBSD
zrj [Fri, 22 Jan 2016 14:07:09 +0000 (16:07 +0200)]
install(1): Add -U option from FreeBSD

This allows to install without root privileges.
Also sort options a bit.

Taken-from: FreeBSD

4 years agoinstall(1): Move out iflags setup from switch()
zrj [Fri, 22 Jan 2016 12:47:24 +0000 (14:47 +0200)]
install(1): Move out iflags setup from switch()

To prepare for next.
No functional change.

4 years agoinstall(1): Add missing static keywords.
zrj [Fri, 22 Jan 2016 11:38:22 +0000 (13:38 +0200)]
install(1): Add missing static keywords.

While there, perform some cosmetic changes.

4 years agonewvers.sh: Allow to override hostname
zrj [Tue, 26 Jan 2016 07:30:04 +0000 (09:30 +0200)]
newvers.sh: Allow to override hostname

This allows to specify used hostname value
when building kernel and/or loader.

While there, split variable assignments.

4 years agoCorrect BSD License clause numbering from 1-2-4 to 1-2-3.
zrj [Mon, 25 Jan 2016 15:14:17 +0000 (17:14 +0200)]
Correct BSD License clause numbering from 1-2-4 to 1-2-3.

4 years agoRemove advertising header from src
zrj [Mon, 25 Jan 2016 14:53:01 +0000 (16:53 +0200)]
Remove advertising header from src

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

4 years agoRemove advertising header from sys/
zrj [Mon, 25 Jan 2016 12:48:47 +0000 (14:48 +0200)]
Remove advertising header from sys/

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

Some less clear cases taken as it was done of FreeBSD.

4 years agoRemove advertising header from lib/ and libexec/
zrj [Mon, 25 Jan 2016 11:41:23 +0000 (13:41 +0200)]
Remove advertising header from lib/ and libexec/

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

4 years agoRemove advertising header from include/
zrj [Mon, 25 Jan 2016 10:26:15 +0000 (12:26 +0200)]
Remove advertising header from include/

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

4 years agoRemove advertising header from share/
zrj [Mon, 25 Jan 2016 09:49:20 +0000 (11:49 +0200)]
Remove advertising header from share/

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

4 years agoRemove advertising header from bin/ & sbin/
zrj [Mon, 25 Jan 2016 07:13:41 +0000 (09:13 +0200)]
Remove advertising header from bin/ & sbin/

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

4 years agoRemove advertising header from usr.sbin/
zrj [Mon, 25 Jan 2016 06:37:18 +0000 (08:37 +0200)]
Remove advertising header from usr.sbin/

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

4 years agoRemove advertising header from usr.bin/
zrj [Sun, 24 Jan 2016 18:51:33 +0000 (20:51 +0200)]
Remove advertising header from usr.bin/

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

4 years agolibc - Add c11 and glibc features to fopen()
Matthew Dillon [Mon, 25 Jan 2016 21:11:40 +0000 (13:11 -0800)]
libc - Add c11 and glibc features to fopen()

* Add 'x' flag to fopen() (from c11, O_EXCL)
* Add 'e' flag to fopen() (from glibc, O_CLOEXEC)

Submitted-by: Xenu (w/modifications by Matt)
4 years ago<machine/exec.h> Fix include guard.
Sascha Wildner [Mon, 25 Jan 2016 13:17:44 +0000 (14:17 +0100)]
<machine/exec.h> Fix include guard.

Pointed-out-by: zrj
4 years agogcc50/libconv_1998: Fix GENCC and, by extension, CLEANFILES.
Sascha Wildner [Mon, 25 Jan 2016 10:13:17 +0000 (11:13 +0100)]
gcc50/libconv_1998: Fix GENCC and, by extension, CLEANFILES.

4 years agolibedit: Fix CLEANFILES.
Sascha Wildner [Mon, 25 Jan 2016 09:09:28 +0000 (10:09 +0100)]
libedit: Fix CLEANFILES.

Remove editline.c and add historyn.c and tokenizern.c.

4 years agokernel - Add quirks for xhci (usb)
Matthew Dillon [Mon, 25 Jan 2016 02:33:33 +0000 (18:33 -0800)]
kernel - Add quirks for xhci (usb)

* Add quirks to force 32-bit dma for two chips, one taken
  from FreeBSD, the other from testing an AMD A10-7300
  which reports a 64-bit dma capability but fails when
  32-bit dma is used.

Reported-by: Xenu <1000@carychium-tridentatum.xenu.pl> (irc)
4 years agolibz: Add a pkg-config file
François Tigeot [Sun, 24 Jan 2016 17:20:06 +0000 (18:20 +0100)]
libz: Add a pkg-config file

Third party software more often than not requires zlib.pc to build
these days.

Obtained-from: FreeBSD

4 years agodrm/radeon: We need the physical address of the dummy page, not the virtual
Imre Vadasz [Sun, 24 Jan 2016 12:52:30 +0000 (13:52 +0100)]
drm/radeon: We need the physical address of the dummy page, not the virtual

* rdev->dummy_page.addr is supposed to hold the physical address of the
  dummy page, not the virtual address.

4 years agokernel/vm_machdep: Fix a typo in a comment.
Sascha Wildner [Sun, 24 Jan 2016 09:40:20 +0000 (10:40 +0100)]
kernel/vm_machdep: Fix a typo in a comment.

4 years agoi386 removal, part 51/x: Remove gatea20.c in sys/boot.
Sascha Wildner [Sun, 24 Jan 2016 09:39:30 +0000 (10:39 +0100)]
i386 removal, part 51/x: Remove gatea20.c in sys/boot.

The last usage of gateA20() was removed in 4b8727de15f89b1665d9cb.

Pointed-out-by: zrj
4 years agokernel/linux: Add ioremap_nocache()
François Tigeot [Sun, 24 Jan 2016 09:10:06 +0000 (10:10 +0100)]
kernel/linux: Add ioremap_nocache()

4 years agodrm/radeon: Add radeon_ucode.c. Support new firmware format.
Imre Vadász [Sat, 23 Jan 2016 18:05:38 +0000 (19:05 +0100)]
drm/radeon: Add radeon_ucode.c. Support new firmware format.

* This is just further synchronizing to Linux 3.18.

* Add le32_to_cpup macro to drm_os_linux.h.

* Use __DECONST in container_of usages in radeon_ucode.c to make it build.

4 years agodrm/i915: Update to Linux 4.1
François Tigeot [Sat, 23 Jan 2016 17:26:28 +0000 (18:26 +0100)]
drm/i915: Update to Linux 4.1

* Valleyview support has been vastly improved and is no longer considered
  preliminary

* Skylake support improvements: runtime power management, turbo and sleep
  states should now be fully operational.
  Many workarounds have been added for Skylake specific issues

* Preliminary changes to prepare for Broxton (future Atom SOCs) support

* Distinguish hardware minimum and user minimum frequencies. Set the GPU
  frequency to the hardware minimum on idle in order to reduce power usage

* DRRS (dynamic refresh rate switching) is now enabled where supported.
  The idea is to reduce the refresh rate of the panel to save power when
  nothing changes on the screen

* DP deadlock bugfixes and improved link rate computation. Intermediate
  link rate support for eDP 1.4

* XenGT client-side support. This is paravirtualization to allow virtual
  machines to tap into the render engines

* Plenty of internal work to prepare for atomic mode setting

* Lots of other smaller work all over such as added documentation, dead
  UMS code removal, vblank interrupt cleanings, etc...

4 years ago<limits.h>: Add a CHARCLASS_NAME_MAX definition.
Sascha Wildner [Fri, 22 Jan 2016 21:42:32 +0000 (22:42 +0100)]
<limits.h>: Add a CHARCLASS_NAME_MAX definition.

4 years agodrm/i915: Add and document the drm.i915.enable_execlists tunable.
Imre Vadász [Fri, 22 Jan 2016 19:23:22 +0000 (20:23 +0100)]
drm/i915: Add and document the drm.i915.enable_execlists tunable.

This tunable is specific for the Broadwell IGP.
Setting drm.i915.enable_execlists=0 can work around some stability issues
with execlists on Broadwell.

4 years agosys/boot: Add missing '+'.
Sascha Wildner [Fri, 22 Jan 2016 18:38:42 +0000 (19:38 +0100)]
sys/boot: Add missing '+'.

4 years agosys/boot: Unbreak build. btx must come before boot2.
Sascha Wildner [Fri, 22 Jan 2016 18:33:29 +0000 (19:33 +0100)]
sys/boot: Unbreak build. btx must come before boot2.

4 years agoi386 removal, part 50/x: Remove the i386 specific kgzldr.
Sascha Wildner [Fri, 22 Jan 2016 18:27:02 +0000 (19:27 +0100)]
i386 removal, part 50/x: Remove the i386 specific kgzldr.

It was only needed for kgzip(8)'ed kernels anyway. kgzip(8) was removed
in c425a6254f909db65a1ccbc31a09e09e371bf847. All of this was only needed
for loading kernels without the standard loader anyway.

Pointed-out-by: zrj
4 years agoi915kms.4: Add missing space.
Sascha Wildner [Fri, 22 Jan 2016 17:36:13 +0000 (18:36 +0100)]
i915kms.4: Add missing space.

4 years agousb4bsd: Cleanup pass1.
zrj [Fri, 22 Jan 2016 09:20:14 +0000 (11:20 +0200)]
usb4bsd: Cleanup pass1.

* Uniformly use #if 0 to deactivate code instead of C comments.

* Move MODULE macros after struct declarations.

4 years agousb4bsd: Cleanup pass0.
zrj [Fri, 22 Jan 2016 09:15:32 +0000 (11:15 +0200)]
usb4bsd: Cleanup pass0.

* Adjust indentation, whitespace and typos.

4 years agoFix SEE ALSO sorting in a number of manual pages.
Sascha Wildner [Thu, 21 Jan 2016 20:24:19 +0000 (21:24 +0100)]
Fix SEE ALSO sorting in a number of manual pages.

4 years agobus_dma.9: Adjust column width a bit in a list.
Sascha Wildner [Thu, 21 Jan 2016 10:36:25 +0000 (11:36 +0100)]
bus_dma.9: Adjust column width a bit in a list.

4 years ago<net/if.h>: Cleanup the namespace a bit.
Sascha Wildner [Thu, 21 Jan 2016 10:26:05 +0000 (11:26 +0100)]
<net/if.h>: Cleanup the namespace a bit.

* Put everything that is not covered by POSIX under #if __BSD_VISIBLE.
  Pretty much like FreeBSD did it already.

* Use standard types for stuff covered by POSIX.

4 years ago<net/if.h>: Whitespace adjustment (no functional change).
Sascha Wildner [Thu, 21 Jan 2016 10:21:49 +0000 (11:21 +0100)]
<net/if.h>: Whitespace adjustment (no functional change).

4 years agobus_dma.9: Document the BUS_DMA_NOCACHE flag for bus_dmamem_alloc(9).
Imre Vadász [Wed, 20 Jan 2016 21:27:49 +0000 (22:27 +0100)]
bus_dma.9: Document the BUS_DMA_NOCACHE flag for bus_dmamem_alloc(9).

Inspired-By: FreeBSD
4 years agoipfw3: forward args verification
Bill Yuan [Mon, 18 Jan 2016 21:57:02 +0000 (21:57 +0000)]
ipfw3: forward args verification

4 years agoi386 removal, part 49/x: Remove the i386 & a.out specific -v flag in ld(1).
Sascha Wildner [Tue, 19 Jan 2016 04:28:47 +0000 (05:28 +0100)]
i386 removal, part 49/x: Remove the i386 & a.out specific -v flag in ld(1).

It continues to be accepted without having an effect for compatibility
reasons.

4 years agopstat - Add -h option
Matthew Dillon [Tue, 19 Jan 2016 02:37:07 +0000 (18:37 -0800)]
pstat - Add -h option

* Add the -h option to ignore BLOCKSIZE and humanize the output.

4 years agoif_iwm: Fix up the rate control setup code.
Imre Vadász [Mon, 18 Jan 2016 20:15:28 +0000 (21:15 +0100)]
if_iwm: Fix up the rate control setup code.

- Initialise rates in the order we want to use them.
- The rate table was being initialised in low->high, but the link quality
  table was being initialised high->low. So, when we did a lookup, we
  would get the indexes wrong.

Taken-From: FreeBSD (SVN r294248)

4 years agodrm/linux: Implement pci_iomap()
François Tigeot [Sat, 16 Jan 2016 12:45:08 +0000 (13:45 +0100)]
drm/linux: Implement pci_iomap()

4 years agodrm/include: Add missing parentheses in a macro.
Sascha Wildner [Sat, 16 Jan 2016 12:11:38 +0000 (13:11 +0100)]
drm/include: Add missing parentheses in a macro.

4 years agotip(1): Minor cleanup
Sascha Wildner [Sat, 16 Jan 2016 11:48:20 +0000 (12:48 +0100)]
tip(1): Minor cleanup

4 years agotip(1): Remove some dead code that was never built.
Sascha Wildner [Sat, 16 Jan 2016 11:33:08 +0000 (12:33 +0100)]
tip(1): Remove some dead code that was never built.

4 years agodrm/linux: Add for_each_set_bit()
François Tigeot [Sat, 16 Jan 2016 09:10:59 +0000 (10:10 +0100)]
drm/linux: Add for_each_set_bit()

4 years agoig_hal/em/emx: Add I219 (Skylake) support
Sepherosa Ziehau [Thu, 14 Jan 2016 13:53:41 +0000 (21:53 +0800)]
ig_hal/em/emx: Add I219 (Skylake) support

Obtained-from: dillon@
Tested-by: me (82574, 82573, 82571), dillon@ (I219, I217)
4 years agokernel: Fix the kern.dumpdev sysctl.
Sascha Wildner [Fri, 15 Jan 2016 17:31:22 +0000 (18:31 +0100)]
kernel: Fix the kern.dumpdev sysctl.

The 'dumpdev' global wasn't properly set anymore since b24cd69c3515fb.

Some ports use this sysctl.

Reported-by: zrj
4 years agoi915kms.4: Document the new drm.i915.disable_aux_irq tunable.
Imre Vadász [Fri, 15 Jan 2016 16:36:04 +0000 (17:36 +0100)]
i915kms.4: Document the new drm.i915.disable_aux_irq tunable.

4 years agowlan - Migrate the 802.11s locks out into ieee80211_dragonflybsd.h.
Imre Vadász [Fri, 15 Jan 2016 15:25:56 +0000 (16:25 +0100)]
wlan - Migrate the 802.11s locks out into ieee80211_dragonflybsd.h.

Taken-From: FreeBSD (SVN r283555)

4 years agoUpdate the pciconf(8) database.
Sascha Wildner [Fri, 15 Jan 2016 15:36:36 +0000 (16:36 +0100)]
Update the pciconf(8) database.

January 10, 2016 snapshot from http://pciids.sourceforge.net/

4 years agowlan - Cleanup compat shims for FreeBSD version that predate 10.0-RELEASE.
Imre Vadász [Fri, 15 Jan 2016 11:06:15 +0000 (12:06 +0100)]
wlan - Cleanup compat shims for FreeBSD version that predate 10.0-RELEASE.

Taken-From: FreeBSD (SVN r283541)

4 years agodrm/i915: Add tunable for force-disabling usage of the AUX IRQ.
Imre Vadász [Thu, 14 Jan 2016 14:27:05 +0000 (15:27 +0100)]
drm/i915: Add tunable for force-disabling usage of the AUX IRQ.

Adds an optional workaround which can make DisplayPort AUX communication
more reliable.

When using the AUX IRQ for AUX port communication, i915(4) would
in some cases completely fail to display a picture on a notebook screen
connected via embedded DisplayPort.

4 years agodrm/i915: Sync with Linux 4.0
François Tigeot [Thu, 14 Jan 2016 19:58:31 +0000 (20:58 +0100)]
drm/i915: Sync with Linux 4.0

Use the generic drm_atomic_helper_plane_set_property function.

4 years ago<sys/wait.h>: Clean up a bit.
Sascha Wildner [Thu, 14 Jan 2016 19:25:22 +0000 (20:25 +0100)]
<sys/wait.h>: Clean up a bit.

* Remove the old BSD4.x union wait. As far as I can tell, all ports
  have been fixed for this.

* Use __BSD_VISIBLE instead of _POSIX_SOURCE.

* Fix wait3()'s visibility.

4 years ago<sys/wait.h>: Whitespace cleanup (no functional change).
Sascha Wildner [Thu, 14 Jan 2016 19:23:59 +0000 (20:23 +0100)]
<sys/wait.h>: Whitespace cleanup (no functional change).

4 years agokernel - Report AHCI rev programmatically (2)
Matthew Dillon [Thu, 14 Jan 2016 18:47:18 +0000 (10:47 -0800)]
kernel - Report AHCI rev programmatically (2)

* Cleanup, not going to store the string rev in sc so no need to allocate

Reported-by: swildner
4 years agossh - Remove undocumented roaming support CVE-2016-0777 CVE-2016-0778
Matthew Dillon [Thu, 14 Jan 2016 17:06:23 +0000 (09:06 -0800)]
ssh - Remove undocumented roaming support CVE-2016-0777 CVE-2016-0778

* Remove client-side 'roaming' feature as per openbsd patch.

* CVE-2016-0777 CVE-2016-0778.  A malicious server can trick the client
  into potentially leaking key material.

4 years agoshare/man/man9/Makefile: Fix indent.
Sascha Wildner [Thu, 14 Jan 2016 13:10:52 +0000 (14:10 +0100)]
share/man/man9/Makefile: Fix indent.

4 years agoAdd a small kstrdup.9 manpage.
Sascha Wildner [Thu, 14 Jan 2016 13:05:28 +0000 (14:05 +0100)]
Add a small kstrdup.9 manpage.

4 years agorbootd(8): Remove vax/m68k/tahoe code.
Sascha Wildner [Thu, 14 Jan 2016 12:14:05 +0000 (13:14 +0100)]
rbootd(8): Remove vax/m68k/tahoe code.

4 years agolibc/xdr: Remove VAX specific code.
Sascha Wildner [Thu, 14 Jan 2016 12:10:15 +0000 (13:10 +0100)]
libc/xdr: Remove VAX specific code.

4 years agocrunchgen - Fix Makefile dependency
Matthew Dillon [Thu, 14 Jan 2016 05:43:54 +0000 (21:43 -0800)]
crunchgen - Fix Makefile dependency

* This should fix a parallel make dependency whos absence allowed
  the .lo target to be built before all the objects finished compiling.

4 years agokernel - Report AHCI rev programmatically
Matthew Dillon [Thu, 14 Jan 2016 03:10:40 +0000 (19:10 -0800)]
kernel - Report AHCI rev programmatically

* Remove the switch() and generate the AHCI rev from the register contents.

* Fixes reporting of some AHCI chipsets as an unknown version of AHCI
  (Skylake reports AHCI 1.3.1, our switch only had 1.3.0).

4 years agokernel - Fix degenerate condition in dfly_setrunqueue_locked()
Matthew Dillon [Wed, 13 Jan 2016 06:19:25 +0000 (22:19 -0800)]
kernel - Fix degenerate condition in dfly_setrunqueue_locked()

* dfly_setrunqueue_locked() was unconditionally adding the lp to the end
  of the round-robin queue for the specified priority due to a degenerate
  '... || !TAILQ_EMPTY()' test.

  Remove the degenerate test, allowing a thread to be entered onto the
  head of the queue if its rrcount is reasonable.  Theoretically this should
  allow interactivity at the same queue priority even in a heavily-batched
  environment.

* Do not reset rrcount when adding to the head of the queue even if
  the queue is otherwise empty.  This allows the round-robin state to be
  retained across short delays (for example, nanosleeps) which are not as
  interactive as the system might otherwise believe, resulting in a more fair
  apportionment of cpu between batchy threads that use different delays but
  wind up at the same priority.

* Also adjust dfly_resetpriority() to reset lwp_rrcount to 0 when moving
  a thread to a higher priority queue.

* These changes should probably be re-tested against the postgres test
  suite to determine if any regressions were introduced.  It could very
  well be that the original action of always adding to the end of the queue
  might actually be the best action to take.

Reported-by: Adrian Drzewiecki <z@drze.net>
4 years agosliplogin(8): Fix a mistake i made in 0fe90ae88cbf.
Sascha Wildner [Wed, 13 Jan 2016 04:25:20 +0000 (05:25 +0100)]
sliplogin(8): Fix a mistake i made in 0fe90ae88cbf.

4 years agoSync sed(1) with FreeBSD (various fixes).
Sascha Wildner [Wed, 13 Jan 2016 04:10:04 +0000 (05:10 +0100)]
Sync sed(1) with FreeBSD (various fixes).

4 years agotr(1): Sync with FreeBSD.
Sascha Wildner [Wed, 13 Jan 2016 01:39:46 +0000 (02:39 +0100)]
tr(1): Sync with FreeBSD.

* Multibyte character support.

* Better POSIX conformance.

* Some cleanup and improvements.

4 years agodrm: Improve linux dma mapping functions
François Tigeot [Tue, 12 Jan 2016 19:35:41 +0000 (20:35 +0100)]
drm: Improve linux dma mapping functions

Partially-obtained-from: FreeBSD.

4 years agodrm: Add linux/bitmap.h
François Tigeot [Tue, 12 Jan 2016 18:11:32 +0000 (19:11 +0100)]
drm: Add linux/bitmap.h

4 years agobasename.1: Small update from FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 18:09:12 +0000 (19:09 +0100)]
basename.1: Small update from FreeBSD.

4 years agojoin(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 17:37:26 +0000 (18:37 +0100)]
join(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup and improvements.

4 years agocut(1): Small sync with FreeBSD (is_delim() arg type and indent).
Sascha Wildner [Tue, 12 Jan 2016 17:13:10 +0000 (18:13 +0100)]
cut(1): Small sync with FreeBSD (is_delim() arg type and indent).

4 years agofold(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 17:02:54 +0000 (18:02 +0100)]
fold(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup and improvements.

4 years agofmt(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 05:58:18 +0000 (06:58 +0100)]
fmt(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup and improvements.

4 years agoRemove two casts of NULL.
Sascha Wildner [Tue, 12 Jan 2016 05:40:28 +0000 (06:40 +0100)]
Remove two casts of NULL.

4 years agocolumn(1): Small fix from FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 05:31:51 +0000 (06:31 +0100)]
column(1): Small fix from FreeBSD.

4 years agolook(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 05:03:05 +0000 (06:03 +0100)]
look(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup and improvements.

4 years agoexpand(1)/unexpand(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 04:33:09 +0000 (05:33 +0100)]
expand(1)/unexpand(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup.

4 years agodrm: Add asm/cpufeature.h
François Tigeot [Mon, 11 Jan 2016 21:23:31 +0000 (22:23 +0100)]
drm: Add asm/cpufeature.h

4 years agokernel/linux: Add hweight8()
François Tigeot [Mon, 11 Jan 2016 21:09:13 +0000 (22:09 +0100)]
kernel/linux: Add hweight8()

4 years agoprintf(1): Sync with FreeBSD.
Sascha Wildner [Mon, 11 Jan 2016 18:25:41 +0000 (19:25 +0100)]
printf(1): Sync with FreeBSD.

* Better multibyte character support.

* Some improvements for better POSIX conformance.

* Position handling (%1$, %2$ etc.).

* Use variable length array instead of alloca().

4 years agolibc/gen: Cleanup Makefile.inc a bit.
Sascha Wildner [Sun, 10 Jan 2016 23:21:35 +0000 (00:21 +0100)]
libc/gen: Cleanup Makefile.inc a bit.

4 years agomakecontext_quick.3: Adjust swapcontext_quick() prototype to <ucontext.h>.
Sascha Wildner [Sun, 10 Jan 2016 23:21:29 +0000 (00:21 +0100)]
makecontext_quick.3: Adjust swapcontext_quick() prototype to <ucontext.h>.

While here, start one sentence on a new line.

4 years agowc(1): Sync with FreeBSD.
Sascha Wildner [Sun, 10 Jan 2016 20:18:16 +0000 (21:18 +0100)]
wc(1): Sync with FreeBSD.

* Improved multibyte character support.

* New -L option to report the longest line.

4 years agokernel - Remove kernel debugging message related to user seg-faults
Matthew Dillon [Sun, 10 Jan 2016 19:34:29 +0000 (11:34 -0800)]
kernel - Remove kernel debugging message related to user seg-faults

* Remove kprintf("T_PAGEFLT: Warning %%rip == 0!\n");  This debugging
  output was put in place during the initial 64-bit port to help debug
  the VM system and is no longer needed.

* Fixes system ultra-slowness/lockup issues if a user program faults on
  %rip == 0 and tries to catch the signal and return, creating a continuous
  loop that saturates the console.

4 years agodrm/i915: Use dev->pdev to get PCI device revisions
François Tigeot [Sun, 10 Jan 2016 10:49:25 +0000 (11:49 +0100)]
drm/i915: Use dev->pdev to get PCI device revisions

Reducing differences with Linux.

4 years agodrm: Store PCI device information in a struct pci_dev
François Tigeot [Sun, 10 Jan 2016 10:40:42 +0000 (11:40 +0100)]
drm: Store PCI device information in a struct pci_dev

Reducing differences with Linux

4 years agodrm: Improve Linux compatibility of pci structures
François Tigeot [Sun, 10 Jan 2016 10:37:47 +0000 (11:37 +0100)]
drm: Improve Linux compatibility of pci structures

4 years agokernel/kate: Bad idea to put temporary values in the sensor value directly.
Sascha Wildner [Sun, 10 Jan 2016 09:00:46 +0000 (10:00 +0100)]
kernel/kate: Bad idea to put temporary values in the sensor value directly.

Pointed-out-by: Constantine Aleksandrovich Murenin
4 years agoncal(1): Sync with FreeBSD.
Sascha Wildner [Sun, 10 Jan 2016 08:08:23 +0000 (09:08 +0100)]
ncal(1): Sync with FreeBSD.

* Multibyte character support.

* -3 to show previous, this and next month.

* -A for months after this month.

* -B for months before this month.

* -h to disable highlighting.

* Some extensions to -m ('f' and 'p').

* Various other fixes.

Also, raise WARNS to 6.

Submitted-by: Yellow Rabbit <yrabbit@sdf.lonestar.org>
4 years agoee(1): Raise WARNS to 2.
Sascha Wildner [Sun, 10 Jan 2016 03:18:57 +0000 (04:18 +0100)]
ee(1): Raise WARNS to 2.