| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
instead of $(uname -m).
Pointed out by: nyan@
|
|
|
|
|
|
|
|
|
|
| |
ipfilter headers contain a duplicated function declaration. Turn off
-Werror to allow kdump to compile in spite of this.
It would be neat to be able to turn off -Werror on a file-by-file basis...
PR: bin/161478
Submitted by: Garrett Cooper <yanegomi@gmail.com>
|
|
|
|
| |
Approved by: mdf (mentor)
|
|
|
|
|
|
| |
Makefiles. Also add a manpage symlink for it.
MFC after: 3 days
|
|
|
|
|
| |
PR: docs/149051
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
- Fix the error message when setgid() failed.
PR: bin/161509
Submitted by: Jeremy Huddleston <jeremyhu apple com>
MFC after: 2 weeks
|
|
|
|
|
| |
Reported by: Nali Toja <nalitoja@gmail.com>
Approved by: delphij (mentor)
|
|
|
|
|
|
|
|
| |
- Allow disabling bzip2 support with WITHOUT_BZIP2
- Fix handling patterns that start with a dot
- Remove superfluous semicolon
Approved by: delphij (mentor)
|
|
|
|
| |
failures. It is included in the default set for ktrace(1) and kdump(1).
|
|
|
|
|
|
| |
extension. Cast to u_register_t first, then to uintmax_t.
Submitted by: bde@
|
|
|
|
| |
Noticed by: jh@
|
|
|
|
|
|
| |
of support of decompressing xz files.
Obtained from: NetBSD
|
| |
|
|
|
|
| |
MFC after: 3 weeks
|
|
|
|
| |
of the SRCS list and b) listing kdump_subr.h in DPSRCS.
|
|
|
|
|
|
|
| |
actually print the name (or the numeric value, if they can't figure out
the correct name) instead of just returning a pointer to it. Also, since
ioctl numbers are not and probably never will be unique, drop support for
using a switch statement instead of an if/else chain.
|
|
|
|
|
|
|
|
| |
return value is intentionally ignored, but frankly, all it does is
get in the way of the code.
Also fix a few other incorrect casts, such as (void *)malloc(foo) and
passing signed values to %x.
|
| |
|
| |
|
|
|
|
| |
started using them.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
functions may be wider than int, so use intmax_t throughout. Also
add missing casts in printf() calls.
2) Clean up some of the auto-generated code to improve readability.
3) Auto-generate kdump_subr.h. Note that this requires a semi-ugly hack
in the Makefile to make sure it is generated before make(1) tries to
build kdump.c, or preprocess it for 'make depend'.
MFC after: 3 weeks
|
|
|
|
|
|
|
| |
WARNS above 6 has no use. Also, all of usr.bin is also built with
WARNS=6 by default.
Discussed with: edwin
|
|
|
|
| |
Approved by: wkoszek (mentor)
|
|
|
|
|
| |
Tested with: make universe
Pointy hat to: delphij
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
backported that was written for the TRE integration project in Google
Summer of Code 2011. This is a temporary solution until the whole
regex library is not replaced so that BSD grep development can continue
and the backported code gets some review and testing. This change only
improves scalability slightly, there is no big performance boost yet
but several minor bugs have been found and fixed.
Approved by: delphij (mentor)
Sposored by: Google Summer of Code 2011
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
|
|
|
| |
are still available on the queue.
Without this, the fixups producer/consumer pipeline will artifically terminate
before all of the fixups have been processed, leading to incomplete updates
and generally quite unhappy users.
Submitted by: mux
|
|
|
|
| |
Submitted by: mux
|
|
|
|
| |
The device number should be displayed using only five columns -- not eight.
|
|
|
|
|
|
|
| |
PR: 161088
Submitted by: Ben Kaduk ( kaduk % mit ! edu )
MFC after: 1 week
Need-MFC: 225809
|
|
|
|
| |
Approved by: bapt (mentor)
|
|
|
|
|
|
|
| |
- add a n after \
Submitted by: brueffer
Approved by: bapt (mentor)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As of FreeBSD 6, devices can only be opened through devfs. These device
nodes don't have major and minor numbers anymore. The st_rdev field in
struct stat is simply based a copy of st_ino.
Simply display device numbers as hexadecimal, using "%#jx". This is
allowed by POSIX, since it explicitly states things like the following
(example taken from ls(1)):
"If the file is a character special or block special file, the
size of the file may be replaced with implementation-defined
information associated with the device in question."
This makes the output of these commands more compact. For example, ls(1)
now uses approximately four columns less. While there, simplify the
column length calculation from ls(1) by calling snprintf() with a NULL
buffer.
Don't be afraid; if needed one can still obtain individual major/minor
numbers using stat(1).
|
|
|
|
| |
Approved by: sahil (mentor)
|
|
|
|
|
|
| |
in order to reduce patchset size.
MFC after: 3 days
|
|
|
|
|
|
|
| |
PR: bin/150772
Submitted by: Derrick Brashear <shadow@gmail.com>
Reviewed by: Garrett Cooper <yanegomi@gmail.com>
Approved by: cognet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Import the rest of HID improvements from the branch:
- improve report descriptor parser in libusbhid to handle several kinds of
reports same time;
- add to the libusbhid API two functions wrapping respective kernel IOCTLs
for reading and writing reports;
- tune uhid IOCTL interface to allow reading and writing arbitrary report,
when multiple supported by the device;
- teach usbhidctl to set output and feature reports;
- make usbhidaction support all the same item names as bhidctl.
Sponsored by: iXsystems, inc.
|
|
|
|
|
|
|
|
|
|
| |
Add missing length checks on unix socket addresses. [11:05]
Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-11:04.compress
Security: CVE-2011-2895 [11:04]
Security: FreeBSD-SA-11:05.unix
|
|
|
|
| |
Update copyright dates and strip my middle name.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reads eating 100% CPU. Fix this by skipping select on STDIN after
reading EOF -- permanently if STDIN is not terminal and for one second
if it is.
Also after reading EOF from STDIN we have to pass it to the program
being scripted. The previous approach was to write zero bytes into the
pseudo-terminal. This does not work because zero-byte write does not
have any effect on read. Fix this by sending VEOF instead.
Submitted by: Ronald Klop <ronald-freebsd8@klop.yi.org>
Discussed with: kib, Chris Torek <chris.torek@gmail.com>
Approved by: kib
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
but the use of fseek() means fetch(1) can't correctly resume a transfer
that was interrupted past the 2 GB mark.
Pointed out by: ache@
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
| |
in append mode. Open it in read-write mode instead. Also move the
fseek up one level to cover the (unlikely but not impossible) case where
the server accepts ranges but does not send a Content-Size header.
PR: bin/117277
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
returned by the server matched what we requested, and blindly appended
what we received to what we already had. This could go two ways: if the
delivered offset was higher than expected, the local file would contain
duplicate data, while if it was lower than expected, there would be data
missing from the middle of the file. Furthermore, if the transfer was
interrupted again, each subsequent attempt would compound the error.
Fix the first problem by restarting the transfer from scratch if there
is a gap, and the second by explicitly seeking to the correct location
in the local file so as to overwrite any duplicated data.
PR: bin/117277
Approved by: re (kib)
MFC after: 3 weeks
|
|
|
|
|
|
|
| |
forgot to tell the man page we could now convert Celsius to Fahrenheit.
Approved by: re (kib)
MFC after: 1 month
|
|
|
|
|
|
| |
Found by: kib
Approved by: re (kib)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
just as advertised in the manpage.
PR: 158652
Submitted by: stephen
Approved by: re (kib)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
new NFS server when the "-e" option is not used. The bug was
that srvrpccnt[] was being indexed by NFSPROC_XXX when it needs
to be indexed by NFSV4OP_XXX.
Tested by: hrs
Approved by: re (bz)
|
|
|
|
|
|
|
|
|
|
| |
new NFS server when the "-w" option is used. The problem was
spotted by hrs@ during testing where srvrpcnt[] must be indexed
by NFSV4OP_XXX and not NFSPROC_XXX.
Submitted by: hrs
Approved by: re (bz)
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
- Use FTS_SKIP for exclusion instead of custom code
Submitted by: ttsestt@gmail.com
Approved by: re (kib), delphij (mentor)
|