Josh Paetzel
fc78178fcb
Patch pc-sysinstall to deal with 4k sector size drives
...
PR: bin/151967
Submitted by: kmoore
Approved by: imp
2011-01-10 19:11:25 +00:00
Josh Paetzel
e0b71bf2a4
Take passwords out of debug log.
...
Fix path problem that was preventing disk info from being in the log.
PR: bin/151968
Submitted by: Kris Moore <kmoore@FreeBSD.org>
Approved by: imp
2011-01-08 23:03:24 +00:00
Josh Paetzel
2ebed539b0
Push some PC-BSD specific fixes upstream.
...
PR: bin/152894
Submitted by: Kris Moore <kmoore@FreeBSD.org>
Approved by: imp
2011-01-08 22:42:56 +00:00
Josh Paetzel
5eea74f248
More elegant way to detect MBR vs. GPT
...
Submitted by: nwhitehorn
Approved by: imp
2011-01-08 20:25:00 +00:00
Xin LI
97f8d65503
Use ether_ntoa instead of home-grown version.
...
Noticed by: Boris Kochergin <spawk acm poly edu>
2011-01-08 01:57:23 +00:00
Warner Losh
cd2ae2532f
Retire TARGET_ABI.
...
Implement MACHINE_ARCH=mips64e[lb] to build N64 images. This replaces
MACHINE_ARCH=mipse[lb] TARGET_ABI=n64.
MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires
WITHOUT_CDDL due to atomic issues in libzfs. I've not investigated
this much, but implemented this to preserve as much of the TARGET_ABI
functionality that I could. Since its presence doesn't affect the
working cases, I've kept it in for now.
Added mips64e[lb] to make universe, so more kernels build.
And I think this (finally) closes the curtain on the tbemd tree.
2011-01-07 20:26:33 +00:00
Stanislav Sedov
3b232eb663
- Save some space relying on the fact that all ioctl commands
...
prefixes are the same.
Suggested by: "Carlos A. M. dos Santos" <unixmania@gmail.com>
2011-01-07 18:52:08 +00:00
Stanislav Sedov
f264409aea
- Show textual representation of ioctl command in warning message
...
if ioctl(4) is failed besides the command number.
Suggested by: delphij
MFC after: 2 weeks
2011-01-06 07:13:23 +00:00
Konstantin Belousov
a63f870b4c
Use errx() instead of err() in parseint. There is usually no interesting
...
information in errno.
Noted by: Garrett Cooper <yanegomi gmail com>
MFC after: 1 week
2011-01-04 17:27:17 +00:00
Konstantin Belousov
641c6c5c1a
Make the parsing of the integer arguments for rtprio(1)/idprio(1) stricter.
...
Style.
Based on submission by: Eitan Adler <lists eitanadler com>, keramida
Reviewed by: jhb, keramida
MFC after: 1 week
2011-01-04 14:13:09 +00:00
Ed Maste
0737626a7f
Quiet clang warnings by using literal format strings for printf-like
...
functions.
2011-01-04 02:52:22 +00:00
Brian Somers
2921193efd
Make -S functional.
...
MFC after: 1 week
2010-12-31 01:10:42 +00:00
Pyun YongHyeon
5c9606846d
Add vte(4) to the list of supported network interface.
2010-12-31 00:24:08 +00:00
Ulrich Spörlein
20a95cd6fc
Revert most of r210764, now that mdocml does the right
...
thing with empty quotation macros.
Requested by: Alex Kozlov
2010-12-28 10:08:50 +00:00
Xin LI
24f2cbe959
style.Makefile says tab between var= and value.
2010-12-23 01:45:48 +00:00
Xin LI
f49f3df86a
Allow overriding pidfile and dumpfile.
...
PR: bin/153362
Submitted by: Joe Holden <joe rewt org uk>
MFC after: 1 month
2010-12-22 23:58:21 +00:00
Ken Smith
b3a12a33fd
Add package directories used for the upcoming 8.2 and 7.4 releases,
...
and catch up on a few from previous releases.
2010-12-22 15:44:25 +00:00
Rebecca Cran
3908f1f965
Add an option to disable the screensaver.
2010-12-22 13:06:51 +00:00
Shteryana Shopova
cf90ea94a0
Unbreak the build by temprorarily not using include directives in
...
bsnmpd(1)' def files, until bsd.snmpmod.mk & Makefiles are fixed to
pass proper include path flags to gensnmptree.
2010-12-20 22:56:50 +00:00
Ulrich Spörlein
091c4c86d1
rpc.lockd(8) WARNS cleanup
...
- Provide function prototype for nlm_syscall
- Don't assign a variable from the stack to a global var[1]
- Remove unused vars
Found by: clang static analyser [1]
Reviewed by: dfr
2010-12-20 21:12:18 +00:00
Ulrich Spörlein
cffd173436
lmcconfig(8): bump to WARNS=3, fix typo in usage while here
...
Slight style(9) improvments
- function definitions
- sort #include
2010-12-20 19:08:15 +00:00
Ulrich Spörlein
057747a467
Fix type used to hold fgetc(3) output, this should help arm and powerpc
...
which have char == unsigned char
2010-12-20 19:08:07 +00:00
Ulrich Spörlein
4f1ccb4be0
Remove useless conditional.
...
`vga' cannot be less than 0x3f when reaching the check.
Coverity Prevent: CID 5196
2010-12-20 19:07:48 +00:00
Shteryana Shopova
72cd7a520d
Bring in a SNMP module that allows configuration of SNMPv3 Notification targets.
...
Sponsored by: The FreeBSD Foundation
Reviewed by: philip
Approved by: philip
2010-12-20 17:13:14 +00:00
Philippe Charnier
d31ff7a8fb
Add __unused. Ansi prototypes.
2010-12-20 09:36:54 +00:00
Philippe Charnier
a7a7d96c7a
Add __unused. Ansi prototypes.
2010-12-20 09:28:28 +00:00
Philippe Charnier
8e724c686f
Add __unused. Ansi prototypes.
2010-12-20 08:54:30 +00:00
Simon L. B. Nielsen
52e3f1458b
Add --numeric-owner to tar extract operations in portsnap.
...
This is done to speed up extraction significantly (both for portsnap
extract and update) in the case of slow NSS modules (like nss_ldap) as
it avoids having to look up uid and gid for root / wheel.
The reason this is a bigger problem for portsnap than for many other
system operations, is that portsnap executes tar(1) once for each port
so the internal uid/gid caching in tar(1) only helps a bit, resulting
in many user lookup calls.
Discussed with: cperciva
2010-12-19 23:09:42 +00:00
Bernhard Schmidt
1375a2d077
Fix build on bigendian archs.
2010-12-19 09:18:14 +00:00
Bernhard Schmidt
2f4f5fffa5
Unbreak hostapd. This code has been explicitly removed in upstream versions.
2010-12-18 20:29:41 +00:00
Bernhard Schmidt
32d18ddd6d
Fix some whitespace nits.
2010-12-18 20:27:09 +00:00
Bernhard Schmidt
fd7e85ad14
Change order in wpa_driver_bsd_ops to match upstream code. Add description
...
while here.
2010-12-18 20:25:25 +00:00
Bernhard Schmidt
85b9231041
Add a comment explaining the undefs, while here remove one which is not
...
required.
2010-12-18 20:23:28 +00:00
Bernhard Schmidt
78092e9221
Rename bsd_set_iface_flags to bsd_ctrl_iface and change arguments to match
...
upstream. For the same reason rewrite bsd_get_seqnum.
2010-12-18 20:22:15 +00:00
Bernhard Schmidt
5db98cc304
Import bsd_configure_wpa() to sync with upstream code.
2010-12-18 20:17:10 +00:00
Bernhard Schmidt
916753954d
Prefer os_memset, os_strlcpy and os_free. While here adjust the return
...
value checks for 2 ioctl calls and rewrite error handling in bsd_init
to better integrate with upstream code.
2010-12-18 20:15:47 +00:00
Bernhard Schmidt
eb79579b7f
Remove some unused variables and unnecessary casts.
2010-12-18 20:13:42 +00:00
Bernhard Schmidt
c40a627cbf
Remove debug messages which are no longer present in upstream code. While
...
here remove some explicit line breaks.
2010-12-18 20:11:09 +00:00
Bernhard Schmidt
14ad6b5c09
Rename iface to ifname to match the upstream code.
2010-12-18 20:08:21 +00:00
Bernhard Schmidt
fa9823dc59
Rename ioctl_sock to just sock to match the upstream code. While here
...
remove the no longer used wext_sock and bsd_driver_ops variables.
2010-12-18 20:04:47 +00:00
Bernhard Schmidt
1bff693455
Move some functions around to match the upstream order.
2010-12-18 20:00:28 +00:00
Bernhard Schmidt
aae0884ea6
Add bsd_send_mlme_param to aggregate IEEE80211_IOC_MLME ioctls:
...
- merge bsd_set_sta_authorized and bsd_sta_set_flags
- change bsd_set_sta_authorized, bsd_sta_deauth and bsd_sta_disassoc
to use bsd_send_mlme_param
2010-12-18 19:58:23 +00:00
Bernhard Schmidt
fbd8297efc
Change bsd_del_key() to match upstream code:
...
- change order of if/else
- move wpa_printf() into the condition
- change unsigned char* to u8*
- prefer os_memset/os_memcpy
2010-12-18 19:56:45 +00:00
Bernhard Schmidt
0a8a5ceb3b
Aggregate SIOCS80211 and SIOCG80211 ioctl request code. While here, bring
...
the wpa_printf()/perror() messages in sync with upstream code.
2010-12-18 19:55:19 +00:00
Shteryana Shopova
1c706be073
Pass proper -Wl,-export-dynamic to ld. Thus bsnmpd(1) compiled with clang
...
properly exports its symbols to the modules.
Submitted by: dim
2010-12-16 15:18:53 +00:00
Jung-uk Kim
5a77b11bd3
Merge ACPICA 20101209.
2010-12-15 23:48:45 +00:00
Rebecca Cran
7ef1629be1
USB probing often takes a long time and finishes finding devices after init
...
has started. In the case of sysinstall, this means that it has already built
its list of devices before probing finishes. Add a hint for users who have
booted from a USB stick only to find that sysinstall can't find it.
MFC after: 3 days
2010-12-13 13:52:03 +00:00
Shteryana Shopova
695239e2c7
Remove unnecessary debug/error CFLAGS.
...
Reported by : pawel.worach (at) gmail (dot) com
2010-12-11 13:24:01 +00:00
Joel Dahl
914e11a72b
Remove the advertising clause from UCB copyrighted files in usr.sbin. This
...
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2010-12-11 09:38:12 +00:00
Dimitry Andric
6d4b97158f
Sync: merge r216133 through r216338 from ^/head.
2010-12-09 22:01:15 +00:00
Shteryana Shopova
836993f5cf
Unbreak "make installworld" w/ DESTDIR specified
...
PR : kern/152939
2010-12-09 12:25:45 +00:00
Rebecca Cran
7720b5abea
Build sade on amd64 as well as i386 and sparc64.
2010-12-09 11:37:40 +00:00
Kevin Lo
f55df2a221
Closing fd when it's done
...
Reviewed by: sbruno
2010-12-09 08:36:23 +00:00
Shteryana Shopova
a739872374
Add bsnmpd(1)'s SNMP client tools (including SNMPv3 support) to the base system.
...
Sponsored by: The FreeBSD Foundation (the SNMPv3 bits), Google Summer of Code 2005
Reviewed by: philip@ (mostly), bz@ (earlier version based on p4 ch124545)
Approved by: philip@
2010-12-08 14:30:25 +00:00
Shteryana Shopova
135f7de5dd
In bsnmpd(1) add support for SNMPv3 message processing model, including message authentication, packet encryption & view-based access control (RFC 3412, 3414, 3415).
...
Sponsored by: The FreeBSD Foundation
Reviewed by: philip@ (mostly)
Approved by: philip@
2010-12-08 13:51:38 +00:00
Kevin Lo
c10bc05389
Close fd in initattr() and showattr().
...
Reviewed by: rwatson
2010-12-08 10:27:07 +00:00
Kevin Lo
4a1988af0e
Closing file descriptors when it's done
...
Reviewed by: np
2010-12-08 01:35:19 +00:00
Poul-Henning Kamp
5d964b5cc9
Use a "push" strategy to get data through libz, rather than a "pull" strategy.
2010-12-07 16:30:52 +00:00
Rebecca Cran
21866e59c2
Ignore any failures with the "local" distribution since it's not present
...
on release CDs and so will normally fail.
installCommit() returns a DITEM_ value, not a Boolean.
distExtractAll() returns a Boolean, not a DITEM_ value.
Reported by: kensmith
MFC after: 3 days
2010-12-06 20:55:14 +00:00
Rebecca Cran
20016815e5
Revert r209469: it causes the rest of the function to be bypassed.
...
Reported by: ae
2010-12-06 11:37:24 +00:00
Kevin Lo
7df9d5acad
Fix double ;;
2010-12-06 10:24:06 +00:00
Gleb Smirnoff
441238cfdc
Catch up with kernel using time_uptime to drive ARP timeouts.
...
Noticed by: jilles
2010-12-06 09:37:56 +00:00
Ulrich Spörlein
a98447723d
De-orbit usbdevs(8) which hasn't worked with the new USB stack for a long
...
time now. usbconfig(8) should be an adequate replacement.
2010-12-04 21:54:23 +00:00
Ulrich Spörlein
f42640a362
traceroute6(8): make WARNS=3 clean
2010-12-04 14:19:35 +00:00
Ulrich Spörlein
f02cd756de
traceroute(8): make WARNS=3 clean
...
Also fixes an operator precedence bug for TCP tracerouting
2010-12-04 14:19:27 +00:00
Ulrich Spörlein
cded07a878
Move most of the remaining USD/PSD/SMM papers into share/doc
2010-12-04 10:11:20 +00:00
Weongyo Jeong
723b2f5af2
Changes the meaning of each characters '<' and '>' that it could be
...
confused with USB OUT or USB IN packets though it just represents USB
submit or done. To know the USB packet direction, the endpoint address
should be referred.
Requested by: jkim
2010-12-03 00:44:07 +00:00
Dimitry Andric
2006fbc8fe
Sync: merge r215944 through r216132 from ^/head.
2010-12-02 22:00:57 +00:00
Gleb Smirnoff
84d8f5b8d0
Do not hardcode (20*60), but use current ARP timeout value configured
...
in kernel.
2010-11-30 16:14:19 +00:00
Colin Percival
9decd44681
Teach crashinfo(8) to look at the currently running kernel (based on the
...
kern.bootfile sysctl). Prior to this commit, crashinfo(8) only looks at
/boot/*/kernel; this includes the usual places where kernels reside, so
for most systems this will have no effect.
Approved by: jhb
MFC after: 3 days
2010-11-30 16:04:40 +00:00
Gleb Smirnoff
5d067f6cbf
That should belong to r216075. Pointy hat on me.
2010-11-30 16:00:59 +00:00
Gleb Smirnoff
a98c06f1c8
Use time_uptime instead of non-monotonic time_second to drive ARP
...
timeouts.
Suggested by: bde
2010-11-30 15:57:00 +00:00
Rebecca Cran
378b528ba0
If no floppy drive is installed kldBrowser() can generate an error early on.
...
Initialize menu and count so the cleanup code doesn't try and use their
uninitialized values.
PR: bin/152270
Submitted by: Remi LAURENT <cloud at madpowah.org>
MFC after: 3 days
2010-11-29 11:55:17 +00:00
Rebecca Cran
b7597cbfd5
Update the serial port device names. They changed in 8.0 because the default
...
driver is now uart(4).
PR: bin/140887
Submitted by: Joe Barbish <fbsd1 at a1poweruser.com>
MFC after: 3 days
2010-11-29 11:28:31 +00:00
Kevin Lo
b77a4a441b
Fix fd leak in get_font
2010-11-29 09:21:26 +00:00
Ulrich Spörlein
d8e58d07b3
Remove unused traceroute(8) contrib code from head
...
It still lives on under vendor/traceroute.
2010-11-27 09:26:46 +00:00
Dimitry Andric
1e7a698a31
Sync: merge r215709 through r215824 from ^/head.
2010-11-25 18:36:44 +00:00
Weongyo Jeong
6d926c73ae
As a refection of r215802 it should use BPF interfaces because the
...
duplication code of USB pf is removed.
2010-11-24 19:15:26 +00:00
Yaroslav Tykhiy
43b98c2b52
Clarify a few details about iostat(8) behavior:
...
- The default repeat count for iostat(8) is 1 unless there
was a -w on the command line.
- A -x display doesn't include TTY or CPU stats by default
but they can be turned on with a -T or -C, respectively.
Submitted by: arundel (initial version)
Reviewed by: arundel
MFC after: 1 week
2010-11-24 00:05:19 +00:00
Ulrich Spörlein
54e1a99c14
Remove kernbb(8) from the source tree.
...
It's been broken for several years and with all the binutils/toolchain
changes in flight, it might make more sense to put efforts into dtrace and
hwpmc instead.
Discussed with: phk
PR: bin/83558
2010-11-22 21:39:35 +00:00
Dimitry Andric
a35d3535ee
Sync: merge r215464 through r215708 from ^/head.
2010-11-22 20:52:18 +00:00
John Baldwin
7a3923c00e
Similar to mfiutil, drop local definition of powerof2() and use version
...
from <sys/param.h> instead.
2010-11-22 14:36:04 +00:00
Rebecca Cran
e267ef95d5
Don't generate input() since it's not used.
2010-11-22 14:16:22 +00:00
Weongyo Jeong
e64ac239f6
Adds usbdump(8) tool that currently it only supports the very basic
...
feature set. It's not connected to the build yet.
Reviewed by: hps
2010-11-22 01:28:29 +00:00
Rebecca Cran
f22de230a1
dispatch_add_command:
...
Modify the logic so there's only one exit point instead of two.
Only insert valid (non-NULL) values into the queue.
dispatch_free_command:
Ensure that item is not NULL before removing it from the queue and
dereferencing the pointer.
NULL out free'd pointers to catch any use-after-free bugs.
PR: bin/146855
Submitted by: gcooper
MFC after: 3 days
2010-11-21 14:34:25 +00:00
Simon L. B. Nielsen
c86bcbb3a7
Fix a typo in a comment.
...
MFC after: 3 days
2010-11-21 11:50:16 +00:00
John Baldwin
3c22a809ec
Handle malloc() failures more gracefully by error'ing out rather than
...
segfaulting.
Submitted by: gcooper
MFC after: 1 week
2010-11-19 15:39:59 +00:00
Dimitry Andric
6b6403a102
Sync: merge r215396 through r215463 from ^/head.
2010-11-18 18:30:03 +00:00
Ivan Voras
51e5e45458
Change "wait" banner to "qlen" to be more indicative of its purpose and to
...
be more inline with what gstat uses.
Reviewed by: gnn
Silence from: phk, keramida
2010-11-17 15:12:10 +00:00
Dimitry Andric
9977fc32d1
Sync: merge r215319 through r215395 from ^/head, so ports can actually
...
build! :)
2010-11-16 10:33:41 +00:00
Doug Barton
eb581844e4
Remove references to MAKEDEV(8)
2010-11-15 05:25:51 +00:00
Dimitry Andric
29d0dcddab
Sync: merge r215273 through r215318 from ^/head.
2010-11-14 20:47:30 +00:00
Rebecca Cran
10895c82f2
ipv6_enable has been obsoleted in favour of ipv6_activate_all_interfaces.
2010-11-14 19:57:56 +00:00
Rebecca Cran
57bd39c6d6
Fix use of CD_VERSION=any in cdrom.inf by calling strcmp instead of
...
variable_cmp.
PR: bin/142960
Submitted by: G. Paul Ziemba <p-fbsd-bugs at ziemba.us>
MFC after: 1 week
2010-11-14 13:25:01 +00:00
Rebecca Cran
ccfa5fafe2
Remove support for cpioVerbose=medium because bsdcpio doesn't support the
...
"-V" flag.
PR: bin/151821
Submitted by: Devin Teske <dteske at vicor.com>
MFC after: 1 week
2010-11-14 10:22:09 +00:00
Rebecca Cran
cf04e59a01
ntpdate(8) hosts are now configured in rc.conf via ntpdate_hosts.
...
PR: bin/148350
Submitted by: Joel FAEDI <joel.faedi at gmail.com>
MFC after: 1 week
2010-11-14 10:04:48 +00:00
Rebecca Cran
943fa42c1e
"Web" should not be all upper-case because it's not an acronym.
...
PR: bin/130366
Submitted by: Royce Williams <royce at alaska.net>
MFC after: 1 week
2010-11-14 09:14:17 +00:00
Rebecca Cran
e77bd6a8f8
Connect to ftp2.tr.freebsd.org when the Turkey #2 mirror is selected.
...
PR: bin/128587
Submitted by: Mehmet Kose <mehmet.kose at gmail.com>
MFC after: 1 week
2010-11-14 09:03:42 +00:00
Dimitry Andric
c6d2d1b4ac
Sync: merge r215189 through r215272 from ^/head.
2010-11-14 01:06:10 +00:00
Rebecca Cran
5f1818757a
Add ftp4.se.freebsd.org to the set of mirrors.
...
PR: bin/150552
Submitted by: Niclas Zeising <zeising at lysator.liu.se>
MFC after: 3 days
2010-11-13 21:48:32 +00:00
Rebecca Cran
804f3a63ac
We still support PLIP devices, so mention them in addition to ethernet.
2010-11-13 01:21:55 +00:00
Maksim Yevmenkin
e97af4eedf
Add firmware downloader for Atheros AR3011 based USB Bluetooth devices.
...
Hardware donated by: Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by: Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by: Andrzej Tobola ato at iem dot pw dot edu dot pl
MFC after: 3 weeks
2010-11-12 19:43:12 +00:00
Dimitry Andric
1170f3d12e
Sync: merge r214895 through r215140 from ^/head.
2010-11-11 20:52:24 +00:00
Nick Hibma
0ea0127a4d
Add a man page for usb_quirk module, plus references in other man pages,
...
and updated comments in the usb_quirk.h header file.
The main purpose of this is to expose the quirks for ejecting 3G
modules. usb_modeswitch in Linux does a great job of collecting
information on these, and with the quirks module people can try out the
modeswitch config file entries on FreeBSD, hence the SCSI strings in the
man page.
MFC after: 2 weeks
2010-11-10 23:45:44 +00:00
Benedict Reuschling
6dcc68c87e
Typo fix in a comment.
...
Reviewed by: cperciva
2010-11-10 14:33:09 +00:00
Warner Losh
3015d92bc4
When we switched to the gpart backend, and provided selection between
...
MBR & GPT, the MBR full-disk init failed to stamp boot1, and results
in a boot not found error. This patch fixes the issue.
PR: 151990
Submitted by: Kris Moore
2010-11-10 05:32:36 +00:00
John Baldwin
c5f2b79dc7
- Save errno values before calling warn(3) so that errors are correctly
...
reported.
- Check for malloc() failures.
Submitted by: gcooper
MFC after: 1 week
2010-11-09 19:28:06 +00:00
Rebecca Cran
b1ce21c6ef
Fix typos.
...
PR: bin/148894
Submitted by: olgeni
2010-11-09 10:59:09 +00:00
Olivier Houchard
01a0f8531a
Sync with the latest version from NetBSD. It notably addds ISO9660 support.
...
Submitted by: bapt
2010-11-07 16:05:04 +00:00
Joel Dahl
3645b45f41
Remove extraneous Aq.
2010-11-07 07:16:35 +00:00
Dimitry Andric
eef8b03ca0
Sync: merge r214649 through r214894 from ^/head.
2010-11-06 18:36:21 +00:00
Ulrich Spörlein
5241f8b76d
Put string in quotes, like is done everywhere.
2010-11-06 15:04:48 +00:00
Benedict Reuschling
08e0d464ba
Fix typo.
2010-11-04 10:47:19 +00:00
Rui Paulo
5d6ccd39d5
Adapt for wpa_supplicant / hostapd 0.7.3.
2010-11-03 10:44:25 +00:00
David E. O'Brien
a17e0dbbf8
Give the user a hint as to what config(8) is unhappy with.
2010-11-02 05:27:05 +00:00
Dimitry Andric
b9f2f8c36f
Sync: merge r214353 through r214648 from ^/head.
2010-11-01 22:11:18 +00:00
Dimitry Andric
491fb27448
Use new output format 'elf64-x86-64-freebsd' instead of 'elf64-x86-64',
...
and similarly 'elf64-sparc-freebsd' instead of 'elf64-sparc'.
2010-11-01 20:20:31 +00:00
Dimitry Andric
812b0fb7ee
Actually remove the HAVE_CAST_H define this time.
2010-10-30 16:30:50 +00:00
Dimitry Andric
04eefab695
Regenerate our usr.sbin/tcpdump/tcpdump/config.h for tcpdump 4.1.1, and
...
remove unused HAVE_RC5_H and HAVE_CAST_H defines from CFLAGS.
2010-10-30 16:25:08 +00:00
Rui Paulo
964964e942
Add print-ipnet.c
...
Submitted by: dim
2010-10-29 21:03:59 +00:00
John Baldwin
67fb1bc8ed
Remove support for creating the 'machine' symlink as well as creating the
...
extra MACHINE_ARCH symlink for certain platforms (such as pc98). The
support for creating these symlinks was added to sys/conf/kern.post.mk in
changeset 152964. The intention of that commit was to remove this code
from config(8), but config(8) was never updated.
Approved by: imp
2010-10-29 19:17:07 +00:00
Ulrich Spörlein
02ac77f222
Fix another "string" typo.
...
MFC after: 3 days
2010-10-28 22:28:45 +00:00
Ulrich Spörlein
ac203a768d
Fix CPU load reporting independent of scheduler used.
...
- Sample CPU usage data from kern.cp_times, this makes for a far more
accurate and scheduler independent algorithm.
- Rip out the process list scraping that is no longer required.
- Don't update CPU usage sampling on every request, but every 15s
instead. This makes it impossible for an attacker to hide the CPU load
by triggering 4 samplings in short succession when the system is idle.
- After reaching the steady-state, the system will always report the
average CPU load of the last 60 sampled seconds.
- Untangling of call graph.
PR: kern/130222
Tested by: Julian Dunn <jdunn@aquezada.com>
Gustau Pérez <gperez@entel.upc.edu>
Jürgen Weiß <weiss@uni-mainz.de>
MFC after: 2 weeks
I'm unsure if some MIB standard states this must be the load average
for, eg. 300s, it looks like net-snmp isn't even bothering to implement
the CPU load reporting at all.
2010-10-28 20:18:26 +00:00
Rui Paulo
636720d7bc
Update for the new tcpdump 4.1.1. The man page is a result of running
...
tcpdump's autoconf on FreeBSD.
2010-10-28 19:08:56 +00:00
Bjoern A. Zeeb
9398643636
Correct a typo.
...
MFC after: 3 days
2010-10-28 11:09:12 +00:00
Warner Losh
1adaedf5cd
Turns out we need functions.sh in this file for convert_to_megabytes call.
2010-10-28 06:45:20 +00:00
John Baldwin
c02999d982
- Save errno values before calling warn(3) so that errors are correctly
...
reported.
- Use powerof2() from <sys/param.h> rather than a copy and paste version.
Submitted by: gcooper
MFC after: 1 week
2010-10-26 19:11:09 +00:00
Hans Petter Selasky
3afd23533a
Remove stray semicolon.
...
Submitted by: arundel
2010-10-24 13:48:11 +00:00
Warner Losh
56f8b30888
More simplifications
...
Submitted by: Alex Kozlov
2010-10-22 00:11:55 +00:00
Warner Losh
f1bed22437
Remove unnecessary variable.
...
Submitted by: Alex Kozlov
2010-10-22 00:10:48 +00:00
Warner Losh
c2176d895d
Fix two typos
...
Submitted by: Benedict Reuschling
2010-10-21 23:08:42 +00:00
Warner Losh
ce2502c9f8
More support for IMAGE installations
2010-10-21 22:46:10 +00:00
Warner Losh
c9489e0d75
Minor tweaks in compression support:
...
o We need an eval here to get the right expansion of the command
o bs=128k doesn't work in some cases, so eliminate it and cope with the
minor performance hit.
Submitted by: john hixson
2010-10-21 22:33:50 +00:00
Warner Losh
e964661666
Left over from prior patch removed.
...
Submitted by: John Hixon
PR: 151442 (but the patch was backwards there)
2010-10-21 17:29:18 +00:00
Warner Losh
b459a68591
This patch will only list components if the directory exists. The
...
directory exist on PC-BSD but not FreeBSD, so an extra check is made.
Submitted by: John Hixson
PR: 151461
2010-10-21 17:23:48 +00:00
Warner Losh
a919280d8b
This is an updated patch to the last patch to do this which fixes a
...
local variable issue. This patch decompresses compressed images to the
stdout when writing to a device to avoid running out of space issues.
Submitted by: John Hixson
Pr: 151049
2010-10-21 17:20:37 +00:00
Warner Losh
c4201e3f33
This small patch updates the "geli setkey" flags pc-sysinstall uses
...
when saving a users passphrase, to make it work in HEAD with recent
geli improvements.
Submitted by: Kris Moore
PR: 151002
2010-10-21 17:14:44 +00:00
Ulrich Spörlein
2914feeb7e
mdoc: make pages render with mandoc
...
It's a bit more pedantic regarding .Bl list elements. This has an added
benefit of unbreaking the ipfw(8) manpage, where groff was silently
skipping one list element.
2010-10-21 12:27:13 +00:00
Sergey Kandaurov
08f2463092
Enable copyback and system PD states.
...
Reviewed by: jhb
Approved by: avg (mentor)
MFC after: 1 week
X-MFC-After: r214130
2010-10-21 10:46:18 +00:00
Edwin Groothuis
e782099404
Fix printing of files located on ZFS filesystem with an st_dev or
...
st_ino larger than 2**31.
From the PR:
Printing from a ZFS filesystem using 'lp' fails and returns an
email reporting "Your printer job was not printed because it was
not linked to the original file".
In order to protect against files being switched when files
are printed using 'lp' or 'lpr -s', the st_dev and st_ino
values for the original file are saved by lpr and verified
by lpd before the file is printed. Unfortunately, lpr prints
both values using '%d' (although both fields are unsigned)
and lpd(8) assumes a string of decimal digits.
ZFS (at least) generates st_dev values greater than 2^31-1,
resulting in negative values being printed - which lpd cannot
parse, leading it to report that the file has been switched.
A similar problem would occur with large inode numbers.
How-To-Repeat:
Find a file with either st_dev or st_ino greater than 2^31-1
(stat(1) will report both numbers) and print it with 'lpq -s'.
This should generate an email reporting that the file could
not be printed because it was not linked to the original file
PR: bin/151567
Submitted by: Peter Jeremy <Peter.Jeremy@alcatel-lucent.com>
MFC after: 1 week
2010-10-21 06:52:14 +00:00
Ed Maste
bb5c5f84fa
Simplify and significantly speed up the timezone listing backend script.
...
Reviewed by: imp
2010-10-19 15:18:40 +00:00
Ed Maste
161a621b47
Minor cleanup, including sysctl -n instead of sed to remove the sysctl
...
name.
Reviewed by: imp
2010-10-19 15:12:16 +00:00
Ulrich Spörlein
7cc1fde083
mdoc: drop even more redundant .Pp calls
...
No change in rendered output, less mandoc lint warnings.
Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp
2010-10-19 12:35:40 +00:00
Gleb Smirnoff
bc92b07848
Log if fopen() fails.
...
Reviewed by: brian
2010-10-18 07:28:53 +00:00
Benedict Reuschling
54ac64ab0d
Fix a grammatical error connected to the previous commit.
...
Spotted by: gjb@
2010-10-16 17:30:27 +00:00
Benedict Reuschling
c4fadc2b78
Correct some typos in comments, no functional changes.
2010-10-16 15:24:04 +00:00
Gleb Smirnoff
d48088aab1
Enable the shared memory reference clock driver. The GPS devices are
...
getting more and more popular, as source of precise time, and the gpsd
daemon from ports is using the shared memory to synchronize with ntpd.
Reviewed by: roberto
2010-10-14 11:20:23 +00:00
Rebecca Cran
afe53dff1e
Use the RFC2606 domain example.com in examples.
2010-10-13 09:33:26 +00:00
Mark Murray
4f6fbcd5db
Create the /bin/rmail symlink (which mailers such as postfix
...
and Exim can use).
This is something I thought I committed MONTHS ago, but it appears
that I fatfingered it and made a local commit.
Pass the pointy hat, please.
2010-10-12 21:01:26 +00:00
Florent Thoumie
1784fdea2e
- Add support for xz compression to pkg_create, bzip2 remains the default
...
compression algorithm.
- Bump PKG_INSTALL_VERSION to 20101012.
Submitted by: mm
MFC after: 1 month
2010-10-12 10:04:44 +00:00
George V. Neville-Neil
88660748b0
Add code to print the number and type of the CPU that is present in
...
the system as well has how many PMCs there are per CPU. In this code
CPU and core are equivalent.
MFC after: 1 day
2010-10-11 14:31:24 +00:00
Randi Harper
0c019d8c6e
Fix compile with -DDEBUG by using the correct mfi_pd_ref union definition
...
in mfireg.h.
Submitted by: gcooper
Reviewed by: jhb
Approved by: cperciva (mentor)
MFC after: 1 week
2010-10-10 20:54:01 +00:00
Randi Harper
4ee8bfc521
Report subcommand handler errors in mfiutil/mptutil so that tools that
...
invoke the utilities can robustly report errors.
Submitted by: gcooper
Reviewed by: jhb
Approved by: cperciva (mentor)
MFC after: 1 week
2010-10-10 20:37:38 +00:00
Ulrich Spörlein
9c398cc7e0
mdoc: drop redundant .Pp calls, kill EOL whitespace
2010-10-09 11:43:00 +00:00
Warner Losh
0f74b3f3ed
Initial patches to install images...
...
PR: 150921
2010-10-09 08:52:09 +00:00
Warner Losh
7dae3d772a
Fix typo: thanks Kris for pointing this out.
2010-10-09 08:39:14 +00:00
Warner Losh
6f0ebf473d
Enable softupdate + journals support.
...
PR: 150862
Submitted by: Kris Moore
2010-10-09 07:45:24 +00:00
Mark Murray
471f9e3e00
Don't let the "available"/"not available" logs flap quite so badly. In the
...
case of a multi-interfaced host, sub-second flapping can fill up the logs
too quickly. This fixes that.
2010-10-08 20:17:17 +00:00
Ulrich Spörlein
0d9deed52c
mdoc: drop redundant .Pp and .LP calls
...
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
Ulrich Spörlein
7558f6b4f3
mdoc: fix manlint warnings by unbreaking mdoc syntax
2010-10-08 12:39:49 +00:00
Oleksandr Tymoshenko
eef93d2fae
- Introduce WITH_GPIO knob and disable building gpioctl
...
by default. Most systems do not need it.
2010-10-05 21:19:20 +00:00
Jung-uk Kim
85a3024411
Revert the unrelated patch crept in the previous commit.
2010-10-05 18:47:51 +00:00
Jung-uk Kim
e116381d02
Prefer pmap_unmapbios() over pmap_unmapdev(). The binary does not change
...
after this because pmap_unmapbios() is a macro for pmap_unmapdev() on amd64.
2010-10-05 18:38:23 +00:00
Ruslan Ermilov
c3d91ba426
Revise markup, mainly.
2010-10-05 06:31:11 +00:00
Antoine Brodin
8d8bfa7f9e
Reconnect uathload to the build.
2010-10-03 20:09:19 +00:00
Nathan Whitehorn
e3d8cf496d
Extend sysinstall to handle powerpc64 by teaching it that powerpc64 has
...
a lib32 distribution, and that the GENERIC kernel is named GENERIC64.
More modifications will be required later for installations from ftp due
to the shared platform name with 32-bit powerpc, but this is enough for
snapshot CDs to work.
Reviewed by: brucec
2010-10-03 17:50:43 +00:00
Oleksandr Tymoshenko
968ec6a63e
Add gpioctl(8). Utility for configuring/accessing GPIO pins
2010-09-28 03:28:20 +00:00
Ed Maste
f145c771fb
Protect the watchdog daemon against swap OOM killer. This is similar to
...
SVN r199804 which added protection to sshd, cron, syslogd, and inetd.
2010-09-26 01:45:33 +00:00
Doug Barton
6d7fe90938
Eliminate the --disable-ipv6 string which while technically correct in
...
terms of the arguments that configure was called with is misleading because
if IPv6 support is present on the system it will be present in BIND.
2010-09-22 18:46:17 +00:00
Nick Hibma
3532ad3e53
Bugfix: Reset the packet counters at the same time as the byte counts.
...
Reviewed by: brian
MFC after: 3 weeks
2010-09-18 22:26:50 +00:00
Jung-uk Kim
42fecd1294
Merge ACPICA 20100915.
2010-09-16 20:08:00 +00:00
John Baldwin
770e4c5bc0
Only attempt to list extended capabilities for devices that have a
...
PCI-express capabilities. Non-PCI-express PCI devices may simply ignore
the upper bits in a config register address effectively aliasing the
device ID register to 0x100 rather than returning 0xFFFFFFFF. Previously
the code relied on these reads returning 0xFFFFFFFF.
MFC after: 3 days
2010-09-16 16:03:12 +00:00
Ed Maste
cbb9ebd738
Allow a kernel config to specify a set but empty value via
...
'makeoptions OPTION=' for consistency with the make commandline.
Previously 'makeoptions WERROR=' would result in a syntax error; now
it produces the same effect as 'makeoptions WERROR'. Both forms now
result in 'WERROR=' in the generated Makefile.
2010-09-13 18:26:34 +00:00
Warner Losh
9117ce0c88
It turns out that TARGET_CPUARCH doesn't buy us much here, if anything, but
...
costs us another copy of the transform. Revert it.
# Maybe makefile.inc1 should set TARGET_CPUARCH for the cross-tools, but
# it doesn't now. That would solve problems in other places too.
Submitted by: jmallet@
2010-09-13 07:15:01 +00:00
Warner Losh
4a9a1e43a5
Ooops! Shouldn't have committed this
2010-09-13 02:26:36 +00:00
Warner Losh
519b7ecc1b
Merge from tbemd: use Makefile.arch to control building.
...
Reviewed by: arch@ (many times, no objection)
2010-09-13 02:21:07 +00:00
Warner Losh
cb015705d8
Use TARGET_CPUARCH instead of TARGET_ARCH here. Define TARGET_CPUARCH
...
based on TARGET_ARCH. Use TARGET_ARCH still for a powerpc64 test.
Futureproof for coming mipsel/mipseb and arm/armeb rename.
2010-09-13 00:57:48 +00:00
Jaakko Heinonen
ab7d0151f9
In backup_kernel(), support backing up subdirectories and handle files
...
with spaces correctly.
Approved by: cperciva
MFC after: 1 month
2010-09-12 18:53:44 +00:00
Colin Percival
211f2ba07f
"freebsd-update fetch -r NEWRELEASE" is meaningless and probably a typo
...
for "freebsd-update upgrade -r NEWRELEASE". Error out and suggest what
the user probably meant.
Submitted by: James Seward
MFC after: 1 month
2010-09-10 20:20:28 +00:00
Colin Percival
adbcc9964d
Add warning about freebsd-update upgrade needing lots of disk space.
...
Submitted by: jpaetzel
MFC after: 1 month
2010-09-10 19:23:59 +00:00
Colin Percival
85451f90f1
Remind the user that he needs to run 'freebsd-update install' to install
...
new bits after downloading them using 'freebsd-update upgrade'.
Submitted by: bapt
MFC after: 1 month
2010-09-10 19:20:52 +00:00
John Baldwin
b4fb1ba027
Document the format of extended capabilities in the '-c' output.
2010-09-09 18:51:20 +00:00
John Baldwin
64393db3d1
- Use 'sta' to hold the PCIR_STATUS register value instead of 'cmd' when
...
walking the capability list.
- Use constants for PCI header types instead of magic numbers.
MFC after: 1 week
2010-09-09 18:29:48 +00:00
Warner Losh
8f3bacb08f
Add file missed in r212337, my bad...
2010-09-09 03:33:07 +00:00
Warner Losh
ecc12db0a4
pc-sysinstall(8) patch that allows images to be written to disks
...
This patch creates the "image" directive for the pc-sysinstall config
file. This allows disks to be configured with an image instead of
partitioning.
PR: 150137
Submitted by: John Hixson
2010-09-08 20:10:24 +00:00
Maksim Yevmenkin
fc780ca17e
Make sure to only pickup hid_input items when parsing input reports.
...
As it turns out, libusbhid(3) also picks up hic_collection items even
though we explicitly requested hid_input items only.
Tested by: Buganini < buganini at gmail dot com >
MFC after: 1 week
2010-09-08 20:00:27 +00:00
John Baldwin
937a5e2c20
Simplify chkattached(). The PCIOCATTACHED ioctl only needs the pi_sel
...
field populated, it ignores the rest of the 'pci_sel' structure.
MFC after: 1 week
2010-09-08 18:18:01 +00:00
John Baldwin
79c2de35b5
- Add register definitions related to extended capability IDs in
...
PCI-express. I used PCIZ_* for ID constants (plain capability IDs use
PCIY_*).
- Add register definitions for the Advanced Error Reporting, Virtual
Channels, and Device Serial Number extended capabilities.
- Teach pciconf -c to list extended as well as plain capabilities. Adds
more detailed parsing for AER, VC, and device serial numbers.
MFC after: 2 weeks
2010-09-08 17:53:34 +00:00
Maksim Yevmenkin
33e98ade53
Do not request SDP attributes using ranges.
...
Apparently some devices do not like it.
MFC after: 1 week
Tested by: Buganini < buganini at gmail dot com >
2010-09-07 16:36:03 +00:00
Fabien Thomas
eb707d6039
When an asm location cannot be resolved to a function the cost
...
will be spread as small value and then filtered by the threshold.
As a first step solution display the number of event that cannot
be resolved as a valid function location.
MFC after: 1week
2010-09-03 13:54:02 +00:00
Kevin Lo
34759932a8
For consistency, cast result of getpid() to long
2010-08-31 07:19:10 +00:00
Nathan Whitehorn
89513bce11
Use MACHINE_ARCH instead of MACHINE as the directory to fetch packages
...
from. Packages are architecture dependent, not machine dependent.
2010-08-30 21:58:52 +00:00
Rebecca Cran
e7f8dd75b3
Fix incorrect usage of 'assure' and 'insure'.
...
Approved by: rrs (mentor)
2010-08-28 16:32:01 +00:00
Nathan Whitehorn
b12277d1d4
Repair some build breakage introduced in r211725 and garbage collect some
...
code made obsolete in the same commit.
2010-08-28 15:03:11 +00:00
Warner Losh
3a1d56f9a4
Make sure TARGET_ABI is defined. TARGET_ABI will die a horrible death
...
after we get all of TBEMD merged back into head, and make mips64 imply
n64, so don't bother to make this 100% pretty. You'll have to settle
for only 64% pretty.
2010-08-26 15:49:52 +00:00
Warner Losh
b86e178f05
Ugly kludge to paper over some kind of ld bug and/or misuse: don't
...
build uathload on mips n64 either.
2010-08-26 05:25:51 +00:00
Alexander Motin
9c1af42179
When ACPI reports current battery consumption rate in mAmps, print it also
...
in mWatts. Values in mAmps are not always suitable, because they depend on
battery voltage, which depends on battery type and charge level.
2010-08-24 18:07:59 +00:00
Warner Losh
b3b8bde704
Indent things consistently
...
PR: 149926
Submitted by: John Hixson
2010-08-24 06:11:46 +00:00
Warner Losh
25faff346c
MFtbemd:
...
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
2010-08-23 22:24:11 +00:00
Warner Losh
683b191334
This patch to pc-sysinstall allows the setting of a new config
...
variable for installation, which lets the user/front-end select
between MBR or GPT partitioning schemes when doing a dedicated disk
installation.
PR: 149772
Submitted by: Kris Moore
2010-08-19 06:11:06 +00:00