wiz
504d664ef9
ANSIfy, remove unnecessary errno.h inclusion.
2006-07-09 21:39:48 +00:00
wiz
1f359fc560
OpenBSD v1.7, jmc@openbsd:
...
this file is public domain;
problem reported by will h. backman;
sorted with the author's permission - thanks henry spencer.
2006-07-09 21:38:47 +00:00
kardel
e386d70092
accept either "time_second" or "time" as kernel timevariable in
...
order to support common userland in enviroments where
timecounter kernels and non timecounter kernel co-exist
(e.g. xen & i386)
2006-07-09 06:43:16 +00:00
yamt
aa1d51179e
include evcnt.h rather than device.h.
2006-07-08 14:58:51 +00:00
ross
2f202b9b76
Make yet another ELF64 check work for powerpc64.
2006-07-08 06:51:36 +00:00
ross
bcc364ea13
Check for powerpc64 when enumerating MACHINE_ARCH
2006-07-08 05:43:35 +00:00
cube
15f9f25144
s/setmachine/machine. Overlook pointed out by Havard Eidnes.
2006-07-05 10:11:02 +00:00
wiz
1f88ff447a
Bump date for previous. New sentence, new line.
2006-07-02 01:48:51 +00:00
he
cb27e76665
Um, pointer differences are ptrdiff_t, and there's already a
...
printf specifier for it (t), so use it instead.
2006-07-01 11:05:42 +00:00
he
1209c64644
The type for pointer difference varies between ports, on some it's
...
"long int" and on others "int", so cast via long and use %ld for printing.
2006-07-01 10:58:29 +00:00
chap
80f0cf5785
The rest of merge from chap-midi branch. Version of midiplay that uses the
...
sequencer API definitions in sys/midiio.h (so there is a use example).
These produce the same (ABI) sequencer events as the OSS macros, but in
a more strongly-typed way; OSS API macros could be built on them and added
to the OSS compatibility header sys/soundcard.h but have not been, yet.
2006-06-30 22:19:32 +00:00
mrg
d1b9a6c456
allow powerpc64 lint to build (not really tested yet though.)
2006-06-29 23:41:28 +00:00
rillig
9edce8b593
Fixed gcc warnings about signed vs. unsigned in comparisons.
2006-06-29 22:02:06 +00:00
rillig
a3ea8b9d59
Fixed the bug reported in PR 33866, which is that the :Q operator does not
...
handle newlines correctly. Ok'ed by christos.
2006-06-29 22:01:17 +00:00
christos
0b5ed2ad28
In preparation for making TOOL_LORDER use TOOL_JOIN, TOOL_MKTEMP and
...
TOOL_SED:
* Parameterise JOIN, MKTEMP, NM, SED, and SORT. Previously
only NM and MKTEMP were parameterised.
* Rewrite some duplicated code using a loop.
* More careful quoting of shell variables.
* `...` -> $(...)
2006-06-27 12:28:43 +00:00
mrg
5609a371c9
make MKCRYPTO=no work again.
2006-06-25 03:02:19 +00:00
yamt
2c7ff2a52f
remove "XXX = <struct simplelock>" from -D output.
2006-06-24 12:34:51 +00:00
christos
aca1acfb3f
Use the UTX sizes + 1 for the struct to save space.
...
Don't complain if pid == 0
2006-06-22 17:57:31 +00:00
rpaulo
63b3e9f51c
It's not an error if we can't print CARP stats, it just means it's not built
...
in.
2006-06-20 19:22:17 +00:00
gdamore
a5c89047c0
Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
...
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.
The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.
Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
dogcow
444e690921
Remove various dotfiles that wandered their way in.
2006-06-18 08:59:39 +00:00
gdamore
d9ac053afa
Make TOOL_SED, to allow using our own sed in cases where the host's version
...
is busted in some way.
The TOOL_SED doesn't use TIOCGWINSIZE, and has some changes to include
nbtool_config.h in a cross build environment.
Combined with some other changes (not yet committed), this allows cross
compiling m68k code on Solaris 10/amd64.
2006-06-18 05:16:41 +00:00
elad
fc534d00ff
mark strpy safe
2006-06-17 08:32:42 +00:00
elad
1b28df2fb7
strncpy -> strlcpy
2006-06-17 08:22:06 +00:00
reed
37bfcfc9dd
Another mispelling fix. I should have done these all in one commmit
...
but I was editing several files and didn't realize the multiple
were all in one file.
2006-06-17 02:27:05 +00:00
reed
5cb179a5f0
Fix typo (or mispelling).
2006-06-17 02:19:57 +00:00
reed
d35727353d
Fix mispelling.
2006-06-17 02:18:48 +00:00
reed
c5f16e7060
Fix mispelling.
2006-06-17 02:06:17 +00:00
ghen
3da129c2c7
Make mail(1) invoke "sendmail" instead of "send-mail", this is more standard.
...
Ok with christos.
2006-06-15 13:03:29 +00:00
skrll
f1713aebe3
Remove a hack that's no longer needed with gcc 3.3.6.
2006-06-15 10:55:02 +00:00
liamjfoy
4511d3297e
Fix PR: 26363: script core dumps on incorrect input files.
...
This patch virtually re-writes the playback code and contains
improvements (mainly the dependency upon BUFSIZ being the same
size as it was wrote at).
OK: christos, joerg
2006-06-14 16:05:38 +00:00
christos
afe552b7f1
detect overflow and exit with an error.
2006-06-13 17:18:56 +00:00
christos
7afd9e136a
PR/33709: Kevin Massey: Avoid stack smashing in args copy
2006-06-13 03:22:00 +00:00
christos
e1168b9564
PR/33698: Kevin Massey: use strlcpy/strlcat to avoid stack overwrites.
2006-06-11 16:11:53 +00:00
christos
13b8a79d82
PR/33677: Scott Ellis: Building with MKINET6=no causes netstat to fail compiling
2006-06-09 16:39:11 +00:00
kardel
75418af90c
support timecounters (struct time gone, use time_second then)
2006-06-07 20:56:19 +00:00
liamjfoy
db01b090d5
Print the euid after the gid as demanded by POSIX.
...
from freebsd rev 1.27
ok christos, joerg
2006-06-07 13:09:56 +00:00
elad
fb101b952c
another netstat fix, Kurt Schreiner. thanx!
2006-06-04 22:39:33 +00:00
cube
93e398b3e3
Reference config(5). Noted by perry@.
...
XXX options(4), config(9) and probably some others still have to be changed
XXX a bit. A chaque jour suffit sa peine.
2006-06-04 20:07:52 +00:00
cube
3bde459b8f
Set a more realistic date than the day I started writing it.
2006-06-04 20:06:14 +00:00
elad
e7a2ce04a1
fix logic; from Kurt Schreiner
2006-06-04 20:01:14 +00:00
cube
ecfd193d31
Install config.5 and config.samples.5.
2006-06-04 19:42:18 +00:00
cube
8a5d15c785
Everything you've always wanted to know about config(1) without daring
...
asking (with reason).
You've entered the config(1) dungeon--More--
An option hits you. You die.
2006-06-04 19:41:26 +00:00
cube
1baa475170
Bump version after fix to obsolete syntax.
2006-06-04 13:52:27 +00:00
cube
87ab9060e2
D'uh. Forgot the file name argument in the "obsolete" statements.
2006-06-04 13:07:24 +00:00
christos
e07345e108
off-by-one (thanks to our anonymous contributor)
2006-06-03 21:47:55 +00:00
christos
e538b980bb
If one file is shorter than the other, print the byte and line offsets if
...
available. From our anonymous contributor.
2006-06-03 18:55:02 +00:00
christos
286191634b
We don't need to define struct ap_control anymore
2006-06-03 03:15:24 +00:00
christos
7042b96381
SIOCLOOKUPSTAT is the same as SIOCPROXY.
2006-06-03 00:02:51 +00:00
mrg
95c96a60f2
remove sh3/GCC2 hack.
2006-06-02 19:44:48 +00:00
christos
5e5752c8cd
PR/33627: Keiichi Shima: typo in Makefile.ioctl-c in kdump directory
...
s/RW/WR/
2006-06-02 13:56:49 +00:00
simonb
2f8c495ce2
Fix problems with program names with a "-" in them, where crunchgen was
...
outputting the original program name for the stub name instead of the
mangled name.
From Mikolaj Golub on tech-embed.
2006-06-02 10:11:56 +00:00
rpaulo
088720fe4b
Don't print an error if kernel doesn't have INET6 support.
...
By Jukka Salmi on current-users.
2006-05-31 13:26:17 +00:00
simonb
f11583fa19
Fix "pointer targets in passing argument X of 'Y' differ in signedness"
...
warnings. Originally, bswap32_region() took a u_int32_t * as its first
argument. Since no args passed to it are u_int32_t *, but some are
int32_t *, change it to int32_t * and fix remaining casts.
2006-05-31 08:09:55 +00:00
elad
5d7aa1a613
Make netstat use sysctl when dumping routing tables/stats.
...
Heavily based on similar code from Claudio Jeker (at OpenBSD).
While here, fix inet/inet6 sysctl stuff commited previously to
actually work, and some other nits to make netstat more sysctl
friendly.
One step closer to losing setgid kmem on this one...
2006-05-28 16:51:40 +00:00
elad
48404677c4
be quiet if symbol not in namelist, nothing cares
2006-05-27 23:57:32 +00:00
simonb
7f2151a308
Fix previous Coverity "fix" so that it doesn't break vi completely.
2006-05-27 12:03:37 +00:00
agc
8b41108aee
Clean up after the last fix.
2006-05-27 11:10:55 +00:00
yamt
b1af57a6ba
remove __POOL_EXPOSE.
2006-05-27 09:14:03 +00:00
jnemeth
6222f021a3
Coverity CID 3684: memory leak
2006-05-27 04:55:14 +00:00
jnemeth
243d02dab5
Coverity CID 3135: memory leak
2006-05-27 04:15:42 +00:00
cube
ac24e16176
Introduce two new statements:
...
obsolete defflag <option> [, <option> [, ...]]
obsolete defparam <option> [, <option> [, ...]]
The two statements actually do the same thing (there could be only one),
but it makes things less cryptic that way. The optional ": deps" part of
a 'defflag' or 'defparam' still has to be dropped when it gets obsoleted.
When the user has 'options OBSOLETE_OPTION' in his configuration file, it
is ignored (that is, opt_*.h files are generated as if it wasn't there),
and the user gets a warning about it.
Bump version to 20060525.
When someone first uses that syntax in the tree, a "version 20060525"
statement should be added before its occurrence, preferably at the top
of sys/conf/files.
Suggested by Matt Thomas a few months ago.
2006-05-25 22:28:38 +00:00
christos
fc19b961ac
s/vax/__vax__/
2006-05-25 22:06:53 +00:00
jnemeth
0b1276d17c
Coverity annotation
2006-05-25 21:43:40 +00:00
christos
f81561404f
deal with the vax gcc that does not understand __attribute__ used.
2006-05-24 23:16:50 +00:00
christos
16aa23f5c3
sort static and non-static decls.
2006-05-24 18:06:58 +00:00
christos
8d1d34adc0
- ansi prototypes
...
- sprinkle static
No functional change (just smaller binary because of unused functions)
2006-05-24 18:01:43 +00:00
christos
42df83a697
Coverity CID 3337: Close file before returning.
2006-05-24 16:57:12 +00:00
christos
04e2c897d2
Coverity CID 3510: Don't leak memory.
2006-05-24 16:43:35 +00:00
christos
a740c3d0aa
Coverity CID 3204: The USE_SLEEP case can close the fp, and break does
...
not break from the loop, only from the switch. Make it break from the
loop to avoid a NULL pointer dereference.
2006-05-24 16:34:25 +00:00
christos
a52c240b50
Coverity CID 2285: in the dump and dumpshort case, don't trash head so that
...
we can free the memory later.
2006-05-24 16:04:03 +00:00
christos
cd2ccbaf94
Coverity CID 3212: Don't return, goto out in all cases so that cleanup
...
happens.
2006-05-24 15:59:06 +00:00
christos
4871d79cb7
Coverity CID 3318: Remove stray semicolon that caused close to be called
...
unintentionally.
2006-05-24 15:53:21 +00:00
jnemeth
c287edd2a0
Coverity CID 3610: derefencing NULL pointer.
2006-05-23 23:59:48 +00:00
rpaulo
f6e31a1aa2
Fix carp_stats() prototype location.
...
Noticed by Iain Hibbert.
2006-05-23 14:31:11 +00:00
christos
1fc5ea78ff
Coverity CID 3184: Don't dereference NULL
2006-05-23 01:11:12 +00:00
christos
d257792f4a
Coverity CID 3187: Fix memory leak
2006-05-23 01:07:16 +00:00
dan
450da78dd9
the intention of the whole tip-as-cu thing was to allow tip-as-cu and
...
have a cu command installed, even when the rest of uucp was removed
via MKUUCP=no. The old uucp-derived cu is no more, and is not
installed in either case.
make it so, by correcting some confusion that had made the non-uucp
tip-as-cu cu conditional on MKUUCP
2006-05-22 12:32:20 +00:00
liamjfoy
362a260c6d
check if malloc(3) failed
...
ok joerg@
2006-05-21 21:01:55 +00:00
dsl
35fde98d40
Reduce the field widths for the summary line of traps, system calls
...
and interrupts so that the numbers don't all run into one.
2006-05-21 20:22:34 +00:00
jnemeth
563d9df051
Victoria Day in Canada occurs on the Monday prior to May 25th
2006-05-20 22:31:02 +00:00
dsl
ded5cac581
Checkpoint this as 'WIP' before I break it again!
...
(Not complied by default.)
2006-05-20 20:07:35 +00:00
mrg
aa349aa646
s/0/NULL/ for execl*'s last argument.
2006-05-20 10:31:59 +00:00
rillig
2d158db9a6
Increased WARNS to 4.
2006-05-19 20:06:30 +00:00
rillig
902271403f
Typo.
2006-05-19 20:03:30 +00:00
christos
236f8aef2c
Coverity CI D3758: Plug memory leak.
2006-05-19 17:29:01 +00:00
christos
19d4b5c5e9
Coverity CID 3757: Plug memory leak.
2006-05-19 17:27:06 +00:00
christos
ffbb87954b
Coverity CID 3147: Plug memory leak.
2006-05-19 17:21:46 +00:00
christos
1245f2f0ca
Sprinkle static, pass lib, warns=4
2006-05-19 14:43:58 +00:00
riz
64cde4117b
Use PRIu64 to format uint64_t quantities, instead of %llu, in
...
newly-introduced code.
XXX more %llu cleanup is needed throughout netstat code.
2006-05-18 17:19:22 +00:00
liamjfoy
4876c304b1
Integrate Common Address Redundancy Procotol (CARP) from OpenBSD
...
'pseudo-device carp'
Thanks to: joerg@ christos@ riz@ and others who tested
Ok: core@
2006-05-18 09:05:49 +00:00
dogcow
5c02c41fc6
add missing prototypes
2006-05-16 02:37:24 +00:00
elad
04d63f90b5
Introduce PaX MPROTECT -- mprotect(2) restrictions used to strengthen
...
W^X mappings.
Disabled by default.
First proposed in:
http://mail-index.netbsd.org/tech-security/2005/12/18/0000.html
More information in:
http://pax.grsecurity.net/docs/mprotect.txt
Read relevant parts of options(4) and sysctl(3) before using!
Lots of thanks to the PaX author and Matt Thomas.
2006-05-16 00:08:24 +00:00
rillig
6e29471885
Changed the type of some size variables from int to size_t. Added const
...
qualifiers to some parameters. These changes allow WARNS to be raised to
4.
2006-05-15 21:12:21 +00:00
christos
00dd70ade5
WARNS=4, ansi pass lint.
2006-05-15 14:30:38 +00:00
christos
c3ec4b956d
Add the DRV lkm type. From David Boggs.
2006-05-15 12:51:19 +00:00
gson
9aca5a13df
Recording to standard output is specified by a file name of -,
...
not by omitting the file name.
2006-05-15 02:21:37 +00:00
christos
9a02ff9b42
gcc-4.0 needs attribute used. Variables with attribute unused get removed.
2006-05-14 23:47:34 +00:00
mlelstv
bad43188a8
restore elevated priority before launching command in
...
user context. Fixes PR 33479.
2006-05-14 21:18:31 +00:00
wiz
cc9f77ff20
Clarify location of `}'. Requested by joerg. Bump date.
2006-05-14 14:34:49 +00:00