Commit Graph

199297 Commits

Author SHA1 Message Date
bouyer
d9210c2405 Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
ginsbach
c37993815d +SCADA (supervisory control and data acquisition) 2011-03-24 17:00:31 +00:00
jruoho
43a75470f9 Sort. 2011-03-24 16:58:01 +00:00
jruoho
629e716a41 Add a naive test case for raise(3). 2011-03-24 16:56:37 +00:00
jruoho
57842fd3b4 Add dummy test cases for ceil(3) and floor(3). It is expected that at least
one of these will fail on guest x86_64 NetBSD under Qemu. Thanks to pgoyette@
for checking the broken floor(16.999999...) = 17.
2011-03-24 15:43:06 +00:00
tsutsui
122f3545c1 Fix typo in comment. 2011-03-24 15:05:55 +00:00
tsutsui
8d0ce703c9 - make X68K_BUS_PERFORMANCE_HACK part default
- use volatile rather than dummy __asm() statements to avoid optimization

Tested on X68030.
2011-03-24 14:58:33 +00:00
jruoho
68f3621e3d A dummy conformance-test for pthread_detach(3). I will extend this later. 2011-03-24 13:52:04 +00:00
joerg
333ceea9fc Enable support for --sysroot in binutils and gcc. 2011-03-24 13:33:42 +00:00
joerg
e9921aeb08 Don't install stddef.h and friends, they don't work as intended without
patching. Since our own versions are fine, don't bother.
2011-03-24 13:31:30 +00:00
jruoho
c3917926fd A dummy conformance-test of pthread_equal(3). 2011-03-24 12:40:59 +00:00
jruoho
dce1533c2b Reset APERF and MPERF only after interrupts have been enabled. 2011-03-24 11:52:53 +00:00
jruoho
5ceeb0400d Add also a basic, naive, test for fast_divide32(3). 2011-03-24 07:37:04 +00:00
plunky
18eb0926a8 use a comma in attribute list; from from gcc.info (5.25 Attribute Syntax):
An "attribute specifier" is of the form `__attribute__
  ((ATTRIBUTE-LIST))'.  An "attribute list" is a possibly empty
  comma-separated sequence of "attributes", where each attribute is
  [...]
2011-03-24 07:28:28 +00:00
jruoho
56d0179b95 Add some naive test cases for the ffs32(3) family of functions. 2011-03-24 07:06:34 +00:00
jruoho
b0ced04988 As per request from the author, put non-standard PERFORMANCE back. 2011-03-24 05:48:54 +00:00
jruoho
b66af12b69 Remove the "simple CPU lock" that was unnecessary.
Thanks to rmind@ for clarifications.
2011-03-24 05:10:05 +00:00
dholland
8ba9dddb47 Eliminate dead store. From Henning Petersen in PR 42776. Doesn't change
the output .o file.
2011-03-24 02:29:33 +00:00
martin
d2c615416b Avoid using %g7 2011-03-23 20:54:35 +00:00
martin
712e3a3618 Add a syscall variant passing the return address in %g5 (we need %g7 for
pthread_self and %g2 is an application register, so we can not use those
anymore).
2011-03-23 20:41:30 +00:00
tron
5a8248634d Note import of Postfix 2.8.2. 2011-03-23 20:22:33 +00:00
tron
f2fcdb20a6 Resolve conflict from last import. 2011-03-23 19:10:44 +00:00
tron
7196e8ad9c Import Postfix 2.8.2. Changes since version 2.8.1:
- Bugfix: postscreen DNSBL scoring error.  When a client disconnected
  and then reconnected before all DNSBL results for the earlier
  session arrived, DNSBL results for the earlier session would be
  added to the score for the later session. This is very unlikely
  to have affected any legitimate mail.
- Workaround: the SMTP client did not support mail to [ipv6:ipv6addr].
2011-03-23 19:06:45 +00:00
dholland
9653d2d60a minor usage nit 2011-03-23 18:10:25 +00:00
tls
454cc1dc5f As suggested by matt@: change socket buffer reservations for NFS send/receive
to 3 times max RPC size rather than 2 times.  Avoids nasty TCP stalls observed
at Panix.  Will require increase to sbmax via sysctl for those running really
huge NFS rsize/wsize (>64K).
2011-03-23 17:42:11 +00:00
joerg
a4576cc219 Preserve l_private across forks. 2011-03-23 13:57:40 +00:00
joerg
081dffd915 Explicitly terminate threads to prevent crashes on exit. 2011-03-23 13:57:04 +00:00
christos
8bd84b0401 Fix typos in character ranges from: Baptiste Daroussin bapt at freebsd dot org 2011-03-23 13:11:51 +00:00
tsutsui
c492c27e87 bus_dma_segment_t should be a structure, not a pointer. 2011-03-23 13:01:04 +00:00
tsutsui
784931d63b Fix OPT_LIST. -t is not available in SMALL case. 2011-03-23 12:59:44 +00:00
jmmv
a6fb334d92 Clean up some late-night braindeadness:
- Make the pidfile name generation functions return their value as a return
  value, not an output pointer.  And homogenize these into a single function.
- Free allocated memory.  Not truly necessary because the test cases die
  immediately anyway, but nice to do.
- Remove the pidfile__ prefix from test case names.  (This was in advance of
  some changes I want to propose to pidfile(3), but it turns out my approach
  was flawed.  Preemptive smartness is evil!)
2011-03-23 09:13:54 +00:00
macallan
a88302936a add chipsfb 2011-03-23 04:46:29 +00:00
macallan
b408a70263 mention chipsfb on shark 2011-03-23 04:08:52 +00:00
macallan
3eb44ed2a7 add support for chipsfb at ofbus 2011-03-23 04:06:03 +00:00
macallan
ca8e7514cb complete the driver/bus frontend split and make sure the driver can deal with
both PCI and VLB variants of the chip
2011-03-23 04:02:43 +00:00
rmind
3346190448 G/C count_lock_queue (unused for 12 years) 2011-03-23 00:58:38 +00:00
jmmv
3a7f79018b +tests/lib/libutil/t_pidfile 2011-03-22 23:07:49 +00:00
jmmv
f8d6f5f369 Add some tests for pidfile(3).
I want to touch this module to attempt a feature addition but I need some
tests beforehand!
2011-03-22 23:07:32 +00:00
pooka
a57374e0dd document what i did 2011-03-22 22:33:10 +00:00
njoly
f031bfef0a Test case from PR/44189 should not fail anymore. 2011-03-22 22:29:18 +00:00
pooka
f347b4496a make work on nb5 again 2011-03-22 22:27:33 +00:00
njoly
ae22920be5 Regen to catch up divers changes. 2011-03-22 22:17:44 +00:00
hannken
b7bd248623 When truncating a file purge the fat cache after setting the new size
and after all io but before actually updating the cluster chain.

Both uvm_vnp_zerorange() and vtruncbuf() call get/putpages -> bmap -> pcbmap
and here the fat cache gets updated with information no longer valid after
truncation.
2011-03-22 20:33:51 +00:00
pooka
4975925b02 check that nfsd works with kernel module autoloading 2011-03-22 17:07:11 +00:00
jmmv
9a17a325dd Remove unnecessary (and broken) cleanup routines.
The cleanup routines were being used to kill the rump process and to delete
the temporary image file.  These are things automatically done by atf-run,
but it looks like this code was added here to workaround a previous bug in
the atf-run code.

Note that, in the existing form, the cleanup routines segfault (haven't
spent the time to track down why).  atf-run does not care about this
(although it should), buy Kyua does.

As a side effect, this has a teeny-tiny performance speedup in the execution
of the tests including this file.

OKed by njoly@.
2011-03-22 16:50:16 +00:00
jmmv
ecaa6aed45 Force cleanup parts to exit with a success status. Failures in cleanup
should not be allowed by atf-run (although they currently are ignored).
2011-03-22 16:16:30 +00:00
pooka
a3a20972d9 pnbuf_cache is used all over the place outside of vfs, so put it
in one place to avoid many definitions.
2011-03-22 15:16:23 +00:00
phx
619bd70a49 D-Link DSM-G600 support. 2011-03-22 15:14:43 +00:00
martin
0c3a269fd8 Remove the sparc-v7 compatibility wrapper functions (.div, .mul, ... .urem),
the compiler never generates (or did generate in the past) 64bit code to call
them, and they are still present in our 32bit compat library.
2011-03-22 12:24:53 +00:00
wiz
f96ea8d1d8 Sort sections. 2011-03-22 09:42:00 +00:00