summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* In preparation for 7.0 privilege cleanup, clean up style:rwatson2007-07-052-87/+32
| | | | | | | | | - Sort copyrights by date. - Re-wrap, and in some cases, fix comments. - Fix tabbing, white space, remove extra blank lines. - Remove commented out debugging printfs. Approved by: re (kensmith)
* Adopt snp to the destroy_dev_sched() KPI after reverting of destroy_dev()kib2007-07-051-8/+9
| | | | | | | to not call destroy_dev_sched(). Tested by: Peter Holm Approved by: re (kensmith)
* Revert destroy_dev() to the state before destroy_dev_sched() was introduced.kib2007-07-051-8/+2
| | | | | | | Attempt to spawn destroy_dev_sched() from it causes inadmissible races. Requested by: tegge Approved by: re (kensmith)
* Properly unlock mutex before returning. There was a slight mishapariff2007-07-051-1/+3
| | | | | | | during last major locking cleanup. Reported by: Thierry Herbelot <thierry@herbelot.com> Approved by: re (mux)
* Remove reference to the old ftp-proxy implementation,delphij2007-07-051-6/+0
| | | | | | which was replaced during the pf 4.1 import. Approved by: re (mux)
* Turn on -Werror for i386 kernel builds.peter2007-07-051-1/+1
| | | | Approved by: re (rwatson)
* Allow the LACP state to be queried from userland which at the moment is thethompsa2007-07-055-3/+133
| | | | | | | actor and partner peer info. Print out the active aggregator and per port data in verbose mode from ifconfig. Approved by: re (mux)
* Remove the -DFAST_IPSEC from Makefiles again.bz2007-07-055-6/+6
| | | | | | | | | This was needed during the IPSEC->FAST_IPSEC->IPSEC transition period to not break the build after picking up netipsec header files. Now that the FAST_IPSEC kernel option is gone and the default is IPSEC again those defines are superfluous. Approved by: re (rwatson)
* Remove netkey directory from cscope/TAGs generation and replacebz2007-07-052-3/+7
| | | | | | | | | | it with netipsec now that KAME IPsec is gone. While here add missing netinet6 directories. Add comments about the ports needed to be able to run those targets. Reviewed by: philip Approved by: re (rwatson)
* Fix a build breakage as result of disabling parts of I4B.bz2007-07-052-17/+17
| | | | | | | | Check for (temporary gone) kernel options to be defined before using them. Reported by: peter Approved by: re (rwatson)
* Quiet framelen uninitialized warning. I think it was a false alarm.peter2007-07-051-1/+3
| | | | | | | If check_fhdr() returns false, the frame_ok variable should protect any meaningful evaluations of framelen. Approved by: re (rwatson)
* Quiet warnings. I believe gcc is incorrect about these.peter2007-07-051-1/+1
| | | | Approved by: re (rwatson)
* __packed has no effect on u_int8_t's except to cause a warning (andpeter2007-07-051-1/+1
| | | | | | never has had any effect). Approved by: re (rwatson)
* Turn -Werror back on for amd64 for kernel builds.peter2007-07-051-0/+2
| | | | Approved by: re (rwatson)
* Compile pf/pf_subr.c and netnatm/cc_conn.c without -Werror for the timepeter2007-07-052-3/+3
| | | | | | being. Approved by: re (rwatson)
* Quiet warnings. These do not appear to be actually used uninitialized,peter2007-07-051-1/+1
| | | | | | | but gcc's optimizer isn't smart enough to see that. Pre-initializing seems harmless enough. Approved by: re (rwatson)
* Fix a stray splx() that caused a new warning.peter2007-07-051-2/+2
| | | | Approved by: re (rwatson)
* Initialize DWBuf[3].peter2007-07-051-0/+1
| | | | Approved by: re (rwatson, blanket)
* Fix a bunch of warnings due to a missing forward declaration of a struct.peter2007-07-051-0/+1
| | | | Approved by: re (rwatson)
* Prefer device_printf to printf("%s: ...", device_get_nameunit()). Onimp2007-07-051-30/+23
| | | | | | amd64, we save about 240 bytes (this is about 20 per instance). Approved by: re (blanket)
* Prefer device_printf to printf("%s:...", device_get_nameunit(),...);imp2007-07-052-61/+51
| | | | | | This saves ~300 bytes for uvscom.c and ~100 for uvisor.c Approved by: re (blanket)
* Fix 'assignment used as truth value' warningpeter2007-07-051-1/+2
| | | | Approved by: re (rwatson)
* Temporarily turn nowerror on for i386 and amd64 pmap.c. I'd like to studypeter2007-07-052-2/+2
| | | | | | exactly what effect the options cause to the code with gcc these days. Approved by: re (rwatson)
* Fix a second warning, introduced by my last "fix". I committed the wrongpeter2007-07-051-2/+2
| | | | | | | diff from the wrong machine. Pointy hat to: peter Approved by: re (rwatson - blanket, several days ago)
* Fix cast-qualifiers warning when INET6 is not presentpeter2007-07-053-4/+3
| | | | Approved by: re (rwatson)
* Fix bad function type passed to destroy_dev_sched_cb().peter2007-07-051-1/+2
| | | | Approved by: re (rwatson)
* Remove pad argument from ftruncate wrapper. Oops.peter2007-07-051-1/+0
| | | | Approved by: re (kensmith)
* Add quirks, derived from the linux quirks table for:imp2007-07-052-5/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Adonics Cable 205 o Aiptek PocketCAM 3Mega o Belkin USB2SCSI o Casio QV DigiCam o CCYU EasyDisk ED1064 o Desknote UCR-61S2B o Epson Stylus Photo 875DC Card Reader o Epson Stylus Photo 895 Card Reader o Feiya 5-in-1 Card Reader o Hitachi Dvd-CAM DZ-MV100A Camcorder o HP CD-WRiter+ CD-4e o Insystem Storage Adapter v2 o Kyocera Finecam S3x o Kyocera Finecam S4 o Kyocera Finecam S5 o Kyocera Finecam L3 o Lexar USB CF Reader o MindAtWork Digital Wallet o Minolta Dimage F300 o Minolta Dimage E223 o Minsumi USB Fdd o Netac USB-CF-Card o NetChip USB Clik! 40 o Onspec MDCFE-B USB CF Reader o Onspec SIIG/Datafab Memory Stick + CF Reader/Writer o Onspec Datafab-based Reader o Onspec PNY/Datafab CF+SM Reader o Onspec SimpleTech/Datafab CF+SM Reader o Onspec MDSM-b Reader o Onspec USB To CF + SM Combo (LC1) o Onspec ImageMate SDDR55 o Panasonic LS-120 Camera o Samsung Techwin Digimax 410 o Shuttle eUSB SmartMedia / CompactFlash Adapter o Skanhex MD 7425 Camera o Skanhex SX 520z Camera o Sony Memorystick NW-MS7 o Sony Portable USB Hardrive V2 o Sony Memorystick PEG N760c o Sony Memorystick MSC-U03 o TREK/IBM USB memory key o Trumpion T33520 USB Flash Card Controller o Trumpion MP3 Player o Vivtar Vivicam 35Xx o WinMaxGroup USB Flash Disk 64M-C o Zoran Digital Camera EX-20 DSC and maybe a few others... Submitted by: Vaidas Damosevicius and flz PR: 79893 Reviewed by: njl, flz Approved by: re (blanket)
* Add support for Western Digital MyBook external enclosures. They needimp2007-07-052-0/+10
| | | | | | | | this quirk to work. Submitted by: Dierk Sacher PR: usb/99419 Approved by: re (blanket)
* Add missing \ characters in PSEUDO() macro on arm. Oops.peter2007-07-041-2/+2
| | | | | Submitted by: cognet Approved by: re (kensmith)
* kdump has knowledge of lseek() and mmap() arg decoding. Teach it aboutpeter2007-07-041-1/+25
| | | | | | the new mmap and lseek syscalls. Approved by: re (kensmith)
* Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate topeter2007-07-049-9/+119
| | | | | | | | | call the pad-less versions of the corresponding syscalls if the running kernel supports it. Check kern.osreldate once per program and cache the result to select the appropriate syscall. This maintains userland compatability with kernel.old's from quite a while back. Approved by: re (kensmith)
* Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudopeter2007-07-047-22/+35
| | | | | | | | | | syscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default case will have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT, the .c wrappers will go away and libc will make direct syscalls. After 7-stable starts, the direct syscall method will be default. Approved by: re (kensmith)
* Adjust the syscall stub macros to be consistent in their meaning. Inpeter2007-07-045-34/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | particular: SYSCALL() makes a syscall, with errno handling, and continues execution directly after the macro in the non-error case. RSYSCALL() is just like SYSCALL(), but returns after success. Both SYSCALL(name) and RSYSCALL(name) export "__sys_name" as a strong symbol, with "_name" and "name" as weak aliases. PSEUDO() is just like RSYSCALL(), but skipping the "name" weak alias. It still does "__sys_name" and "_name". Change i386 to add errno handling to PSEUDO. The same for amd64 and sparc64, with appear to have copied the behavior. ia64 was correct (as was alpha). Just remove some apparently unused variants of the macros. (untested!) I believe powerpc is correct. Fix arm to not export "name" from the PSEUDO case. Remove apparently extra unused variants. (untested!) The errno problem manifested on i386/amd64/sparc64 by having "PSEUDO" classified syscalls return without setting errno. eg: "addr = mmap()" could return with "addr" = 22 instead of setting errno to 22 and returning -1. Approved by: re (kensmith)
* Don't add the 'pad' argument to the mmap/truncate/etc syscalls.peter2007-07-043-5/+0
| | | | | Submitted by: kensmith Approved by: re (kensmith)
* Add compat6 wrapper code for mmap/lseek/pread/pwrite/truncate/ftruncate.peter2007-07-041-0/+83
| | | | Approved by: re (kensmith)
* Regenerate after mmap/lseek/etc syscall changespeter2007-07-044-102/+177
| | | | Approved by: re (kensmith)
* Add i386 emulation wrappers for mmap/lseek/etc. These use COMPAT6, sopeter2007-07-041-6/+22
| | | | | | | you must use the already existing, already in generic, COMPAT_FREEBSD6 kernel option for running old 32 bit binaries. Approved by: re (kensmith)
* Add freebsd6_ wrappers for mmap/lseek/pread/pwrite/truncate/ftruncatepeter2007-07-043-3/+78
| | | | Approved by: re (kensmith)
* Bump version for new mmap/lseek/etc syscallspeter2007-07-041-1/+1
| | | | Approved by: re (kensmith)
* Regenerate after mmap/lseek/etc syscall changes.peter2007-07-046-112/+251
| | | | Approved by: re (kensmith)
* Create new syscalls for mmap(), lseek(), pread(), pwrite(), truncate() andpeter2007-07-041-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | ftruncate(), but without the pad arg. There are several reasons for this. Consider 'mmap()'. On AMD64, the function call (and syscall) ABI allow for 6 register arguments. Additional arguments go on the stack. mmap(2) has 6 arguments. However, the syscall definition has an extra 'int pad' argument. This pushes it to 7 arguments, which means one must spill into the memory stack. Since the kernel API doesn't match userland API, we have a hack in libc - libc/sys/mmap.c. This implements the userland API by calling __syscall() with an extra argument and the pad argument, for a total of 8 args. This is all unnecessary and inconvenient for several things, including the kernel's syscall handler code which now has to handle merging stack arguments with register arguments. It is a big deal for certain 3rd party code. I'm adding libc glue to make the transition totally painless. I had intended to mark the old syscalls as COMPAT6, but the potential to shoot your feet by building a new kernel without COMPAT_FREEBSD6 but with a slighly older userland was too great. For now, they have manual "freebsd6_" prefixes rather than being COMPAT6. They will go back to being marked 'COMPAT6' after 7-stable starts. Approved by: re (kensmith)
* Add support for COMPAT6 syscalls.peter2007-07-041-9/+42
| | | | | | | | | | | | | Also, change the visibility of compat syscalls a slightly. Compat syscalls were missing from 'syscalls.h' entirely. This additionally adds them with their compat prefix. eg: SYS_freebsd6_mmap. Also, the syscalls.c names strings have different prefixes to differentiate syscalls. Instead of several "old.mmap" strings, there will now be a "compat.mmap" and "compat6.mmap" etc. Before, both would have had the same "old.mmap" label. Approved by: re
* Document the move from FAST_IPSEC to IPSEC. Point out the need forgnn2007-07-041-0/+5
| | | | | | device crypto in the kernel configuration file when using IPSEC. Approved by: re
* Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.ssouhlal2007-07-046-27/+62
| | | | | | | | | For example, sed /foo/Id sed s/foo/bar/Ig Reviewed by: dds Approved by: re (hrs)
* Do not install man pages for the three I4B 'modules' that werebz2007-07-042-1/+10
| | | | | | disabled for the FreeBSD 7.0 timeframe. Approved by: re (rwatson)
* Be much more forgiving towards applications that requesting ioctlsariff2007-07-041-4/+2
| | | | | | | | that should be a no-op (for example, requesting SYNC on record path). The standards does not indicate that such requests are illegal, so just return it as success instead of EINVAL. Approved by: re (mux)
* Since cdev mutex is after system map mutex in global lock order, free()kib2007-07-043-1/+38
| | | | | | | | | | | | | | | | | | shall not be called while holding cdev mutex. devfs_inos unrhdr has cdev as mutex, thus creating this LOR situation. Postpone calling free() in kern/subr_unit.c:alloc_unr() and nested functions until the unrhdr mutex is dropped. Save the freed items on the ppfree list instead, and provide the clean_unrhdrl() and clean_unrhdr() functions to clean the list. Call clean_unrhdrl() after devfs_create() calls immediately before dropping cdev mutex. devfs_create() is the only user of the alloc_unrl() in the tree. Reviewed by: phk Tested by: Peter Holm LOR: 80 Approved by: re (kensmith)
* Reintroducing !INET6 + IPSEC building fix which was accidentally revertedavatar2007-07-041-1/+1
| | | | | | in rev. 1.1229. Approved by: re (kensmith)
* Remove a last, dangling, file from the Kame IPsec code.gnn2007-07-041-718/+0
| | | | | Approved by: re Spotted by: rwatson, bz
OpenPOWER on IntegriCloud