Commit Graph

11121 Commits

Author SHA1 Message Date
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