Commit Graph

145551 Commits

Author SHA1 Message Date
mrg d7ac53c209 be explicit about what the return values of kcopy(9) are: zero for success
and non-zero for failure.  (this documents practice - there are -1, EFAULT
and semi-random non-zero values returned.)
2006-04-04 17:33:40 +00:00
christos 5e406be836 Coverity CID 1083: Avoid possible NULL pointer deref. 2006-04-04 17:30:20 +00:00
pavel 929734802b Correct typo in a panic message. 2006-04-04 17:12:57 +00:00
martti cda1799407 IPF 4.1.13 2006-04-04 16:20:21 +00:00
martti 7967220333 Removed BROKEN_TCP_WINDOW_CHECK hack. 2006-04-04 16:19:05 +00:00
martti 10531caa29 Removed file. 2006-04-04 16:18:56 +00:00
martti b52bb48fee Fix compilation problems. 2006-04-04 16:18:27 +00:00
martti 9ea58d54bc Upgraded IPFilter to 4.1.13 2006-04-04 16:17:18 +00:00
martti 983a2072ce Import IPFilter 4.1.13 2006-04-04 16:08:18 +00:00
rpaulo b5d1102290 Add another bit from FreeBSD that I forgot: in tun_output, don't try to send
an AF_INET packet if TUN_IFHEAD is not set.
From FreeBSD and spotted (again) by DEGROOTE Arnaud.
2006-04-04 15:43:23 +00:00
dyoung ca9de39d07 If MKUUCP=no, do not create links for cu and its manual page. 2006-04-04 15:09:50 +00:00
christos afa610222b Coverity CID 1002: Yes, this could really be NULL, so check against it. 2006-04-04 14:24:15 +00:00
christos b33df30820 Coverity CID 1087: Clarify NULL test. 2006-04-04 14:21:55 +00:00
christos e2b3af9d2c Coverity CID 1140: NULL dereference cannot happen, but protect against it. 2006-04-04 14:18:35 +00:00
christos 41a4245aa5 Coverity CID 2413: NULL deref cannot happen, but nevertheless protect against
it.
2006-04-04 14:16:46 +00:00
gdt 1f2387e0e9 list gdt as responsible for coda 2006-04-04 13:30:59 +00:00
gdt 4d48cb3530 Update list of todo items, and note that old items are from 1998 and
thus likely no longer correct.
2006-04-04 13:20:39 +00:00
gdt 73e63e429a Check symlink count and pointer returned from userspace before
dereferencing it.  (I added this during search for the problem fixed by
the earlier readlink buffer allocation fix, and the checks have not
triggered.  Still, it's wrong of the kernel to use pointers from user
space without validation.)
2006-04-04 13:11:08 +00:00
nakayama 616dcaceb9 Add missing "-elf" suffix to ATH_HAL for sparc and sparc64. 2006-04-04 13:00:23 +00:00
rpaulo ca98b087a8 Fix a if-clause botched in a previous revision now that we have TUN_IFHEAD.
Spotted by DEGROOTE Arnaud <degroote@enseirb.fr>.
2006-04-04 11:33:15 +00:00
rpaulo 11a20f0dec Change the number of TUN[GS]IFHEAD to avoid collision with if_pp.
Noticed by Simon Burge.
2006-04-04 11:23:59 +00:00
cherry fb6529c627 Sleeps hard disk just before system shutdown.
Some hardware (eg: Apple iBooks) don't do this automatically
and the harddisk behaves as if the power plug were pulled.

Closes PR: kern/32766
2006-04-04 07:11:45 +00:00
wiz da9647bfba Bump date, so that version in src and pkgsrc have the same
version _and_ the same code.
2006-04-04 06:38:53 +00:00
gdamore daaee9c532 Add support for using the MIPS Atheros HAL.
Atheros WLAN added to default evbmips DBAU1500, DBAU1550, and MTX-1 configs.
Note that AR5312 config will require unique HAL that we don't have yet.
2006-04-04 04:30:28 +00:00
gdamore 75670ddc44 Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.
2006-04-04 03:13:12 +00:00
jld 344266fa22 Fix typo: and -> an 2006-04-04 02:20:35 +00:00
gdamore 27ea646343 Centralize rules for building atheros HAL for various supported platforms,
including easy override mechanism for ports that need it.

To use this, just .include this file instead of listing explicit rules
for building the target.  A change to std/conf/files will be made shortly
that lists /athhal.o as an object if "ath" is defined.

If you need to override the default HAL selected for some reason (for example
to use an xscale version of the HAL on evbarm kernels that support it), add
a "makeoptions ATH_MACHINE_HAL=<hal>", for example to select the XScale
LE configuration you could use "makeoptions ATH_MACHINE_HAL=xscale-le-elf".
2006-04-04 01:26:53 +00:00
rpaulo 0dcbc9b794 Implement TUN_IFHEAD, the missing piece that was breaking old applications. 2006-04-03 23:29:39 +00:00
uwe 752f872bf4 Fix indentation nits. 2006-04-03 21:18:20 +00:00
uwe d5925f5050 Honor RI_FULLCLEAR in igsfb_accel_eraserows. 2006-04-03 21:03:15 +00:00
uwe 774263e48a Properly fix cursor sprite endianness problems: always build
cc_sprite[] in little-endian, as that's how the card wants it.

Tested on netwinder (hardware bswap) by myself, and on current krups
kernel (no bswap) and 3.0 krups kernel (software bswap) by macallan.
2006-04-03 20:44:35 +00:00
christos 6bd51d8bb0 PR/32683: Dieter Baron: gdb/i386 cannot single step of shared library functions.
Indicate that we are in the solib trampoline is when we are in the plt section
(from uwe).
2006-04-03 17:09:58 +00:00
gdamore 791851b497 Add entry for Atheros HAL. 2006-04-03 17:01:22 +00:00
rittera 9f5b030f1a #included sys/lock.h which is apparently needed in order for ndiscvt to
compile on NetBSD.
2006-04-03 16:29:57 +00:00
tls 1189bd8566 Make this locking compatible with that of the new tip/cu: we still try
the old-style UUCP locks (this is harmless, since pppd must run as root,
but should perhaps be removed later) but now also try to flock the device
node, and error out if it fails.
2006-04-03 16:16:00 +00:00
tls 76f2334c55 Use closefrom, don't iterate over file descriptors from 3 to 20. 2006-04-03 16:13:34 +00:00
scw bd13d3ce50 Add utoppy* at uhub? 2006-04-03 16:08:49 +00:00
tls a973ebec53 Replace abuse of SIGIOT, SIGEMT, SIGSYS for communication between the
TIPIN and TIPOUT processes with a third "attention" pipe.  While we're
here, fix a few other minor nits like the hardcoded use of fd 3 in
consh().

Now ~+/~C appear to work.  This must have been broken for years.
2006-04-03 16:03:50 +00:00
cherry 3627104dbe Encapsulated the MD test: phdr[i].p_type & PT_LOPROC out of MI code,
and into MD_LOADSEG() as suggested by Christos.
2006-04-03 15:45:36 +00:00
christos e0b8cfed06 Coverity CID 2287: Fix memory leak.
Plus:
	- change fprintf -> errx
	- remove unneeded casts
	- avoid err() shadowing
2006-04-03 15:21:26 +00:00
tls 374e37364a Move "cucommon" label (ugh) to above the O_NONBLOCK handling for direct
connections.  This stops the tipout process from spinning.
2006-04-03 14:54:16 +00:00
christos cb82eb0f6b Redo the previous in the tip sanctioned way :-) 2006-04-03 14:12:29 +00:00
cherry 50756fb219 Allows processor ABI specific ELF segment loads.
If the macro MD_LOADSEG defined in
machine/loadfile_machdep.h evaluates to 1, the machine
specific segment is loaded.

See: http://mail-index.netbsd.org/tech-kern/2005/12/30/0003.html
2006-04-03 14:08:41 +00:00
martin d6d78510c3 printf format fixes for 64bit archs 2006-04-03 13:30:24 +00:00
skrll c965f60a50 Remove empty lines. 2006-04-03 13:23:15 +00:00
he 3a81e1c420 For the benefit of our 64-bit ports, we need to cast via intptr_t when
casting from pointer to unsigned int.
2006-04-03 13:00:48 +00:00
uwe 11419c1870 Build XFree86 server on netwinder with a minimal set of generic drivers
(XFree doesn't have a driver for CyberPro cards).
2006-04-03 11:15:17 +00:00
uebayasi 71f939eb25 Oops; put back -ffreestanding to avoid function prototype mismatch. 2006-04-03 09:08:03 +00:00
scw aefe7288c0 Add utoppy* at uhub? 2006-04-03 08:53:22 +00:00
scw e3b72e26b7 Note addition of utoppya(1) and utoppy(4) 2006-04-03 08:21:21 +00:00