Commit Graph

196211 Commits

Author SHA1 Message Date
he
f806491146 Don't try to build the SSP tests if the target doesn't have SSP. 2010-12-27 15:10:33 +00:00
uebayasi
ddbd4f2fb0 Fix build. 2010-12-27 14:58:55 +00:00
martin
17b6d22a39 Belatedly bump version to 5.99.42 - cpu_info changed (at least on sparc64) 2010-12-27 10:58:27 +00:00
pgoyette
e2d4656741 Since atf_check doesn't deal with a pipeline, modify the tests to pipe
the output of the echo commands to atf_check itself.  This fixes the
three new ssp failures.

Note that the raw, strcpy, vsprintf, and vsnprintf tests still fail, but
they failed in the old 'regress' style, too.
2010-12-27 05:27:34 +00:00
christos
4f848eee4b `` -> $() 2010-12-27 03:38:52 +00:00
pgoyette
7c2409fa33 The ssp tests have moved to atf format in src/tests/lib/libc/ssp/ 2010-12-27 03:33:46 +00:00
pgoyette
575e75ffe4 Migrate the ssp tests from regress to atf.
Of the 17 tests, 4 fail in both the regress and atf style.  3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
2010-12-27 02:04:18 +00:00
christos
e5c1816344 fix slightly wrong format. 2010-12-26 23:55:52 +00:00
jmcneill
97dc26a286 don't try to set frequencies lower or higher than the tuner's allowed
range -- the v4l2 spec says "when the requested frequency is not possible
the driver assumes the closest possible value".
2010-12-26 23:41:45 +00:00
he
3b9ac1bb43 Expose parts of struct cpu_info if _KMEMUSER is defined, for the benefit
of e.g. vmstat.
2010-12-26 21:05:34 +00:00
he
05c6af2d0f Since struct cpu_data isn't the first member in struct cpu_info, instead
expose the initial portion of struct cpu_info if _KMEMUSER is defined.
2010-12-26 18:00:41 +00:00
he
b7a6da19d6 Print size_t and ssize_t with %zd, not just %d.
(How did this build before?)
2010-12-26 17:48:37 +00:00
christos
017d3467b1 - don't forget to restore the umask on error.
- save and restore umask for control
- chown/chgrp for raw devices
2010-12-26 14:48:34 +00:00
wiz
8d68ab3ee4 New sentence, new line. 2010-12-26 14:26:45 +00:00
pgoyette
bc33547390 Remove the rest of the libc/string tests - they've moved to atf 2010-12-26 13:38:08 +00:00
pgoyette
3ca5a7db69 Migrate the last of the libc/string/ tests from regress to atf, and
re-enable building of t_popcount
2010-12-26 13:35:54 +00:00
pgoyette
a583a258c9 Make running this test conditional on the setting of atf configuration
variable "run_popcount".  This is a really long-running test (it takes
several hours on a qemu-emulation on a 2.8GHz AMD Pheno II) but could
still be useful if you want to run it manually, with the command

	atf-run -v run_popcount=YES
2010-12-26 13:29:47 +00:00
jnemeth
fd52cff654 vsnprintf_ss does NOT handle floating point formats 2010-12-26 12:39:54 +00:00
pgoyette
3f7804c696 Re-enable printing of MD data, with appropriate casts. 2010-12-26 12:32:28 +00:00
martin
49b7c43441 Move ci_data first in struct cpu_info 2010-12-26 12:06:56 +00:00
martin
8e9a9e6134 sparc64 currently does not have ci_data as first member in cpu_info! 2010-12-26 11:32:38 +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
nonaka
d2662cfd92 Add missing argument to printk(). (from OpenBSD) 2010-12-26 09:03:56 +00:00
nonaka
57770fc935 Advertise printk() as a printf-like function. (from OpenBSD) 2010-12-26 09:02:52 +00:00
pgoyette
324775a6d1 For now, don't try to print out machine-dependant stuff. When I figure
out what the right format strings are, I'll re-enable it.
2010-12-26 03:25:07 +00:00
christos
6f6878df03 defs.h already includes nbtool_config.h, so don't do it twice. 2010-12-25 23:43:30 +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
haad
7276411661 Fix MKDTRACE & MKDEBUG enabled build, add some dtrace entries. 2010-12-25 23:28:18 +00:00
joerg
f640e4c776 Rename __BEGIN_PUBLIC / __BEGIN_HIDDEN to __BEGIN_PUBLIC_DECLS /
__BEGIN_HIDDEN_DECLS and corresponding __END_* macros. Push the extern
"C" logic into __BEGIN_PUBLIC_DECLS / __BEGIN_HIDDEN_DECLS to make them
easier to use in header files used by C++.
2010-12-25 22:30:52 +00:00
dholland
626c509661 erm. fix previous... 2010-12-25 21:39:11 +00:00
pgoyette
d9958c63e6 Remove regress versions of str* tests - they have been atf-ified 2010-12-25 21:13:37 +00:00
pgoyette
f03970fd11 Migrate J.T.Conklin's public-domain str* tests from regress to atf.
While here, do some clean-up and knf.
2010-12-25 21:10:24 +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
christos
5743e2a045 fix debugging:
- don't print junk for the interface name
- parse and print known rtm messages we get
2010-12-25 20:45:49 +00:00
christos
d5760f00f3 merge the length getting code from rt_msg1 and rt_msg2 and make it fail
when the compatibility ifinfo is missing instead of returning junk.
2010-12-25 20:37:44 +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
joerg
570bc97f41 Include nbtool_config.h for the toolchain build as platforms like Linux
don't define __RCSID.
2010-12-25 19:24:28 +00:00
joerg
762325586d If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor.  This avoids leaking the source
path into the final binaries.
2010-12-25 18:56:44 +00:00
christos
9f5adb9583 fix type-punned warnings on gcc-3.3.3 2010-12-25 18:23:39 +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
jmcneill
b8d8357d86 add /dev/video, /dev/video0 2010-12-25 16:49:08 +00:00
tsutsui
5e318e5c0b Fix one more typo that affects x68k with 040/060.
I hope this is the last one...
2010-12-25 16:37:22 +00:00
tsutsui
43093475a8 Put somehow missed code part in rev 1.36:
> Allocate lwp0upa (PA of lwp0 uarea) right after kernel rather than
> between other page tables to use different mappings for ste/pte pages
> as well as amiga and atari.  Should resolve XXX comments in next68k and x68k.
2010-12-25 16:14:44 +00:00
tsutsui
5c6a12d86b Fix another fatal typo. sigh. 2010-12-25 16:11:11 +00:00
tsutsui
add2bb1590 Fix harmless pasto and tweak some comments. 2010-12-25 15:29:34 +00:00
wiz
afc1680ec2 Add missing semicolon. 2010-12-25 15:27:08 +00:00
christos
f2fd5dbad4 Fix non-threads compatibility code which was causing trouble even in the
threaded version.
2010-12-25 15:26:32 +00:00