Displaying 1 50 of 39,672 commits (0.009s)

DragonFlyBSD — sys/netgraph7 ng_ip_input.c, sys/netgraph7/iface ng_iface.c

kernel/netgraph7: Fix panic

We just unset the M_HASH flag for the mbuf before queueing the
message to the netisr, making sure the handler doesn't run
on the wrong CPU.

DragonFlyBSD — lib/libc Makefile.inc

libc: Fix a comment in Makefile.inc.
Delta File
+1 -1 lib/libc/Makefile.inc
+1 -1 1 file

DragonFlyBSD — lib/libc/string string.3

string.3: Fix types of strlcat() and strlcpy() prototypes.
Delta File
+3 -3 lib/libc/string/string.3
+3 -3 1 file

DragonFlyBSD — sys/dev/misc/syscons sysmouse.c

syscons - Detangle sysmouse from tty handling, implement a custom FIFO.

* This avoids unnecessary IPIs and other overhead from the tty handling.

* This also makes reads from the character device always get only complete
  sysmouse packets.
Delta File
+321 -158 sys/dev/misc/syscons/sysmouse.c
+321 -158 1 file

DragonFlyBSD — sys/dev/misc/syscons sysmouse.c

syscons - No special minor device number is needed anymore for sysmouse.
Delta File
+1 -9 sys/dev/misc/syscons/sysmouse.c
+1 -9 1 file

DragonFlyBSD — lib/libc/sys select.2

select.2: timeout is restrict too.
Delta File
+2 -2 lib/libc/sys/select.2
+2 -2 1 file

DragonFlyBSD — lib/libc/gen dlfcn.3 dlsym.3, lib/libc/net getaddrinfo.3 getnameinfo.3

Add missing restrict qualifiers to various manual pages.

DragonFlyBSD — etc/devd usb.conf, share/man/man4 cdce.4 usb.4

kernel/u4b: Some additional work for the recent cdce(4) addition.

* Add a manual page from FreeBSD.

* Add to LINT64.

* Adjust devd(8) configuration so that cdce.ko automatically loads upon
  plugging.

DragonFlyBSD — . Makefile_upgrade.inc, etc rc.suspend rc.resume

kernel/acpi: Remove the old APM emulation code.

This is no longer needed by anything. The <machine/apm_bios.h> header
with APM ioctl defines can go as well.

While here, do a little adjustment of comments and manual pages too.

Pointed-out-by: ivadasz

DragonFlyBSD — sys/bus/u4b/net if_cdce.c

kernel/u4b: Use CDCE_LOCK/CDCE_UNLOCK macros
Delta File
+2 -2 sys/bus/u4b/net/if_cdce.c
+2 -2 1 file

DragonFlyBSD — . UPDATING

UPGRADING: Mention the recent removal of 'device virtio_pci'.
Delta File
+6 -0 UPDATING
+6 -0 1 file

DragonFlyBSD — nrelease Makefile

nrelease - Add missing headers to src-sys.tar.bz2

* Add missing headers to src-sys.tar.bz2 so 'make nativekernel'
  actually works.

Reported-by: Constantine A. Murenin
Delta File
+2 -1 nrelease/Makefile
+2 -1 1 file

DragonFlyBSD — lib/libc Makefile, lib/libc_rtld Makefile

libc/libc_rtld: Fix up some comments in the Makefiles.
Delta File
+4 -1 lib/libc_rtld/Makefile
+1 -1 lib/libc/Makefile
+5 -2 2 files

DragonFlyBSD — sbin/gpt create.c gpt.8

gpt - Add a new directive called 'init'

* Add a new directive called 'init'.  This directive works like
  gpt create except it will also create a msdos slice 0 (and newfs_msdos
  it), and a "DragonFly Label64" slice 1, and
  'disklabel -r -w <slice1> auto'.

* If -B is also specified, the init directive will populate the msdos
  filesystem with efi/boot/bootx64.efi, and also supplies -B to the
  disklabel command.

* This command does not create the boot, swap, or root filesystem
  partitions in the disklabel.  It is meant to do something similar
  to what fdisk -IB used to do for us for legacy partitions (though
  I should note that fdisk -IB didn't initialize a new disklabel).  But
  we do for gpt.
Delta File
+152 -2 sbin/gpt/create.c
+21 -0 sbin/gpt/gpt.8
+20 -0 sbin/gpt/add.c
+13 -2 sbin/gpt/destroy.c
+4 -0 sbin/gpt/gpt.h
+1 -0 sbin/gpt/gpt.c
+211 -4 6 files

DragonFlyBSD — sys/dev/disk/ncr ncr.c

kernel/ncr: Fix double assignment.

Taken-from: FreeBSD
Delta File
+0 -1 sys/dev/disk/ncr/ncr.c
+0 -1 1 file

DragonFlyBSD — sys/dev/drm/i915 intel_display.c

kernel/i915: Fix double assignment (Linux' ed58570f55e2c5755).
Delta File
+2 -2 sys/dev/drm/i915/intel_display.c
+2 -2 1 file

DragonFlyBSD — sys/dev/drm/i915 dvo_ch7017.c

kernel/i915: Fix double assignment (Linux' 52eb92c6fe8f89c30).
Delta File
+0 -1 sys/dev/drm/i915/dvo_ch7017.c
+0 -1 1 file

DragonFlyBSD — usr.sbin/rtadvd config.c

rtadvd(8): Fix double assignment.

ra->nd_ra_flags_reserved is initialized properly a few lines below.
Assigning 0 first is unnecessary.
Delta File
+0 -1 usr.sbin/rtadvd/config.c
+0 -1 1 file

DragonFlyBSD — sys/bus/u4b/wlan if_urtw.c

kernel/urtw: Fix double assignments.

This driver hasn't been properly ported and isn't built currently. The
fix is just to silence coccinelle when searching for double assignments.

Taken-from: FreeBSD
Delta File
+2 -2 sys/bus/u4b/wlan/if_urtw.c
+2 -2 1 file

DragonFlyBSD — tools/tools/net80211/w00t/ap ap.c

tools/w00t: Fix double assignment.
Delta File
+1 -1 tools/tools/net80211/w00t/ap/ap.c
+1 -1 1 file

DragonFlyBSD — sys/bus/u4b usbdevs, sys/bus/u4b/net if_cdce.c if_cdcereg.h

kernel: port if_cdce

While here also update it to FreeBSD's

DragonFlyBSD — sys/boot/pc32/libi386 biosmem.c, sys/dev/video/bktr bktr_core.c

Fix two double assignments in the kernel and the boot code.

DragonFlyBSD — bin/df df.c, lib/libcam camlib.c

Replace local array size calculations with NELEM().
Delta File
+8 -16 usr.sbin/pfctl/pfctl_parser.c
+6 -6 usr.sbin/ppp/command.c
+4 -4 usr.sbin/ndp/ndp.c
+2 -4 lib/libipsec/pfkey.c
+3 -3 usr.sbin/rtadvd/if.c
+3 -3 sbin/ifconfig/iflagg.c
+93 -119 69 files not shown
+119 -155 75 files

DragonFlyBSD — share/man/man5 nfs.5

nfs.5: Adjust (c) year.
Delta File
+1 -1 share/man/man5/nfs.5
+1 -1 1 file

DragonFlyBSD — share/man/man5 nfs.5

nfs.5: Remove unneeded .Pp
Delta File
+0 -1 share/man/man5/nfs.5
+0 -1 1 file

DragonFlyBSD — share/man/man5 devfs.5

devfs.5: Document sysctl.

Submitted-by: zrj
Delta File
+8 -1 share/man/man5/devfs.5
+8 -1 1 file

DragonFlyBSD — share/man/man5 ffs.5

ffs.5: Document more sysctls.

Move ffs sysctls to their own section.

Submitted-by: zrj
Delta File
+25 -16 share/man/man5/ffs.5
+25 -16 1 file

DragonFlyBSD — share/man/man5 nfs.5 Makefile

Add nfs(5) manpage.

Document all sysctls.

Submitted-by: zrj
Delta File
+109 -0 share/man/man5/nfs.5
+1 -0 share/man/man5/Makefile
+110 -0 2 files

DragonFlyBSD — share/man/man7 vfs.7 Makefile

Add vfs(7) manpage.

Document all sysctls except for sizeof stuct ones.

Submitted-by: zrj
Delta File
+206 -0 share/man/man7/vfs.7
+1 -0 share/man/man7/Makefile
+207 -0 2 files

DragonFlyBSD — sys/dev/misc/syscons syscons.c

kernel - Fix syscons's visual bell

* The visual bell code was completely broken.

* Refactor the callout, and use the new callout_init_lk facility
  to deal with races.

Reported-by: snurg
Delta File
+15 -25 sys/dev/misc/syscons/syscons.c
+15 -25 1 file

DragonFlyBSD — sys/dev/misc/syscons syscons.c

kernel - Fix syscons's visual bell

* The visual bell code was completely broken.

* Refactor the callout, and use the new callout_init_lk facility
  to deal with races.

Reported-by: snurg
Delta File
+15 -25 sys/dev/misc/syscons/syscons.c
+15 -25 1 file

DragonFlyBSD — sys/dev/drm/include/linux list.h

drm/linux: Update hlist_for_each_entry_safe() from FreeBSD
Delta File
+6 -7 sys/dev/drm/include/linux/list.h
+6 -7 1 file

DragonFlyBSD — sbin/hammer hammer.h

    sbin/hammer: Fix compile warning on Linux
    
    Warned by gcc 7.3.1 in Fedora.
    Extend the size of destination string.
    dirent::d_name[] is 256 bytes in Linux (and *BSD).
    
    --
    cmd_abort.c: In function 'hammer_cmd_abort_cleanup':
    cmd_abort.c:73:44: warning: '%s' directive output may be truncated writing up to 255 
bytes into a region of size 55 [-Wformat-truncation=]
        snprintf (pidfile, PIDFILE_BUFSIZE, "%s/%s",
                                                ^~
    cmd_abort.c:73:4: note: 'snprintf' output between 10 and 265 bytes into a destination 
of size 64
        snprintf (pidfile, PIDFILE_BUFSIZE, "%s/%s",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         pidfile_loc, den->d_name);
         ~~~~~~~~~~~~~~~~~~~~~~~~~
Delta File
+1 -1 sbin/hammer/hammer.h
+1 -1 1 file

DragonFlyBSD — games/colorbars colorbars.c, sbin/init init.c

Convert from __arysize to NELEM

Try to use a single macro across the board

Discussed-with:        zrj, swildner

DragonFlyBSD — games/mille move.c extern.c

mille(6): minor nits

- adding missing header
- remove unused variable
- static where possible

Reviewed-by:        zrj

DragonFlyBSD — etc Makefile.usr

/usr/Makefile: Fix typo.
Delta File
+1 -1 etc/Makefile.usr
+1 -1 1 file

DragonFlyBSD — games/fish fish.c

fish(6): Suppress -Wdiscarded-qualifiers warning.
Delta File
+3 -3 games/fish/fish.c
+3 -3 1 file

DragonFlyBSD — games/larn bill.c

correct prior commit...
Delta File
+1 -1 games/larn/bill.c
+1 -1 1 file

DragonFlyBSD — games/larn bill.c

larn(6): fix open call

Prior to this the ", 0666" was being treated like the comma operator
rather than an argument to open(2).
Delta File
+1 -2 games/larn/bill.c
+1 -2 1 file

DragonFlyBSD — games/larn main.c Makefile

larn(6): remove HIDEBYLINK

The implementation of HIDEBYLINK is a bit wonky, doesn't really work,
and includes its own reimplementation of bzero.
Delta File
+0 -34 games/larn/main.c
+0 -2 games/larn/Makefile
+0 -36 2 files

DragonFlyBSD — games/fish fish.c pathnames.h

fish(6): fix several issues

- avoid use of _ in application namespace
- use posix_spawnp instead of system()
- prefer less(1) over more(1)
- mark usage as dead
- staticfy

This world-class programs deserves world-class source code.
Delta File
+21 -12 games/fish/fish.c
+2 -2 games/fish/pathnames.h
+23 -14 2 files

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

February 15, 2018 snapshot from https://pci-ids.ucw.cz
Delta File
+267 -48 share/misc/pci_vendors
+267 -48 1 file

DragonFlyBSD — include pthread.h

<pthread.h>: Note that we are missing some functions in #if 0'd protos.
Delta File
+1 -1 include/pthread.h
+1 -1 1 file

DragonFlyBSD — contrib/tre/lib regexec.c regcomp.c, include pthread.h spawn.h

Add missing restrict qualifiers in POSIX function definitions/declarations.

This creates no further -Wrestrict warnings with gcc80 in buildworld.

DragonFlyBSD — sbin/devd devd.cc

devd: only use correct argument in select(2)

Discussed-with:        zrj
Reviewed-by:        vangyzen at FreeBSD.org, ian at FreeBSD.org
Objected-to-by:        imp at FreeBSD.org
Delta File
+1 -1 sbin/devd/devd.cc
+1 -1 1 file

DragonFlyBSD — lib/libc/sys select.2

select(2): mark as restrict in man page

This has already been done in code, so change the man page

Discussed-with:        swildner
Delta File
+1 -1 lib/libc/sys/select.2
+1 -1 1 file

DragonFlyBSD — sys/sys cdefs.h

<sys/cdefs.h>: Add __restrict_arr to declare arrays as non-overlapping.

Based-on: glibc
Delta File
+17 -0 sys/sys/cdefs.h
+17 -0 1 file

DragonFlyBSD — sys/kern vfs_bio.c, sys/vm swap_pager.c

kernel - Vet b_cmd in swap_pager_strategy().

* swap_pager_strategy() needs to properly vet b_cmd.  This doesn't fix
  any bugs per-say, but is needed for robustness to ensure that the code
  does not accidently corrupt the swapcache in a later evolution.
Delta File
+33 -11 sys/vm/swap_pager.c
+2 -0 sys/kern/vfs_bio.c
+35 -11 2 files

DragonFlyBSD — sys/kern kern_lock.c

kernel - Fix rare missed wakeup() in lockmgr

* Fix a rare missed wakeup() case in lockmgr.  lk_count can briefly
  become (SHARED | 0 counts | (EXREQ or UPREQ)).  Three competing cores
  can then cause a situation where undo_shreq() fails to issue a wakeup()
  to threads acquiring a shared lock that are blocked waiting for the
  EXREQ or UPREQ

  Issue the missing wakeup() for this case.

* This race arises because of an optimization we make when dropping a
  shared lock.  atomic_fcmpset*() loops are fairly poor at dealing
  with concurrent increments and decrements, so undo_shreq() (which
  is also used when releasing a standard shared lock) decrements the
  shared lock count first, then deals with EXREQ or UPREQ afterwords.

  Usually a shared lock request bumps the shared lock count before
  blocking, which other lock releases use to determine the need for a
  wakeup().  However, shared lock requests cannot bump the shared lock
  count when the lock is already held SHARED but there is an EXREQ or
  UPREQ pending, because doing do basically grants the shared lock
  immediately.

  This combination leads to the brief situation which allows other cpu
  cores to squeeze in operations of their own without realizing that

    [4 lines not shown]
Delta File
+10 -0 sys/kern/kern_lock.c
+10 -0 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_chain.c

hammer2 - Add missing bkvasync() (2)

* Add another missing bkvasync().  This fixes a temporary (memory-only)
  corruption issue which crops up in synth tests.
Delta File
+4 -1 sys/vfs/hammer2/hammer2_chain.c
+4 -1 1 file