Displaying 1 50 of 300,533 commits (0.026s)

FreeBSD — head/usr.bin/calendar/calendars/ru_RU.UTF-8 calendar.pagan

Remove another vestige of scripted conversion

FreeBSD — head/sbin/resolvconf Makefile

resolvconf(8) now needs an additional @RESTARTCMD@ replacement when installing.

After r303062, which brought openresolv 3.8.1, we need to replace an
additional @RESTARTCMD@ in resolvconf.

Reported by:        Guy Yur
X-MFC with:        r303062
Delta File
+1 -0 head/sbin/resolvconf/Makefile
+1 -0 1 file

FreeBSD — head/usr.bin/calendar/calendars/ru_RU.UTF-8 calendar.common

Remove vestige of scripted conversion

FreeBSD — head/lib/libc/gen glob.c

In addition to prev. commit. Since potentially glob2() can return error
without setting errno, restore errno before its call.
Delta File
+2 -0 head/lib/libc/gen/glob.c
+2 -0 1 file

FreeBSD — head/lib/libc/gen glob.c glob.3

Both C99 and POSIX directly prohibits any standard function to set errno
to 0. Breaking this rule in 2001 NetBSD hack was imported which attempts
to workaround very limited glob() return codes amount. Use POSIX-compatible
workaround now with E2BIG which can't comes from other functions used
instead of prohibited 0.
Delta File
+25 -17 head/lib/libc/gen/glob.c
+1 -1 head/lib/libc/gen/glob.3
+26 -18 2 files

FreeBSD — head/sys/kern kern_sx.c

sx: increment spin_cnt before cpu_spinwait in xlock

The change is a no-op only done for consistency with the rest of the file.
Delta File
+1 -1 head/sys/kern/kern_sx.c
+1 -1 1 file

FreeBSD — head/sys/kern kern_rwlock.c

rwlock: s/READER/WRITER/ in wlock lockstat annotation
Delta File
+1 -1 head/sys/kern/kern_rwlock.c
+1 -1 1 file

FreeBSD — head/sys/dev/ntb/ntb_hw ntb_hw.c

Wrap previous MSIX workaround into #ifndef EARLY_AP_STARTUP.

With EARLY_AP_STARTUP we can successfully negotiate MSIX earlier.

Requested by:        jhb@
Delta File
+4 -0 head/sys/dev/ntb/ntb_hw/ntb_hw.c
+4 -0 1 file

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

Rename devname to udevname after including stdlib.h in r303445
as gcc trips over the devname(3) and reports 'shadows a global declaration'.

This should unbreak gcc based world builds.
Delta File
+9 -9 head/usr.sbin/uathload/uathload.c
+9 -9 1 file

FreeBSD — head/sys/dev/pci pci_pci.c

Try to declare _hw_pci for all sysctl cases needed after r303497.

MFC after:        5 days
X-MFC with:        r303497
Delta File
+3 -1 head/sys/dev/pci/pci_pci.c
+3 -1 1 file

FreeBSD — stable/11/release/tools ec2.conf

MFC r302929: Now that potentially buggy versions of Xen are automatically
detected (see r302635, MFCed as r302895), there is no need to force msix
interrupt migration off via loader.conf.

Reverts:        r302184
Approved by:        re (gjb)
Delta File
+0 -6 stable/11/release/tools/ec2.conf
+0 -6 1 file

FreeBSD — head/sys/dev/iwm if_iwm.c

[iwm] Fix iwm_poll_bit() usage in iwm_stop_device(), fixup r303418.

* iwm_poll_bit() returns 1 on success and 0 on failure, whereas
  iwl_poll_bit() in Linux's iwlwifi returns >= 0 on success and < 0 on
  failure.

* Because of the wrong iwm_poll_bit return code check, no warning was
  printed if tx DMA stopping failed.

Approved by:        adrian (mentor)
Differential Revision:        https://reviews.freebsd.org/D7371
Delta File
+2 -2 head/sys/dev/iwm/if_iwm.c
+2 -2 1 file

FreeBSD — head/sys/boot/common interp_parse.c

Improve boot loader quote parsing

parse() is the boot loader's interp_parse.c is too naive about quotes

both single and double quotes were allowed to be mixed, and single
quotes did not follow the usual semantics (re variable expansion).

The old code did not check for terminating quotes

This update implements:
 * distinguishing single and double quote
 * variable expansion will not be done inside single quote protected area
 * will preserve inner quote for values like "value 'some list'"
 * ending quote check.

this diff does not implement ending quote order check, it shouldn't
be too hard, needs some improvements on parser state machine.

PR:                204602
Submitted by:        Toomas Soome <tsoome at me.com>
Relnotes:        yes
Differential Revision:        https://reviews.freebsd.org/D6000
Delta File
+25 -7 head/sys/boot/common/interp_parse.c
+25 -7 1 file

FreeBSD — head/sys/boot/common bcache.c

bcache should support reads shorter than sector size

dosfs (fat file systems) can perform reads of partial sectors
bcache should support such reads.

Submitted by:        Toomas Soome <tsoome at me.com>
Reviewed by:        cem
Differential Revision:        https://reviews.freebsd.org/D6475
Delta File
+3 -1 head/sys/boot/common/bcache.c
+3 -1 1 file

FreeBSD — head/sys/dev/ntb/ntb_hw ntb_hw.c

Block MSIX negotiation until SMP started and IRQ reshuffled.
Delta File
+15 -0 head/sys/dev/ntb/ntb_hw/ntb_hw.c
+15 -0 1 file

FreeBSD — head/sys/dev/ntb/if_ntb if_ntb.c

Make MAC address generation more random.

'ticks' approach does not work at boot time.
Delta File
+1 -2 head/sys/dev/ntb/if_ntb/if_ntb.c
+1 -2 1 file

FreeBSD — stable/10/share/man/man9 mutex.9 Makefile, stable/10/sys/kern kern_mutex.c

MFC r303211:
Implement mtx_trylock_spin(9).

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

Fix infinite loops introduced at r303429.
Delta File
+2 -2 head/sys/dev/ntb/ntb.c
+2 -2 1 file

FreeBSD — stable/11/bin/ps ps.c

MFC r303213:
Add missed required call to xo_finish() when only header is printed.

Approved by:        re (gjb)
Delta File
+1 -0 stable/11/bin/ps/ps.c
+1 -0 1 file

FreeBSD — stable/11/share/man/man9 mutex.9 Makefile, stable/11/sys/kern kern_mutex.c

MFC r303211:
Implement mtx_trylock_spin(9).

Approved by:        re (gjb)

FreeBSD — head/sys/kern kern_tc.c

Cache getbintime(9) answer in timehands, similarly to getnanotime(9)
and getmicrotime(9).

Suggested and reviewed by:        bde (previous version)
Sponsored by:        The FreeBSD Foundation
MFC after:        1 month
Delta File
+8 -10 head/sys/kern/kern_tc.c
+8 -10 1 file

FreeBSD — head/usr.bin/indent indent.c

Use nitems() from sys/param.h.

MFC after:        2 weeks.
Sponsored by:        gandi.net (BSD Day Taiwan)
Delta File
+1 -1 head/usr.bin/indent/indent.c
+1 -1 1 file

FreeBSD — head/usr.bin/procstat procstat_files.c

Use nitems() from sys/param.h.

MFC after:        2 weeks.
Sponsored by:        gandi.net (BSD Day Taiwan)

FreeBSD — head/usr.bin/netstat pfkey.c

Use nitems() from sys/param.h.

MFC after:        2 weeks.
Sponsored by:        gandi.net (BSD Day Taiwan)
Delta File
+1 -2 head/usr.bin/netstat/pfkey.c
+1 -2 1 file

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/intel/dtrace fasttrap_isa.c

Restore an ifdef that should not have been removed in r303535.

X-MFC-With:        r303535

FreeBSD — head/usr.bin/locale locale.c

Use nitems() from sys/param.h.

MFC after:        2 weeks.
Sponsored by:        gandi.net (BSD Day Taiwan)
Delta File
+2 -2 head/usr.bin/locale/locale.c
+2 -2 1 file

FreeBSD — head/usr.bin/gzip gzip.c

Use nitems() from sys/param.h.

MFC after:        2 weeks.
Sponsored by:        gandi.net (BSD Day Taiwan)
Delta File
+1 -1 head/usr.bin/gzip/gzip.c
+1 -1 1 file

FreeBSD — head/usr.bin/calendar io.c

Use nitems() from sys/param.h.

Sponsored by:        gandi.net (BSD Day Taiwan)
MFC after:         2 weeks.
Delta File
+1 -1 head/usr.bin/calendar/io.c
+1 -1 1 file

FreeBSD — head/usr.bin/at at.c

Use nitems() from sys/param.h

Sponsored by:        gandi.net (BSD Day Taiwan)
Delta File
+1 -1 head/usr.bin/at/at.c
+1 -1 1 file

FreeBSD — head/sbin/fsdb fsdb.c

Use nitems() from sys/param.h.

Sponsored by:        gandi.net (BSD Day Taiwan)
Delta File
+2 -2 head/sbin/fsdb/fsdb.c
+2 -2 1 file

FreeBSD — head/usr.bin/sed compile.c

Explicitly test for cu_fgets returning NULL or !NULL

MFC after: 3 weeks
Sponsored by: EMC / Isilon Storage Division
Delta File
+2 -2 head/usr.bin/sed/compile.c
+2 -2 1 file

FreeBSD — head Makefile.inc1

Add libprocstat prebuild library dependencies.

X-MFC-With:        r303531
Delta File
+1 -0 head/Makefile.inc1
+1 -0 1 file

FreeBSD — head/lib/libc/gen glob.c

Rework r303074 case 4. Don't immediatelly skip directory entries which
cause MAXPATHLEN exceeded. Process them first through gl_errfunc() and
GLOB_ERR.
Delta File
+7 -0 head/lib/libc/gen/glob.c
+7 -0 1 file

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/dtrace fasttrap.c, head/sys/cddl/contrib/opensolaris/uts/intel/dtrace fasttrap_isa.c

Include fasttrap handling for DATAMODEL_ILP32 when compiling for amd64.

MFC after:        1 month

FreeBSD — head/cddl/contrib/opensolaris/lib/libdtrace/arm dt_isadep.c, head/cddl/contrib/opensolaris/lib/libdtrace/i386 dt_isadep.c

libdtrace: Don't hard-code the native data model.

MFC after:        1 month

FreeBSD — head/lib/libproc proc_create.c proc_util.c, head/share/mk src.libnames.mk

libproc: Add proc_getmodel().

This is used by libdtrace to determine the data model of target processes.
This allows for the creation of pid provider probes in 32-bit processes on
amd64.

MFC after:        1 month

FreeBSD — head/lib/libproc _libproc.h

Add descriptions for fields in struct proc_handle.

Remove the unused kq field and some unnecessary includes.

MFC after:        1 month
Delta File
+6 -9 head/lib/libproc/_libproc.h
+6 -9 1 file

FreeBSD — head Makefile.inc1, head/lib/librtld_db rtld_db.c rtld_db.h

librtld_db: Use the auxv to figure out where to look up loader symbols.

Previously, librtld_db just hardcoded /libexec/ld-elf.so, which isn't
correct for processes that aren't using the native ABI. With this change,
librtld_db can be used to inspect non-native processes; in particular,
dtrace -c now works for 32-bit executables on amd64.

MFC after:        1 month

FreeBSD — head/lib/libc/gen glob.c

Reset errno for readdirfunc() before contunue.
Delta File
+4 -1 head/lib/libc/gen/glob.c
+4 -1 1 file

FreeBSD — head/contrib/libexecinfo backtrace.c, head/lib/libc/stdio dprintf.c

Remove usage of _WITH_DPRINTF

FreeBSD — head/contrib/ofed/usr.lib/libibverbs config.h, head/lib/libc/stdio getline.c

Remove last traces of _WITH_GETLINE

FreeBSD — head/usr.sbin/autofs common.c, head/usr.sbin/pkg pkg.c

Remove usage of _WITH_GETLINE from usr.sbin

FreeBSD — head/usr.bin/calendar io.c, head/usr.bin/checknr checknr.c

Remove usage of _WITH_GETLINE from usr.bin

FreeBSD — head/usr.bin/indent indent.c io.c

indent(1): Yet more style issues.

strchr(3) returns a pointer not a boolean.
Attempt to make the style somewhat more ocnsistent with what indent
had before recent changes.

Pointed out by:        bde

FreeBSD — head/include stdio.h, head/lib/libc/stdio getline.3 printf.3

Remove _WITH_GETLINE and _WITH_DPRINTF guards

When adding getline(3) and dprintf(3) into libc, those guards were added
to prevent breaking too many ports.

7 years later the ports tree have been fixed, it is time to remove this
FreeBSDism

While here remove the extra parenthesis surrounding dprintf(3)

FreeBSD — head/usr.bin/indent indent.c

indent(1): Attempt to preserve some consistent style.

Remove the excessive braces from r303485 and align the comments to the
right as done in the rest of the code. This is not nice but there is no
clear way to make it nice (and KNF).

Pointed out by:        bde
Delta File
+3 -4 head/usr.bin/indent/indent.c
+3 -4 1 file

FreeBSD — head/sys/dev/cxgbe t4_main.c

Various fixes to the t4/5nex character device.

- Remove null open/close methods.
- Don't set d_flags to 0 explicitly.
- Remove t5_cdevsw as the .d_name member isn't really used and doesn't
  warrant a separate cdevsw just for the name.
- Use ENOTTY as the error value for an unknown ioctl request.
- Use make_dev_s() to close race with setting si_drv1.

Sponsored by:        Chelsio Communications
Delta File
+12 -34 head/sys/dev/cxgbe/t4_main.c
+12 -34 1 file

FreeBSD — head/contrib/llvm/projects/libunwind/src Unwind-EHABI.cpp

libunwind: correct return code in unwinding trace log message

Obtained from:        LLVM r277215
MFC after:        3 days
Sponsored by:        The FreeBSD Foundation

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

Fix markup for -j in cpuset(1) synopsis

MFC after:        3 days
Sponsored by:        Dell Inc.
Delta File
+2 -2 head/usr.bin/cpuset/cpuset.1
+2 -2 1 file

FreeBSD — head/share/man/man9 bitset.9 cpuset.9

Fix two return types in the cpuset(9) and bitset(9) man pages

The *_FFS() and *_COUNT() functions return int, not size_t.

MFC after:        3 days
Sponsored by:        Dell Inc.