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
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
christos
5c8db85ac9
wait for 15 seconds, not 15 microseconds.
2008-01-25 19:54:40 +00:00
christos
787a0bbadb
minor lint
2008-01-25 19:36:27 +00:00
christos
1b761c7278
PR/37863: Wolfgang Stukenbrock: yp_passwd command may destroy NIS database entries when used on a server that includes users via netgroups
2008-01-25 19:36:12 +00:00
christos
2d1f1d1dae
PR/37862: Wolfgang Stukenbrock: ypwhich uses only UDP and not TCP
2008-01-24 23:56:55 +00:00
ad
703069c0e9
specfs changes for PR kern/37717 (raidclose() is no longer called on
...
shutdown). There are still problems with device access and a PR will be
filed.
- Kill checkalias(). Allow multiple vnodes to reference a single device.
- Don't play dangerous tricks with block vnodes to ensure that only one
vnode can describe a block device. Instead, prohibit concurrent opens of
block devices. As a bonus remove the unreliable code that prevents
multiple file system mounts on the same device. It's no longer needed.
- Track opens by vnode and by device. Issue cdev_close() when the last open
goes away, instead of abusing vnode::v_usecount to tell if the device is
open.
2008-01-24 17:32:52 +00:00
dyoung
5448ecad57
#include <stdbool.h> for 'bool', so that this kernel groveller will
...
hopefully compile again.
2008-01-21 20:34:13 +00:00
lukem
69b443d18c
Turn off the alarmtimer before resetting the SIGALRM handler back to SIG_DFL.
...
Fix from dieter roelants <dieter.NetBSD@pandora.be>
Should fix PR 35630.
2008-01-21 10:31:28 +00:00
hubertf
3618b9ac2c
It's RPCGEN_CPP, not RPCGEN_RSH
...
Pointed out on tech-userlevel by Anthony Mallet <anthony.mallet@useless-ficus.net>
2008-01-19 14:22:05 +00:00
sjg
807aff24d0
Implement -dl (aka LOUD) to override '@' at the start of script lines.
...
Based on supplied patch.
PR: 37202
2008-01-19 06:52:13 +00:00
ginsbach
9470f2d15c
Fix problem with handling escaped octal and hexadecimal sequences in the -f
...
format option. The problem is that the next character after such an escape
was not copied to the output.
2008-01-18 16:16:10 +00:00
jschauma
595e87e328
add an paragraph before listing of options
2008-01-18 01:50:11 +00:00
yamt
0116b931c2
sync with kernel. (make some mbuf related statistics per-cpu.)
2008-01-17 14:53:18 +00:00
tls
2a6850b9a9
Fix PR37377 from Devon O'Dell: num_menus can be referenced without being
...
emitted if dynamic menus are not enabled.
2008-01-16 09:21:33 +00:00
christos
e451ddaaa8
- Make the msdos and non-msdos cpp handling use the same variable $RPCGEN_CPP
...
instead of one using $CPP and the other using $RPCGENCPP, following suit with
RDIST_RSH, CVS_RSH, etc. and document it.
- make the msdos environment variable take precedence over path search.
2008-01-15 20:04:48 +00:00
rmind
5c71a4d49f
Implementation of processor-sets, affinity and POSIX real-time extensions.
...
Add schedctl(8) - a program to control scheduling of processes and threads.
Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;
Proposed on: <tech-kern>. Reviewed by: <ad>.
2008-01-15 03:37:10 +00:00
yamt
bfc70617c5
mbpr: fix a harmless bug. (sizeof pointer -> sizeof *pointer)
2008-01-14 12:56:05 +00:00
mkirby
bb55aebb4f
Fix a small grammatical error.
2008-01-12 21:05:13 +00:00
dholland
cbae618808
sizeof(char) is always 1. Conversely, however, CHAR_BIT is not always 8.
...
reviewed: mrg
2008-01-12 05:49:46 +00:00
lukem
cd2d88332f
Don't bring in -lutil for tools.
2008-01-11 00:38:10 +00:00
simonb
ccab3b34ce
Remove support for NetBSD/pc532.
2008-01-10 13:40:36 +00:00
lukem
d7382668ef
Convert to using raise_default_signal(3).
2008-01-10 05:15:07 +00:00
lukem
e4952757b6
Convert to raise_default_signal(3).
2008-01-09 05:48:58 +00:00
reed
e25157a1c9
Sort a command. It was was renamed in 1.113 but not resorted.
...
(I noticed when reading man page but didn't quickly find what I was
looking for.)
Also add a missing period.
2008-01-08 15:28:31 +00:00
apb
74bc6bcb6f
Add more detail in comments about maximum size of environment and
...
arguments passed by xargs(1) to execvp(2). Research done while
investigating PR 37666, which is not a problem in -current.
2008-01-07 08:20:52 +00:00
christos
03f11859f6
don't show cpu number on single processor machines for the threads display too.
2008-01-06 19:59:22 +00:00