Commit Graph

11351 Commits

Author SHA1 Message Date
joerg 48a413800a Simplify 2011-05-24 12:24:22 +00:00
joerg b794a0de4d Kill self assignment 2011-05-24 12:19:11 +00:00
drochner cfdc35650d report aes-ctr statistic counter by name 2011-05-23 14:29:55 +00:00
tsutsui 56683e6b6e Explicitly #include <time.h> for time(3) and strftime(3).
Fixes warnings on some non NetBSD hosts.
2011-05-21 07:30:42 +00:00
christos fdcc1029ab use warn/err. 2011-05-21 00:43:52 +00:00
christos 0364d1f4f2 - KNF
- more static
- fix argument parsing.
2011-05-21 00:43:42 +00:00
christos 8deae7b7cb remove unused. 2011-05-21 00:43:31 +00:00
wiz cc9481a1a2 Sync usage with man page. 2011-05-20 07:09:52 +00:00
wiz 33b9c78b3c Fix macro name in SYNOPSIS. 2011-05-20 07:08:24 +00:00
wiz 3ba25bec19 Sort options, merge single letter options in synopsis. 2011-05-20 07:07:37 +00:00
christos 0be029e699 counting was off, and setting things to themselves does not work very welll. 2011-05-20 02:00:45 +00:00
christos ec9611ac0f - use getopt
- use err
- add -p <filelevel> to chop levels like patch
- document all the options
2011-05-19 22:55:53 +00:00
dsl cf5ef24619 Back out a local change 2011-05-18 06:36:48 +00:00
dsl c5191c6734 If a makefile if a multiple of the page size and doesn't end with a
newline, then it all goes horribly wrong when make tries to terminate
the last input line.
This was all ok before the mmap changes (rev 1.169) because the last
32 bytes of the input buffer were never read into.
The non-mmap case has a similar problem.
Bug found because my .depend files don't have a newline at the end of
the .OPTIO|NAL line (don't know if that is a local change).
2011-05-17 21:56:51 +00:00
mrg 8169e46991 move and rename the uvm history code out of uvm_stat to "kernhist".
rename "UVMHIST" option to enable the uvm histories.

TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories.  this is mostly just
  allocating something in a bitmap, and is only for viewing multiple
  histories in a merged form.


tested on amd64 and sparc64.
2011-05-17 04:18:05 +00:00
christos 7aac162c51 Make this produce proper ansi c and knf. 2011-05-15 21:28:51 +00:00
dyoung 0d0dd0e146 Suppress whitespace at EOL to fix lib/librumphijack/t_tcpip. 2011-05-11 22:21:59 +00:00
drochner 4f6bdd19b5 use getmicrouptime(9) rather than microtime(9) for TIME_WAIT duration
calculation, because this doesn't get confused by system time changes,
and uses less CPU cycles
reviewed by dyoung
2011-05-11 15:08:59 +00:00
enami dd41556bdf Use ptrdiff_t to hold pointer difference to avoid coredump on LP64 system. 2011-05-10 04:40:16 +00:00
drochner 3e2a0f5f49 decode camellia-cbc in stats histogram 2011-05-05 17:49:47 +00:00
wiz 9e66d3e091 Remove trailing whitespace. 2011-05-04 21:24:59 +00:00
christos fc29dd21ad Document what I wrote for PR/40115 2011-05-04 21:14:56 +00:00
sjg 48587910e0 Add .MAKE.META.BAILIWICK - to identify the scope of make's control.
meta_oodate: if a file that was written or linked within our bailiwick,
but outside of .OBJDIR is missing, add it to missingFiles.
If we get to the end of the .meta file without seeing it [re]moved,
then consider the target out-of-date.
2011-05-04 20:38:31 +00:00
pgoyette 38b438f332 Use %zx for _both_ size_t formats! 2011-05-04 03:43:30 +00:00
dyoung fe23a102a6 On second thought, make a more conservative change: use %zx instead of
%x for size_t.
2011-05-04 01:31:40 +00:00
dyoung 6392073d00 Use %zu format for size_t instead of %x. 2011-05-04 01:30:01 +00:00
dyoung 7957556091 Always try to open kmem, do not always set use_sysctl to 1, and do not
fail if opening kmem fails unless !use_sysctl.  Fixes netstat(1) options
such as -s.
2011-05-04 01:13:35 +00:00
dyoung 7135b6c6f4 Access the kvm_t using get_kvmd(), only. 2011-05-04 01:11:29 +00:00
dyoung fea546afcb Don't use type qualifier 'register'. 2011-05-04 00:55:19 +00:00
dyoung 7f40ffb8aa Do not display expired or reclaimed vestigial TIME_WAIT entries. 2011-05-03 23:36:26 +00:00
dyoung c2e43be1c5 Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.
2011-05-03 18:28:44 +00:00
wiz 610b889888 Sort options and option descriptions. Use more markup. 2011-04-29 09:23:29 +00:00
wiz c0e7cc216d New sentence, new line. 2011-04-28 17:14:45 +00:00
wiz 0b0f158833 New sentence, new line. Use more markup. 2011-04-28 14:59:27 +00:00
wiz ebdacac575 Punctuation nit, sendmail(8) -> (1). 2011-04-28 13:54:13 +00:00
mbalmer 44190c279c On december 16, 1991, Kazakhstan declared its independence from the USSR. 2011-04-28 07:42:20 +00:00
joerg 5e6a27ebbb Remove Mach specific trace points. 2011-04-27 00:00:46 +00:00
joerg 787e55aa29 Remove PECOFF/Win32 emulation. 2011-04-26 16:57:38 +00:00
joerg e958063324 Remove IRIX emulation 2011-04-26 16:36:40 +00:00
joerg 5aca2679d7 Remove Darwin, MACH and Mach-O support. 2011-04-26 15:51:22 +00:00
wiz 064134a9dd Improve description, based on OpenBSD v1.11. 2011-04-25 22:42:11 +00:00
elric 07b0c75a48 We no longer need -I/usr/include/krb5. 2011-04-24 21:42:06 +00:00
elric 89208b4ceb Stop using functions deprecated by Heimdal. Also, if krb5_init_context()
fails, we can't use Kerberos functions to grab error strings, we
resort to strerror(3) which is what Heimdal's deprecated function
does in this case.
2011-04-24 21:16:43 +00:00
joerg 0cef9f9563 Add MKBSDGREP switch for easy testing of the GNU grep
replacement/alternative.
2011-04-21 14:26:33 +00:00
drochner ab862eb3da fix some labels for ipcomp counters which didn't make sense at all 2011-04-19 18:34:39 +00:00
joerg 6a4bfecd54 Avoid C99 features. 2011-04-18 23:22:42 +00:00
joerg 34bdd27889 Add support for --null-data. Change -Z to behave like GNU grep's -Z. 2011-04-18 22:46:48 +00:00
joerg ff9dcf4380 Redo context printing so that adjourning contexts don't print the
separator, following GNU grep's behavior in this regard.
2011-04-18 17:18:03 +00:00
joerg 4bb7e7be1d Use the more portable getline. 2011-04-18 03:48:23 +00:00
joerg 4c78e1ea83 Fix memory leaks. 2011-04-18 03:47:40 +00:00
joerg f7d22212e7 Include nbtool_config.h for tool builds. 2011-04-18 03:27:40 +00:00
christos 28e5fe5363 Recognize --sysroot but don't document it or do anything about it for now. 2011-04-17 22:35:22 +00:00
elric 98fbe74f8c Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal.  The latter was just imported as the head
of the Heimdal tree as of a few days ago.
2011-04-15 18:05:42 +00:00
plunky d1fbb9e17f move the build of ldd binary to a subdir in order to allow
explict ordering. This makes "make all" work the same as
"make dependall"
2011-04-15 08:47:02 +00:00
yamt 97023e2700 - adapt to the kernel
- add some options
2011-04-14 16:27:17 +00:00
yamt 28e47a3677 don't link unused library. 2011-04-14 16:25:58 +00:00
rmind e7ba7d8ca0 Add DTYPE_SEM. 2011-04-14 00:35:35 +00:00
sjg 2ac5d52245 Add a test case for sysV modifier subst 2011-04-11 15:10:15 +00:00
sjg 521f3749c8 If a "long" modifier name does not match, goto default case
so SysV modifier can be tried.
2011-04-11 14:49:09 +00:00
wiz 2974cb7ffe Remove trailing whitespace. 2011-04-11 06:56:50 +00:00
sjg b446ef338f Add :localtime and :gmtime which use value as format string for strftime. 2011-04-11 01:44:15 +00:00
pgoyette f39adfe33e Fix string constant so it compiles again. 2011-04-10 16:06:59 +00:00
christos 63ab96a1bd we don't have access to si_lid anymore. 2011-04-10 14:38:19 +00:00
christos 6a8b690e91 print detailed info about other SI_ codes. 2011-04-10 00:05:51 +00:00
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
nakayama c09c2a7b34 Fix build on Solaris 10. 2011-03-03 14:53:01 +00:00
dyoung 9863fc9961 Use __arraycount() and PRIu64. Delete unnecessary casts to unsigned
long long.
2011-03-02 19:52:03 +00:00
dyoung 439199a3fb Pull pfsync_stats() out of inet.c and into pfsync.c so that inet.c does
not have to #include PF header files that pollute the global namespace
by #defining v4 and v6 (sheesh).
2011-03-01 19:01:59 +00:00
joerg f3483179a4 If transforming patterns with \<...\> to implicit word bounaries, don't
change the global wflag, but use a per pattern flag derived from it.
Fixes usage of grep with multiple -w arguments.
2011-02-27 17:33:37 +00:00
mbalmer 336c1525dd Don't use 'bool' as variable name. No binary changes.
From Henning Petersen, thanks!
2011-02-27 10:11:27 +00:00
phx 6a5a0ed53a Add the -O option to set the OS type, which defaults to NetBSD when missing.
This is needed, because some vendors have stripped U-Boot so much that it
only accepts Linux kernel modules.
Also allow 'standalone' as module type.
2011-02-26 20:03:09 +00:00
sjg 4fab365c37 Fix rendering of :? example 2011-02-26 01:17:24 +00:00
jmcneill e816b5f7a6 Don't error out while searching for empty directories, from FreeBSD:
http://lists.freebsd.org/pipermail/svn-src-head/2010-December/022913.html
2011-02-24 02:55:18 +00:00
pooka 56905440b6 .Xr rump_sp 7 2011-02-23 19:59:18 +00:00
pooka b6c13d8580 * at least try to query size of non-regular size=host files too,
give up if we get 0
* fix a few error messages
2011-02-22 15:51:59 +00:00
wiz ad04318fa8 Sort sections. 2011-02-22 15:47:02 +00:00
pooka fbe84585a0 -f no longer has effect. from Snader_LB on irc. 2011-02-22 15:03:30 +00:00
pooka 29d11b7713 add command line options for kernel memory allocation limit and bootverbose 2011-02-21 18:50:21 +00:00
joerg bfc4d64e8a Use the current directory at start time for .PARSEDIR, if the filename
contains no /.
2011-02-20 23:12:09 +00:00
dholland 51eafd380d Remove the extra blank line after "Fatal errors encountered -- cannot
continue". This has been there since 1.1 but I don't think it was
intentional. If anyone actually cares about the blank line being there
for some reason, go ahead and revert this change...
2011-02-20 20:17:35 +00:00
dholland 90b9a73922 Remove stray extra newline in error message. 2011-02-20 20:15:36 +00:00
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