Commit Graph

9709 Commits

Author SHA1 Message Date
njoly 2222627b2d Add a few NULL entries to linux_ptrace_ops[], to make PTRACE_SYSCALL
string appear at the expected indice 24.
2008-02-29 22:45:36 +00:00
dsl 93190b890c Remove the loop used to set default and calculated parameters, instead
set the defaults at compile time and calculate any derived values in
a simple switch statement.
Use names for the bit-patterns that indicate that fields are present.
Seems to behave the same way as the earlier version.
2008-02-29 22:43:48 +00:00
christos 915f599cbf From FreeBSD via Jukka Salmi: Don't coredump on stdin. 2008-02-29 22:27:15 +00:00
dsl f127a329db Sprinkle 'static' and 'EXIT_FAILURE'. Use getopt().
Simplify getprec() using libc functions.
Code from me partially inspired by a diff sent by xtos.
2008-02-27 22:47:32 +00:00
matt 0c07a5e990 Emit ANSI protype: fn (void) and not fn () 2008-02-27 22:38:57 +00:00
ad f4b74daf98 +#define _KERNEL
+#include <sys/types.h>
+#undef _KERNEL
2008-02-27 16:37:31 +00:00
ad 835572acdb - Define _KERNEL for sys/types.h in unix.c.
- caddr_t -> char * in a couple of places.
2008-02-27 16:36:54 +00:00
dsl e16564a11e Remove a 9 from the stuttered example in order to match the only
possible reality.
2008-02-24 00:05:31 +00:00
dsl 2791dfc743 When converting fp values to integer, use floor(x) so that we get
consistent convertions not the 'round to even'.
This means that it is possibly to generate the 'stuttered' sequence
4 4 3 3 2 2 1 1 0 0 -1 -1.
2008-02-24 00:04:00 +00:00
dsl 9d6613d400 Rename 's' to 'step', allow a precision of 0 to be specified (overriding
the value determined from 'begin' and 'end').
2008-02-23 23:59:59 +00:00
dsl a357ac4921 If we are doing a random integer (or character) format, then increase the
range by 1 so that the quoted upper and lower values both appear, and
with the same frequency as the intermediate values.
This reverts the change from rev 1.13, and fixes it properly!
Also fixes 'jot -r -c - 97 98' as reported to netbsd-bugs (but not as a PR!).
2008-02-23 22:46:10 +00:00
dsl c4d8b28d09 Remove some pointless indirections and add {} around some long single
statements.
2008-02-23 22:26:41 +00:00
christos c74c62426e - sizeof(type) -> sizeof(variable)
- add a missing memset()
- process unlimited length lines
2008-02-23 21:10:54 +00:00
oster eb54cecf5a maxcols and DEFCOLS are column counts, not "how much space to
allocate" values.  Thus, if we multiply DEFCOLSL by sizeof(char *) we
should do likewise for maxcols (and not just add maxcols to the "how
much space to allocate" parameter!!)

Fixes the 'jot 33 1 > J33 ; paste -s J33 | column -t' SegFault
lossage reported by Jeremy Reed on tech-misc.
2008-02-23 19:58:06 +00:00
joerg 199b0f6721 Fix logic error: memset arguments needs the whole size.
XXX nuke macro logic and just use sizeof.
2008-02-21 02:50:11 +00:00
joerg 4e2cb1955b Remove an unused assignment and convert the remaining for (; cond; )
into while.
2008-02-20 23:16:05 +00:00
joerg 0c8d1e69b7 Shrink by using "SysV" or ANSI C memset to init hash table. 2008-02-20 22:46:52 +00:00
dyoung 4c39af2f02 Take a small step toward making vndcompress into a host tool:
remove #include <arpa/inet.h> and use bswap32() instead of ntohl().
2008-02-18 03:34:04 +00:00
bouyer 2720c9d6a3 Install xenio.h and xenio3.h in /usr/include/xen, for the benefit
of xentools3.

XXX ignore those in Makefile.ioctl-c, they don't compile properly outside
of the Xen context and the ioctls from xenio.h conflicts with
soundcard.h
2008-02-17 16:23:12 +00:00
matt 63dd7847f0 Change incorrect usage of CFLAGS to CPPFLAGS 2008-02-16 18:27:48 +00:00
matt d8485be816 Fix numerous inconsistent variable declaration. Resulting in some minor
constification.
2008-02-16 07:20:54 +00:00
matt 2b18923184 siginfocodename returns const char *, not char *. 2008-02-16 07:19:23 +00:00
matt 34d8567b7b Add ${PROG}-ioctl.c to DPSRCS 2008-02-16 07:17:58 +00:00
matt 4ac975fb16 Add siginfo.c to DPSRCS 2008-02-16 07:17:31 +00:00
matt 3b1e7dbd0b Fix more -combine fallout. (mismatched definitions) 2008-02-16 07:16:01 +00:00
christos a686e4e754 back all changes out until I fix it properly. 2008-02-15 21:29:50 +00:00
christos 4b3df4502b Improve dh's fix:
- make sure i is initialized
	- don't subtract 1 in comparison, add 1 to the other side
2008-02-15 20:08:11 +00:00
dholland cb84a8637d fix typo in comment 2008-02-15 09:18:56 +00:00
dholland a9c8da72a1 Avoid SIGSEGV caused by signed/unsigned mismatch. (hi xtos) 2008-02-15 08:55:31 +00:00
christos e654b454bc remove error/noerror const 2008-02-15 02:50:53 +00:00
christos 649f359b39 fix != expansion bug I introduced. 2008-02-15 02:38:07 +00:00
christos 4d9d6704c1 - symbolic names for error and no error
- more size_t
2008-02-15 02:37:51 +00:00
christos 2b28370627 - use pid_t/size_t as appropriate instead of int.
- use %ld to print pids.
- fix a bit of lint.
- WARNS=4
2008-02-14 22:11:20 +00:00
christos 64059bbbda PR/38017: Greg A. Woods: rpcinfo -s broke after coverity fixes. 2008-02-13 16:15:18 +00:00
dyoung d4f4828ee0 Do not #include <sys/device.h> from userland. 2008-02-11 22:43:39 +00:00
dyoung 4ef6fc056a #include <sys/evcnt.h> instead of <sys/device.h>, since the former
is sufficient, anyway.  Do not needlessly #include <sys/device.h>.

Note well: device_t is not part of the kernel ABI.
2008-02-11 03:51:17 +00:00
ragge eb30206a9f Adapt to new import of pcc. 2008-02-10 20:32:25 +00:00
jmmv be1e5d770b Always test MKMODULAR with != "no". Requested by mrg@. 2008-02-10 08:21:25 +00:00
jmmv 4e4a76c0c4 Do not descend into modstat if MKMODULAR is set. 2008-02-09 19:33:17 +00:00
mlelstv 5c1a4dd94c Fix a segfault when doing 'stat -f %R' on the stdin file handle, instead
fake the filename '(stdin)' like the %N format.
2008-02-09 09:18:07 +00:00
joerg bcdbb8101f Print the complain about random stuff after empty only once. 2008-02-07 00:49:38 +00:00
joerg c8bc46c4bc Warn for constructs like
.if empty xxx(foo)
which are interpreted as
.if empty(foo)
or
.if empty (foo)

This is based on rillig's commit to pkgsrc/devel/bmake, but doesn't warn
for the third case. Discussed with sjg.
2008-02-06 18:26:37 +00:00
yamt b895a23e56 fix a typo(?) in rev.1.34, which causes NULL dereferences. 2008-02-06 15:31:42 +00:00
joerg a570300f03 Be pedantic and use unsigned int here as uwe@ suggested. 2008-02-05 16:39:26 +00:00
joerg 75ce084b15 Merge from pkgsrc's bmake: don't use signed short for bitfields.
This makes IBM xlc happy.
2008-02-05 15:11:50 +00:00
christos 0523aae770 PR/37954: Thomas Klausner: "tail -c 2" broken.
It is not tail -c 2 but most of tail -c <n> with pipes. Fix by Anon Ymous
2008-02-04 16:23:11 +00:00
christos 1d50c3e36a add gettytab 2008-02-04 15:30:44 +00:00
christos a1232e4db1 Add more undocumented capabilities to the *cap printing. 2008-02-02 20:57:20 +00:00
christos ebcc6ba679 handle cap style databases. 2008-02-01 22:39:20 +00:00
erh 570958013a Clarify what the format section of the cap_mkdb man page is talking about. 2008-01-31 04:00:54 +00:00