Xin LI
d9dcc46365
Revert r247300 for now. I'll post a new changeset for review.
2013-02-26 19:46:59 +00:00
Xin LI
285a4c7c59
Expose timespec and timeval macros when __BSD_VISIBLE is defined. This
...
allows userland application to use the following macros:
timespecclear, timespecisset, timespeccmp, timespecadd,
timespecsub;
timevalclear, timevalisset, timevalcmp.
MFC after: 1 month
2013-02-26 02:13:02 +00:00
Joel Dahl
ed88bcd300
Remove EOL whitespace.
2013-02-25 17:32:10 +00:00
Alexander V. Chernikov
297c1ec124
Fix several new & old style issues.
...
Pointed by: ae, pluknet, zont
MFC with: r247036
2013-02-20 14:19:09 +00:00
Alexander V. Chernikov
b021472399
Add interface name filtering via 'match' cmd.
...
Add 'pps' cmd for switching beetween interface packets/bytes statistics.
Submitted by: vsevolod
MFC after: 2 weeks
2013-02-20 13:47:05 +00:00
Ulrich Spörlein
eaef137cbe
dtc: fix bootstrapping from 8.2-STABLE
...
MFC after: 1 week
Approved by: theraven
2013-02-19 18:28:25 +00:00
Philippe Charnier
589db68931
WARNS=6 compliance
2013-02-19 13:32:26 +00:00
Philippe Charnier
321ae07f36
WARNS=6 compliance
2013-02-19 13:17:16 +00:00
Philippe Charnier
00c31a91ef
Remove old-style function definition
2013-02-19 12:57:07 +00:00
Mark Johnston
43e1adfa05
Strengthen the check in IS_OUT_OF_BOUNDS to ensure that (j - 1) is a
...
valid index into the input buffer.
PR: bin/175213
Reviewed by: gabor
Approved by: emaste (co-mentor)
MFC after: 1 week
2013-02-17 19:48:23 +00:00
Dimitry Andric
a7449e3cca
Since clang 3.2 now has an option to suppress warnings about implicitly
...
promoted K&R parameters, remove the workarounds added for sendmail
components in r228558.
MFC after: 1 week
2013-02-16 20:17:31 +00:00
Dimitry Andric
ca83b97532
Fix undefined behaviour in usr.bin/mail/util.c.
...
Reported by: deeptech71@gmail.com
MFC after: 3 days
2013-02-15 23:59:57 +00:00
Joel Dahl
b2dc8cf4e2
Fix date.
2013-02-14 19:46:41 +00:00
Hiroki Sato
0af99eef9e
- Fix libmd dependency. It is needed in the bootstrap library list because
...
usr.bin/xinstall depends on it.
- Remove libutil from usr.bin/xinstall/Makefile. No symbol was actually used.
Reviewed by: brooks
2013-02-14 08:32:07 +00:00
Philippe Charnier
af2637db52
rework old-style functions prototypes
...
reduce WARNS=6 output
2013-02-14 08:16:03 +00:00
Andrey Zonov
4b03484ff7
- Make actually printing path of AF_LOCAL socket types.
...
MFC after: 1 week
2013-02-12 19:10:54 +00:00
Andrey Zonov
449df4ecb8
- Use correct size of copying different socket structures.
...
MFC after: 1 week
2013-02-12 18:48:11 +00:00
Sergey Kandaurov
e6043cf0e1
o Bring in sync decoding the first nfssvc(2) parameter (flags) with
...
the current definitions location.
o Respect numbers in NFSSVC_* (e.g. NFSSVC_V4ROOTEXPORT).
MFC after: 1 week
2013-02-12 13:01:34 +00:00
Andrew Turner
8a166cafe0
Allow us to build clang for ARM EABI. Clang and llvm use the
...
arm-gnueabi-freebsd10.0 triple for EABI. Use this when we are on arm or
armv6 and are building for EABI.
Reviewed by: dim
2013-02-12 05:56:00 +00:00
Pawel Jakub Dawidek
6a9f247c85
Capability rights for process management via process descriptors do exist
...
already, so uncomment them.
Sponsored by: The FreeBSD Foundation
2013-02-11 00:10:35 +00:00
Pawel Jakub Dawidek
42f997ba53
Add CAP_MKNOD right.
...
Sponsored by: The FreeBSD Foundation
2013-02-10 23:51:26 +00:00
Jilles Tjoelker
17ef6d3ab8
find: Run when cwd cannot be opened, except with -execdir or -delete.
...
fts(3) can run (albeit more slowly and imposing the {PATH_MAX} limit) when
the current directory cannot be opened. Therefore, do not make a failure to
open the current directory (for returning to it later in -exec) fatal.
If -execdir or -delete are used, the expectation is that fts(3) will use
chdir to avoid race conditions (except for -execdir with -L). Do not break
this expectation any more than it already is by still failing if the current
directory cannot be opened.
2013-02-10 18:56:37 +00:00
Jilles Tjoelker
bc62617630
find: In -execdir ... {} +, only pass one file per invocation.
...
This is inefficient but ensures that -execdir ... {} + does not mix files
from different directories in one invocation; the command could not access
some files. Files from the same directory should really be handled in one
invocation but this is somewhat more complicated.
2013-02-10 13:28:02 +00:00
Tim Kientzle
fe47e2e39b
Add dtc to the build.
2013-02-09 18:14:26 +00:00
Eitan Adler
8b3cc7155e
Reference something which exists instead of the non-existent runsocks
...
program.
PR: docs/173664
Submitted by: wkoszek
Approved by: bcr (mentor)
2013-02-09 17:13:54 +00:00
Antoine Brodin
7d493395a1
Fix some NLS catalogs broken after r245888.
2013-02-09 13:31:59 +00:00
Pedro F. Giffuni
23a368256d
patch: Follow original versioning convention.
...
According to the README file [1] the 12u variant, unlike
the 12g variant, contains no copyleft code. It is therefore
convenient to keep using the original versioning scheme to
prevent confusions.
[1] http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/patch/README
2013-02-08 19:39:15 +00:00
Dag-Erling Smørgrav
30c4fc7cf9
Print a warning if not setuid root.
...
Document the need for the setuid bit and how to set it.
Explain why it isn't set by default, and suggest simply adding users
to groups instead.
PR: docs/167741
MFC after: 3 weeks
2013-02-08 14:14:00 +00:00
Simon J. Gerraty
4639b85868
Missed adding Makefile.config and unit-tests/Makefile should
...
allow FreeBSD make to do 'obj'.
Approved by: marcel (mentor)
2013-02-04 17:41:17 +00:00
Andrew Turner
3306f972bf
Cast *tabchar, a wchar_t, to a wint_t as it is the type the %lc printf
...
format string expects. This is only an issue on ARM EABI where wint_t is
different to wchar_t.
2013-02-04 10:05:55 +00:00
Dimitry Andric
df5d2454a3
Pull in r170135 from upstream clang trunk:
...
Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user
specifies not to. Dont build ASTMatchers with Rewriter disabled and
StaticAnalyzer when it's disabled.
Without all those three, the clang binary shrinks (x86_64) from ~36MB
to ~32MB (unstripped).
To disable these clang components, and get a smaller clang binary built
and installed, set WITHOUT_CLANG_FULL in src.conf(5). During the
initial stages of buildworld, those extra components are already
disabled automatically, to save some build time.
MFC after: 1 week
2013-02-02 22:28:29 +00:00
Simon J. Gerraty
3cbdda60ff
Merge bmake-20130123
...
Approved by: marcel (mentor)
2013-02-01 22:55:27 +00:00
Brooks Davis
7a06a9247d
When in -U mode do avoid setting SUID bits, but do not modify the mode
...
variable so the intended mode can be logged correctly if -M is specified.
Sponsored by: DARPA, AFRL
2013-01-31 16:04:40 +00:00
Xin LI
e56ef7d358
- Refresh code with latest OpenBSD revisions.
...
- Remove $DragonFly$ tags as they are using git nowadays and VCS tags will
not help merging.
- Other changes to Copyright headers to make them consistent with other
source code, we intend to fork from this point.
Reviewed by: pfg
2013-01-29 20:05:16 +00:00
Gabor Kovesdan
2dd076b84b
- Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) from
...
DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it
default and installs GNU patch as gnupatch.
Submitted by: pfg
Obtained from: The DragonflyBSD Project
2013-01-29 17:03:18 +00:00
Andrey Zonov
c71535cdd3
- Show page faults requiring I/O when -s invoked.
...
Reviewed by: alc
MFC after: 2 weeks
2013-01-28 12:58:37 +00:00
Andrey Zonov
9c02dc3399
- Show page faults requiring I/O on vmstat display.
...
Reviewed by: alc
MFC after: 2 weeks
2013-01-28 12:57:42 +00:00
Gabor Kovesdan
0c2c94e1b7
- Remove forgotten commented out debug code
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Reviewed by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
2013-01-27 19:50:24 +00:00
Gabor Kovesdan
f187ff08ef
- Simplify and unify diagnostic and error message handling
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Reviewed by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
2013-01-27 19:49:10 +00:00
Mateusz Guzik
c2b51d4457
truss: use 'e' flag for fopen instead of fcntl(.., FD_CLOEXEC)
2013-01-27 03:17:35 +00:00
Mateusz Guzik
8ff44cbb80
truss: if file requested with -o flag could not be opened print the reason
...
MFC after: 3 days
2013-01-27 03:14:54 +00:00
David Chisnall
03d37d34cc
Fix style nit in dtc man page: sentences should start on new lines.
...
Reported By: joel
2013-01-25 08:34:38 +00:00
Brooks Davis
0b7aa37f7b
Install the NLS catalog in the C directory rather than en_US.US-ASCII
...
which is a link to C. This allow the makefs mtree manifest mode to find
the file.
2013-01-24 16:53:35 +00:00
David Chisnall
009f7b425d
Explicitly include headers that are implicitly included by libstdc++. Fixes
...
building dtc with libc++.
2013-01-23 08:54:34 +00:00
Brooks Davis
bf8596f6e2
Remove documentation of the old -M option.
...
Sponsored by: DARPA, AFRL
2013-01-22 18:57:51 +00:00
Joel Dahl
3917cbe067
Remove EOL whitespace.
2013-01-22 18:35:42 +00:00
Joel Dahl
2d943d5b94
Minor mdoc fixes.
2013-01-22 18:33:31 +00:00
David Chisnall
b5383b7b85
Fix the missing sentence that ended in the middle in the man page for dtc (also
...
spotted by gavin).
2013-01-22 18:15:43 +00:00
David Chisnall
45688d5d5f
Fix logic error in explicitly specified dtb versions spotted by gavin.
2013-01-22 18:12:31 +00:00
Gleb Smirnoff
f89bcdb03b
Use pluralies() for "entry"/"entries".
2013-01-22 18:07:59 +00:00