Commit Graph

9726 Commits

Author SHA1 Message Date
tnozaki 0b9f4942b6 allow SUSv3 syntax.
if from/to code is ommitted, auto-guess'ed from current locale.
2008-03-20 11:35:44 +00:00
joerg e1032da53f Don't skip ioctls with a digit in the name.
Add a number of conflicting entries.
Add some entries from the IPv6 stack where the used structure is not
exported to userland.
2008-03-11 20:39:57 +00:00
christos 45be95b786 add month names, from FreeBSD via anon ymous 2008-03-11 01:10:12 +00:00
christos 775ae7cec2 - add months + years in the language
- fix daylight savings bogus code
From FreeBSD via Anon Ymous
2008-03-11 01:04:18 +00:00
dholland 46020b9298 MKMAN does not belong in source makefiles; use NOMAN. 2008-03-10 01:08:05 +00:00
dholland e171ff8493 Add missing GROUP heading in example. From PR bin/38205 from Aleksej
Saushev. Also change the example to use echo instead of printf, so it
continues to fit in 80 columns in the source.

Bump date.
2008-03-09 18:18:42 +00:00
christos bb0b4504cd PR/38207: Aleksej Saushev: fmt reports non-existing files erroneously 2008-03-09 17:26:37 +00:00
dholland d06b9ed56d Amplify comments from the previous commit. If xtos misread what was
going on, they can't have been clear enough. (And if xtos misread it,
so will anyone else passing by, and then someone will "fix" it...)

Hopefully this will help. Maybe it should be changed to use memcpy
instead of strncpy after all.
2008-03-08 22:41:03 +00:00
dholland 9cf185a523 Remove reflexive cargo-cult-style null-termination after strncpy; it is
neither needed nor particularly desirable. Add comments to explain what's
going on, and arrange to fail the build if the sizes of things get out
of whack.
Resolves PR bin/38201 from Chris Spiegel.
2008-03-08 22:29:26 +00:00
christos f3e1b062a3 indentation police. 2008-03-08 19:49:08 +00:00
christos 6f6f89d28a pass lint, from anon ymous 2008-03-08 15:48:27 +00:00
christos a8a21bf00e lint patches from Anon-Ymous 2008-03-08 03:35:53 +00:00
christos 53175f5071 ansi and lint fixes from Anon Ymous 2008-03-07 19:22:22 +00:00
christos 0bdd655872 Treat "Thursday" as "*Thursday" from anon ymous 2008-03-06 17:37:57 +00:00
christos a23f0e5f81 PR/38142: YAMAMOTO Takashi: lint -S complains on variable length arrays 2008-03-04 02:41:46 +00:00
dsl 1b00238d8c When printing non-random integers, add 0.5 to get 'schoolboy' rounding.
This makes 'jot - 9 - -.5' generate 9 9 8 8 etc again.
When printing random numbers generate a sane range when ender < begin.
For random integers we must use random()/2^31 since we don't want the
value above generated should random() return 2^31-1.
2008-03-02 21:33:42 +00:00
he a2decb9dc9 It's wrong for user-land programs to define _KERNEL before including
<sys/types.h>.  The reason is that this will break the build for about
half of our ports, because the wrong variant of e.g. bswap16() is being
defined and referenced (either __bswap16() or bswap16()).  Removing
the _KERNEL define restores buildability for this program.
2008-03-01 11:04:30 +00:00
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