Displaying 1 50 of 31,505 commits (0.005s)

DragonFlyBSD — usr.bin/tip/libacu hayes.c v3451.c, usr.bin/tip/tip cmds.c value.c

tip(1): Fix various warnings and errors emitted by clang

The most serious were void/return mismatches, but clang also complained
about ambiguous brackets and mis-matching printf formats.  It also didn't
like one particular K&R-formatted function, but I'm not sure why not.

DragonFlyBSD — share/mk bsd.cpu.mk

Really set default binutils to version 2.24

The last update of binutils missed changing the default in bsd.cpu.mk,
which means all the bootstrap and other tools were built with binutils
2.22 instead of 2.24.  This oversight is rectified now.
Delta File
+3 -3 share/mk/bsd.cpu.mk
+3 -3 1 file

DragonFlyBSD — sys/boot Makefile README, sys/boot/common reloc_elf.c load_elf.c

boot: remove sparc, powerpc, ia64 code and references

While I'm here, remove the practically blank README.  Apparently this was
on Matt's "To-Do" list, but that was 4 years ago so I don't think it's
going to get done.

DragonFlyBSD — sbin/routed input.c

routed - Apply FreeBSD-SA-14:21.routed

* Apply patch to fix null-pointer DOS.
Delta File
+4 -0 sbin/routed/input.c
+4 -0 1 file

DragonFlyBSD — lib/csu/i386 Makefile.csu, lib/csu/x86_64 Makefile.csu

csu: Remove $CFLAGS from intermediate object targets

These makefile case from FreeBSD, but the flags were called $ACFLAGS,
not $CFLAGS, and they are empty by default.  I noticed clang's
assembler screaming about unused flags and then noticed this mistake.

DragonFlyBSD — etc/defaults compilers.conf, libexec/customcc cc.sh Makefile

customcc: Improve wrapper script efficiency and capabilities

The wrapper script had some deficies, such as:
 * awk called every invocation
 * cc and gcc treated the same
 * c++ and g++ treated the same
 * evals for variables not used
 * every invocation of c++ or g++ called cc -dumpmachine
 * g++ hardcoded to dports include scheme
 * no support for "CC" or "gcov" (both defined by base compilers)

The update addresses these by:
 * awk eliminated by pushing INCOPT definition to defaults/compilers.conf
 * cc -dumpmachine eliminated during creation of defaults/compilers.conf
   It was only used for dports gcc, so with the assumption that the dports
   compiler matches the uname information (a decent assumption), this
   was predefined, yet overridable by /etc/compilers.conf
 * cc is treated separately from gcc
 * CC and c++ are treated the same but separately from g++
 * by wrapper default, gcc and g++ refer to base gcc4.7, but the default
   compilers.conf sets them to the same as the specified dports gcc
 * Support for clang, clang++, clang-cpp, CC, and gcov was added
 * Support for base clang, clang++, and clang-cpp was added in
   anticipation of bringing clang into base.
 * variables are only evaluated if used.

    [9 lines not shown]

DragonFlyBSD — sys/kern subr_rman.c, sys/platform/pc64/x86_64 nexus.c

kernel - Fix int/long truncation problem in rman_reserve_resource()

* Use ulmin/ulmax instead of min/max in three places, fixing a 32-bit
  truncation problem when setting up memory resources that caused our
  48-core opteron to panic.

* An earlier commit adjusting count values to be more correct revealed
  the bug.

* Fixes booting the kernel on our 48-core opteron w/128G of ram.

DragonFlyBSD — games/morse morse.c morse.6, share/man/man4 led.4 acpi_thinkpad.4

kernel: FWIW, add FreeBSD's led(4) framework.

It's not big and some ACPI code can utilize it.

Also add -l to morse(6) to output in led(4) compatible format.

Thanks to Markus Pfeiffer and Johannes Hofmann for testing and
finding issues.

Taken-from: FreeBSD

DragonFlyBSD — etc/periodic/daily 440.status-mailq, libexec/dma dma.c

dma(8): Better integration with our periodic scripts.

* Make dma(8) accept the -Ac option when run as 'mailq'. Also make it
  run as 'hoststat' and 'purgestat' (does nothing in this case).

* Adjust the 440.status-mailq daily periodic script to also check for
  "Mail queue is empty", which is dma(8)'s corresponding text.

Note: We really should be suppressing the checking of the submit queue
      automatically if mailer.conf is set up for dma(8) but I'm not
      sure yet what's the best way.

Reported and tested by Max Herrgard <herrgard at gmail.com>.

DragonFlyBSD — etc/rc.d nfsd

rc.d/nfsd: Add shutdown keyword so as it's stopped at shutdown.
Delta File
+1 -0 etc/rc.d/nfsd
+1 -0 1 file

DragonFlyBSD — share/man/man7 vkernel.7

Add ifmedia(4) reference to vkernel.7 (which is vke's manual page too).
Delta File
+1 -0 share/man/man7/vkernel.7
+1 -0 1 file

DragonFlyBSD — libexec/dma dma.c

dma(8): Fix some comment typos.
Delta File
+3 -3 libexec/dma/dma.c
+3 -3 1 file

DragonFlyBSD — sys/dev/virtual/vkernel/net if_vke.c

vkernel: Add rudimentary media support to if_vke
Delta File
+70 -3 sys/dev/virtual/vkernel/net/if_vke.c
+70 -3 1 file

DragonFlyBSD — sys/platform/vkernel64/platform pmap.c

vkernel - Enhance panic message for freeing held page table page

* Adjust the 'freeing held page table page' to say 'freeing held pt page'
  and also include a bunch of pointer and other information.

DragonFlyBSD — sys/vm vm_map.c

kernel - Add /dev/upmap and /dev/kpmap and sys/upmap.h (4)

* Properly remove pte entries for VM_MAPTYPE_UKSMAP mappings.  This maptype
  will have a NULL object.

* Fixes a vkernel panic, probably fixes a page leak in real kernels.
Delta File
+2 -0 sys/vm/vm_map.c
+2 -0 1 file

DragonFlyBSD — lib/libusb libusb20.3, share/man/man7 environ.7

Sort SEE ALSO in libusb20.3 and environ.7

DragonFlyBSD — usr.sbin/acpi/acpiconf acpiconf.8

acpiconf.8: Remove duplicate SEE ALSO.
Delta File
+0 -1 usr.sbin/acpi/acpiconf/acpiconf.8
+0 -1 1 file

DragonFlyBSD — sys/dev/virtual/vkernel/net if_vke.c

vkernel - Support BPF for if_vke.

* if_vke now supports tcpdump in both directions instead of just one

DragonFlyBSD — lib/libc Makefile.inc, lib/libc/gen setproctitle.c

kernel - Add /dev/upmap and /dev/kpmap and sys/upmap.h (3)

* Add upmap->invfork.  When a vforked child is trying to access the upmap
  prior to exec we must still access the parent's map and not the child's,
  which means that the stored PID will be incorrect.

  To fix this issue we add the invfork field which allows userland to
  determine whether this is a vforked child accessing the parent's map.
  If it is, getpid() will use the system call.

* Fix a bug where a vfork()d child creates p->p_upmap for itself but then
  maps it into the parent's address space as a side effect of a getpid()
  or other call.  When this situation is detected, /dev/upmap will use
  the parent's p_upmap and not the child's, and also properly set the
  invfork flag.

* Implement system call overrides for getpid(), setproctitle(), and
  clock_gettime() (*_FAST and *_SECOND clock ids).  When more than 10 calls
  are made to one of these functions the new libc upmap/kpmap support is
  activated.  /dev/upmap and /dev/kpmap will be memory-mapped into the
  address space and further accesses will run through the maps instead of
  making system calls.

  This will obviously reduce overhead for these calls by a very significant

    [5 lines not shown]

DragonFlyBSD — sys/vm vm_map.h

kernel - fixup buildworld after recent commits
Delta File
+1 -1 sys/vm/vm_map.h
+1 -1 1 file

DragonFlyBSD — sys/kern kern_memio.c kern_clock.c, sys/sys upmap.h

kernel - Add /dev/upmap and /dev/kpmap and sys/upmap.h (2)

* Disallow writing to kpmap.

* Handle cpu read/update races against ts_uptime and ts_realtime by
  making these arrays[2] and using kpmap->upticks to tell userland
  which one is stable.

  The procedure is as follows:

        struct timespec ts_uptime;
        struct timespec ts_realtime;
        int w;

        do {
                w = kpmap->upticks;
                ts_uptime = kpmap->ts_uptime[w & 1];
                ts_realtime = kpmap->ts_realtime[w & 1];
                w = kpmap->upticks - w;
        } while (w > 1);

  This procedure avoids having to loop in all standard cases including
  the nominal kernel update / userland read race.  It will only loop if

    [2 lines not shown]
Delta File
+19 -4 sys/kern/kern_memio.c
+17 -4 sys/sys/upmap.h
+11 -3 sys/kern/kern_clock.c
+47 -11 3 files

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c, sys/emulation/linux linux_misc.c

kernel - Add /dev/upmap and /dev/kpmap and sys/upmap.h

* Add two memory-mappable devices for accessing a per-process and global
  kernel shared memory space.  These can be mapped to acquire certain
  information from the kernel that would normally require a system call
  in a more efficient manner.

  Userland programs using this feature should NOT directly map the sys_upmap
  and sys_kpmap structures (which is why they are in #ifdef _KERNEL sections
  in sys/upmap.h).  Instead, mmap the devices using UPMAP_MAPSIZE and
  KPMAP_MAPSIZE and parse the ukpheader[] array at the front of each area
  to locate the desired fields.  You can then simply cache a pointer to
  the desired field.

  The width of the field is encoded in the UPTYPE/KPTYPE elements and
  can be asserted if desired, user programs are not expected to handle
  integers of multiple sizes for the same field type.

* Add /dev/upmap.  A program can open and mmap() this device R+W and use
  it to access:

  header[...]        - See sys/upmap.h.  An array of headers terminating with
                  a type=0 header indicating where various fields are in
                  the mapping.  This should be used by userland instead
                  of directly mapping to the struct sys_upmap structure.

    [61 lines not shown]
Delta File
+233 -124 sys/vm/vm_map.c
+133 -0 sys/sys/upmap.h
+116 -16 sys/kern/kern_memio.c
+81 -14 sys/vm/vm_fault.c
+70 -5 sys/kern/kern_proc.c
+35 -32 sys/vm/vm_kern.c
+208 -91 24 files not shown
+876 -282 30 files

DragonFlyBSD — . Makefile.inc1

Makefile.inc1: Remove obsolete NO_FORTRAN definitions
Delta File
+2 -3 Makefile.inc1
+2 -3 1 file

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

October 15, 2014 snapshot from http://pciids.sourceforge.net/
Delta File
+229 -9 share/misc/pci_vendors
+229 -9 1 file

DragonFlyBSD — sys/dev/drm/i915 i915_gem_execbuffer.c, sys/dev/drm/include/drm drm_mem_util.h drmP.h

drm: Add and use drm/drm_mem_util.h

Reducing differences with the Linux code base

DragonFlyBSD — sys/dev/drm drm_bufs.c drm_crtc.c, sys/dev/drm/i915 i915_gem.c intel_display.c

drm: Consolidate memory allocation types

* The DRM subsystem was using many different kmalloc types for no
  good reason

* Some types were only used twice (1x kmalloc() and 1x kfree() calls)

* Remove that useless complexity and only keep one kmalloc type for
  the whole DRM subsystem and its drivers

Inspired-by: OpenBSD

DragonFlyBSD — share/man/man5 rc.conf.5

rc.conf.5: Adjust pim6dd reference to dports.
Delta File
+3 -2 share/man/man5/rc.conf.5
+3 -2 1 file

DragonFlyBSD — share/man/man4 est.4

est.4: Comment out estd reference.
Delta File
+8 -6 share/man/man4/est.4
+8 -6 1 file

DragonFlyBSD — etc/defaults compilers.conf, libexec/customcc cc.sh

Adjust the cc wrapper script and compilers.conf to dports.

Provide defaults for various GCCs for now.

DragonFlyBSD — sys/netinet udp_usrreq.c

netinet: Remove check for jailed process

This check caused jailed processes to not be able to do name lookups
via libc anymore, since a connect() on a udp socket failed.

Reviewed-by: Sepherosa Ziehau <sepherosa at gmail.com>
Delta File
+1 -3 sys/netinet/udp_usrreq.c
+1 -3 1 file

DragonFlyBSD — contrib/libedit/src vis.c tty.c, contrib/libedit/src/editline readline.h

    Merge branch 'vendor/LIBEDIT'
∈ John Marino - 84b940c1 - 2014-10-13 17:07:36

DragonFlyBSD — sys/dev/acpica acpi_battery.c

kernel/acpi: Process the ACPI_Q_BATT_RATE_ABS quirk before the rate is used.

Stupid mistake, we need to adjust the rate before it is added to

Pointed-out-by: John Baldwin
Delta File
+10 -10 sys/dev/acpica/acpi_battery.c
+10 -10 1 file

DragonFlyBSD — usr.sbin/acpi/acpiconf acpiconf.8

apciconf.8: Clarify that 0 means the first battery.
Delta File
+1 -0 usr.sbin/acpi/acpiconf/acpiconf.8
+1 -0 1 file

DragonFlyBSD — contrib/libedit README.DRAGONFLY README.DELETED, lib/libedit/libedit config.h

Complete upgrade of libedit from 2012-12-13 => 2014-06-20

DragonFlyBSD — share/man/man4 lagg.4

lagg.4: Use .Mt for email addresses.
Delta File
+2 -2 share/man/man4/lagg.4
+2 -2 1 file

DragonFlyBSD — . Makefile_upgrade.inc

Remove old time zones via 'make upgrade'.
Delta File
+3 -0 Makefile_upgrade.inc
+3 -0 1 file

DragonFlyBSD — contrib/wpa_supplicant README.DRAGONFLY, contrib/wpa_supplicant/wpa_supplicant main.c wpa_supplicant.c

wpa_supplicant: Fix driver list with -h or invalid command switch

If wpa_supplicant was given -h (help) argument to show usage, the NDIS
driver displayed as "(null)".  If wpa_supplicant was given no arguments,
the usage display would also appear, but this time the NDIS driver was

It seems that the NDIS driver is the only one that must be initialized,
and this initialization was getting skipped on unrecognized commands and
the help command.  The solution is to move the initialization of the
driver to occur before the commands are checked so that the driver data
will always be available.

DragonFlyBSD — sys/vfs/hammer hammer_inode.c

hammer - Fix a NULL pointer dereference.

- hammer_create_inode() allows its parameter dip to be NULL, so
  before checking nlinks, see if dip is actually not NULL.

Spotted-by: swildner
Delta File
+1 -1 sys/vfs/hammer/hammer_inode.c
+1 -1 1 file

DragonFlyBSD — share/zoneinfo europe australasia

Sync zoneinfo database with tzdata2014h from ftp://ftp.iana.org/tz/releases

We're coming from tzdata2014e.

Changes affecting future time stamps:

* Russia will subtract an hour from most of its time zones on 2014-10-26
    at 02:00 local time.  (Thanks to Alexander Krivenyshev.)

* Turks & Caicos is switching from US eastern time to UTC-4 year-round,
    modeled as a switch from EST/EDT to AST on 2014-11-02 at 02:00.

* Tons of changes to past time stamps and cleanup. It's really too much
    to repeat here. Please see the NEWS file for further information.
Delta File
+842 -516 share/zoneinfo/europe
+439 -499 share/zoneinfo/australasia
+477 -447 share/zoneinfo/asia
+318 -390 share/zoneinfo/northamerica
+189 -333 share/zoneinfo/africa
+474 -44 share/zoneinfo/NEWS
+391 -468 11 files not shown
+3,130 -2,697 17 files

DragonFlyBSD — share/zoneinfo europe australasia

Sync zoneinfo database with tzdata2014h from ftp://ftp.iana.org/tz/releases

We're coming from tzdata2014e.

Changes affecting future time stamps:

* Russia will subtract an hour from most of its time zones on 2014-10-26
    at 02:00 local time.  (Thanks to Alexander Krivenyshev.)

* Turks & Caicos is switching from US eastern time to UTC-4 year-round,
    modeled as a switch from EST/EDT to AST on 2014-11-02 at 02:00.

* Tons of changes to past time stamps and cleanup. It's really too much
    to repeat here. Please see the NEWS file for further information.
Delta File
+842 -516 share/zoneinfo/europe
+439 -499 share/zoneinfo/australasia
+477 -447 share/zoneinfo/asia
+318 -390 share/zoneinfo/northamerica
+189 -333 share/zoneinfo/africa
+474 -44 share/zoneinfo/NEWS
+391 -468 11 files not shown
+3,130 -2,697 17 files

DragonFlyBSD — sys/dev/acpica Makefile

kernel/acpi: Remove unused variable from Makefile.
Delta File
+1 -1 sys/dev/acpica/Makefile
+1 -1 1 file

DragonFlyBSD — usr.bin/find find.1

find.1: Add missing whitespace.
Delta File
+1 -1 usr.bin/find/find.1
+1 -1 1 file

DragonFlyBSD — contrib/grep README, contrib/grep/doc grep.texi version.texi

    Merge branch 'vendor/GREP'
∈ John Marino - 680a9cb8 - 2014-10-10 20:48:14
Delta File
+1,341 -1,292 contrib/grep/src/dfa.c
+2,360 -12 contrib/grep/src/grep.c
+0 -2,290 contrib/grep/src/main.c
+1,057 -0 contrib/grep/lib/glthread/lock.c
+927 -0 contrib/grep/lib/glthread/lock.h
+338 -335 contrib/grep/lib/obstack.h
+3,075 -1,809 233 files not shown
+9,098 -5,738 239 files

DragonFlyBSD — contrib/grep README.DRAGONFLY README.DELETED, gnu/usr.bin/grep Makefile.inc0 Makefile

Complete upgrade of gnu grep 2.14 => 2.20

** 2.20 Bug fixes
  grep --max-count=N FILE would no longer stop reading after Nth match.
  I.e., while grep would still print the correct output, it would continue
  reading until end of input, and hence, potentially forever.
  [bug introduced in grep-2.19]

  A command like echo aa|grep -E 'a(b$|c$)' would mistakenly
  report the input as a matched line. [bug introduced in grep-2.19]

** 2.20 Changes in behavior
  grep --exclude-dir='FOO/' now excludes the directory FOO.
  Previously, the trailing slash meant the option was ineffective.

** 2.19 Improvements
  Performance has improved, typically by 10% and in some cases by a
  factor of 200.  However, performance of grep -P in UTF-8 locales has
  gotten worse as part of the fix for the crashes mentioned below.

** 2.19 Bug fixes
  grep no longer mishandles patterns like [a-[.z.]], and no longer
  mishandles patterns like [^a] in locales that have multicharacter
  collating sequences so that [^a] can match a string of two characters.

    [105 lines not shown]

DragonFlyBSD — contrib/xz NEWS README.DELETED, contrib/xz/src/liblzma/api/lzma block.h version.h

    Merge branch 'vendor/XZ'
∈ John Marino - a530a267 - 2014-10-10 18:58:57
Upgrade xz from 5.0.4 to 5.0.7 on the vendor branch

5.0.7 (2014-09-20)
    * Fix regressions introduced in 5.0.6:
        - Fix building with non-GNU make.
        - Fix invalid Libs.private value in liblzma.pc which broke
          static linking against liblzma if the linker flags were
          taken from pkg-config.
5.0.6 (2014-09-14)
    * xzgrep now exits with status 0 if at least one file matched.
    * A few minor portability and build system fixes
5.0.5 (2013-06-30)
    * lzmadec and liblzma's lzma_alone_decoder(): Support decompressing
      .lzma files that have less common settings in the headers
      (dictionary size other than 2^n or 2^n + 2^(n-1), or uncompressed
      size greater than 256 GiB). The limitations existed to avoid false
      positives when detecting .lzma files. The lc + lp <= 4 limitation
      still remains since liblzma's LZMA decoder has that limitation.

      NOTE: xz's .lzma support or liblzma's lzma_auto_decoder() are NOT
      affected by this change. They still consider uncommon .lzma headers
      as not being in the .lzma format. Changing this would give way too
      many false positives.
    * xz:
        - Interaction of preset and custom filter chain options was

    [26 lines not shown]
Delta File
+70 -0 contrib/xz/NEWS
+36 -23 contrib/xz/src/xz/xz.1
+0 -53 contrib/xz/README.DELETED
+24 -17 contrib/xz/src/xz/coder.c
+18 -20 contrib/xz/src/xz/file_io.c
+27 -1 contrib/xz/src/xz/list.c
+82 -48 19 files not shown
+257 -162 25 files

DragonFlyBSD — contrib/xz README.DELETED README.DRAGONFLY, lib/liblzma config.h

Complete upgrade of XZ 5.0.4 => 5.0.7

See the vendor branch commit for the change log diff.

DragonFlyBSD — usr.bin/sed sed.1 main.c

sed(1): add -r option for compatibility with GNU sed.

-r option is exactly the same option as -E
Delta File
+6 -2 usr.bin/sed/sed.1
+2 -1 usr.bin/sed/main.c
+8 -3 2 files

DragonFlyBSD — sys/vfs/smbfs smbfs_vfsops.c

kernel/smbfs: Tabify a few lines.
Delta File
+5 -5 sys/vfs/smbfs/smbfs_vfsops.c
+5 -5 1 file

DragonFlyBSD — sys/kern subr_firmware.c, sys/vfs/smbfs smbfs_vfsops.c

kernel: Remove some dead code.

While here, also remove an unnecessary NULL check in smbfs (M_WAITOK is used)
and use M_ZERO instead of an explicit bzero().

Submitted-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>

DragonFlyBSD — sys/kern kern_slaballoc.c

kernel/slaballoc: Remove redundant if().

Found-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Delta File
+1 -2 sys/kern/kern_slaballoc.c
+1 -2 1 file