Displaying 1 50 of 36,744 commits (0.009s)

DragonFlyBSD — lib/libc_r/uthread uthread_attr_setschedpolicy.c

libc_r: Tiny adjustment, git add.

Got lost for fdc2e97852d952eedc66a271c9ae1c12f246934b

DragonFlyBSD — lib/libc_r/uthread uthread_attr_setschedpolicy.c, lib/libpthread pthread_attr.3

libpthread: Some more adjustments for pthread_attr_setschedpolicy().

* Adjust libc_r too.

* Remove unneeded braces.

* Adjust manual page.

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

kernel/psm: Support newer Synaptics touchpads

Taken-from: FreeBSD
Delta File
+9 -4 sys/dev/misc/psm/psm.c
+9 -4 1 file

DragonFlyBSD — sys/dev/netif/ath/ath_hal ah_internal.h, sys/dev/netif/ath/ath_hal/ah_regdomain ah_rd_freqbands.h ah_rd_domains.h

ath_hal: Add FCC6_FCCA regulatory domain (0x0014)

Tested on TP-Link N900, AR9380, regdomain 0x0014 (FCC6_FCCA)

Taken From FreeBSD:        SVN rev 306323 (25 SEP 2016)

Thanks Adrian!

DragonFlyBSD — lib/libc/sys clock_gettime.2, sys/kern kern_time.c

kernel/clock_gettime: Various fixes.

* Fix CLOCK_PROF and CLOCK_VIRTUAL to behave like FreeBSD's. They are
  not meant to return the values of ITIMER_PROF and ITIMER_VIRTUAL
  (which are decreasing, see getitimer(2)), like they were implemented
  by 91810a6f0686477493e9915e98cfc5adcbe91363. This also fixes

* Fix CLOCK_PROCESS_THREAD_ID. It was adding the values wrongly in a
  way that could cause tv_nsec to overflow (i.e. become >= 1000000000).

* Fix clock_getres() for CLOCK_{PROCESS,THREAD}_CPUTIME_ID.

* Mention CLOCK_{PROCESS,THREAD}_CPUTIME_ID in clock_gettime()'s manual

* Bring in some minor manual page fixes from FreeBSD.

Reported-by:   zhtw
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2951>
Delta File
+39 -36 sys/kern/kern_time.c
+24 -16 lib/libc/sys/clock_gettime.2
+63 -52 2 files

DragonFlyBSD — sys/conf files, sys/dev/netif/iwm if_iwm_config.h if_iwm_7000.c

if_iwm - Move struct iwm_cfg chipset configs to if_iwm_7000.c and _8000.c

* This is more similar to how code/definitions are distributed in
  Linux's iwlwifi.

* This should make recognizing new chipset variants, and adding additional
  flags from the Linux iwlwifi code easier, without blowing up if_iwm.c

Taken-From: Linux iwlwifi

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - Simplify device id matching code a bit.

* Just add the struct iwm_cfg pointers to the iwm_devices array, to get
  rid of the large switch clause.
Delta File
+33 -36 sys/dev/netif/iwm/if_iwm.c
+33 -36 1 file

DragonFlyBSD — contrib/wpa_supplicant/wpa_supplicant scan.c

wpa_supplicant: Avoid cpp warning during buildworld.

Used MIN() macro is essentially the same to one in sys/param.h but
for the sake of argument it is better to avoid warning by simply
using system header variant.

Note: there is issue with WPA_OUI_TYPE definition so leave WANRS at 0.

DragonFlyBSD — crypto/openssh auth-pam.c session.c, secure/usr.sbin/sshd Makefile

OpenSSH: Add missing prototypes and bump WARNS to 3.

Just include sshlogin.h header and make two functions static (used locally).

DragonFlyBSD — crypto/openssh session.c

OpenSSH: Suppress last warning in session.c

Use __DECONST() trick, that is safe here because login_getcapstr() either
returns copy on success or error string that in this case is passed as
def_nl and checked if return pointer is != def_nl.
Delta File
+3 -2 crypto/openssh/session.c
+3 -2 1 file

DragonFlyBSD — crypto/openssh sftp-common.c

OpenSSH: Suppress warning on login_getcapstr().

Taken-from: FreeBSD (r255767 hidden in merge commit)
Delta File
+1 -1 crypto/openssh/sftp-common.c
+1 -1 1 file

DragonFlyBSD — contrib/gcc-4.7/gcc/c-family c-opts.c

    gcc47: Suppress last codegen warning.
    Turns out gcc(compilation as C) differentiates when initializing global variables that
    are declared 'extern' on the same line (removal of extern attribute is ok, includes
    c-common.h header that properly marks c_family_lang_mask global variable as extern).
    Note: do not apply same change to gcc50 since it is compiled as C++ that is not 

DragonFlyBSD — contrib/gcc-4.7/libstdc++-v3/config/locale/dragonfly c_locale.cc

gcc47: Fix misplaced NULL usage in strings.

Specific to c++, just do not do it.

DragonFlyBSD — contrib/gcc-4.7/libobjc sendmsg.c

gcc47: Backport objc fix from gcc trunk.

This prevents spurious warnings when compiling with gcc50.
Fix is needed for objc ABI inline semantics.
Also why we even provide objc language support in base?

Taken-from: gcc trunk (trunk at 220175)
Delta File
+8 -0 contrib/gcc-4.7/libobjc/sendmsg.c
+8 -0 1 file

DragonFlyBSD — gnu/usr.bin/cc47 Makefile.inc

gcc47: Prevent -Wswitch-bool noise.

In gcc v5 and later -Wswitch-bool is default and creates a lot of
warnings when building gcc v4.7 with gcc v5 compiler.
Since backporting patches to generate "compatible" gcc private headers
would be very error-prune, just take lkml.org/2015/5/27/941 approach.
At this point we only need to catch real issues for backup compiler.
Delta File
+5 -0 gnu/usr.bin/cc47/Makefile.inc
+5 -0 1 file

DragonFlyBSD — usr.bin/crunch/crunchgen crunched_main.c crunchgen.c

crunchgen(1): Fix few spurious warnings.

Just add prototypes to help compiler detecting real bugs and not
pollute build logs with false positives.

Note: made crunch_help() static, seems to be fine.

DragonFlyBSD — lib/libncurses Makefile.inc

libncurses: Set WANRS at 5.

Turns out private libncurses was completely ignoring WARNS and running loose,
so after previous few changes connect to global lib/Makefile.inc and set
WARNS at 5 (6 is an overkill, also does not survive FORMAT_AUDIT).
Delta File
+4 -0 lib/libncurses/Makefile.inc
+4 -0 1 file

DragonFlyBSD — contrib/ncurses/ncurses/tinfo read_termcap.c

libncurses: Avoid warning when calling cgetent().

Since both read_termcap.c static version of cgetent() and cgetent(3) has second
argument as char** just use __DECONST() trick so to not have big changes.
It should be safe to do that, base libncurses is a private library now.

DragonFlyBSD — sys/platform/pc64/vmm vmx.c

kernel/vmm - Fix build with VMM_DEBUG
Delta File
+2 -1 sys/platform/pc64/vmm/vmx.c
+2 -1 1 file

DragonFlyBSD — contrib/ncurses/ncurses/tinfo lib_baudrate.c

libncurses: Avoid -Woverflow in baud rates.

NCURSES_OSPEED has type - short so anything >= B38400 overflows.
Since changing NCURSES_OSPEED to use int is an ABI change and given
that overflown values are still unique and only used as identifiers
there is nothing wrong by explictly casting it to used type.

DragonFlyBSD — contrib/ncurses/progs dump_entry.c

bootstrap: Expand BOOTSTRAPPING case to avoid warning.

Addition to 6d3bd8e3942560036cf2aec0d98a65819c5f3b4c that allows to prevent
"warning: 'encode_b64' defined but not used [-Wunused-function]"

DragonFlyBSD — sys/conf files, sys/dev/netif/iwm if_iwm_fw.c if_iwm_fw.h

if_iwm - Add support for Firmware paging, needed for newer 8000C firmware.

* Uses the IWM_FW_PAGING_BLOCK_CMD firmware command to tell the firmware
  what memory ranges to use for paging.

Taken-From: Linux iwlwifi

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c if_iwm_util.c

if_iwm - Move iwm_dma_contig_alloc/_free functions to if_iwm_util.c.

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - Fix typo in commit a7697ea01c11fd493aec52260a02f31df680eb91.

* The sc->sc_uc.uc_error_event_table value is now at sc->error_event_table,
  and not sc->umac_error_event_table.
Delta File
+1 -1 sys/dev/netif/iwm/if_iwm.c
+1 -1 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - With the previous commits, this DELAY no longer seems to be needed.
Delta File
+0 -5 sys/dev/netif/iwm/if_iwm.c
+0 -5 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c if_iwmvar.h

if_iwm - Get rid of unneeded IWM_FWDMASEGSZ and IWM_FWMAXSIZE constants

* We only need IWM_FH_MEM_TB_MAX_LENGTH bytes for the fw_dma memory.

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c if_iwmvar.h

if_iwm - Sync IWM_MVM_ALIVE waiting and start_fw handling with iwlwifi.

* Use the notification wait API, like it's done in the Linux iwlwifi code,
  to wait for the IWM_MVM_ALIVE notification.

* This also should fix some firmware load interrupt issues, and errors
  in the nic lock using.

Taken-From: Linux iwlwifi

DragonFlyBSD — sys/contrib/dev/iwm iwm-8000C-16.fw.uu

iwmfw - Fixup revert to version 16 for the 8000C firmware.
Delta File
+52,262 -0 sys/contrib/dev/iwm/iwm-8000C-16.fw.uu
+52,262 -0 1 file

DragonFlyBSD — include pthread.h, lib/libc_r/uthread uthread_mattr_kind_np.c uthread_mutex.c

<pthread.h>: Avoid namespace pollution.

Rename MUTEX_TYPE_MAX -> PTHREAD_MUTEX_TYPE_MAX to avoid clashes
with types in user source codes. Adjust all use cases.

While there, remove deprecated unused compat mutex types.

DragonFlyBSD — include pthread.h

<pthread.h>: Mark some __nonnull(x) cases.
Delta File
+85 -62 include/pthread.h
+85 -62 1 file

DragonFlyBSD — sys/conf files, sys/contrib/dev/iwm iwm-8000C-17.fw.uu

if_iwm - Revert 8000C firmware (for AC8260) to version 16 for now.

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - Remove 1s delay after fw loading. Can't reproduce issues on AC8260.

The 1s delay was added in the update to version 16 fw, where Family 8000
support was added.
Delta File
+0 -6 sys/dev/netif/iwm/if_iwm.c
+0 -6 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - SCAN_ABORT_UMAC response doesn't use a wide id
Delta File
+1 -1 sys/dev/netif/iwm/if_iwm.c
+1 -1 1 file

DragonFlyBSD — include pthread.h

<pthread.h>: Visibility changes.

While there, remove prototypes of pthread_attr_{get,set}floatstate()
looks like they never were implemented, so do not advertise them.
Delta File
+4 -3 include/pthread.h
+4 -3 1 file

DragonFlyBSD — include pthread.h pthread_np.h

<pthread.h>: Perform some style(9) cleanup.

Change indentation to a single tab, since both protype names and arguments
are quite long and later added attribute decorations will only make it worse.

Strictly no functional change, just shifting stuff around for readability and
upcoming changes.
Delta File
+157 -162 include/pthread.h
+17 -20 include/pthread_np.h
+174 -182 2 files

DragonFlyBSD — include stdlib.h string.h, sys/sys malloc.h

Use recently added attributes in few standard headers.

There attributes are to assits compiler making better analysis
doring compilation time. Like branch prediction and hinting.

While there, for now prefer to use __attribute__((__noreturn__)) to
_Noreturn, since neither OpenBSD or NetBSD has it at all and in our
variant we don't handle it in c++ case ([[noreturn]]) anyway.
Looks to be only a workaround for some old clang++ version.
Delta File
+11 -9 sys/sys/malloc.h
+9 -9 include/stdlib.h
+2 -2 include/string.h
+1 -1 include/wchar.h
+23 -21 4 files

DragonFlyBSD — include stdlib.h

<stdlib.h>: Change visibility of few POSIX extensions to ISO C.

Seems it should be like this.
Delta File
+5 -6 include/stdlib.h
+5 -6 1 file

DragonFlyBSD — include stdlib.h, sys/sys malloc.h

style(9): Perform some cleanup in few standard headers.

For upcomming changes. No functional change.

Kindly-requested-by: swildner@
Delta File
+37 -37 sys/sys/malloc.h
+11 -12 include/stdlib.h
+48 -49 2 files

DragonFlyBSD — gnu/usr.bin/cc50 Makefile.inc, gnu/usr.bin/cc50/cc_tools/libcpp Makefile

bootstrap: Fix old boostrapping issue once and for all.

This was fallout after iconv() removal of 'const' attribute to conform
with POSIX. All the later hacks are starting to accumulate and prevent
easy further base system upgrading. So given that main issue is c++
specific and only needed for bootstraping process deal with it straight
and remove all hacks(include shoehornings) that were caused by it.

To fix bootstrapping problems add WORLD_VERSION variable that indicates
current DragonFly base version and could be used to retrospectively
help bootstrapping from older releases. Makefile changes that depend on
WORLD_VERSION should *only* be used as a once switch and during native
compilations should *not* change default world makefiles logic.

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

vkernel - Invalidate pte before setting attributes to the vm_page

- Fixes a problem at mountroot time where it doesn't find any disk
  even though the disk is detected earlier.

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c if_iwmreg.h

if_iwm - Recognize the IWM_UCODE_TLV_FW_MEM_SEG firmware section type.

* Will be needed for loading version 22 of 7265D firmware.

DragonFlyBSD — sys/dev/netif/iwm if_iwm_7000.c

if_iwm - Switch 7265D and 3165 devices to 7265D firmware.
Delta File
+2 -4 sys/dev/netif/iwm/if_iwm_7000.c
+2 -4 1 file

DragonFlyBSD — sys/kern lwkt_ipiq.c, sys/platform/vkernel64/x86_64 mp.c

vkernel - Fix a vkernel lockup on startup

- During ap_init() any pending IPIs is processed manually so
  clear gd_npoll as the real kernel does.
- Do not disable interrupts for vkernels during lwkt_send_ipiq3()
  because they don't seem to be re-enabled afterwards as they should.
  I'm not entirely sure this is the right fix, more investigation
  is required.

DragonFlyBSD — sys/sys cdefs.h

<sys/cdefs.h>: Be more careful with _Noreturn.

With modern gcc started using g++ for bootstraps _Noreturn must
be handled with a bit of extra care.
Delta File
+2 -0 sys/sys/cdefs.h
+2 -0 1 file

DragonFlyBSD — sys/sys cdefs.h

<sys/cdefs.h>: Add support for alloc_align, alloc_size and malloc attributes.

  * __alloc_align tells the compiler that one of the arguments is a
    minimal alignment for pointer to help with pointers analysis.
  * __alloc_size tells the compiler that one of the arguments is a
    size of a pointer returned by function.
  * __malloclike tells the compiler that returned pointer does not
    alias any other pointer to help futher optimizations.

While there, add partial support for clang (as it is in FreeBSD).
Delta File
+19 -1 sys/sys/cdefs.h
+19 -1 1 file

DragonFlyBSD — sys/sys cdefs.h

<sys/cdefs.h>: Move __warn_unused_result__ to 3.4

Looks like it is reliably available only at 3.4 so change it.
Delta File
+6 -6 sys/sys/cdefs.h
+6 -6 1 file

DragonFlyBSD — sys/sys cdefs.h

<sys/cdefs.h>: Style(9) fixes.

Mostly tabs, no functional change except for removal
of extra semicolon in __strong_reference() macro.
Delta File
+26 -28 sys/sys/cdefs.h
+26 -28 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwmreg.h if_iwm.c

if_iwm - Recognize IWM_DTS_MEASUREMENT_NOTIF_WIDE notification.

* Add the command groups enum, and the iwm_phy_ops_subcmd_ids enum
  to if_iwmreg.h definitions.

* The IWM_DTS_MEASUREMENT_NOTIF_WIDE notification will be generated by
  version 17 firmware.

Taken-From: Linux iwlwifi

DragonFlyBSD — sys/conf files, sys/contrib/dev/iwm iwm-7265-17.fw.uu iwm-7265-16.fw.uu

iwmfw - Update to version 17 firmware for all devices supported by iwm.

DragonFlyBSD — lib/libthread_xu/thread thr_exit.c

pthread: Split pthread_exit() to smaller chunks.

To see what is needed for thread unwind support.
Delta File
+12 -2 lib/libthread_xu/thread/thr_exit.c
+12 -2 1 file