sjg
c37859c219
Only need to getcwd() once
2011-03-06 17:41:11 +00:00
wiz
f1f9830b96
Sort options. Split "file system" like usual. Bump date.
2011-03-06 17:25:32 +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
sjg
b9fa549592
CWD should be compared against cwd
2011-03-06 04:34:25 +00:00
sjg
8892f885fd
Add unit tests to check that exists(some/dir/) works
...
Also fix handling of sysV substitutions when lhs and variable are empty.
Also that modifiers do not cause errors during conditional tests
when undefined variables should otherwise be ok.
Ie. .if defined(nosuch) && ${nosuch:Mx} != ""
2011-03-06 00:02:14 +00:00
sjg
be4a1e2c49
Treat some/dir/ the same as some/dir/.
2011-03-05 23:57:05 +00:00
christos
a469df4a1b
add other os support from MirBSD
2011-03-05 16:38:46 +00:00
christos
5a8a9e34c6
add mimic_gnu for eval print.
2011-03-05 16:38:25 +00:00
christos
0b915be387
use TOKEN_LINE from MirBSD
2011-03-05 16:37:50 +00:00
pooka
72867841aa
adjust wording in previous
2011-03-04 09:13:23 +00:00
pooka
2c06d51fbf
Add note about block device properties.
...
From discussion with <riz>.
2011-03-04 09:10:33 +00:00
sjg
47311dc80a
main.c now exports curdir[] so we can use it.
2011-03-04 04:55:51 +00:00
nakayama
c09c2a7b34
Fix build on Solaris 10.
2011-03-03 14:53:01 +00:00
dyoung
9863fc9961
Use __arraycount() and PRIu64. Delete unnecessary casts to unsigned
...
long long.
2011-03-02 19:52:03 +00:00
dyoung
439199a3fb
Pull pfsync_stats() out of inet.c and into pfsync.c so that inet.c does
...
not have to #include PF header files that pollute the global namespace
by #defining v4 and v6 (sheesh).
2011-03-01 19:01:59 +00:00
joerg
f3483179a4
If transforming patterns with \<...\> to implicit word bounaries, don't
...
change the global wflag, but use a per pattern flag derived from it.
Fixes usage of grep with multiple -w arguments.
2011-02-27 17:33:37 +00:00
mbalmer
336c1525dd
Don't use 'bool' as variable name. No binary changes.
...
From Henning Petersen, thanks!
2011-02-27 10:11:27 +00:00
phx
6a5a0ed53a
Add the -O option to set the OS type, which defaults to NetBSD when missing.
...
This is needed, because some vendors have stripped U-Boot so much that it
only accepts Linux kernel modules.
Also allow 'standalone' as module type.
2011-02-26 20:03:09 +00:00
sjg
4fab365c37
Fix rendering of :? example
2011-02-26 01:17:24 +00:00
jmcneill
e816b5f7a6
Don't error out while searching for empty directories, from FreeBSD:
...
http://lists.freebsd.org/pipermail/svn-src-head/2010-December/022913.html
2011-02-24 02:55:18 +00:00
pooka
56905440b6
.Xr rump_sp 7
2011-02-23 19:59:18 +00:00
pooka
b6c13d8580
* at least try to query size of non-regular size=host files too,
...
give up if we get 0
* fix a few error messages
2011-02-22 15:51:59 +00:00
wiz
ad04318fa8
Sort sections.
2011-02-22 15:47:02 +00:00
pooka
fbe84585a0
-f no longer has effect. from Snader_LB on irc.
2011-02-22 15:03:30 +00:00
pooka
29d11b7713
add command line options for kernel memory allocation limit and bootverbose
2011-02-21 18:50:21 +00:00
joerg
bfc4d64e8a
Use the current directory at start time for .PARSEDIR, if the filename
...
contains no /.
2011-02-20 23:12:09 +00:00
dholland
51eafd380d
Remove the extra blank line after "Fatal errors encountered -- cannot
...
continue". This has been there since 1.1 but I don't think it was
intentional. If anyone actually cares about the blank line being there
for some reason, go ahead and revert this change...
2011-02-20 20:17:35 +00:00
dholland
90b9a73922
Remove stray extra newline in error message.
2011-02-20 20:15:36 +00:00
pooka
090a5e7d74
Use "host" instead of the slightly more cryptic "e" to indicate
...
that the size of the mapping should be taken from the host file
size.
2011-02-18 09:54:03 +00:00
joerg
cf66e7150e
Simplify.
2011-02-17 22:03:25 +00:00
pooka
f6adb4bdd8
Use "size=e" as a way say "if the underlying file is preexisting
...
regular file, use whatever size it has".
2011-02-17 16:59:46 +00:00
pooka
aaf2cb63d0
Make it possible to specify the type of file (blk/chr/reg) that a
...
mapped file (-d) is exposed as within the rump kernel.
2011-02-17 16:03:05 +00:00
christos
c544446f26
Add verbose mode for readlink.
2011-02-16 23:08:29 +00:00
joerg
dc189fa216
Fix signed / unsigned issues. Refactor basename usage to use a local
...
copy and do it only once, not for each pattern. Remove late inline.
2011-02-16 18:35:39 +00:00
nakayama
54b4b1358f
Fix header, format and total count of system interrupt counters.
2011-02-16 12:58:38 +00:00
joerg
0a1172667a
Replace usr.bin/grep with the BSD grep implementation from FreeBSD.
2011-02-16 01:31:33 +00:00
pooka
0d30d053f5
remove a decidedly illogical statement
2011-02-14 17:30:54 +00:00
sjg
0734782fbf
Mark unused args.
2011-02-13 21:24:42 +00:00
sjg
8bb1fe5d14
When making a target that involves creating itermediate dirs,
...
realpath() will fail until after those dirs exist.
Try to ensure the same meta file name is used regardless.
2011-02-13 21:22:41 +00:00
christos
c93c31d5d2
simplify
2011-02-10 00:05:52 +00:00
dholland
c7df2d80f4
Fix broken build (hi Christos!)
2011-02-09 06:26:48 +00:00
christos
e95e36baec
- WARNS ?= 4
...
- fix memory leaks
- fix error printing
- pass lint
- KNF
- constify
- ansify
2011-02-08 22:16:58 +00:00
plunky
7349c9ffe7
use built-in macro ___STRING() rather than rolling our own
2011-02-08 18:14:00 +00:00
sjg
8d31de3127
tmplen should be static
2011-02-08 05:29:13 +00:00
christos
b9eac88297
weprovidedarracount()sothatwedon'tneedtosqueezethespacesout.
2011-02-07 23:56:18 +00:00
christos
ce3fa327b8
provide __arraycount() if not there.
2011-02-07 00:26:27 +00:00
pooka
f5d3a9ff38
don't use __arraycount in tools
2011-02-06 23:03:02 +00:00
christos
27eb1769a9
use unsigned char instead of uint8_t, easier for portability
2011-02-06 18:28:22 +00:00
christos
6b997b11db
better dependency handling
2011-02-05 19:13:48 +00:00
christos
4c07b5ae7d
fix missing comparison
2011-02-05 19:10:40 +00:00
christos
8e14f999b7
copyright date
2011-02-05 17:29:48 +00:00
christos
76706b0082
as promised make the last ops table auto-generated.
2011-02-05 17:14:14 +00:00
christos
6dfaa18130
oops forgot to commit the script.
2011-02-05 16:10:17 +00:00
yamt
5ec575268f
update usage
2011-02-05 15:22:17 +00:00
mlelstv
1d04f1ffaf
dosum also needs getnlist
2011-02-05 13:12:07 +00:00
christos
c93e02df25
fix tools build. Why doesn't .PARSEDIR work?
2011-02-05 03:09:46 +00:00
christos
759a394557
generate ops table dynamically. Will move the other table from tree.c there
...
too.
2011-02-04 23:32:44 +00:00
christos
15f35154fe
fix typo
2011-02-04 23:31:23 +00:00
pooka
74135a6c04
Allow to specify -d hostpath offset,size with disklabel.
2011-02-04 20:06:23 +00:00
roy
0ce325d8e4
Work with the new routing.
2011-02-04 15:09:22 +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
wiz
3e5e970356
Fix typo, from Henning Petersen in PR 44510.
2011-02-04 07:26:17 +00:00
pooka
a9061c30c5
Create backing image with mode 0644 instead of 0755 & document this.
2011-02-03 11:25:27 +00:00
pooka
53c3cffec5
whoopsie, bump date
2011-02-03 11:21:43 +00:00
pooka
ed37916e33
* make it possible to specify an offset in -d
...
* truncate -d hostpath only if it's a regular file and smaller
than offset+size
2011-02-03 11:21:16 +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
matt
4d5d6d9aa5
Add a new AF/PF_ROUTE which is 64-bit clean which makes the routing socket
...
interface (and its associated sysctls) act identically for both 32 and 64 bit
programs. The old unclean one remains for backward compatibility.
2011-02-01 01:39:19 +00:00
christos
50e452f9f7
deal with detecting the first and last cpu differently.
2011-01-31 19:41:19 +00:00
matt
c1edd37ce1
Make sure to getnlist in dovmstat
2011-01-31 18:56:04 +00:00
matt
b86170a11c
Add mips/mips64 support.
2011-01-31 03:37:28 +00:00
matt
45362e3914
Defer nlist processing until we know we need to it. If everything can be
...
obtained via sysctl, we can skip it entirely. This means we can run even
if not setgid.
getuptime will now use sysctl/clock_gettime if memf is NULL.
doevcnt now sues sysctl(kern.evcnt) is memf is NULL. It falls back to
groveling if sysctl returns an error of ENOENT.
dointr will call doevcnt to evcnt based intr stats.
2011-01-29 18:10:08 +00:00
pooka
6475f12521
support rump.sockstat
2011-01-28 18:52:48 +00:00
pooka
1dbf3ca8e4
Check sys_reboot() return value now that it's possible.
2011-01-22 13:43:07 +00:00
wiz
6792460beb
New sentence, new line.
2011-01-21 09:47:00 +00:00
pooka
e963960681
Add a simple dhcp client for rump kernels. It uses code from dhcpcd
...
for talking to the server and for setting the interface address
and route. However, otherwise it is quite different, since we need
to be working under the assumptions that there is no stable storage
on a rump instance, and that there are n networking stacks on a
given host.
2011-01-20 18:47:19 +00:00
ginsbach
b4abf20d50
- Fix an incorrect comparison (always true)
...
This created an unnecessary temporary file when using the -o option
to create a new file.
- Fix -o option bug reported by Tony Finch
The output file was incorrectly called "[stdin]" when overwriting
the the input file via standard in (unifdef -o file < file).
2011-01-20 15:24:24 +00:00
matt
1d4bb1d8f6
Change mips64 to use a 16 byte long double.
2011-01-18 08:30:10 +00:00
christos
003dddff9d
PR/44235: Valeriy E. Ushakov: Don't pick up a block from the free list if
...
it is not big enough, allocate a new one. XXX: this is inefficient, but at
least it does not end up corrupting memory.
2011-01-17 03:04:10 +00:00
njoly
d1860447da
Do not crash if a date cannot be represented (localtime returning
...
NULL), use the Epoch value instead.
2011-01-15 22:54:10 +00:00
wiz
e7d1c4c49a
Fix spelling, mark up NULL. Closes PR 44381 by Ryo HAYASAKA.
2011-01-14 14:21:36 +00:00
wiz
1831df68c2
Sort options in SYNOPSIS.
2011-01-12 19:55:06 +00:00
wiz
2164f8a67d
Fix xref.
2011-01-12 19:53:12 +00:00
christos
d1cb59540a
fix usage.
2011-01-12 18:51:42 +00:00
christos
1a231f468f
add -s option to compress spaces.
2011-01-12 18:28:19 +00:00
pooka
fca51725c2
shmif(4) bus dumping utility
2011-01-12 16:14:24 +00:00
wiz
2f3e33b8d2
Spell out parenthesis. From Ryo HAYASAKA in PR 44372.
2011-01-12 06:17:52 +00:00
dyoung
c45c4e89a1
Rename sigqueue to sigq to avoid clashing with sigqueue(2). Now this
...
builds again.
2011-01-10 17:14:38 +00:00
christos
f64bac8a30
format SI_QUEUE properly.
2011-01-10 05:15:17 +00:00
pooka
3c2830fb5d
BUGS is gone (and on its way out it inquired about the doctor's status)
2011-01-08 09:36:26 +00:00
dholland
78dfa763ff
fix typo, from Ryo HAYASAKA in PR 44332.
2011-01-06 08:30:09 +00:00
dholland
f4f54a9c39
Fix "-exec blah blah {} +" so it only matches when the {} is last, as
...
per the standard. Per (brief) discussion on tech-userlevel.
There should really be a form where you can do the equivalent of
"-exec blah {} blah +", but I think we're going to need to call it
something other than -exec. As it is it's sort of surprising that the
standards people didn't add a different name -- note what happens if
you try to do something like "find ... -exec expr {} + 2 \;".
2011-01-06 08:18:42 +00:00
apb
71bcc2da8f
Add an example of generating a list of integers; make it the first
...
example. Also add a reference to seq(1).
2011-01-05 19:59:48 +00:00
wiz
23e235307b
Fix usage (8th bit begone!)
2011-01-03 12:18:25 +00:00
pooka
6fd00c3f62
Add -c to control the number of CPUs configured in the kernel.
2011-01-03 10:44:40 +00:00
wiz
90bb351524
Sort usage.
2010-12-29 18:49:41 +00:00
wiz
7072bc9c3f
Use better reference after sorting in -f description.
2010-12-29 18:48:56 +00:00
wiz
29bd138c93
Sort usage.
2010-12-29 18:48:40 +00:00
wiz
825164c33e
Sort some more.
2010-12-29 18:46:48 +00:00
jmcneill
94f6c5770b
allow for buffer sizes < 32k
2010-12-29 14:38:54 +00:00
mrg
ebcfca8be3
add a new "-B buffersize" flag to both audioplay and audiorecord.
...
suggested by jmcneill@.
sort audioplay manual some.
2010-12-29 13:09:03 +00:00