dholland
e93a5674cc
Add a little const.
2008-03-30 22:28:41 +00:00
lukem
73d8c4238e
Add support for PAM when using -p, via USE_PAM!=no.
...
Fix non-root S/key support with USE_SKEY!=no (which is exclusive to
USE_PAM!=no); discovered whilst testing the "old" behaviour.
2008-03-30 15:30:15 +00:00
christos
56fd57d26f
detect more errors from printf/malloc.
2008-03-28 18:05:39 +00:00
mlelstv
2d66ab6e51
kerberos includes are installed in krb5 subdirectory
2008-03-27 22:01:56 +00:00
lukem
3e2ac0a370
Use SCRIPTS not PROG.
...
Noted by adam@albedo.art.pl
2008-03-27 12:12:40 +00:00
skrll
280a563bc4
Typo.
2008-03-26 14:41:00 +00:00
yamt
f722be6c16
include Makefile.inc for BINDIR.
2008-03-25 00:30:11 +00:00
he
7fa93d44f6
Please repeat after me: I shall not define _KERNEL before including
...
<sys/types.h> in user-land programs. Doing so causes build problems
for lots of our ports due to differences in how <sys/bswap.h> ends up
defining the swap functions/macros.
2008-03-23 23:01:21 +00:00
christos
e82b090f18
little cleanups.
2008-03-23 18:53:51 +00:00
mlelstv
d59e5a49dd
fix Version to 1.1
2008-03-23 08:24:18 +00:00
yamt
d92af407ba
call setlocale so that nl_langinfo makes sense.
2008-03-22 10:30:21 +00:00
mlelstv
d5be9e9c1d
Import Heimdal-1.1
...
more files
2008-03-22 09:39:22 +00:00
mlelstv
2af0cb41eb
Import Heimdal-1.1
...
Files missing from first commit.
2008-03-22 09:24:06 +00:00
mlelstv
b0f88a0388
Import Heimdal-1.1
2008-03-22 08:36:48 +00:00
ad
5456139476
Catch up with recent file descriptor changes.
2008-03-22 02:39:06 +00:00
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