Commit Graph

153657 Commits

Author SHA1 Message Date
christos 2354d57484 Add paxctl as a tool. 2006-11-10 16:50:10 +00:00
christos 4dec970d46 turn paxctl into a tool. pass lint. 2006-11-10 16:31:58 +00:00
christos 5a595b5295 PR/35027: Nicolas Joly: getconf argument parsing broken.
While there:
	- don't print numbern, print number\n
	- don't leak memory
	- consistently return EXIT_FAILURE
	- fix error checking
	- pass lint
2006-11-10 15:36:04 +00:00
martin 43ae9165b5 size_t is not always == int 2006-11-10 14:31:14 +00:00
yamt d4d55c3dc9 tcp_ctloutput: when called for a socket which is not AF_INET or AF_INET6,
panic rather than returning possibly leaking an mbuf.
2006-11-10 13:19:16 +00:00
yamt 22ffb8ee31 udp_ctloutput: plug a memory leak. 2006-11-10 13:02:32 +00:00
yamt 850e08319b remove some __unused in function parameters. 2006-11-10 13:01:55 +00:00
yamt d547c3b722 udp_ctloutput: remove unnecessary goto and break. 2006-11-10 13:00:23 +00:00
yamt 511f1a8ff8 udp_ctloutput: ansify. 2006-11-10 12:59:59 +00:00
yamt 641f2cc444 xennet_checksum_fill: remove a debug printf. 2006-11-10 11:52:49 +00:00
mrg 338dc05e99 note that GCC 4.1.2-20061021 (prerelease) was imported 2006-11-10 08:02:08 +00:00
christos f6e9654266 add -Wno-stack-protector because of the CMSG macro lossage. 2006-11-09 21:40:20 +00:00
christos 2d8fd6a6dd Sprinkle -Wno-stack-protector 2006-11-09 21:27:58 +00:00
christos fc3c3a7a5c include stdlib.h for exit. 2006-11-09 20:59:23 +00:00
christos 1dcd74fde3 eliminate alloca use. 2006-11-09 20:50:53 +00:00
christos 10891a6668 compile alloca using code -Wno-stack-protector 2006-11-09 20:45:01 +00:00
christos 30ae5bcf37 libgcc needs __stack_chk_fail_local(); make it public 2006-11-09 20:44:16 +00:00
christos bbfbbde1e9 eliminate the only alloca use and simplify the code. 2006-11-09 20:42:45 +00:00
christos 3a4d16937d compile a file with -Wno-stack-protector since it is using __cmsg_alignbytes()
for a variable on the stack.
2006-11-09 20:33:25 +00:00
christos 9f3fa7dc87 eliminate the only variable stack array allocation. 2006-11-09 20:22:18 +00:00
christos c9f5e8dae9 don't use a variable array on the stack for a stupid reason. 2006-11-09 20:12:29 +00:00
christos f1951fb14a compile some files with -Wno-stack-protector since they are heavy alloca
users.
2006-11-09 20:07:14 +00:00
christos 94eb6e9da8 fix typo 2006-11-09 19:51:06 +00:00
christos f06f014bee use malloc when ssp 2006-11-09 19:50:03 +00:00
christos 161813f9e4 eliminate alloca for ssp. 2006-11-09 19:45:57 +00:00
bouyer 4a1c74e813 Yet another broken seagate drive. 2006-11-09 19:43:05 +00:00
christos 80955a4c43 replace varstack alloc with malloc. 2006-11-09 19:41:59 +00:00
christos b6479e9fff Fix malloc/realloc/calloc issues: always check and exit, use EEXIT instead
of 8.
2006-11-09 19:36:36 +00:00
christos d7b4a29a98 mention needing gcc rebuild for ssp. 2006-11-09 18:20:59 +00:00
christos 7a23599e76 add LDADD + DPADD for libssp. Pointed out by Geoff Wing. 2006-11-09 17:08:04 +00:00
christos 3051b08454 Add ssp glue. 2006-11-09 17:06:54 +00:00
christos 6ce0a263c4 no point in using alloca here. 2006-11-09 17:02:52 +00:00
christos 72301cb079 don't use alloca with ssp. 2006-11-09 16:58:38 +00:00
jmmv cff91bd8fc Add 2006 to the copyright notice; should have done this when touching the
files before.
2006-11-09 16:20:06 +00:00
jmmv d1d4964327 Move the "Removal of current directory" test to t_rmdir from t_remove
because that's the operation we are issuing.  Adjust it to expect a
failure on further accesses to the removed directory.
2006-11-09 15:38:12 +00:00
jmmv ccb670c8b8 Opening a file after it has been removed (e.g. rmdir $(pwd)) has to fail. 2006-11-09 15:36:30 +00:00
he 597433ec76 Add missing argument and correct name of __vsnprintf_chk() declaration. 2006-11-09 15:31:11 +00:00
jmmv c484aa16e3 Note changes to vnd to make it work in file systems without bmap nor
strategy.
2006-11-09 15:28:46 +00:00
jmmv b6714d04d8 Check if the underlying file system supports VOP_BMAP and VOP_STRATEGY and,
if not, fallback to VOP_READ and VOP_WRITE.  This makes vnd work with files
on, e.g. tmpfs and smbfs; all file systems should behave as before.
OK'ed by silence in tech-kern@.
2006-11-09 15:27:40 +00:00
jmmv 1befc83712 Add tests for vnd over tmpfs files. 2006-11-09 15:25:37 +00:00
tsutsui 36fcb0cbe4 Add rgephy at mii and rlphy at mii.
Tested on Ultra5 with RTL8139C (not plus) and RTL8169S.
2006-11-09 15:23:42 +00:00
tsutsui 2ae6e40c03 More cleanup of sparc64 clock stuff:
- split mkclock attachment from sparc64/clock.c into dev/mkclock.c
  (now clock.s only contains clock interrupt and timecounter stuff)
- rename match/attach functions of rtc at ebus to match the device name
- update some comments around clock devices in GENERIC

No objection on port-sparc64 for a month.
2006-11-09 15:08:04 +00:00
jmmv f3e033579e Note audit of kqueue notifications in tmpfs. 2006-11-09 15:08:02 +00:00
jmmv 117b5f5104 Audit kqueue notifications. The reference behavior is taken from MFS and
is represented in the regression tests.
2006-11-09 15:06:03 +00:00
tsutsui 492fddeb4a Print device revision on attach. 2006-11-09 14:59:55 +00:00
tsutsui 8d3021b407 Add #include <sys/device.h> for struct device.
Fixes compile error on sparc64.
2006-11-09 14:43:10 +00:00
cube 3574e17e23 Regen (PR#34951 fixes). 2006-11-09 14:10:21 +00:00
cube 1277ee639e - Make better use of COMPAT_XX type in syscalls.master
- Remove useless (thanks to COMPAT_XX behaviour) #ifdefs in
  syscalls.master
- Make netbsd32_compat_43.c compiled per COMPAT_LINUX32 because the latter
  needs stuff from it.

Fixes Perry's PR#34951.
2006-11-09 14:09:37 +00:00
jmmv e8467243ef Add several checks to see if tmpfs raises the proper kqueue events during
operation.  These all match the behavior exposed by MFS (except for a
corner case that is described in t_link).

Fixes to tmpfs itself to make these tests pass will come soon.
2006-11-09 13:51:49 +00:00
pooka d666e1c0f4 play catchup with the rest of the world, i.e. shuffle stuff a bit 2006-11-09 13:11:52 +00:00