Commit Graph

205732 Commits

Author SHA1 Message Date
christos
6dd90d6d37 make rounding work 2011-09-30 23:42:00 +00:00
jym
f0eca4d0dd Inform that the prop_{array,dictionary}_send_syscall(3) change breaks
backward compatibility with old quota2 binaries, so ensure that you
update both (proplib + quota2 executables) simultaneously when updating
a -current installation.
2011-09-30 22:17:50 +00:00
jym
afca4e3b49 Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
- returns an int
- 0 indicates "no error", otherwise returns the error number (and
set errno)

Many consumers of the prop_*_{ioctl, syscall} expect errno to be set
on error and use err() to display the error message. As such, ensures that
errno gets set before returning from these functions.

prop_*_send_syscall() functions returned a boolean, and now return an int.
Fix all call sites to use the new paradigm (only quota2 is affected in src).

As the prop_*_{send,recv}_syscall() API appeared in -current and is only
used by the recent quota2 code, I am not bumping the lib. The API change
only affects the prop_*_send_syscall() function (recv_syscall()s were
already used correctly), so ensure you are not mixing "old" -current
quota binaries with a new proplib(3) (or the other way around). This
change will be announced via a HEADS-UP and UPDATING.

Does not affect the kernel part of proplib.

Document the correct API in prop_array(3) and prop_dictionary(3).

Thanks to Francois Tigeot for noticing the API inconsistency and
reporting it on tech-kern@.

ok bouyer@.
2011-09-30 22:08:18 +00:00
njoly
0ddf58db65 Do not try to open files up to the RLIMIT_NOFILE limit, which fails
when process limit is identical to the whole system limit. Just do it
for a small fixed value, and adjust the limit accordingly instead.
2011-09-30 21:08:19 +00:00
christos
4bea49e915 use ATF_CHECK_MSG instead of err() in atf. 2011-09-30 19:12:35 +00:00
christos
adcbdeaf66 PR/45156: Moritz Wilhelmy: Add 4G Systems XS Stick P14 USB 3G modem support. 2011-09-30 18:59:04 +00:00
christos
fae590c371 regen 2011-09-30 18:43:19 +00:00
christos
c1042e944c Add 4G Systems XSStick P14 USUPA 5.76Mb/s USB modem 2011-09-30 18:42:59 +00:00
christos
83ade10494 print stderr, when things go wrong. 2011-09-30 18:27:18 +00:00
christos
eb5e1b5450 Make the rounding test work properly, and actually test the rounding modes. 2011-09-30 17:44:58 +00:00
christos
26ca52544d PR/44293: Paul Goyette: Fix the mess of the rounding code. 2011-09-30 17:42:34 +00:00
njoly
3a909f7545 There's no stand alone vpanic.9 man page. 2011-09-30 15:47:20 +00:00
jruoho
cbbf4a4b63 Add expected failures for Qemu. 2011-09-30 14:50:20 +00:00
mrg
af1a60157f avoid sys/systm.h in userland ppath.h.
include types.h/stdarg.h in all systm.h configs.

my amd64 build without man pages now worked at least.
2011-09-30 10:23:03 +00:00
mrg
ad1c111812 re-arrange the end of uvm_page_recolor() to avoid the multiple exit
points.  move the call to uvm_pager_realloc_emerg() to after we
drop the uvm_fpageqlock, since it may be taken again in uvm_km_alloc().

fixes LOCKDEBUG crashes with the previous change.
2011-09-30 05:29:12 +00:00
sjg
b9a9eadbed Elaborate a little 2011-09-30 05:07:39 +00:00
jruoho
5647e2ae42 Note the order of the dummy boolean states. 2011-09-30 04:21:17 +00:00
jruoho
7f1b62e468 Remove redundant assignment. 2011-09-30 04:10:54 +00:00
he
8dd0ec196d Bump SYMTAB_SPACE so that the symbol table fits again. 2011-09-30 04:05:07 +00:00
jruoho
dd10cec68c Fix bugs noted by alnsn@. Namely, preallocate the global structure in
order to avoid locking issues during deregistration.
2011-09-30 04:01:21 +00:00
mrg
1862dafe3f match EXIT() with LEAF_ENTRY() so that sizes are actually constants.
fixes binutils 2.21 build issues reported by he and chuq.
2011-09-30 03:05:43 +00:00
christos
22d49ff4f1 add copyright 2011-09-30 01:32:21 +00:00
macallan
c608916b4f put -mfixloongson2f-btb back in the command line options list 2011-09-30 01:23:00 +00:00
sjg
123e6558cd Make sure .PHONY targets get .TARGET set.
This wasn't happening when a dependency of .END.
Set .PREFIX too and add a unit-test.

PR: 43534
2011-09-29 23:38:04 +00:00
sjg
1919f85697 Install the man page for filemon(4). 2011-09-29 23:35:48 +00:00
christos
64eddf5284 even simpler. 2011-09-29 22:55:45 +00:00
christos
cfa5bcb221 even shorter 2011-09-29 22:53:13 +00:00
christos
cfb62a8b7a add a simpler version 2011-09-29 22:46:00 +00:00
christos
38179c4fc2 add a simpler version. 2011-09-29 22:45:20 +00:00
christos
46431da88a add vpanic(9) 2011-09-29 20:59:27 +00:00
christos
ce9eaca580 add vpanic 2011-09-29 20:55:49 +00:00
christos
feec5d318c Include <sys/systm.h> for panic() 2011-09-29 20:53:30 +00:00
christos
01035c71fc Add vpanic() 2011-09-29 20:52:39 +00:00
christos
86caa87dd0 - add missing attributes to varyadic print functions
- add vpanic()
2011-09-29 20:52:12 +00:00
christos
3fca869442 rename vpanic() to vnpanic() and make it varyadic. While there, fix the
broken formats, always call panic() from vnpanic() and make all the calls
use vnpanic(). We only call vprint() on DIAGNOSTIC now.
2011-09-29 20:51:38 +00:00
christos
b3bf6991f2 Don't include <sys/systm.h> because it brings in too much stuff that
conflicts with standalone code. Instead modify kern_assert() to be like
panic() and call that.
2011-09-29 20:50:09 +00:00
sjg
3a3c1d94e3 Add filemon to the modules we build. 2011-09-29 17:40:19 +00:00
is
a038991fd1 Use symbolic constants for SUNs version of ADP2_ASR2200S. 2011-09-29 12:51:28 +00:00
dholland
2a481dca6b Fix the setting of "xcbincludedir" in .pc files (where the xcb XML
files live) so that anything that needs to find them can. Fixes build
of pkgsrc libxcb, not that that in particular is terribly important.
2011-09-29 10:59:26 +00:00
dholland
15ab4bd2bd Fix generation of site.def to substitute @FONTROOTDIR@ and @ENCODINGSDIR@
instead of emitting them unchanged into the imake templates. Should fix
build of x3270.
2011-09-29 09:44:08 +00:00
he
5993922d71 Drop the "static" from the HEXDIGITS declaration, now that there's an
extern definition in sys/systm.h, to allow this to continue to build.
2011-09-29 09:18:17 +00:00
christos
216c13827a add back the raw test and fix typo in the libraries. 2011-09-28 23:11:12 +00:00
matt
d289edb2b2 Reallocate emergency pager va when ncolors is increased. (modication of
patch from mrg).
2011-09-28 22:52:15 +00:00
christos
2a89e8adcf revert part of previous that was wrong. 2011-09-28 22:19:52 +00:00
christos
e244cf19e9 fix error message 2011-09-28 22:08:12 +00:00
christos
7de83c2f9e syscall (setcontext) can alter eax, so don't attempt to get code again from it
in order to avoid register spills.
2011-09-28 17:27:21 +00:00
christos
190c081319 don't limit sockets to sizeof(sizeof sockaddr_storage). We can create valid
sockaddr_un sockets that exceed that. Arguably either
sizeof(struct sockaddr_storage) should be amended, or we should disallow
unix domain sockaddrs that exceed that size.
2011-09-28 16:28:27 +00:00
christos
0ee040705b Add a sockaddr_un test. 2011-09-28 16:14:04 +00:00
christos
9d31325887 Add a unix socket pathname size limit test. 2011-09-28 16:13:03 +00:00
jruoho
8f43552059 Initialize cpufreq(9) normally from main(). 2011-09-28 15:52:47 +00:00