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
christos
d6d145ee46
only setup siginfo handler if we have a tty.
2010-12-28 15:28:31 +00:00
christos
a6dac2b7b7
The SIGINFO changes made the sigprocmask syscalls dominate all the rest:
...
- Don't bother dealing with signal masks if we are not connected to a tty.
- Compute the blocking mask only once.
- Only do the block-unblock game only when we are going to do something
(execute, print a warning, etc.)
2010-12-27 16:09:46 +00:00
wiz
8d68ab3ee4
New sentence, new line.
2010-12-26 14:26:45 +00:00
jmcneill
4b6947bfe1
hook videoctl into build
2010-12-26 11:31:43 +00:00
jmcneill
190912dcf9
add videoctl(1), a tool for displaying or setting parameters on video(4)
...
devices
2010-12-26 10:37:14 +00:00
christos
fdbe2a0785
can't play games with structure names since cpu_data refers to cpu_info, so
...
provide our own copy for everything.
2010-12-25 23:36:59 +00:00
dholland
626c509661
erm. fix previous...
2010-12-25 21:39:11 +00:00
christos
5ee7c6c8d5
use a local definition of cpu_info if we have __HAVE_CPU_DATA_FIRST
2010-12-25 20:50:36 +00:00
dholland
ad5f4cbc2e
Maybe fix a problem that appeared on loonix.
2010-12-25 20:46:18 +00:00
dholland
f8d6aa2c68
Many C libraries don't set errno when malloc fails, so always use
...
strerror(ENOMEM).
2010-12-25 20:35:25 +00:00
dholland
305d151446
Improve confusing error message when getcwd() fails.
2010-12-25 20:34:08 +00:00
dholland
e05b408d55
Uses stat; needs sys/stat.h. No idea what's pulling it in implicitly on
...
NetBSD so I didn't notice. Woops. Noted by Kurt Schreiner on current-users.
2010-12-25 17:19:04 +00:00
christos
8ac898131d
Don't crash on old kernels that don't have the new per cpu counters.
2010-12-25 14:18:37 +00:00
dholland
3f9d98c828
Begin cleanup of the make parser: separate out the logic for reading files
...
from the parsing goo. This will now use mmap for reading if it works and
fall back to read only for pipes and such. Step 1 of a cleanup program
proposed without objection on tech-toolchain.
2010-12-25 04:57:07 +00:00
enami
d5a41b7133
We still need to update ouvmexp to output the differene from
...
previous iteration.
2010-12-24 23:39:19 +00:00
njoly
1adf1b7dc0
Fix sub-section reference.
2010-12-23 20:11:00 +00:00
wiz
8011e5f217
Talk more about NetBSD and less about FreeBSD. Sort sections.
2010-12-22 09:05:07 +00:00
christos
90cb07e972
PR/44259: Aleksey Cheusov: xargs: -r option is supported but not documented
...
Synced with the FreeBSD doc.
2010-12-21 20:30:13 +00:00
christos
301830e51c
make this work with the per-cpu counters.
2010-12-20 04:25:03 +00:00
wiz
33d2a9cdc6
Sort sections.
2010-12-18 23:36:23 +00:00
christos
7e6e5c1f48
Add an 'l' style for sorting that sorts by the string length of the field.
2010-12-18 23:09:48 +00:00
christos
c732e7b752
PR/44235: Martin Husemann: Fix core dump due to memory corruption.
...
Found by Henning Petersen
2010-12-18 20:57:41 +00:00
wiz
be4e8c8eb1
Replace "\t" with Ta in table.
...
Fixes output with mandoc. Noted by njoly.
2010-12-18 14:22:42 +00:00
plunky
804a0485e5
correct the error message (wait3->waitpid)
2010-12-17 11:32:57 +00:00
wiz
3d3c5d42cb
Observe the following spelling:
...
- wide character (noun)
- wide-character (adjective)
Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
dholland
c79b866358
Don't pass unused argument. From Doug Barton.
2010-12-16 05:42:14 +00:00
dholland
f0a79c06c5
Use strlcpy, not strncpy, when the desired semantics are strlcpy's
...
rather than strncpy's.
2010-12-16 05:30:16 +00:00
sjg
b3f04f7310
Invalidate meta_fname when we finish a job, so that in compat
...
mode, we do not report a previous .meta file as being involved
in an error.
2010-12-15 23:03:35 +00:00
pooka
bd7256bb7c
Guard against supplying the same parameter multiple times in one -d argument.
2010-12-15 19:07:43 +00:00
pooka
f258e5074a
language fix. sniped by wizd
2010-12-15 18:42:59 +00:00
pooka
8457e85a38
document the current syscall bug with rump_server and -l
2010-12-15 16:23:55 +00:00
pooka
3c577ba703
Deal with crunch the standard way.
2010-12-15 11:22:41 +00:00
wiz
77b9f93f9e
Sort options in usage same as in man page.
...
While here, replace \xa0 with ' '. Where do you get these from?
2010-12-15 09:40:21 +00:00
he
c4e8d271ce
Make this build with CRUNCHEDPROG defined, and default to the sysctl()
...
method of fetching information. Apparently we can't simply not define
the prog_ops struct in this program.
2010-12-15 09:15:05 +00:00
he
ad28476e8e
Make this build as part of the dist/miniroot build, where it's still
...
referenced. Adjust for the move from dist/ to external/.
2010-12-15 08:09:23 +00:00
pooka
b6c04e07af
Add an example for a server listening on a tcp port.
...
also, bump date to avoid problems with wizd
2010-12-14 19:52:14 +00:00
pooka
dbc10b5a41
Add -d which can be used to register host-backed block devices in
...
the rump kernel.
It would be cool if this, and the other options, could be specified
in a config file (plist or other).
2010-12-14 16:40:05 +00:00
plunky
a8cbf485eb
on reflection we can use uintmax_t here instead of trying to decode
...
the value manually, as only 17 bits are defined and the value is
unlikely to exceed UINTMAX_MAX (would only prevent decoding)
2010-12-14 15:18:20 +00:00
wiz
d5dca2a9ff
Fix Xr and use Sx.
2010-12-14 09:39:53 +00:00
pooka
f2ee316255
Add netstat rump client. For now, it always sets -X, i.e. will
...
use only sysctl and no kvm (implementing /dev/mem for a rump kernel
would probably not be hard, but still a non-zero effort).
Note: since there is absolutely no network activity in a fresh rump
kernel, rump.netstat usually displays exactly nothing when invoked
without parameters. Arguments like -r, -bi, -p icmp etc. produce
more stuff.
2010-12-13 21:15:30 +00:00
plunky
c7407d6266
add attributes from the Basic Printing Profile v1.2r00
2010-12-13 21:08:37 +00:00
pooka
759b07d20a
there's a manpage now ... just not here
2010-12-13 19:39:37 +00:00
pooka
78f20aa8ef
manpage
2010-12-13 19:36:34 +00:00
pooka
dde3f793dc
Also support ld syntax in -l.
...
was: -l librumpvfs.so
now: -lrumpvfs
2010-12-13 14:26:22 +00:00
pooka
d3ab3ede2e
Add -m which can be used to load modules (which is a completely
...
different code path than using dlopen() before rump_init(), since
the former uses the in-kernel linker and the latter links the object
in rtld).
So:
golem> ./rump_server -l librumpvfs.so -m /sys/modules/tmpfs/tmpfs.kmod unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME CLASS SOURCE REFS SIZE REQUIRES
suser secmodel builtin 0 - -
tmpfs vfs filesys 0 16713 -
wapbl vfs builtin 0 - -
Source is filesys instead of builtin, as expected.
Notably, for -m you *must* use -l librumpvfs.so. This is because
you need VFS in your kernel to be able to load modules from the
file system. In a regular kernel "librumpvfs.so" is linked at
kernel build time and loaded by the bootloader. Here we use dlopen()
for both effects (the other choices would have been to link
rump_server with -lrumpvfs, but that would limit the flexibility,
or link tmpfs.kmod directly into the binary, but that would limit
the flexibility even more).
2010-12-13 14:13:21 +00:00
pooka
ac0678fe1e
Handle -l which dlopens libs. This is more applicable to rump_server
...
than rump_allserver.
So if I do:
golem> rump_server unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME CLASS SOURCE REFS SIZE REQUIRES
suser secmodel builtin 0 - -
and:
golem> rump_server -l librumpvfs.so unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME CLASS SOURCE REFS SIZE REQUIRES
suser secmodel builtin 0 - -
wapbl vfs builtin 0 - -
golem> rump_server -l librumpvfs.so -l librumpfs_ffs.so unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME CLASS SOURCE REFS SIZE REQUIRES
ffs vfs builtin 0 - -
suser secmodel builtin 0 - -
wapbl vfs builtin 0 - -
Well, you get the picture...
2010-12-13 13:32:25 +00:00
pooka
53fb74fd7e
Add rump_server which is just like rump_allserver with the exception
...
that it links in only -lrump instead of everything. The startup
time difference (especially when attaching a debugger) is noticeable.
2010-12-13 13:29:15 +00:00
dholland
75724edb45
typo in comment
2010-12-13 05:01:56 +00:00
dholland
a0bf60f562
Tables used by parser logic should be const.
2010-12-13 03:36:39 +00:00
dholland
0b6f5dd2c0
Remove stray extern definition that's already in jobs.h.
2010-12-13 03:35:13 +00:00
dholland
460acf6f5e
Cosmetic: declare types before variables, group variables by role,
...
update some comments, format comments properly, etc. No functional
change intended.
2010-12-13 03:32:25 +00:00
dholland
e8acbf7847
Add const necessary for clean non-native build.
2010-12-13 01:48:50 +00:00
pooka
4e63731664
lint hint to previous
2010-12-12 18:33:44 +00:00
pooka
ae8a3e28c6
Reboot when killed (does cleanup).
2010-12-12 18:32:47 +00:00
pooka
c5a6f78a61
note -h caveat
2010-12-12 17:15:16 +00:00
pooka
6b9a77d4e0
use appropriate macro
2010-12-12 12:49:37 +00:00
pooka
78e5870eec
utility to halt a rump kernel
2010-12-12 12:48:30 +00:00
pooka
126e32a17e
Detach by default or -s to stay-on-top.
2010-12-11 10:44:55 +00:00
sjg
e2f0bc58ba
fix style
2010-12-10 00:37:23 +00:00
sjg
d196fd3962
Need to export LC_ALL=C too
2010-12-10 00:36:33 +00:00
sjg
2550dc933f
meta_oodate(): we should track 'latestdir' on a per process basis.
...
Also, only consider target out of date if a not-found file is outside
'CWD'. Ignore anything in "/tmp/" or tmpdir.
2010-12-09 22:30:16 +00:00
enami
84d4bc7040
Fix SYNOPSIS; pkill accepts -l options since 3 years ago. `pattern' is
...
mandatory for all commands and `priority' is mandatory for prenice.
2010-12-07 09:00:23 +00:00
wiz
73349a6f21
Be explicit which options are available for prenice. Bump date.
2010-12-07 08:55:52 +00:00
mrg
f2e8961868
add -l support to prenice, as noted by enami.
2010-12-07 07:39:15 +00:00
mrg
1153d206d6
install prenice(1) and man page links.
2010-12-06 21:16:53 +00:00
pooka
13358eb8c2
Insert word "mbuf" to description of -m (so you can search for it).
...
No functional change.
2010-12-06 09:28:38 +00:00
wiz
c0795be10b
Bump date for prenice, add serial comma, and fix an xref.
2010-12-06 08:34:28 +00:00
mrg
79ffd9c9bc
add a "prenice <priority> <names>" command.
...
use it like "prenice -4 mplayer".
2010-12-06 04:00:11 +00:00
pooka
ef4d7c2c36
rumpcrypto now comes as part of RUMPKERNLDADD
2010-12-05 20:12:55 +00:00
pooka
843bb51b69
dumdidumdum, fix name in previous
2010-12-05 17:45:08 +00:00
pooka
6eb225bba1
Add a rump server which comes with all the drivers currently
...
available. In terms of modules it maps to:
golem> rump.modstat
NAME CLASS SOURCE REFS SIZE REQUIRES
bpf driver builtin 0 - -
cd9660 vfs builtin 0 - -
cgd driver builtin 0 - -
dm driver builtin 0 - -
efs vfs builtin 0 - -
ext2fs vfs builtin 0 - ffs
fdesc vfs builtin 0 - -
ffs vfs builtin 3 - -
fss driver builtin 0 - -
hfs vfs builtin 0 - -
kernfs vfs builtin 0 - -
ksem misc builtin 0 - -
layerfs misc builtin 2 - -
lfs vfs builtin 0 - ffs
mfs vfs builtin 0 - ffs
msdos vfs builtin 0 - -
nfs vfs builtin 1 - -
nfsserver misc builtin 0 - nfs
nilfs vfs builtin 0 - -
ntfs vfs builtin 0 - -
null vfs builtin 0 - layerfs
pad driver builtin 0 - -
ptyfs vfs builtin 0 - -
puffs vfs builtin 0 - putter
putter driver builtin 1 - -
scsiverbose misc builtin 0 - -
smbfs vfs builtin 0 - -
suser secmodel builtin 0 - -
swsensor driver builtin 0 - -
sysvbfs vfs builtin 0 - -
tmpfs vfs builtin 0 - -
udf vfs builtin 0 - -
umap vfs builtin 0 - layerfs
union vfs builtin 0 - -
usbverbose misc builtin 0 - -
wapbl vfs builtin 0 - -
In terms of interfaces:
golem> rump.ifconfig -C
shmif virt lo carp
and dmesg:
NetBSD 5.99.41 (RUMP-ROAST) #0 : Tue Nov 30 15:35:05 CET 2010
pooka@pain-rustique.localhost:/usr/allsrc/src/sys/rump/librump/rumpkern
total memory = unlimited (host limit)
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "rumpclk" frequency 100 Hz quality 0
cpu0 at thinair0: rump virtual cpu
cpu1 at thinair0: rump virtual cpu
root file system type: rumpfs
mainbus0 (root)
ugenhc0 at mainbus0
usb0 at ugenhc0: USB revision 2.0
uhub0 at usb0: vendor 0x7275 product 0x6d70, class 9/0, rev 0.00/0.00, addr 1
uhub0: 1 port with 1 removable, self powered
ugenhc1 at mainbus0
usb1 at ugenhc1: USB revision 2.0
uhub1 at usb1: vendor 0x7275 product 0x6d70, class 9/0, rev 0.00/0.00, addr 1
uhub1: 1 port with 1 removable, self powered
ugenhc2 at mainbus0
usb2 at ugenhc2: USB revision 2.0
uhub2 at usb2: vendor 0x7275 product 0x6d70, class 9/0, rev 0.00/0.00, addr 1
uhub2: 1 port with 1 removable, self powered
ugenhc3 at mainbus0
usb3 at ugenhc3: USB revision 2.0
uhub3 at usb3: vendor 0x7275 product 0x6d70, class 9/0, rev 0.00/0.00, addr 1
uhub3: 1 port with 1 removable, self powered
scsitest0 at mainbus0
scsibus0 at scsitest0: 2 targets, 1 lun per target
cd0 at scsibus0 target 1 lun 0: <RUMPHOBO, It's a LIE, 0.00> cdrom removable
Chicony Electronics Chicony Electronics, class 0/0, rev 2.00/1.00, addr 2, uhub0 port 1 not configured
AuthenTec AuthenTec, class 255/255, rev 1.10/6.21, addr 2, uhub1 port 1 not configured
swwdog0: software watchdog initialized
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio0 at pad0: half duplex, playback, capture
There a bunch of other stuff which doesn't show up as any of the
above, plus of course the usb drivers which are probed only if I
have the appropriate hardware plugged into my workstation.
2010-12-05 17:37:32 +00:00
christos
24e17e276b
From Aleksey Cheusov: Fix unexpected behavior with:
...
all: test1 test2
test1:
@echo ${foo::=foo-text}
test2:
@echo $(foo::=foo-text)
Saying:
nbmake: Unclosed substitution for foo (} missing)
for test 2
2010-12-02 16:46:22 +00:00
christos
8d8e09f9aa
add commented out a possible addition that provides $^ like gmake, but
...
I am not sure if we should add it, since we already have $> for it.
2010-12-02 16:36:55 +00:00
dholland
3e1a0ddeec
Ahem. "Battle" of Wounded Knee? How about "massacre"?
...
XXX: this file needs a *lot* of attention.
2010-12-02 08:36:02 +00:00
mrg
347cb101f4
properly detect that we aren't od(1) and act as hexdump. fixes hexdump,
...
which also broke startx (second time this week!)
from mlelstv.
2010-11-28 10:45:32 +00:00
wiz
40472df47e
Make SYNOPSIS match usage.
2010-11-28 01:33:37 +00:00
christos
e45d815960
revert and fix the usage to be consistent with other programs.
2010-11-27 20:46:38 +00:00
christos
890fb8eb91
add -H and -e
2010-11-27 19:46:25 +00:00
christos
f18b98792f
fix typo (thanks simon)
2010-11-27 16:00:09 +00:00
sjg
1b59e5d011
When a source file moves, make will ignore the stale dependency,
...
but if the file in question is one that needs to be compiled (.c or .cc),
it still hands the bogus name to the compiler.
If Dir_MTime() cannot find such a file (gn->iParents is not empty),
see if the basename can be found via .PATH, and if so set gn->path to
the found file. This prevents the stale path being given to the
compiler.
In meta_oodate(), if a referenced file no longer exists, consider the
target out-of-date.
Also, if meta_oodate() decides a target is out-of-date, and it
it uses .OODATE in its commands, we need .OODATE recomputed.
Undo our call to Make_DoAllVar() so that the call from Make_OODate()
will do the right thing.
2010-11-27 05:02:35 +00:00
dholland
bb9db00d5a
PR 44156: od -? prints usage for "hexdump" rather than "od"
2010-11-27 00:42:58 +00:00
christos
f8063a37d7
check for NULL before de-referencing.
2010-11-26 15:14:29 +00:00
christos
d670c5cfeb
Instead of keeping around the mtime of the youngest child, keep a pointer
...
to it, so that we can print it when we do the out of date determination.
2010-11-25 21:31:08 +00:00
dholland
436ec2bec5
Improve previous with comments.
2010-11-25 04:33:30 +00:00
dholland
09bec75330
Don't printf time_t with %d; fixes PR 44128 from yamt. With this change it
...
successfully prints mtimes after 2038.
2010-11-24 22:57:53 +00:00
christos
f6fb458da3
PR/44148: Henning Petersen: catstrg() does not set the resulting string length.
2010-11-24 17:51:11 +00:00
christos
b88895de6f
PR/44147: Henning Petersen: Add missing closedir calls.
2010-11-24 17:40:41 +00:00
christos
4ef443d8ef
- pass lint
...
- minor spacing nits
- check allocations
2010-11-24 13:17:56 +00:00
yamt
22304c0e72
C version of tpfmt.sh
2010-11-23 20:48:40 +00:00
wiz
78f9e33271
Fix Dd argument.
2010-11-16 23:59:02 +00:00
christos
06b55256bc
minor KNF nits.
2010-11-16 02:53:49 +00:00
christos
d6f06df46c
add a safe alternative of the previous.
2010-11-10 01:44:04 +00:00
apb
4c73f7f041
Change the ironically unafe "find . -print | xargs pathchk -p" to
...
the safe "find . -exec pathchk -p \{\} +" in an example.
2010-11-09 20:34:55 +00:00
mrg
77a6c12f15
pull across a few changes from the freebsd folks:
...
http://svn.freebsd.org/changeset/base/213044
- fixes gunzip issues
http://svn.freebsd.org/changeset/base/213927
- fixes various typos and comments
and also an older change to add support for bzip2's "-k" option:
don't delete the input file
thanks!
2010-11-06 21:42:32 +00:00
wiz
5140adc8f3
Sort sections.
2010-11-03 12:21:50 +00:00
plunky
a4d969557b
In server mode, relax the requirement to specify a channel number. If
...
one is not given, attempt to allocate the first unused one.
2010-11-03 08:27:27 +00:00
plunky
ff185da4c9
-s can be used in server mode too
2010-11-02 19:44:09 +00:00
njoly
e65e925989
Fix typo in date.
2010-11-02 12:10:13 +00:00
christos
710d230a43
simplify and modernize:
...
- make sysctl mibs static
- use warn/warnx for warnings
makes binary 4K smaller.
2010-10-18 19:39:32 +00:00
njoly
53f8ab79a9
Do use putenv(3) to handle the provided strings directly, instead of
...
setenv(3) which need string splitting and later reassembly.
2010-10-16 11:13:52 +00:00
skrll
e6cdac9c4b
Implement dl_iterate_phdr.
...
Somewhat taken from FreeBSD. Manual page from OpenBSD.
2010-10-16 10:27:06 +00:00
jschauma
40df9f7982
remove duplicate 'was' in a comment
2010-10-15 19:35:08 +00:00
dholland
1657dadafa
Per PR 19359 note that mkdep doesn't handle all make metacharacters
...
correctly; in particular, filenames containing '#' cause trouble,
although '$' seems to be ok. Bump date.
2010-10-15 05:46:48 +00:00
wiz
146c9ced7d
Sync usage with man page.
2010-10-06 07:59:18 +00:00
dholland
d4471f4981
Allow -c with -d/-u. While uniq -cu isn't that useful, uniq -cd often is.
...
No objection on tech-userlevel, and the arbitrary restriction has been
irritating me for ages.
2010-10-06 06:43:26 +00:00
wiz
2724492d78
Print version string to stdout instead of stderr;
...
it is user-requested and not an error.
2010-10-02 19:31:14 +00:00
tron
c71ba331c0
Don't free memory that was succesfully passed to putenv(3) which takes
...
ownership of the memory.
2010-10-02 10:55:36 +00:00
gson
98bb28c039
putenv() no longer accepts a const string
2010-10-02 09:24:16 +00:00
wiz
218cd6edd9
Remove trailing spaces, add a few serial commas.
2010-09-14 11:57:03 +00:00
sjg
e7543dc43a
tools/make/buildmake.sh compiles *.c, make sure meta.c does nothing
...
unless USE_META is defined.
2010-09-13 21:31:59 +00:00
sjg
796c4b0282
We do not need filemon(9) to have a .meta file
2010-09-13 20:34:21 +00:00
sjg
c0dfab6508
Bump date
2010-09-13 16:32:00 +00:00
sjg
4db43f7e0c
Add meta.c which implements "meta" mode for make.
...
In this mode, a .meta file is created for each target, capturing
the expanded commands used, any command output, and if filemon(9)
is available, a record of system calls which are of interest.
Not enabled unless USE_META=yes is set when building make.
Also, if FILEMON_H exists, meta.c will be compiled to use filemon(9).
2010-09-13 15:36:57 +00:00
wiz
fcf318eda4
Fix typos found by Ryo HAYASAKA in PR 43857.
...
While here, split file systems that grew together.
2010-09-09 11:42:13 +00:00