Displaying 1 50 of 272,383 commits (0.076s)

FreeBSD — projects/release-vmimage/release/tools vmimage.subr

Fix indentation nit.

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/release-vmimage/release/tools vmimage.subr

In vm_extra_install_packages(), only bootstrap pkg(8)
if VM_EXTRA_PACKAGES is empty.

In vm_extra_pre_umount(), cleanup downloaded packages
if pkg(8) was bootstrapped earlier.

Inspired by:        cperciva
Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/9/lib/libc/stdio open_memstream.3

MFC r273760:
Fix prototypes.

FreeBSD — stable/10/lib/libc/stdio open_memstream.3

MFC r273760:
Fix prototypes.

FreeBSD — stable/10/sys/boot/common load_elf.c

MFC r274407

  Fix incorrect reading of 32-bit modinfo by 64-bit loaders.

  The various structures in the mod_metadata set of a FreeBSD kernel and
  modules contain pointers. The FreeBSD loader correctly deals with a
  mismatch in loader and kernel pointer size (e.g. 32-bit i386/ppc
  loader, loading 64-bit amd64/ppc64 kernels), but wasn't dealing with
  the inverse case where a 64-bit loader was loading a 32-bit kernel.
Delta File
+22 -0 stable/10/sys/boot/common/load_elf.c
+22 -0 1 file

FreeBSD — head/sys/arm/include cpuconf.h

The arm PJ4B cpu is armv7 architecture, not v6.

If this feels like deja vu... the last time this was fixed in this file
only ARM_MMU_V6 was fixed, this time it's ARM_ARCH_V6 (and this time I
searched for other occurrances of pj4b in here).
Delta File
+2 -2 head/sys/arm/include/cpuconf.h
+2 -2 1 file

FreeBSD — head/sys/cam/ctl ctl_frontend_iscsi.c

Read cs_outstanding_ctl_pdus before incrementing it for NEXUS RESET task.

This removes extra log noise on idle connection termination.

MFC after:        1 week

FreeBSD — stable/10/usr.sbin/ctld ctld.c isns.c

MFC r273635, r273793, r274797: Add basic iSNS client to the iSCSI target.

This makes ctld(8) register its iSCSI targets and portals on configured
iSNS servers to allow initiators find them without active discovery.

Fetching of allowed initiators from iSNS is not implemented now, so target
ACLs still should be configured manually.

Relnotes:        Yes
Sponsored by:        iXsystems, Inc.

FreeBSD — head/gnu/usr.bin/binutils/as as.1

Fix rendering with mandoc
Delta File
+1 -2 head/gnu/usr.bin/binutils/as/as.1
+1 -2 1 file

FreeBSD — head/sys/conf files.arm options.arm

Add ARMV6 as an arm option.  This will cause obscure magic in config(8)
to automatically set the armv6 option when MACHINE_ARCH is armv6.  That
allows replacing ever-growing lists of cpu names as options to compile
a given file with the using either "optional armv6" or "optional !armv6".

FreeBSD — head/usr.sbin/config mkmakefile.c

Fix the negation (!) operator so that it binds only to the word that
immediately follows it, which means 'not' has to be reset every time an
option word or device name is processed.
Delta File
+12 -12 head/usr.sbin/config/mkmakefile.c
+12 -12 1 file

FreeBSD — head/gnu/usr.bin/binutils/ld ld.1

Fix rendering with mandoc
Delta File
+1 -2 head/gnu/usr.bin/binutils/ld/ld.1
+1 -2 1 file

FreeBSD — head/gnu/usr.bin/binutils/strip strip.1

Fix rendering with mandoc

FreeBSD — head/lib/libc/sys mount.2

Ta is only allowed with Bl -column not in Bl -item
Delta File
+1 -1 head/lib/libc/sys/mount.2
+1 -1 1 file

FreeBSD — head/usr.bin/lex lex.1

Workaround help2man defficiency that prevents mandoc from rendering
Delta File
+2 -3 head/usr.bin/lex/lex.1
+2 -3 1 file

FreeBSD — head/sys/amd64/vmm vmm.c

Change the lower bound for guest vmspace allocation to 0 instead of
using the VM_MIN_ADDRESS constant.

HardenedBSD redefines VM_MIN_ADDRESS to be 64K, which results in
bhyve VM startup failing. Guest memory is always assumed to start
at 0 so use the absolute value instead.

Reported by:        Shawn Webb, lattera at gmail com
Reviewed by:        neel, grehan
Obtained from:        Oliver Pinter via HardenedBSD
https://github.com/HardenedBSD/hardenedBSD/commit/23bd719ce1e3a8cc42fc8317b1c7c6d9e74dcba0
MFC after:        1 week
Delta File
+1 -1 head/sys/amd64/vmm/vmm.c
+1 -1 1 file

FreeBSD — head/gnu/usr.bin/groff/tmac Makefile, head/tools/build/mk OptionalObsoleteFiles.inc

Install mdoc(7) and man(7) from mdoc instead of the one from groff

FreeBSD — head/usr.bin/clang/clang clang.1

Regenerate the manpage in mdoc(7) format using pod2mdoc

Now mandoc can render the manpage properly
Delta File
+280 -433 head/usr.bin/clang/clang/clang.1
+280 -433 1 file

FreeBSD — head/sys/mips/include cache_mipsNN.h

Correct the functions declaration.

FreeBSD — head/contrib/llvm/tools/lldb/docs lldb.1

Fix an error (case on a .Nm) preventing mandoc from rendering the manpage
Fix mandoc warnings: extrat space at end of lines

FreeBSD — head/sys/dev/mpt mpt.c

Squelch a (bogus) used before init warning when building with gcc.
Delta File
+1 -0 head/sys/dev/mpt/mpt.c
+1 -0 1 file

FreeBSD — head/lib/libc/sys poll.2, head/lib/libdpv dpv.3

Misc mdoc fixes:

- Remove superfluous paragraph macros.
- Remove/fix empty or incorrect macros.
- Sort sections into conventional order.
- Terminate quoted strings properly.
- Remove EOL whitespace.

FreeBSD — head/usr.sbin/config main.c

Consider the negation operator (!) to be a word even if it is not followed
by whitespace.  This allows "optional !foo" which is what most programmers
are naturally going to tend to do as opposed to "optional ! foo".
Delta File
+5 -0 head/usr.sbin/config/main.c
+5 -0 1 file

FreeBSD — head/sys/vm swap_pager.c

\n at end of panicstr is redundant.

Submitted by:        alc
Delta File
+1 -1 head/sys/vm/swap_pager.c
+1 -1 1 file

FreeBSD — head/sys/dev/ath/ath_hal/ar5212 ar5212_reset.c

Fix the following -Werror warning from clang 3.5.0, while building the
ath kernel module:

sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: error: taking the absolute value of 
unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) {
                    ^
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: note: remove the call to '__builtin_abs' 
since unsigned values cannot be negative
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
1 error generated.

This warning occurs because both lp[0] and target are unsigned, so the
subtraction expression is also unsigned, and calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by:        adrian

    [2 lines not shown]

FreeBSD — projects/routing/sys/net route.c

Finish r274335#2: put RT_LOCK_DESTROY() back.
Delta File
+1 -0 projects/routing/sys/net/route.c
+1 -0 1 file

FreeBSD — projects/routing/sys/net rt_nhops.c

Do not try to unlock lle which is not locked.
This is not a proper fix, proper one is on the way.

FreeBSD — projects/routing/sys/netinet in.c

Fix r274855: use proper unlock method.
Delta File
+3 -3 projects/routing/sys/netinet/in.c
+3 -3 1 file

FreeBSD — head/sys/dev/sound/usb uaudio.c

Don't use the synchronization endpoint unless referenced by the
isochronous endpoint descriptor used for the data transfers, hence the
synchronization feature might not be supposed to be supported [yet].
This makes seamless playback synced with the USB HOST clock work with
the DN32-USB module for Midas audio systems and possibly other similar
products from Klark Teknik.

MFC after:        1 week
Delta File
+13 -2 head/sys/dev/sound/usb/uaudio.c
+13 -2 1 file

FreeBSD — projects/routing/sys/net if_llatbl.c if.c, projects/routing/sys/netinet if_ether.c in.c

Do more fine-grained lltable locking: use table runtime lock as rare
as we can.

FreeBSD — projects/routing/sys/net if_llatbl.c if_llatbl.h, projects/routing/sys/netinet in.c

* Add lltable llt_hash callback
* Move lltable items insertions/deletions to generic llt code.

FreeBSD — projects/sendfile/lib/libprocstat udf.c, projects/sendfile/sys/kern kern_resource.c

Merge head r258543 through r274914.

FreeBSD — head/sys/kern vfs_default.c vnode_if.src, head/sys/sys buf.h vnode.h

Merge from projects/sendfile:

o Provide a new VOP_GETPAGES_ASYNC(), which works like VOP_GETPAGES(), but
  doesn't sleep. It returns immediately, and will execute the I/O done handler
  function that must be supplied as argument.
o Provide VOP_GETPAGES_ASYNC() for the FFS, which uses vnode_pager.
o Extend pagertab to support pgo_getpages_async method, and implement this
  method for vnode_pager.

Reviewed by:        kib
Tested by:        pho
Sponsored by:        Netflix
Sponsored by:        Nginx, Inc.

FreeBSD — head/lib/libprocstat udf.c

Do not include buf.h.
Delta File
+0 -1 head/lib/libprocstat/udf.c
+0 -1 1 file

FreeBSD — projects/sendfile/sys/vm swap_pager.c vm_pager.h

Consistently use function type without asterisk.

FreeBSD — head/sys/kern kern_resource.c, head/sys/sys racct.h resourcevar.h

ifdef RACCT ui_racct_foreach and struct uidinfo's ui_racct

Change racct_ create and destroy to macros evaluating to nothing without RACCT
so that their callers passing ui_racct don't have to be ifdefed.

FreeBSD — projects/sendfile/sys/vm vnode_pager.c vm_pager.h

Various style(9) changes.

Submitted by:        kib

FreeBSD — stable/10/usr.sbin/ctld chap.c, stable/10/usr.sbin/iscsid chap.c

MFC r274328:
Make both iSCSI initiator and target support base64 encoded CHAP data.

While all tested initiators and targets use hex-encoded CHAP data, RFC also
allows base64 encoding there, and Microsoft certificaition tool uses it.

FreeBSD — projects/sendfile/bin/sh parser.c expand.c, projects/sendfile/contrib/binutils/gas/config tc-arm.c

Merge head r258543 through r274907.

FreeBSD — head/sys/ufs/ufs ufsmount.h

buf.h is not needed here, and pollutes when ufsmount.h is included
from userland code.

Sponsored by:        Nginx, Inc.
Delta File
+0 -2 head/sys/ufs/ufs/ufsmount.h
+0 -2 1 file

FreeBSD — head/sys/ufs/ffs ffs_suspend.c, head/sys/ufs/ufs ufs_acl.c ufs_gjournal.c

Include required files directly instead of pollution via ufs/ufsmount.h.

Sponsored by:        Nginx, Inc.

FreeBSD — head/usr.bin/man man.sh

Fix comments
Delta File
+4 -2 head/usr.bin/man/man.sh
+4 -2 1 file

FreeBSD — head/sys/kern kern_descrip.c

filedesc: plug a test for impossible condition in fgetvp_rights
Delta File
+1 -3 head/sys/kern/kern_descrip.c
+1 -3 1 file

FreeBSD — head/usr.bin/man man.sh

Fix typo
Delta File
+1 -1 head/usr.bin/man/man.sh
+1 -1 1 file

FreeBSD — projects/bmake/pkgs/pseudo universe hosttools, projects/bmake/pkgs/pseudo/hosttools Makefile.depend Makefile

Leverage dirdeps.mk by tweaking _DIRDEP_USE_LEVEL
so we can have a 2nd stage of dependencies computed in parallel.

Reviewed by: marcel
Delta File
+73 -0 projects/bmake/pkgs/pseudo/universe/Makefile
+24 -0 projects/bmake/pkgs/pseudo/hosttools/Makefile.depend
+15 -0 projects/bmake/pkgs/pseudo/universe/Makefile.depend
+3 -0 projects/bmake/pkgs/pseudo/hosttools/Makefile
+0 -0 projects/bmake/pkgs/pseudo/universe/
+0 -0 projects/bmake/pkgs/pseudo/hosttools/
+115 -0 6 files

FreeBSD — head/usr.bin/man man.sh

Change man(1) to use mandoc to render manpages

man(1) now first test the manpage to run with mandoc to make sure it can be
rendered.
In case groff cannot be found (because base has been built WITHOUT_GROFF) it
recommands to install groff from the packages
Delta File
+44 -4 head/usr.bin/man/man.sh
+44 -4 1 file

FreeBSD — head/usr.sbin/bsnmpd/modules/snmp_hostres hostres_snmp.c

Fix the following -Werror warnings from clang 3.5.0, while building
bsnmpd's snmp_hostres module:

usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 
'abs' given an argument of type 'const long' but has parameter of type 'int' which may 
cause truncation of value [-Werror,-Wabsolute-value]
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' 
instead
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^~~
                          labs
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 
'abs' given an argument of type 'const long' but has parameter of type 'int' which may 
cause truncation of value [-Werror,-Wabsolute-value]
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' 
instead
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^~~
                            labs

Since tm::tm_gmtoff is a long, use labs(3) instead.

    [2 lines not shown]

FreeBSD — head/bin/sh error.c parser.c

sh: Prepend "$0: " to error messages if there is no command name.
Delta File
+2 -0 head/bin/sh/error.c
+2 -0 head/bin/sh/parser.c
+4 -0 2 files

FreeBSD — head/usr.sbin/rtadvd rtadvd.c

Fix the following -Werror warnings from clang 3.5.0, while building
usr.sbin/rtadvd:

usr.sbin/rtadvd/rtadvd.c:1291:7: error: taking the absolute value of unsigned type 
'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1291:7: note: remove the call to 'abs' since unsigned values 
cannot be negative
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^~~
usr.sbin/rtadvd/rtadvd.c:1324:7: error: taking the absolute value of unsigned type 
'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1324:7: note: remove the call to 'abs' since unsigned values 
cannot be negative
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^~~
2 errors generated.

These warnings occur because both preferred_time and pfx_pltimeexpire
are uint32_t's, so the subtraction expression is also unsigned, and
calling abs() is a no-op.


    [7 lines not shown]
Delta File
+8 -2 head/usr.sbin/rtadvd/rtadvd.c
+8 -2 1 file

FreeBSD — head/usr.bin/preconv Makefile

Lower warnings to fix build with gcc
Delta File
+2 -0 head/usr.bin/preconv/Makefile
+2 -0 1 file