christos
0477909eb4
From Nathan Whitehorn (nwhitehorn at freebsd dot org):
...
Add code to generate bootable ISOs on Powermac and CHRP systems.
Synthesize some partition maps (APM and MBR, respectively) pointing
to (a) the whole disk, and (b) relevant El Torito boot images that
have been added by other code. These partition maps are a little
bit funny looking, but they seem to work. FreeBSD has been using
this successfully in their release generation on powerpc, as well
as generating all non-SPARC install media. SPARC support could
probably be added as an extension of this patch.
2011-05-22 21:51:39 +00:00
riastradh
f4368f5168
Initialize psshfs root node's readdir waiters queue.
...
Every other node's readder waiters queue is initialized in makenode,
but the root node is created specially.
ok pooka
2011-05-19 15:07:16 +00:00
wiz
57309cc658
Sync usage with manpage.
2011-05-15 00:06:23 +00:00
wiz
103f698f94
Sort options. Remove unnecessary quotes and Bk/Ek.
2011-05-12 08:42:24 +00:00
christos
ce1401c437
use err(3) and warn(3) for error and warning printing, tiny knf.
2011-05-12 01:59:16 +00:00
christos
5e771eb510
Don't use a static buffer for ifaddrs (and not check for overflowing it!)
...
(speciallly if you are setuid!)
2011-05-11 00:38:28 +00:00
njoly
1199515b5b
Fix prologue macros order.
2011-05-10 12:16:18 +00:00
christos
0172147d4a
AS additions from Zafer Aydogan to print the AS path. Minor cleanups to compile
...
without WARNS=1 hackery.
2011-05-10 01:58:58 +00:00
christos
64b9d7212f
Add AS support for traceroute6. While here cleanup both traceroute programs
...
a bit.
XXX: Error printing on traceroute should be revisited.
2011-05-10 01:52:49 +00:00
manu
73963ae9de
Enable the build of perfused and libperfuse
2011-05-09 08:51:08 +00:00
manu
dfdc5ae18f
Display actual error from FUSE on failures
2011-05-06 13:45:35 +00:00
jruoho
7b594ad6a4
Identify AMD Family 11h. From PR bin/41188 by FUKAUMI Naoki.
2011-05-03 09:06:22 +00:00
christos
acc16d96d1
Share the amd64 and i386 files.
...
XXX: Is there a better way to get the cpu family?
2011-04-30 16:57:58 +00:00
wiz
613716bd88
Sort sections, SEE ALSO, and fix xref.
2011-04-29 10:31:02 +00:00
wiz
31ccbbf612
Fix a typo.
2011-04-28 16:23:41 +00:00
wiz
9505784535
Sort sections.
2011-04-28 12:12:47 +00:00
wiz
769b2ceb89
security(7), not (8).
2011-04-28 11:57:08 +00:00
wiz
85e4f3c354
security(7), not (8).
2011-04-28 11:23:57 +00:00
wiz
5989309eef
Add -f to usage, and make it match man page.
2011-04-25 22:54:05 +00:00
wiz
819b5392dd
New sentence, new line. Use more markup.
2011-04-25 22:53:09 +00:00
wiz
933a549c56
Make usage match manpage.
2011-04-25 22:51:26 +00:00
wiz
9ebf684514
Remove unimplemented -b option. From YOMURA Masanori.
2011-04-25 22:49:06 +00:00
wiz
d76f551343
Add option arguments to descriptions. From YOMURA Masanori.
2011-04-25 22:46:35 +00:00
wiz
f62c7cc384
Typo, and markup consistency. From YOMURA Masanori.
2011-04-25 22:45:31 +00:00
wiz
a3587e505a
Use Fl for flags, not Ar.
2011-04-25 22:34:46 +00:00
wiz
2da9b3e053
New sentence, new line.
2011-04-25 22:32:27 +00:00
wiz
2c1d99899f
New sentence, new line. Remove trailing whitespace.
2011-04-25 22:20:29 +00:00
wiz
9c28d8c767
Use more markup.
2011-04-25 22:12:05 +00:00
martin
0210de65a6
Use rsd0c instead of the (far less common) rwd0c as boot disk in the
...
sparc64 example.
2011-04-25 07:04:50 +00:00
manu
33c1bbe9da
- fix warnings
...
- try to handle ENOBUFS in a nicer way
- use errx() for usage message, not err(), as we do not waht strerror(errno)
2011-04-25 04:30:59 +00:00
martin
4b3298a1fe
Invert the chroot/tcpdump/etc test and make it remove the (not needed
...
anymore) directory.
2011-04-17 13:16:59 +00:00
elric
98fbe74f8c
Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
...
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.
2011-04-15 18:05:42 +00:00
mrg
e813220ee8
enable crash(8) for sparc64. it's still sort of minimal and segvs
...
on some commands, but it sort of works and isn't useless.
2011-04-14 08:21:06 +00:00
mrg
8ca46a05f4
replace a non-working make construct with a working one.
...
now crash only builds unsupported.c on non-x86 systems again.
2011-04-12 01:47:20 +00:00
martin
c98db97906
Add a new check to populate /var/chroot/tcpdump/etc
2011-04-11 20:29:50 +00:00
mrg
07a98cd33f
obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
...
in db_sym.[ch] as it is used by the elf version of crash(8).
i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.
2011-04-11 04:22:30 +00:00
pgoyette
4516c056be
Synchronize -N option name in Synopsis with that in the Description
2011-04-10 22:49:52 +00:00
christos
bee149d152
- amd64 support
...
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua
2011-04-10 20:39:42 +00:00
ahoka
76a36edbfd
fix one more flash_addr_t fallout
2011-04-04 18:30:07 +00:00
mbalmer
428c959348
Fix PR 42923, from Takahiro HAYASHI, thanks.
2011-04-02 10:19:27 +00:00
dholland
81f95bf6fa
Don't cast return value of malloc
2011-03-30 05:24:05 +00:00
dholland
b639c25325
use __printflike()
2011-03-30 05:20:59 +00:00
bouyer
e5fa3d981b
Make sure to not report quotas for a class if we didn't get valid datas
...
from kernel.
2011-03-27 17:15:17 +00:00
bouyer
c5e67c7b83
quota2_prop.c moved to libquota
2011-03-25 10:30:35 +00:00
bouyer
d9210c2405
Add a new libquota library, which contains some blocks to build and/or
...
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
jruoho
b0ced04988
As per request from the author, put non-standard PERFORMANCE back.
2011-03-24 05:48:54 +00:00
christos
8bd84b0401
Fix typos in character ranges from: Baptiste Daroussin bapt at freebsd dot org
2011-03-23 13:11:51 +00:00
jruoho
761da725b5
Use 'offset indent' for the list of commands. Emphasize valid commands.
...
Remove PERFORMANCE (too small paragraph to warrant a section).
2011-03-22 07:40:10 +00:00
jruoho
b9f2143d66
Use .Ss for non-standard subtitles in the DESCRIPTION.
2011-03-22 07:31:42 +00:00
jruoho
3ce23e1c1e
Use a better width for the list.
2011-03-21 15:35:21 +00:00
joerg
ff53df718a
Create vers.c with -r, there is no point in embedding an ever changing
...
token that isn't even used.
2011-03-21 05:09:33 +00:00
plunky
0e26bab8bd
provide more informative error messages
2011-03-20 19:46:13 +00:00
ahoka
ab7aeea36d
Fix markbad command
2011-03-20 06:10:27 +00:00
christos
ade14f59b9
don't decrement if children are 0
2011-03-17 19:43:34 +00:00
joerg
080ec811b2
Remove chrtbl(8). Since NetBSD 1.6, the rune type based file format for
...
LC_CTYPE has been used.
2011-03-17 02:35:27 +00:00
christos
155180a9df
- safer way to count kids
...
- if we are really bombarded with connections, don't bother to fork() and
converse.
2011-03-16 20:17:00 +00:00
christos
976d43ec5c
provide unconst for the havenots
2011-03-16 20:15:59 +00:00
pooka
8a0861f462
remove unnecessary superuser check -- bind will fail if bind fails
2011-03-14 12:03:45 +00:00
erh
b0e49f7e0c
Fix the usage of the -s option to mention using it multiple times, rather
...
than the deprecated colon separated syntax.
2011-03-12 23:04:16 +00:00
njoly
d96aa7b8c7
- Protect flags to avoid macro expansion by mandoc.
...
- Explicitely close display block.
2011-03-07 17:44:37 +00:00
bouyer
5fd63a9777
Don't use the same char b0[] for BLOCK and FILE timeprt(), they would
...
override each others.
2011-03-07 11:56:31 +00:00
christos
e73fcb7199
KNF
2011-03-06 23:41:47 +00:00
christos
6a453cd117
more code deduplication
2011-03-06 23:25:42 +00:00
christos
cb869888d4
use common utils
2011-03-06 23:24:33 +00:00
christos
412de05f04
more KNF
2011-03-06 23:13:22 +00:00
christos
a518d1d73c
use merged out code.
2011-03-06 23:07:23 +00:00
christos
3f339fb13b
- KNF
...
- merge code
- fix error printing
- don't use static buffers
2011-03-06 22:33:55 +00:00
wiz
54f3ceb271
Sort options, split "file system".
2011-03-06 17:36:32 +00:00
wiz
9758975014
Remove trailing whitespace; remove dot at end of SEE ALSO; new sentence, new line;
...
split "file system"; more markup.
2011-03-06 17:34:57 +00:00
wiz
ee43c34a26
Split "file system" like usual. Improve SYNOPSIS. Various other fixes.
2011-03-06 17:32:38 +00:00
bouyer
063f96f3c2
merge the bouyer-quota2 branch. This adds a new on-disk format
...
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.
See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
wiz
537c852bde
Fix a typo, sort commands.
2011-02-27 23:28:12 +00:00
ahoka
f338bae6fa
Add manpage for flashctl
2011-02-27 17:51:45 +00:00
ahoka
2b6ee22130
Import the Flash and NAND subsytem code contributed by the University
...
of Szeged, Hungary.
The commit includes:
- Flash layer, which gives a common API to access flash devices
- NAND controller subsystem for the flash layer
- An example OMAP driver which is used on BeagleBoard or alike ARM boards
2011-02-26 18:07:13 +00:00
jmcneill
6c24ed80e8
make pcictl pci0 list dump all busses by default, unless a bus number is
...
specified with -b
2011-02-25 21:40:48 +00:00
wiz
1cc61a3b95
Add quoting for minus, for PostScript output.
2011-02-25 14:11:25 +00:00
jmcneill
29a080d47e
Today I learned that 'pcictl pci0 list -b -1' lists devices on all busses.
2011-02-25 13:50:18 +00:00
hannken
05e91bfee8
fss(4): Allow FSSIOCSET to set the initial flags. Add a new flag
...
"FSS_UNLINK_ON_CREATE" to unlink the backing store before
the snapshot gets created.
With this change dump(8) no longer dumps the zero-sized, but named
snapshot it is working on. Same applies to fsck_ffs(8).
2011-02-24 09:38:57 +00:00
dyoung
6c185a0be8
Don't use bool as a variable name.
...
Remove a bunch of parameter names form function prototypes.
2011-02-23 01:23:03 +00:00
jmcneill
623e90f32d
fix printing of padlock features
2011-02-19 13:34:38 +00:00
wiz
3d273e44b9
Sort option descriptions. Merge single-letter options in SYNOPSIS.
2011-02-17 17:05:05 +00:00
jruoho
e96937f774
Provide a definition for the size of the RSDP in ACPI 1.0.
...
Appears to be missing in the new ACPICA.
2011-02-17 15:06:34 +00:00
jmcneill
0a87e1998a
document -c and -s flags
2011-02-17 10:21:02 +00:00
jmcneill
d34a996f1f
- when dumping table bytes, make sure to dump our header and not the next one
...
- also dump tables with bad checksums, unless the -s flag is specified
2011-02-17 10:18:05 +00:00
jmcneill
d91f7d5299
dump bytes for tables that acpidump doesn't decode, and print them
...
as characters instead of hex if '-c' flag is provided
2011-02-17 02:55:16 +00:00
uebayasi
dbb2d01c6b
Suppress a superfluous whitespace after "time=..." in the output.
2011-02-14 16:27:58 +00:00
kefren
a9e39e843e
get rid of unused variable/assignments
2011-02-14 11:43:59 +00:00
enami
e8824b0da4
A number greater than or equal to 1.0 is a positive number.
2011-02-14 02:43:37 +00:00
enami
5a1e40df4f
Put space after comma and around binary operator.
2011-02-14 02:42:26 +00:00
tron
cdfb116b0f
Install "etc/gpio.conf" if it is missing.
2011-02-13 20:25:35 +00:00
tron
85add3c312
Add "npf" to the list of startup scripts that get checked.
2011-02-13 20:17:26 +00:00
tsutsui
14d39e456d
Fix botch in previous revision. Sorry for a stupid change.
2011-02-10 23:25:11 +00:00
kefren
d2ac267049
stop processing a label mapping message if we don't have a route for it.
...
This way we avoid failing an assert later in mpls_add_label()
2011-02-10 12:44:41 +00:00
kefren
34493327dd
use RT_ROUNDUP provided by net/route.h
2011-02-09 11:38:57 +00:00
rmind
bb9ae7c0c2
Restore historic SCCS IDs in the comments (were removed in previous commit).
...
Noted by wiz@.
2011-02-09 10:25:40 +00:00
plunky
9119e9c88f
the default socket rcvbuf for L2CAP is only 4Kbytes which is only
...
2 and a bit ethernet packets. Check and increase SO_RCVBUF on startup
so that we have buffers for 10 complete packets, should solve a
reported problem with overruns at higher connection speeds (our L2CAP
does not have any flow control).
(the default can still be adjusted upwards using sysctl)
2011-02-08 21:59:50 +00:00
plunky
bc0aea6bfb
check number of filters received against max possible
2011-02-08 21:43:45 +00:00
rmind
9b6bd2d968
Remove clause 3 (UCB advertising clause) from the University of Utah
...
copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.
Extra verification by snj@.
2011-02-08 20:20:06 +00:00
tsutsui
7efd442c9a
Retire legacy grfinfo and hilinfo derived from HPBSD
...
since finally hp300 got wscons.
2011-02-07 18:11:28 +00:00
dholland
b0b5abdaa0
Fix typo, from Henning Petersen in PR 44513.
2011-02-07 01:37:12 +00:00
yamt
6825a3d2a8
whitespace. no functional changes.
2011-02-05 13:32:32 +00:00
martin
82fe9809af
Use RT_ROUNDUP() and friends from sys/route.h instead of homegrown
...
variants.
2011-02-04 14:31:23 +00:00
rmind
3bb326c464
Fix sun2 builds. Noted by joerg@.
2011-02-04 00:19:51 +00:00
rmind
07ac07d35f
NPF checkpoint:
...
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.
2011-02-02 02:20:24 +00:00
chuck
f46c12c85c
remove no-longer-valid wustl email address for me.
...
no functional change with this commit.
2011-02-01 21:00:25 +00:00
chuck
e2bf3ae6ea
udpate license clauses on my code to match the new-style BSD licenses.
...
remove no-longer-valid wustl email address for me.
no functional change with this commit.
2011-02-01 20:58:15 +00:00
plunky
9a8271a39a
when a BNEP channel is opened, clear any NetType or MulticastAddress
...
filters that may be in effect at the remote side.
2011-01-27 12:19:48 +00:00
plunky
a14e16bfe0
style nit
2011-01-27 11:13:59 +00:00
pooka
5f7e80a834
Add support for the Extensible MIPS ("eMIPS") platform. The
...
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.
eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing. eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.
NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman. Microsoft Corporation has
donated full copyright to The NetBSD Foundation.
Platform support for eMIPS is the first part of Microsoft's
contribution. The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
kefren
716840ec3a
avoid advertising 0/8 transport address (conforming RFC1122
...
Section 3.2.1.3)
2011-01-22 19:46:46 +00:00
kefren
0c3c6bf2b7
use SLIST_FOREACH_SAFE when deleting a peer in loop
2011-01-22 19:35:00 +00:00
ginsbach
818c8e81ff
- Replace fatal2() with the appropriate err(3)/errx(3) calls.
2011-01-20 15:48:11 +00:00
rmind
f938371887
NPF checkpoint:
...
- Add the concept of rule procedure: separate normalization, logging and
potentially other functions from the rule structure. Rule procedure can be
shared amongst the rules. Separation is both at kernel level (npf_rproc_t)
and configuration ("procedure" + "apply").
- Fix portmap sharing for NAT policy.
- Update TCP state tracking logic. Use TCP FSM definitions.
- Add if_byindex(), OK by matt@. Use in logging for the lookup.
- Fix traceroute ALG and many other bugs; misc clean-up.
2011-01-18 20:33:45 +00:00
minoura
1dfc739f1d
Whitespace.
2011-01-14 13:31:47 +00:00
minoura
c98325a1d2
Fix restore() (-r option). It didn't read the input file.
...
Apparently I did not test that code.
Pointed out by wiz@, thanks.
2011-01-14 13:25:16 +00:00
haad
6f5bb5ac37
Move chown from usr.sbin to sbin and chgrp from usr.bin to bin directories.
...
This was discussed and oked on tech-userlevel I have run full build release,
test anita cycle with this patch.
2011-01-13 22:28:35 +00:00
jakllsch
a96fe1437c
Fix copy/paste error that resulted in a extra space after the KB/t column.
2011-01-09 03:35:23 +00:00
jakllsch
65d4cff419
NetBSD/vax libm now has fmax, use it again.
...
Also, display average transfer size using dynamic precision too.
2011-01-09 02:40:19 +00:00
jakllsch
208ac54ed2
NetBSD/vax does not implement fmax(3), substitute with existing MAX() macro.
2011-01-08 02:36:52 +00:00
jakllsch
5637a88e80
Maintain 5-character width of MB/s column by dynamically adjusting the
...
decimal precision.
This should work until disk transfer rates exceed 99999 MB/s.
2011-01-07 03:12:27 +00:00
christos
63a6577561
make error messages more consistent.
2011-01-04 20:45:12 +00:00
kefren
57323b5589
check from_cidr_to_union() result
2011-01-04 10:58:15 +00:00
wiz
b6d5645a8f
Fix fd leaks. Found by cppcheck.
2011-01-04 10:32:34 +00:00
wiz
e57ebdb6c5
Close masterfd after reading from it. Found by cppcheck.
2011-01-04 10:30:21 +00:00
wiz
ecde3f3716
Fix possible NULL pointer dereference in #ifdef AS_DEBUG_FILE.
...
Found by cppcheck.
2011-01-04 10:26:56 +00:00
wiz
57af1dbb63
unifdef -U RCSSTAT
...
This code was added in 1.2 by brezak with changes for the commit message:
"Change <sys/dir.h> to <dirent.h>"
and looks like it never worked.
2011-01-04 10:23:40 +00:00
kefren
53e5c5d4ca
Fix more memory leaks in case malloc fails
2011-01-04 10:18:42 +00:00
wiz
28f00e2eeb
Fix fd leaks in error cases. Found by cppcheck.
2011-01-04 10:14:25 +00:00
wiz
74431f1f44
Fix fd leak in error case. Found by cppcheck.
2011-01-04 10:10:39 +00:00
wiz
ff17b1fa3b
Use pclose() after popen(). Found by cppcheck.
2011-01-04 10:05:55 +00:00
wiz
a148caca6e
Fix fd leaks in error cases. Found by cppcheck.
2011-01-04 10:01:51 +00:00
wiz
89152edad2
Fix memory leak in error case. Found by cppcheck.
2011-01-04 09:58:03 +00:00
wiz
613c28210d
Fix fd leaks in error cases. Found by cppcheck.
2011-01-04 09:48:21 +00:00
wiz
c15af5889a
Fix fd leak in error cases. Found by cppcheck.
2011-01-04 09:43:39 +00:00
wiz
f5249cc468
Fix memory leak in error case. Found by cppcheck.
...
XXX: so_tag has same problem?
2011-01-04 09:42:21 +00:00
wiz
bcfe662395
Fix fd leaks in error cases. Found by cppcheck.
2011-01-04 09:32:31 +00:00
wiz
f5e448fd74
Fix fd leaks. Found by cppcheck.
...
While here, fix typo in warning message.
2011-01-04 09:28:44 +00:00
wiz
7892952169
Fix fd leak in error case. Found by cppcheck.
2011-01-04 09:25:21 +00:00
wiz
7e975aaf96
Add missing breaks in switch statement. Found by cppcheck.
2011-01-04 09:16:17 +00:00
wiz
baacf5e062
Fix fd leak in error case. Found by cppcheck.
2011-01-04 09:14:42 +00:00
wiz
f5bd7d1980
Close fd in error case. Found by cppcheck.
2011-01-04 09:13:22 +00:00
wiz
260bd09a04
Use format string for err(). From Henning Petersen in PR 44326.
2011-01-04 09:04:24 +00:00
kefren
1eed43ba6c
show in neighbour information if peer is MD5 authenticated
2010-12-31 11:29:33 +00:00
wiz
8e0432a723
Make usage match SYNOPSIS.
2010-12-31 06:16:17 +00:00
wiz
0161387400
Sort SYNOPSIS, use Pa for path.
2010-12-31 06:15:08 +00:00
christos
92b36398b7
- detect calloc failure
...
- int -> size_t
- cache strlen
- proper cast for ctype macro
2010-12-30 21:26:00 +00:00
kefren
e64aab24d3
* add config file so one can control id, timers and label assignment and
...
use neighbour specific options - XXX: needs documentation
* add peer authentication using TCP_MD5SIG. Interoperability tested with
Cisco IOS
* use SLIST_FOREACH_SAFE when deleting labels instead of re-looping.
2010-12-30 11:29:21 +00:00
pgoyette
eab26c47c1
Rump-ify powerd.
2010-12-19 22:52:08 +00:00
jruoho
2f16bead08
Fix theoretical buffer overflow by using MAXPATHLEN for realpath(3).
2010-12-19 16:25:16 +00:00
joerg
879c335754
Don't assign CFLAGS. Use default WARNS from usr.sbin/Makefile.inc.
2010-12-18 04:25:37 +00:00