dragonfly.git
7 years agobmake: rethink default mk search path again
John Marino [Sat, 27 Oct 2012 16:06:03 +0000 (18:06 +0200)]
bmake: rethink default mk search path again

Talking with swildner, we don't want the magic token to come before
/usr/share/mk because that would case the host make (after bootstrapping) to
seek files /usr/src/share/mk rather than the world mk files.

Also, it appears that the magic token won't even help with pkgsrc support
the mk files are in another branch (e.g. /usr/pkg/share/mk when the token
would look in /usr/pkgsrc/share/mk).  We really don't have a use for
.../share/mk, but putting it after /usr/share/mk won't hurt anything.

Leave .../share/mk in place just in case it becomes a useful capability later.

7 years agogcc4X: rework some makefiles
John Marino [Sat, 27 Oct 2012 15:42:36 +0000 (17:42 +0200)]
gcc4X: rework some makefiles

These are various tweaks to improve compatibility between legacy make and
bmake.  The biggest change was moving gnu/usr.bin dependencies outside to
Makefile.inc1 as part of _startup_lib* rather than fudge it with .PHONY
targets.  This kludge was causing some issues, as well as the double .USE
trick.

7 years agobsd.dep.mk: Remove AINC knob
John Marino [Sat, 27 Oct 2012 12:44:36 +0000 (14:44 +0200)]
bsd.dep.mk: Remove AINC knob

The AINC knob was removed from FreeBSD before DragonFly 1.0 was released.
It's not needed, so remove it to simplify bsd.dep.mk dependency makefile.
While here, convert SRCS and CLEANFILES to the new += method of augmenting
variables.

7 years agogcc41 removal: Part 3 of 2: library makefiles
John Marino [Sat, 27 Oct 2012 14:00:56 +0000 (16:00 +0200)]
gcc41 removal: Part 3 of 2: library makefiles

I forgot there were GCC 4.1 files in the gnu/lib/gcc41 directory.  These
should have been removed last night with the other makefiles.

7 years agonatd(8): Add exit_delay (daemon exit delay after signal), from FreeBSD.
Sascha Wildner [Fri, 26 Oct 2012 19:02:50 +0000 (21:02 +0200)]
natd(8): Add exit_delay (daemon exit delay after signal), from FreeBSD.

7 years agoTweak some makefiles to prepare for bmake
John Marino [Sat, 27 Oct 2012 09:13:14 +0000 (11:13 +0200)]
Tweak some makefiles to prepare for bmake

These makefiles build fine with legacy make but contain (or lack)
information that causes the build to fail when used with bmake.  Make
small tweaks to makefiles to ensure they are compatible with both make
programs.

7 years agobmake: Update mk directory search path
John Marino [Sat, 27 Oct 2012 09:01:53 +0000 (11:01 +0200)]
bmake: Update mk directory search path

Rather than hardcoding /usr/share/mk as the only source for bsd.*.mk files,
use the .../ magic token to cause bmake to search above it for a share/mk
in its tree as suggest by Simon Gerraty.

Also set up the bootstrap tool version of bmake to exclusively use
the src version of share/mk.

7 years agoSync zoneinfo database with tzdata2012h from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sat, 27 Oct 2012 09:15:46 +0000 (11:15 +0200)]
Sync zoneinfo database with tzdata2012h from ftp://ftp.iana.org/tz/releases

* asia:
    Israel has new DST rules next year (thanks to Ephraim Silverberg).
    Jordan stays on DST this winter (thanks to Steffen Thorsen).

* southamerica:
    Bahia no longer has DST (thanks to Kelley Cook).
    Tocantins has DST (thanks to Rodrigo Severo).

7 years agoChange pkgsrc make targets to use pkgsrc -head
Fran├žois Tigeot [Fri, 26 Oct 2012 20:57:47 +0000 (22:57 +0200)]
Change pkgsrc make targets to use pkgsrc -head

7 years agomdoc: Fix .Os version.
Sascha Wildner [Fri, 26 Oct 2012 22:50:00 +0000 (00:50 +0200)]
mdoc: Fix .Os version.

7 years agomdoc: Add DragonFly 3.3.
Sascha Wildner [Fri, 26 Oct 2012 22:21:13 +0000 (00:21 +0200)]
mdoc: Add DragonFly 3.3.

7 years agogcc41 removal: Part 2 of 2: contrib files
John Marino [Fri, 26 Oct 2012 19:50:35 +0000 (21:50 +0200)]
gcc41 removal: Part 2 of 2: contrib files

Complete the removal of GCC 4.1 by removing the contrib directory.

7 years agogcc41 removal: Part 1 of 2: makefiles
John Marino [Fri, 26 Oct 2012 19:49:50 +0000 (21:49 +0200)]
gcc41 removal: Part 1 of 2: makefiles

GCC 4.1 had been disconnected from the base build after GCC 4.7 was
brought in.  The transition as gone relatively smoothly, so it's safe
to remove the rest of GCC 4.1 now, starting with the makefiles.

7 years agolibssp47, libobjc47: install headers
John Marino [Fri, 26 Oct 2012 14:35:25 +0000 (16:35 +0200)]
libssp47, libobjc47: install headers

Headers for both libssp and libobjc were not getting installed for the
gcc47 library set.  As an aside, the gcc44 libobjc is also missing these
headers.  There installation required an mtree change, but it can be
built with quickworld.

Additionally, CFLAGS were moved to above an include for libobjc which
should ensure the local config.h is included before a different version
and this in turn likely improves libobjc functionality.

7 years agolibgomp47: Install libgomp.spec and omp.h
John Marino [Fri, 26 Oct 2012 13:52:09 +0000 (15:52 +0200)]
libgomp47: Install libgomp.spec and omp.h

It was reported these files are needed by libgomp, so generate and
install them.

7 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 26 Oct 2012 15:38:37 +0000 (08:38 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

7 years agobuild - Use _KERNEL_STRUCTURES for struct disk
Matthew Dillon [Fri, 26 Oct 2012 15:37:37 +0000 (08:37 -0700)]
build - Use _KERNEL_STRUCTURES for struct disk

* Use _KERNEL and _KERNEL_STRUCTURES around struct disk as well
  for correctness.

7 years agops.1: Adjust info regarding SMP systems.
Sascha Wildner [Fri, 26 Oct 2012 15:33:49 +0000 (17:33 +0200)]
ps.1: Adjust info regarding SMP systems.

7 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 26 Oct 2012 15:08:02 +0000 (08:08 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

7 years ago<sys/dmsg.h>: Fix buildworld, ccdconfig(8) needs this (via <sys/disk.h>).
Sascha Wildner [Fri, 26 Oct 2012 09:20:21 +0000 (11:20 +0200)]
<sys/dmsg.h>: Fix buildworld, ccdconfig(8) needs this (via <sys/disk.h>).

Reported-by: Siju George <sgeorge.ml2@gmail.com>
7 years agohammer2 - dmsg blockdev work (cleanup)
Matthew Dillon [Fri, 26 Oct 2012 04:50:50 +0000 (21:50 -0700)]
hammer2 - dmsg blockdev work (cleanup)

* Cleanup

7 years agomptable.1: Small SMP related adjustment.
Sascha Wildner [Fri, 26 Oct 2012 04:50:26 +0000 (06:50 +0200)]
mptable.1: Small SMP related adjustment.

7 years agovkernel.7: Remove SMP related info.
Sascha Wildner [Fri, 26 Oct 2012 04:31:43 +0000 (06:31 +0200)]
vkernel.7: Remove SMP related info.

7 years agohammer2 - dmsg blockdev work
Matthew Dillon [Fri, 26 Oct 2012 02:57:12 +0000 (19:57 -0700)]
hammer2 - dmsg blockdev work

* Adjust the LNK_CONN and LNK_SPAN messages to provide a cluster label
  and a filesystem label instead of just a filesystem label.

* Change the cluster controller to index clusters based on the
  peer_type, pfs_clid, and cl_label instead of just the pfs_clid.

  HAMMER2 PFS's are primarily identified by pfs_clid and unique nodes
  are identified by pfs_fsid.  fs_label holds the HAMMER2 super-root
  name.

  BLOCK devices are primarily identified by cl_label and unique nodes
  are identified by pfs_fsid.  pfs_clid and fs_label are empty.

* Adjust the cluster controller's matching filters such that, e.g.
  BLOCK device clients only have visibility to the BLOCK device server
  for the cl_label in question, and do not have visibility to other
  BLOCK device clients.

* Flesh out the hammer2 service daemons disk monitoring, have it attach
  a pipe to the in-kernel disk via an ioctl().

* Continued work on the skeleton network disk exporter (kern/subr_disk*) and
  network disk importer (dev/disk/xdisk/*).  xdisk has not been added to the
  build yet.

* Move a few more definitions from HAMMER2 to DMSG.

7 years agovkernel.7: Add back some info I accidentally removed.
Sascha Wildner [Fri, 26 Oct 2012 01:48:46 +0000 (03:48 +0200)]
vkernel.7: Add back some info I accidentally removed.

7 years agoAdjust some manual pages for the recent SMP changes.
Sascha Wildner [Fri, 26 Oct 2012 01:46:47 +0000 (03:46 +0200)]
Adjust some manual pages for the recent SMP changes.

7 years agohammer2 - Add server-side disk advertisements
Matthew Dillon [Thu, 25 Oct 2012 23:00:47 +0000 (16:00 -0700)]
hammer2 - Add server-side disk advertisements

* The hammer2 service demon now tracks disks and connects the cluster
  controller to each one.

* Add a new ioctl to the subr_disk subsystem and add subr_diskiocom.c
  to implement it, associating a cluster controller messaging descriptor
  with a disk device.

* disk device initiates LNK_CONN and LNK_SPAN.  Disk block devices now
  advertised through the spanning tree.  Nothing else implemented yet.

7 years agokernel - cleanup subr_disk.c
Matthew Dillon [Thu, 25 Oct 2012 20:44:55 +0000 (13:44 -0700)]
kernel - cleanup subr_disk.c

* Formatting cleanup pass.

7 years agohammer2 - Messaging layer separation work part 5
Matthew Dillon [Thu, 25 Oct 2012 18:31:27 +0000 (11:31 -0700)]
hammer2 - Messaging layer separation work part 5

* Fix debug shell callback issue

7 years agohammer2 - Messaging layer separation work part 4
Matthew Dillon [Thu, 25 Oct 2012 18:09:16 +0000 (11:09 -0700)]
hammer2 - Messaging layer separation work part 4

* Cleanup, bug fixes, operations tests successful now.

7 years agohammer2 - Messaging layer separation work part 3
Matthew Dillon [Thu, 25 Oct 2012 17:46:36 +0000 (10:46 -0700)]
hammer2 - Messaging layer separation work part 3

* Move more hammer2 vfs message code into kern_dmsg.c, renaming and
  implementing callbacks as needed.

* Move hammer2_icrc.c (the iscsi crc support) to libkern/icrc32.c

7 years agohammer2 - Messaging layer separation work part 2
Matthew Dillon [Thu, 25 Oct 2012 06:26:40 +0000 (23:26 -0700)]
hammer2 - Messaging layer separation work part 2

* Move most of the low-level message handling from the hammer2 utility
  to a new library called libdmsg.

* Move additional message headers from the hammer2 vfs code to libdmsg,
  cleanup.

* Rename and reorganize a ton of stuff.

7 years agohammer2 - Messaging layer separation work part 1
Matthew Dillon [Thu, 25 Oct 2012 04:27:50 +0000 (21:27 -0700)]
hammer2 - Messaging layer separation work part 1

This work is to separate the network messaging format and various
lower layers out from hammer2 and into their own 'dmsg*' files.

* Factor low level messaging structures into sys/dmsg.h

* Rename HAMMER2 -> DMSG.

7 years agokernel - header file includes adjustment
Matthew Dillon [Thu, 25 Oct 2012 03:04:45 +0000 (20:04 -0700)]
kernel - header file includes adjustment

* sys/udev.h ensures that libprop/proplib.h is included.

7 years agokernel - Implement UDEVWAIT ioctl for /dev/udev
Matthew Dillon [Thu, 25 Oct 2012 02:53:08 +0000 (19:53 -0700)]
kernel - Implement UDEVWAIT ioctl for /dev/udev

* Implement an ioctl which interacts with a sequence number and waits for
  a new event, so callers can avoid polling for events.

7 years agokernel - Auto-initiate message stream for udev on read()
Matthew Dillon [Thu, 25 Oct 2012 02:12:50 +0000 (19:12 -0700)]
kernel - Auto-initiate message stream for udev on read()

* Ensure the device is initiated when read() is issued for /dev/udev,
  otherwise no events will be queued.

  This allows a simple cat /dev/udev to return the XML stream without
  having to issue any ioctls.

* Reorder the devfs scan and initiation to close a race where an event could
  be lost.

7 years agokernel - Allow multiple opens on /dev/udev
Matthew Dillon [Thu, 25 Oct 2012 01:31:53 +0000 (18:31 -0700)]
kernel - Allow multiple opens on /dev/udev

* Implement as an auto-clone device

* Refactor most of the code to use a new queueing mechanic.  There is a single
  queue and multiple markers pointing into the queue (one for each initiated
  open'd device).

* Events broadcast to all initiated readers.  We use a single-queue /
  multiple-marker model.  The event structure is only deleted once all markers
  have iterated past it.

7 years agodevattr - Add monitoring mode (-M).
Matthew Dillon [Thu, 25 Oct 2012 00:05:29 +0000 (17:05 -0700)]
devattr - Add monitoring mode (-M).

* Add a new option, -M, which will monitor for events after doing the
  initial iteration.

7 years agotest - Adjust vnodeinfo
Matthew Dillon [Wed, 24 Oct 2012 22:59:03 +0000 (15:59 -0700)]
test - Adjust vnodeinfo

* Adjust vnodeinfo to provide more information about the
  buffer cache.

7 years agoMerge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository... hammer2
Matthew Dillon [Wed, 24 Oct 2012 22:48:05 +0000 (15:48 -0700)]
Merge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into hammer2

7 years agoUPDATING: Mention SMP is a no-op for now.
Sascha Wildner [Wed, 24 Oct 2012 17:13:59 +0000 (19:13 +0200)]
UPDATING: Mention SMP is a no-op for now.

7 years agokernel: Add back 'options SMP' as a no-op.
Sascha Wildner [Wed, 24 Oct 2012 17:05:48 +0000 (19:05 +0200)]
kernel: Add back 'options SMP' as a no-op.

This is to prevent people working with both 3.2 and master from needing
different kernel configs.

Pointed-out-by: dillon
7 years agoMerge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository...
Matthew Dillon [Wed, 24 Oct 2012 16:54:30 +0000 (09:54 -0700)]
Merge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into hammer2

7 years agoixgbe/netrate: Remove -DSMP from the Makefiles (no longer needed).
Sascha Wildner [Wed, 24 Oct 2012 16:11:13 +0000 (18:11 +0200)]
ixgbe/netrate: Remove -DSMP from the Makefiles (no longer needed).

7 years agokernel: Make SMP support default (and non-optional).
Sascha Wildner [Wed, 24 Oct 2012 16:04:05 +0000 (18:04 +0200)]
kernel: Make SMP support default (and non-optional).

The 'SMP' kernel option gets removed with this commit, so it has to
be removed from everybody's configs.

Reviewed-by: sjg
Approved-by: many
7 years agoidr.9: Clean up a bit.
Sascha Wildner [Wed, 24 Oct 2012 14:19:31 +0000 (16:19 +0200)]
idr.9: Clean up a bit.

7 years agoMerge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository...
Matthew Dillon [Wed, 24 Oct 2012 03:29:25 +0000 (20:29 -0700)]
Merge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into hammer2

7 years agoidr: Integer ID management library
Vishesh Yadav [Thu, 23 Aug 2012 19:28:27 +0000 (00:58 +0530)]
idr: Integer ID management library

Derived from fd code. Almost compatible with Linux. Differences
mentioned in man page.

7 years agobsd-family-tree: Sync with FreeBSD (adds NetBSD 6.0).
Sascha Wildner [Tue, 23 Oct 2012 09:10:28 +0000 (11:10 +0200)]
bsd-family-tree: Sync with FreeBSD (adds NetBSD 6.0).

7 years agoLINT64: Remove comment. fe(4) is i386 specific.
Sascha Wildner [Tue, 23 Oct 2012 09:04:57 +0000 (11:04 +0200)]
LINT64: Remove comment. fe(4) is i386 specific.

7 years agoRemove CAPS.
Sascha Wildner [Mon, 22 Oct 2012 18:06:05 +0000 (20:06 +0200)]
Remove CAPS.

OK'd-by: dillon

7 years agocondvar.9: Remove trailing whitespace.
Sascha Wildner [Mon, 22 Oct 2012 16:30:12 +0000 (18:30 +0200)]
condvar.9: Remove trailing whitespace.

7 years agokernel/kinfo: Don't use 'SMP' alone to check for userland compilation.
Sascha Wildner [Mon, 22 Oct 2012 09:07:13 +0000 (11:07 +0200)]
kernel/kinfo: Don't use 'SMP' alone to check for userland compilation.

The code is used by both kernel and userland.

This is in preparation for removing UP code.

7 years agousched_set.2: Add BUGS section and improve formatting
Thomas Nikolajsen [Sun, 21 Oct 2012 21:44:32 +0000 (23:44 +0200)]
usched_set.2: Add BUGS section and improve formatting

7 years agoloader(8): Add documentation on kern.user_scheduler
Thomas Nikolajsen [Sun, 21 Oct 2012 18:55:51 +0000 (20:55 +0200)]
loader(8): Add documentation on kern.user_scheduler

7 years agousched(8): Add cpumask
Thomas Nikolajsen [Sun, 21 Oct 2012 18:51:37 +0000 (20:51 +0200)]
usched(8): Add cpumask

7 years agovkernel64: Add a missing 'break'.
Sascha Wildner [Sun, 21 Oct 2012 20:09:15 +0000 (22:09 +0200)]
vkernel64: Add a missing 'break'.

7 years agobmake: Add world Makefile but don't tie in it yet
John Marino [Sun, 21 Oct 2012 19:13:08 +0000 (21:13 +0200)]
bmake: Add world Makefile but don't tie in it yet

7 years agobmake: Add DragonFly READMEs
John Marino [Sun, 21 Oct 2012 19:10:59 +0000 (21:10 +0200)]
bmake: Add DragonFly READMEs

Add DragonFly README files to contrib/bmake and also add __unused
to the single argument of two empty functions.

7 years agoMerge branch 'vendor/BMAKE'
John Marino [Sun, 21 Oct 2012 19:06:35 +0000 (21:06 +0200)]
Merge branch 'vendor/BMAKE'

7 years agoImport bmake-20121010 to new vendor branch
John Marino [Sun, 21 Oct 2012 19:05:53 +0000 (21:05 +0200)]
Import bmake-20121010 to new vendor branch

7 years agoUPDATING: Fix a typo and mention that for usb4bsd, w&k need rebuilding.
Sascha Wildner [Sun, 21 Oct 2012 16:45:32 +0000 (18:45 +0200)]
UPDATING: Fix a typo and mention that for usb4bsd, w&k need rebuilding.

Sigh, I had written 'loader.conf' instead of 'make.conf'. It will need
a mention on the release page/errata.

7 years agoUPDATING: Add some words about usb4bsd.
Sascha Wildner [Sun, 21 Oct 2012 13:52:36 +0000 (15:52 +0200)]
UPDATING: Add some words about usb4bsd.

7 years agoobjcache: Make sure magazines are cache line aligned
Sepherosa Ziehau [Sun, 21 Oct 2012 12:23:04 +0000 (20:23 +0800)]
objcache: Make sure magazines are cache line aligned

This also makes magazines' size multiple cache line size.

7 years agoobjcache: Make sure that percpu_objcache and depot are cache line aligned
Sepherosa Ziehau [Sun, 21 Oct 2012 10:42:05 +0000 (18:42 +0800)]
objcache: Make sure that percpu_objcache and depot are cache line aligned

Since percpu_objcache and depot are embedded in the objcache, so objcache
itself must be cache line aligned.

7 years agogcc4X man pages: Introduce generic MLINK handling
John Marino [Sun, 21 Oct 2012 09:08:28 +0000 (11:08 +0200)]
gcc4X man pages: Introduce generic MLINK handling

A few months ago, the MLINK handling for binutils was updated to make
it easier to switch the primary version.  For binutils, every manpage
has a suffix based on the binutils version and the "real" man page is
linked to the primary version.

The two base compilers had the same organization, but the manual system
was not converted when binutils system was.  When gcc47 was brought in,
the manual organization wasn't implemented correctly and the gcc47 pages
ended up getting linked to the "real" man page instead of the primary
compiler gcc44.

While fixing this, bring in the binutils MLINK handling to prepare for
switching gcc47 to the primary compiler in the future.

7 years agoobjcache: objcache_create on longer changes cluster_limit
Sepherosa Ziehau [Sun, 21 Oct 2012 09:00:54 +0000 (17:00 +0800)]
objcache: objcache_create on longer changes cluster_limit

It is no longer needed to pass the pointer to cluster_limit.

7 years agoobjcache: Cache align magazinedepot and percpu_objcache
Sepherosa Ziehau [Sun, 21 Oct 2012 08:36:37 +0000 (16:36 +0800)]
objcache: Cache align magazinedepot and percpu_objcache

7 years agocondvar(9): adjust manpage to reflect reality
Markus Pfeiffer [Sat, 20 Oct 2012 20:50:17 +0000 (20:50 +0000)]
condvar(9): adjust manpage to reflect reality

also fix a typo while I am here

7 years agonetif: Enable ifpoll in module building
Sepherosa Ziehau [Sat, 20 Oct 2012 13:33:06 +0000 (21:33 +0800)]
netif: Enable ifpoll in module building

7 years agolibgomp47: link pthread library
John Marino [Sat, 20 Oct 2012 13:19:06 +0000 (15:19 +0200)]
libgomp47: link pthread library

7 years agoconfig: Enable ifpoll (IFPOLL_ENABLE) by default
Sepherosa Ziehau [Sat, 20 Oct 2012 12:17:24 +0000 (20:17 +0800)]
config: Enable ifpoll (IFPOLL_ENABLE) by default

7 years agoifpoll: Make status fraction and TX fraction easier to read
Sepherosa Ziehau [Sat, 20 Oct 2012 12:12:38 +0000 (20:12 +0800)]
ifpoll: Make status fraction and TX fraction easier to read

7 years agogcc47: Add libgomp
John Marino [Sat, 20 Oct 2012 06:37:48 +0000 (08:37 +0200)]
gcc47: Add libgomp

This library was not part of the gcc 4.7 system compiler set.
By request for the purpose of supporting OpenMP with system compiler,
libgomp is being added to the gcc 4.7 library set.

7 years agoMerge branch 'vendor/GCC47'
Charlie [Sat, 20 Oct 2012 10:10:13 +0000 (12:10 +0200)]
Merge branch 'vendor/GCC47'

7 years agoAdd libgomp source files to gcc 4.7 vendor branch
John Marino [Sat, 20 Oct 2012 06:35:34 +0000 (08:35 +0200)]
Add libgomp source files to gcc 4.7 vendor branch

7 years agoudevd(8): Reduce the scope of a yet unused variable.
Sascha Wildner [Sat, 20 Oct 2012 08:49:14 +0000 (10:49 +0200)]
udevd(8): Reduce the scope of a yet unused variable.

7 years agonewfs(8): Remove an unused variable.
Sascha Wildner [Sat, 20 Oct 2012 08:39:26 +0000 (10:39 +0200)]
newfs(8): Remove an unused variable.

Found-by: gcc47
7 years agomount{,_ufs}(8): Check for mountctl() error before printing buf.
Sascha Wildner [Sat, 20 Oct 2012 08:18:27 +0000 (10:18 +0200)]
mount{,_ufs}(8): Check for mountctl() error before printing buf.

7 years agogcc47: Add libssp and libssp_noshared
John Marino [Fri, 19 Oct 2012 15:43:21 +0000 (17:43 +0200)]
gcc47: Add libssp and libssp_noshared

These libraries were not part of the gcc 4.4 system compiler set.
Some pkgsrc packages assume the ssp libraries come with the compiler,
so add them to the gcc 4.7 library set.

7 years agoMerge branch 'vendor/GCC47'
Charlie [Sat, 20 Oct 2012 02:37:26 +0000 (04:37 +0200)]
Merge branch 'vendor/GCC47'

7 years agogcc47: Add __stack_chk_fail_local hack from gcc44
John Marino [Sat, 20 Oct 2012 00:06:27 +0000 (02:06 +0200)]
gcc47: Add __stack_chk_fail_local hack from gcc44

Like gcc44 before it, gcc47 is complaining about the hidden symbol of
__stack_chk_fail_local.  This patch swildner added to gcc44 will fix the
issue, but it is a bit of a hack.  A true fix may end up touching libc,
rtld, and other bits.  The original code is supposd to conserve a PIC
register.

Note that vendor-built GCCs on FreeBSD exhibit the same behavior and as
a consequence only the patched base compiler can be used to build certain
ports.

This hack should be fixed properly as soon as convenient.

7 years agoAdd libssp source files to gcc 4.7 vendor branch
John Marino [Fri, 19 Oct 2012 15:27:07 +0000 (17:27 +0200)]
Add libssp source files to gcc 4.7 vendor branch

7 years agokernel - Fix UP build for usched_dfly
Matthew Dillon [Fri, 19 Oct 2012 20:26:45 +0000 (13:26 -0700)]
kernel - Fix UP build for usched_dfly

* Fix UP build for usched_dfly (primarily for the 3.2 release, UP is being
  removed post-release).

7 years agorshd(8): Add an error check for getnameinfo().
Sascha Wildner [Fri, 19 Oct 2012 19:22:23 +0000 (21:22 +0200)]
rshd(8): Add an error check for getnameinfo().

7 years agokernel - Detect edge cases in ELF note handling
Matthew Dillon [Fri, 19 Oct 2012 17:41:01 +0000 (10:41 -0700)]
kernel - Detect edge cases in ELF note handling

* Do more stringent tests on ELF note structures and headers to
  avoid possible panics on page-crossings.

* Patch constructed from examination of a similar fix made to FreeBSD
  cvs/1.227.  However, our patch is written a different way.

Reported-by: Lukasz Wojcik <lukasz.wojcik@zoho.com>
7 years agoRevert a few additions of __unused that need some more thought.
Sascha Wildner [Fri, 19 Oct 2012 15:47:17 +0000 (17:47 +0200)]
Revert a few additions of __unused that need some more thought.

We can postpone it until WARNS gets raised to 4 (at the moment, all
this stuff is WARNS = 2).

7 years agoRevert some no longer needed local CFLAGS modifications.
Sascha Wildner [Fri, 19 Oct 2012 08:49:34 +0000 (10:49 +0200)]
Revert some no longer needed local CFLAGS modifications.

7 years agocrypto: Revert some changes in contributed code.
Sascha Wildner [Fri, 19 Oct 2012 08:47:11 +0000 (10:47 +0200)]
crypto: Revert some changes in contributed code.

7 years agoMove gcc47's -Wunused-but-set-{parameter,variable} to WARNS >= 4.
Sascha Wildner [Fri, 19 Oct 2012 08:43:55 +0000 (10:43 +0200)]
Move gcc47's -Wunused-but-set-{parameter,variable} to WARNS >= 4.

It's not really important stuff that they uncover.

Also, -Wunused-parameter is added at >= 4 too.

7 years agondis_events(8): Check a read().
Sascha Wildner [Fri, 19 Oct 2012 07:36:36 +0000 (09:36 +0200)]
ndis_events(8): Check a read().

Found-by: gcc47
7 years agolibstdc++47: Rework to prevent regeneration during install
John Marino [Fri, 19 Oct 2012 07:15:22 +0000 (09:15 +0200)]
libstdc++47: Rework to prevent regeneration during install

The installincludes target regenerated files such as c++config.h during
the install phase.  It may be a minor bug as "bits/c++config.h:" would
trigger it but "c++config.h:" without the subdirectory wouldn't.  In any
case, generating it and two other headers to the local working bits
directory wasn't necessary as installincludes target installs them in an
accessible location.  Reworking the makefiles prevents a write operation
during installworld.

Reported-by: dillon
7 years agombuf: Make cacheable fraction of mbuf clusters tunable
Sepherosa Ziehau [Fri, 19 Oct 2012 08:03:45 +0000 (16:03 +0800)]
mbuf: Make cacheable fraction of mbuf clusters tunable

7 years agombuf: Factor out m_getcl_cache; optimize m_getcl a little bit
Sepherosa Ziehau [Fri, 19 Oct 2012 06:13:36 +0000 (14:13 +0800)]
mbuf: Factor out m_getcl_cache; optimize m_getcl a little bit

7 years agombuf: Jumbo clusters are rarely used; keep the amount small.
Sepherosa Ziehau [Fri, 19 Oct 2012 05:53:54 +0000 (13:53 +0800)]
mbuf: Jumbo clusters are rarely used; keep the amount small.

7 years agombuf: Remove unused MALLOC_DEFINEs
Sepherosa Ziehau [Fri, 19 Oct 2012 05:23:01 +0000 (13:23 +0800)]
mbuf: Remove unused MALLOC_DEFINEs

7 years agoMerge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository...
Matthew Dillon [Fri, 19 Oct 2012 00:01:06 +0000 (17:01 -0700)]
Merge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into hammer2

7 years agoIPXrouted(8): Oops removed too much in the last commit.
Sascha Wildner [Thu, 18 Oct 2012 22:54:03 +0000 (00:54 +0200)]
IPXrouted(8): Oops removed too much in the last commit.

7 years ago<bsd.sys.mk>: Rename -W to -Wextra.
Sascha Wildner [Thu, 18 Oct 2012 22:30:13 +0000 (00:30 +0200)]
<bsd.sys.mk>: Rename -W to -Wextra.

-Wextra is a newer name and it is a bit more descriptive.

While here, break a long line.

7 years agowatchdogd(8): Silence a warning differently.
Sascha Wildner [Thu, 18 Oct 2012 22:13:41 +0000 (00:13 +0200)]
watchdogd(8): Silence a warning differently.

Also satisfies -Wunused-but-set-parameter.

Found-by: gcc47