Commit Graph

10247 Commits

Author SHA1 Message Date
christos
5727fadda2 use getfsspecname() 2012-04-07 04:52:20 +00:00
gson
4caffa5d5e When printing the list of valid console names, don't treat the consoles[]
array as NULL terminated, because it's not.
2012-04-06 10:10:11 +00:00
cegger
135e6a1977 report l3 cache information on AMD Family 10h and newer processors 2012-04-05 11:05:53 +00:00
christos
bac18f3659 Pull FreeBSD fix from Andreas Tobbler:
- Write the ISO9660 descriptor after the apm partition entries.
- Fill the needed pmPartStatus flags. At least the OpenBIOS
  implementation relies on these flags.

This commit fixes the panic seen on OS-X when inserting a FreeBSD/ppc disc.
Additionally OpenBIOS recognizes the partition where the boot code is located.
This lets us load a FreeBSD/ppc PowerMac kernel inside qemu.
2012-04-02 19:01:21 +00:00
nisimura
dfe17599fe Change Ethertype 0x80df symbolic name. According to the real
if_ether.h, dated back to 1991, Integrated Solution, Inc. used the
following definitions.

#define ETHERTYPE_WIPC          0x80DE  /* ISI: WIPC protocol */
#define ETHERTYPE_ISIBOOT       0x80DF  /* ISI: bootd enet protocol */
#define ETHERTYPE_ISIBOOT_OLD   0x0807  /* ISI: old bootd (NOT OFFICIAL!) */
#define ETHERTYPE_RFS           0x0813  /* ISI: RFS protocol (NOT OFFICIAL!) */

No functionality change is expected.
2012-04-02 09:01:30 +00:00
dholland
343b89fd86 The movers came, a long time ago. Closes PR 44860. 2012-04-01 00:29:20 +00:00
wiz
1bfb052ed2 - improve wording;
- replace references to resolver(5) with ones to resolv.conf(5);
- remove references to FreeBSD (which were copied 1:1 from their
  man page).

From patch by Bug Hunting.
2012-03-29 18:37:45 +00:00
christos
537334cc90 add aliases for the protocol format 2012-03-28 17:39:33 +00:00
christos
cd4f9f6dc5 PR/41061: Steven Drake: mtree -d complains about extra symlinks 2012-03-25 16:07:04 +00:00
christos
22bbe71d05 Disengage ipf 2012-03-23 21:30:57 +00:00
wiz
3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
matt
d6a05e11ac Use a little const for quotes strings. 2012-03-21 10:11:34 +00:00
wiz
5f1d89ea80 Use Lk. 2012-03-17 11:11:35 +00:00
njoly
d0e00679ff Use Lk macro when dealing with URLs. While here update or remove some
dead URL links. Another part of PR/29238.
2012-03-15 22:35:02 +00:00
joerg
66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
christos
da8fd09e2d don't leak the branch target array. 2012-03-12 15:32:02 +00:00
christos
65aaee04ca - better printing of type/code flags/mask
- pass the instruction start pointer, instead of subtracting 1 to account for it
2012-03-10 22:55:28 +00:00
christos
a2855f0d2c Add a small disassembler. 2012-03-10 22:21:50 +00:00
wiz
d59179dffb Add missing word. 2012-03-10 19:38:16 +00:00
dsl
095ac4e735 Some FAT16 filesystems don't have 'hidden sectors' correctly set to
the offset of the filesystem on the disk.
Let '-b s1blk' be used to fix the value.
2012-03-10 18:42:18 +00:00
njoly
4d5ade5119 Remove dead xrefs to obsolete kvm_mkdb(8). 2012-03-05 10:57:18 +00:00
sborrill
079328a547 Print CPU stepping level 2012-03-02 16:29:31 +00:00
joerg
51bb6fdd57 Fix inverted condition when handling stale entries.
From Abhinav Upadhyay.
2012-03-02 15:09:58 +00:00
joerg
0be065ab9f More time_t fallout. 2012-03-02 02:58:46 +00:00
joerg
d7b8dc5f76 Fix format string. Make sure it doesn't reappear by using __printf_like
as appropiate.
2012-03-01 22:38:31 +00:00
joerg
4c7714ac9f Fix format strings to deal with 64bit time_t. 2012-03-01 22:31:48 +00:00
joerg
dfa4e075c4 Use uintmax_t for freqency computations to avoid differences between
platforms.
2012-02-29 23:34:01 +00:00
jmmv
cfa157d760 Properly find atf configuration files in the source tree. My previous
change dealt properly with etc.tgz only.  Addresses PR bin/45870.
2012-02-29 02:40:28 +00:00
jmmv
7e5c66f341 Populate /etc/atf with any missing files. Fixes PR bin/45870. 2012-02-27 17:56:14 +00:00
joerg
e9d4b22f91 Expand workaround for .so usage to do the chdir call just before
starting parsing, not during the tree iteration. This gives it a chance
to work.
2012-02-27 16:51:06 +00:00
christos
46641ee3e7 remove extra rule that got merged... 2012-02-26 22:04:42 +00:00
christos
394473e707 - make each element of a variable hold a type
- change get_type to take an index, so we can get the individual types of
  each element (since primitive elements can be in lists)
- make port_range primitive
- add a routine to convert a variable of primitives to a variable containing
- only port ranges.
2012-02-26 21:50:05 +00:00
rmind
2d942d9d58 Simplify slightly: merge iface into addr_or_iface, use it in filt_addr. 2012-02-26 21:14:50 +00:00
apb
90e1171c17 quote SRC_DIR and DEST_DIR everywhere. Also wrap some long lines. 2012-02-22 16:42:07 +00:00
apb
0196d40adb Fix a call to pwd_mkdb in the case that DEST_DIR is the empty string. 2012-02-22 16:27:38 +00:00
nakayama
9e8270494c Pass -d option to pwd_mkdb(8) in order to make databases at proper location. 2012-02-21 12:31:18 +00:00
joerg
50a2d17c77 SQLite doesn't use the FTS index for equal ops, so force it to do a FTS
search first. Drops run time by a factor of 6 for "whatis man".
Found by Abhinav Upadhyay.
2012-02-20 18:27:30 +00:00
joerg
fdbd00e5b0 Add reference to whatis(1). From Abhinav Upadhyay. 2012-02-20 18:25:51 +00:00
rmind
15d58f91b8 - Add NPF_DECISION_BLOCK and NPF_DECISION_PASS. Be more defensive in the
packet handler.  Change the default policy to block when the config is
  loaded and set it to pass when flush operation is performed.
- Use kmem_zalloc(9) instead of kmem_alloc(9) in few places.
- npf_rproc_{create,release}: use kmem_intr_{alloc,free} as the destruction
  of rule procedure might happen in the interrupt handler (under a very rare
  condition, if config reload races with the handler).
- npf_session_establish: check whether layer 3 and 4 are cached.
- npfctl_build_group: do not make groups as passing rules.
- Remove some unecessary header inclusion.
2012-02-20 00:18:19 +00:00
christos
d89c1403e3 m68k does not have or need db_machdep.c 2012-02-18 17:56:49 +00:00
njoly
91f381dd41 Use msg for indentation. 2012-02-18 17:49:28 +00:00
christos
0dbbdb2346 revert sparc64 hack 2012-02-18 15:57:06 +00:00
martin
da57bcbaec Fix build for sparc64 2012-02-17 12:24:13 +00:00
apb
44652a5537 Add "pwd_mkdb" item, which checks whether /etc/pwd.db is in the
new format, and runs "pwd_mkdb -V 1 /etc/master.passwd" to fix it.
2012-02-17 07:51:20 +00:00
joerg
bdc4335e48 Add support for compressed man pages in all the usual formats. 2012-02-16 20:58:55 +00:00
christos
3ffab2efa8 use -n too, so that we don't get a dup note. 2012-02-16 20:36:13 +00:00
christos
dd63132492 - make this work for arm32
- factor out duplicated ifdefs
2012-02-16 02:37:43 +00:00
joerg
56cd811802 Add support for apropos -s like in the old apropos. Fix capitalisation.
Add note about optional quotation. From Abhinav Upadhyay.
2012-02-15 23:53:13 +00:00
joerg
c701d37453 Also handle hyphen replacement if it was used as plain input and no
backslash sequence was used at all in the line.
2012-02-15 23:36:10 +00:00
joerg
79cdc1651d Be a bit more friendly to man pages using the roff .so command by
changing the current directory to the parent of the man -p entry, e.g.
/usr/share/man for /usr/share/man1.
2012-02-15 23:35:00 +00:00
riz
f8a1d7977c Back out the recent import of IPFilter 5.1.1 for the upcoming branch,
which will now have IPFilter 4.1.34.  IPFilter 5.1.1 will be restored
post-branch.

ok: core, releng.
2012-02-15 17:55:03 +00:00
joerg
d99b3bd499 Clean up cat pages that are older than the corresponding man pages.
Remove cat page directories that are empty.
2012-02-15 13:01:00 +00:00
joerg
6d11572944 Mark usage as __dead. 2012-02-14 17:33:38 +00:00
dholland
7da608ca9c Update dangling references to quotactl(2), mostly now libquota(3), and to
quotactl(8), mostly now quotarestore(8). ok riz@
2012-02-13 19:53:24 +00:00
wiz
1c18e63ac7 Bump date for previous. 2012-02-13 13:37:45 +00:00
spz
5091f3689d fix resource leaks and NULL uses found by Coverity scan.
Releng-ok by riz
2012-02-13 07:40:24 +00:00
dholland
2a4bf12d53 Remove quotactl(8). Successor for backup purposes is quotarestore(8).
Note that as of this writing the tool continues to work with the old
proplib-xml packet interface against the new libquota(3), so anyone
who has a use for it can bring it back from the Attic and/or create a
pkgsrc package.

Approved by releng for the freeze, and specifically okayed by core a
couple months ago.
2012-02-13 01:43:22 +00:00
dholland
aa498c6e1e Add quotadump(8), which is a link to repquota, and quotarestore(8),
which is new. Includes man page updates. Approved by releng for
freeze.
2012-02-13 01:35:06 +00:00
ast
bdf0a8da40 Use "NetBSD 6.0" and not "NetBSD 6" and sound less like a broken record.
Add note where the actual example is because that's where it's expected.
Part of earlier commit ok-ed by releng@
2012-02-11 07:27:25 +00:00
njoly
ca0e389587 Fix makemandb section. 2012-02-10 16:57:44 +00:00
wiz
9328365c03 Remove trailing whitespace. Put macro arguments on same line. 2012-02-10 16:25:47 +00:00
ast
7964aa2984 Update the amd64 and i386 examples to use /usr/mdec/bootxx_ffsv2,
i.e. DEFAULT_UFS2 as src/distrib/utils/sysinst/bsddisklabel.c does
since post-NetBSD5.  This avoids rendering an i386 or amd64 system
unbootable if the given example is thoughtlessly cut-and-pasted on
a NetBSD6.x system (been there, done that ;-) Qualify the descriptions
of /usr/mdec/bootxx_ffsv{1,2} along those lines.

Fixed a small typo in comment of distrib/utils/sysinst/arch/amd64/md.h.

Ok by releng@
2012-02-09 18:35:44 +00:00
riz
af51433848 Various English usage, spelling and markup fixes for envstat(4)-related
things, from Snader_LB.
2012-02-09 18:10:26 +00:00
joerg
c725fe53d5 Kill bad magic invocation. 2012-02-07 23:03:34 +00:00
joerg
ee6ce4b9fa getopt returns int, not char. 2012-02-07 22:59:32 +00:00
wiz
0409c3f975 No leading zeroes in date. 2012-02-07 21:02:33 +00:00
wiz
1507c42b9a No leading zeroes in date. New sentence, new line. 2012-02-07 21:02:23 +00:00
joerg
329b37d502 Fix C&P error with $NetBSD$ 2012-02-07 19:17:16 +00:00
joerg
410d0f4380 Import the new apropos/whatis.
This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
2012-02-07 19:13:24 +00:00
rmind
4d11ce4d7b Fix the family option in the grammar and example. 2012-02-06 00:41:36 +00:00
rmind
d47695fbde - Handle NPF rule procedures in the parser and thus re-enable them.
- Few small updates to the man page.
2012-02-06 00:37:52 +00:00
dholland
430a952206 Remove unneeded #include. 2012-02-05 14:14:44 +00:00
rmind
f7fec0d2a4 Multiple NPF fixes, add better error reporting from kernel side, add some
asserts, bump the version.
2012-02-05 00:37:13 +00:00
joerg
520acca96b Mark perfused_panic as dead. Canonical form of infinite loops is
for (;;). Remove completely redundant NOTREACHED markers.
2012-02-04 18:36:30 +00:00
pgoyette
460ef57533 Add missing period at end of sentence.
ok releng@
2012-02-04 18:25:53 +00:00
manu
9724ab82d4 Make sure perfused exit when the filesystem crashed, so that unmount
is done. Failure to do so caused deadlocks, with operation that
held a lock on the root vnode and got stuck in perfused forever.

Approved by releng.
2012-02-03 15:54:15 +00:00
yamt
e119700586 use a correct macro.
releng@ ok
2012-02-03 05:06:51 +00:00
matt
ded3ab848b Make this compile on vax (uninitialized use warning). 2012-02-02 03:00:48 +00:00
dholland
a577f74f5b libquota no longer requires libprop. Also remove some other no-longer-used
.PATH'd-in bits from repquota.
2012-02-01 17:53:01 +00:00
dholland
fb3f26c0cf Simplify elaborate calls to quota_check_limit(). 2012-02-01 17:48:10 +00:00
wiz
243adb95c2 Bump date for previous. 2012-02-01 09:30:01 +00:00
dholland
f9735fd481 Reimplement repquota -x to print in tabular form instead of XML. 2012-02-01 05:12:45 +00:00
dholland
f2da15f559 Remove unwanted decl of the old quotactl syscall. 2012-02-01 05:07:08 +00:00
mlelstv
780696aa56 Enable build of crash(8) for m86k platforms. 2012-01-31 21:17:57 +00:00
christos
109f5fba24 - remove dup included files
- use intptr_t instead of long where appropriate
- use perfused_ instead of perfuse_ for our own functions.
- more static
Fixes namespace collision of perfuse_mount with this and libperfuse.
2012-01-30 22:49:03 +00:00
dholland
56581d9c24 Needs its own copy of quotaprop.[ch] too. 2012-01-30 19:31:31 +00:00
dholland
2d9ddf6e73 Make it build in userlevel and hook it in. 2012-01-30 19:28:11 +00:00
dholland
89dd9c69f6 Add a copy of the proplib interpreter here so this program will
continue to work after it's removed from the kernel. This copy is
unchanged from sys/kern/vfs_quotactl.c except that I've preserved a
cop of the old rcsid.
2012-01-30 19:23:49 +00:00
dholland
3e2a4d1109 Remove dependence on quotaprop.h, also quotautil.c (no longer used).
Like repquota, compile in the number of object types for now because
making it support an arbitrary number would take some hacking.
2012-01-30 19:19:20 +00:00
dholland
6a92ecbca0 Rely on libquota for fallback to direct access of old-style quota files.
Keep the code around in #if 0 blocks for now, just in case some of the
logic might turn out to be wanted in libquota.
2012-01-30 19:18:36 +00:00
dholland
9aec0f661d Remove references to -D option. 2012-01-30 19:17:29 +00:00
dholland
eba182257f Don't use the old getvfsquota() here. 2012-01-30 19:16:36 +00:00
dholland
5f0d2c5f55 Add quota_quotaon() and quota_quotaoff(). Use them in quotaon(8). 2012-01-30 16:45:13 +00:00
darrenr
14e440d33e New files imported from IPFilter 5.1.1 need to be added. 2012-01-30 16:13:21 +00:00
wiz
f4788d8f8e New sentence, new line. Remove trailing whitespace.
Bump PKGREVISION for previous.
2012-01-29 11:32:23 +00:00
dholland
60d82a4ef2 Fix unsightly botch in repquota's heading output. 2012-01-29 07:23:52 +00:00
dholland
f0f8fe3be2 Rename static inline "helper" functions:
ufsclass2qtype -> quota_idtype_to_ufs
   qtype2ufsclass -> quota_idtype_from_ufs

The reason for the direction of "ufs" changing is that the old names
were among the symbols using "ufs" to mean "fs-independent". So the
old names were for translating "ufsclass" (fs-independent quota id
type) to "qtype" (ufs-specific quota id type) and vice versa.

These functions are used in only two places, both of which are
inappropriate, so at some point they should probably be removed.
They're also identity transformations so not particularly helpful,
unless one were to make a careful and concerted effort to distinguish
the ufs quota code numbers from the fs-independent ones. This has not
been done and is probably impossible without support from a program
verifier, and maybe not even then.

They are static inline, so no compat concerns arise.

Also adjust the symbols they use to avoid <quota/quotaprop.h>.
2012-01-29 07:16:00 +00:00
dholland
7950da9e90 Change dqblk_to_quotaval() from quota1_subr.c to dqblk_to_quotavals(),
and pass in two single quotaval structs (for blocks and inodes)
instead of an array of (implicitly) QUOTA_NLIMITS quotaval structs
indexed by constants from quotaprop.h.

Note: because this code is used by COMPAT_50 as well as ufs, this
change requires a kernel version bump. (The code is also used by
edquota, but via .PATH so it's not ABI-sensitive there.)
2012-01-29 06:23:20 +00:00
manu
8fcbc70792 Improve FUSE trace facility 2012-01-29 06:22:01 +00:00
christos
f1cc09510d Patch from Jung-uk Kim (jkim at FreeBSD dot org) to allow contents of multiple
directories to be merged to the current image.
2012-01-28 02:35:46 +00:00