Commit Graph

11187 Commits

Author SHA1 Message Date
joerg 53d81ae021 Add the :hash modifier to compute a 32bit hash of an variable.
This uses MurmurHash3 to get a reasonable collission-free hash with
small code. The result is endian neutral.
2011-04-07 01:40:01 +00:00
dholland efb9133f26 Expand user warning (adding examples) and move to CAVEATS as it's not fixable. 2011-04-03 19:44:15 +00:00
dholland ba1f9c173a remove stray extra word 2011-04-03 19:25:05 +00:00
mbalmer 18e7170716 Declare variable only once. Fixes PR 44795. 2011-04-02 07:58:30 +00:00
sjg c76b9c11ac Call meta_job_finish() from meta_job_error(), so that if
the .ERROR target copies the .meta file, it has been completed.
meta_job_finish() is safe to call again.
2011-03-31 06:50:43 +00:00
sjg 64809b8858 We must now call meta_job_finish() after meta_job_error()
so that .ERROR_META_FILE is captured.
2011-03-31 06:28:42 +00:00
sjg ff54381362 Add NetBSD tags 2011-03-30 22:03:49 +00:00
wiz c51b743b1e Add long example describing how to find and configure multimedia
keys; based on Mihai Chelaru's description on current-users in February.
Bump date.
2011-03-30 11:35:25 +00:00
joerg 8fa6585514 Block signals when using the exclusive lock. 2011-03-29 20:56:35 +00:00
sjg be03bd0379 Check for extra commands as soon as we reach CWD,
so we return faster (if oodate) and give a more accurate debug message.
2011-03-29 17:29:20 +00:00
sjg ede3eaf4a5 CondDoExists: Avoid use after free() 2011-03-29 17:19:22 +00:00
fair 99c0cae956 Add dholland's comment about units not warning users about non-sensical
conversions to the BUGS section.
2011-03-28 16:09:10 +00:00
dholland 75f2c9abd2 fix typo 2011-03-28 00:14:51 +00:00
dholland 8cf15952a4 Update radioactivity-related units from http://physics.nist.gov/cuu/Units/.
The prior definition of sievert was, as far as I can tell, entirely wrong.

Caution: while "gray" and "sievert" have the same dimensionality,
they're not interchangeable -- you need to multiply by a fudge factor
that varies depending on the type of radiation and the tissue it's
affecting. (Dimensional analysis is often not a substitute for knowing
what you're doing.)

It would be nice if units had a way to warn users when they're trying
to do something that doesn't make sense, since there are lots of ways
to do so, but it doesn't, and it wouldn't be easy to arrange in the
general case.
2011-03-28 00:08:47 +00:00
sjg 1e444cd2f2 Use curdirOk as the token 2011-03-27 19:47:46 +00:00
sjg dd0a10eeff When .MAKE.MODE inlcudes 'meta'; 'curdir=true' enables creating .meta
files in .CURDIR - such as when running make in .OBJDIR with a generated
makefile.
2011-03-27 19:39:21 +00:00
dholland 51ab93526e Exit with EXIT_FAILURE for invalid arguments. PR 43517. 2011-03-26 21:45:48 +00:00
dholland b82f0f1987 Catch up to Makefile rev 1.40 (from 2006): add lstPrev.o. Closes PR 43466. 2011-03-26 21:42:12 +00:00
joerg cb1cd7e860 Add basic locking to ld.elf_so. 2011-03-25 18:07:04 +00:00
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
tsutsui 784931d63b Fix OPT_LIST. -t is not available in SMALL case. 2011-03-23 12:59:44 +00:00
christos ca5bce8901 support grouping format. 2011-03-15 23:11:49 +00:00
pooka e49693227e Record address from offer to actually send it as part of the
request.  May fix interaction with some pickier dhcp servers
(like riz's).  Thanks to Jeff for debugging assistance.
2011-03-14 23:02:16 +00:00
pooka 7bc641dd16 aaaand actually make the logic clause correct 2011-03-14 11:13:22 +00:00
pooka db454f263c make the code also correctly correct, not just xxxgcc'ly correct 2011-03-14 11:10:35 +00:00
pooka 7780c2df6d * attempt to make this endian-independent (tested only on el)
* write via libpcap (since i thought there would be some fancy
  api to deal with endianness.  after doing 80% of the work i
  noticed there wasn't, but went ahead anyway)
2011-03-14 11:08:28 +00:00
pooka bea8760a7c Apropos, pcap doesn't export the on-disk pcap packet header but
only the in-memory one.  Since the in-memory one uses struct timeval
and the on-disk one uses 32bit time_t, things didn't work so well
on -current.  Generate a suitable local packetheader to fix things.
(don't think it's worth writing via libpcap for something as simple
as this)

noticed both by bouyer and the shmif_dumpbus test
2011-03-12 18:27:42 +00:00
bouyer 46d2eadf0e Don't include quotautil.h here, it's not used. 2011-03-12 12:28:47 +00:00
jmmv 2a77c0a96c Note that window(1) will go away after netbsd-6 is branched. 2011-03-10 13:23:41 +00:00
pooka a10e19a78e Add some asserts to make sure the bus offset isn't beyond what we
mapped.  (I had a very interesting time last night trying to figure
out what was going when things apparently got compiled with a 64bit
time_t on nb5.  this caused only 4k of the bus file to be mapped...)
2011-03-10 10:11:25 +00:00
joerg aad599979d Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
2011-03-09 23:10:05 +00:00
jmmv 66b2e37b2b Add a script to generate a distfile of window from the verbatim sources on
cvs.  This will be used for the upcoming pkgsrc package of window.

I am not copying the code to othersrc because I want to keep things as
simple as possible for now.  When we remove window from src, the code will
be moved to othersrc and any improvements (such as autoconfification) can
be done there.
2011-03-09 17:32:03 +00:00
pooka 73fa5bcac3 print processing details only if we've not outputting a pcap file
to stdout
2011-03-09 12:56:08 +00:00
riz 802dd4220f Revert previous, to fix build on Mac OS X again.
ok christos@
2011-03-08 23:55:19 +00:00
bouyer 726315aa0b Properly evaluate the space needed to print "unlimited" in an human-readable
way.
2011-03-07 11:46:55 +00:00
christos 1c901e8c26 merge one more triplicated function 2011-03-06 23:26:05 +00:00
christos e0e65cb1e2 - merge more code.
- simplify struct access.
2011-03-06 22:36:07 +00:00
christos 1f0f7c923b - WARNS=4
- KNF
- don't cast malloc
- don't use static buffers
- fix types
- remove extra \n's from errors
- fix prototypes
2011-03-06 20:47:59 +00:00
sjg c37859c219 Only need to getcwd() once 2011-03-06 17:41:11 +00:00
wiz f1f9830b96 Sort options. Split "file system" like usual. Bump date. 2011-03-06 17:25:32 +00:00
bouyer 063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
sjg b9fa549592 CWD should be compared against cwd 2011-03-06 04:34:25 +00:00
sjg 8892f885fd Add unit tests to check that exists(some/dir/) works
Also fix handling of sysV substitutions when lhs and variable are empty.

Also that modifiers do not cause errors during conditional tests
when undefined variables should otherwise be ok.
Ie. .if defined(nosuch) && ${nosuch:Mx} != ""
2011-03-06 00:02:14 +00:00
sjg be4a1e2c49 Treat some/dir/ the same as some/dir/. 2011-03-05 23:57:05 +00:00
christos a469df4a1b add other os support from MirBSD 2011-03-05 16:38:46 +00:00
christos 5a8a9e34c6 add mimic_gnu for eval print. 2011-03-05 16:38:25 +00:00
christos 0b915be387 use TOKEN_LINE from MirBSD 2011-03-05 16:37:50 +00:00
pooka 72867841aa adjust wording in previous 2011-03-04 09:13:23 +00:00
pooka 2c06d51fbf Add note about block device properties.
From discussion with <riz>.
2011-03-04 09:10:33 +00:00
sjg 47311dc80a main.c now exports curdir[] so we can use it. 2011-03-04 04:55:51 +00:00