summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ifnet_addrs doesn;t exist any more so usejulian2002-11-011-3/+3
| | | | | | | TAILQ_FIRST(&ifp->if_addrhead) to find the link layer ifaddr. (it's always first I believe) Allows this to compile on -current. .. need testers with FEC capable switches..
* Update the st_size reported via stat(2) to accurately reflect the amountkbyanc2002-11-011-1/+1
| | | | | | | | of data available to read for non-TCP sockets. Reviewed by: -net, -arch Sponsored by: NTT Multimedia Communications Labs MFC after: 2 weeks
* Track the number of non-data chararacters stored in socket buffers so thatkbyanc2002-11-013-2/+7
| | | | | | | | | | | the data value returned by kevent()'s EVFILT_READ filter on non-TCP sockets accurately reflects the amount of data that can be read from the sockets by applications. PR: 30634 Reviewed by: -net, -arch Sponsored by: NTT Multimedia Communications Labs MFC after: 2 weeks
* Rename __execve_mac() to __mac_execve() for increased consistencyrwatson2002-11-011-1/+1
| | | | | | with other MAC system calls. Requested by: various (phk, gordont, jake, ...)
* - Copy the mfsroot.gz file to /R/stage/mfsroot/ so that the CD-ROM layoutjhb2002-11-011-10/+12
| | | | | | | | can fetch it from there instead of looking in the boot floppy's directory. - Add a NO_FLOPPIES variable that disables building of any boot floppies. Tested on: alpha
* Add MAC checks for various kenv() operations: dump, get, set, unset,rwatson2002-11-0114-1/+509
| | | | | | | permitting MAC policies to limit access to the kernel environment. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* MFen 1.112gioria2002-11-011-2/+2
|
* Finishing the translation of this filegioria2002-11-011-88/+96
|
* Introduce malloc_last_fail() which returns the number of seconds sincephk2002-11-012-0/+17
| | | | | | | | | malloc(9) failed last time. This is intended to help code adjust memory usage to the current circumstances. A typical use could be: if (malloc_last_fail() < 60) reduce_cache_by_one();
* Introduce a "time_uptime" global variable which holds the time since bootphk2002-11-012-0/+3
| | | | in seconds.
* Fill in partition 2 with with "whole disk" parameters.phk2002-11-011-0/+8
|
* Further clarifications of the #ifdef/#if/#elif/#endif style information,rwatson2002-11-011-13/+16
| | | | | | | | | | largely submitted by bde. Return our exemption of the #ifdef lint comments since the exemption is intended to handle a particularly common current case without mandating change. Improve language and spelling, and slightly clarify the notions associated specifically with #elif. Obtained from: bde
* Make this compile in the userland shims again.phk2002-11-011-0/+1
| | | | Sponsored by: DARPA & NAI Labs
* Add KASSERT for bio_cmd validity here as well. Various hacks stillphk2002-11-011-0/+4
| | | | bypass specfs.
* Build sysinstall on sparc64.jake2002-11-011-5/+1
|
* Put a KASSERT in specfs::strategy() to check that the incoming bufferphk2002-11-011-2/+8
| | | | | | | | has a valid b_iocmd. Valid is any one of BIO_{READ,WRITE,DELETE}. I have seen at least one case where the bio_cmd field was zero once the request made it into GEOM. Putting the KASSERT here allows us to spot the culprit in the backtrace.
* Revert previous untested commit. I installed an ultra60 this morningjhb2002-11-011-1/+1
| | | | using sysinstall from a release built via 'make release'.
* Another buffer overflow similar to the recent one in mkstr(1).tjr2002-11-011-0/+2
|
* Remove claim that pi and ex use mkstr; pi is long gone, and nex doesn'ttjr2002-11-011-6/+1
| | | | use it.
* Zap another buffer overflow, this time in the parser.tjr2002-11-011-0/+2
| | | | MFC after: 2 weeks
* Avoid buffer overflow when constructing filenames.tjr2002-11-011-3/+13
|
* Fix minor typo.thomas2002-11-011-1/+3
| | | | | | | Note that ATAPI/CAM has been MFC'd into RELENG_4 and will appear in FreeBSD 4.8. Reviewed by: roberto
* Bump version to account for the presence of pthread_XXX stubs in libc.dfr2002-11-011-1/+1
|
* * Add stubs for pthread_cond_broadcast.dfr2002-11-013-28/+246
| | | | | | | | | | * Fix typos in rwlock stubs. * Add pthread_XXX counterparts to the _pthread_XXX stubs which libraries like libX11 can use to ensure thread-safety without requiring the use of a thread library. Submitted by: Terry Lambert (pthread_cond_broadcast) Reviewed by: deischen
* Make this compilable from userland as well.phk2002-11-011-0/+4
|
* Document the confusing behavior that the .if conditional defaultsru2002-11-011-0/+1
| | | | | to defined(), e.g., ``.if 1'' is equivalent to ``.if defined(1)'', which is only true when the ${1} variable is defined.
* sparc64 does not yet support sysinstall(8).ru2002-11-011-1/+1
|
* o Replace 'struct uuid' with 'uuid_t',marcel2002-11-011-19/+20
| | | | | o Replace memcmp with uuid_equal(3), o Use uuid_to_string(3) to convert to UUIds to string.
* o Remove $Id$ from copyright; there's $FreeBSD$,marcel2002-11-014-36/+16
| | | | | | | o Remove static function uuid_print(); use uuid_to_string(3) in combination with printf(3) to achieve the same, o Remove unneeded includes, o Add a reference to uuid(3) to the manpage.
* No need to include floatio.h here: vfscanf() no longer uses anythingtjr2002-11-012-2/+0
| | | | it defines.
* - Enable the use of UMA_MD_PAGE_ALLOC on alpha.jeff2002-11-012-7/+44
| | | | | | | - Define uma_small_alloc and uma_small_free using K0SEG for virtual addresses. Approved by: re
* Variables that come in in and out pairs should be named accordingly.fanf2002-11-011-68/+84
| | | | | | Different code that processes the input in similar ways should be called in similar ways. File-local stuff should be static. Output errors should be checked for. Diffs sometimes have to be big.
* debugMsg() should end with "\n".kuriyama2002-11-0112-17/+17
|
* Specify the correct protocol for the Olympus C-1 camera. It appearsiedowse2002-11-011-1/+1
| | | | | | | | that this entry was accidentally given the wrong protocol in revision 1.61. PR: kern/42417 Submitted by: "Moriki, Toshiomi" <toshiomi@whi.m-net.ne.jp>
* - Add support for machine dependant page allocation routines. MD codejeff2002-11-012-2/+28
| | | | | | may define UMA_MD_SMALL_ALLOC to make use of this feature. Reviewed by: peter, jake
* - Add a new flag to vm_page_alloc, VM_ALLOC_NOOBJ. This tellsjeff2002-11-012-22/+28
| | | | | | | | | | vm_page_alloc not to insert this page into an object. The pindex is still used for colorization. - Rework vm_page_select_* to accept a color instead of an object and pindex to work with VM_PAGE_NOOBJ. - Document other VM_ALLOC_ flags. Reviewed by: peter, jake
* Be much more paranoid about where uudecode writes its output, especiallyfanf2002-11-011-7/+36
| | | | | | | when the filename comes from the untrusted input. This is a work-around for careless people who don't routinely check the begin line of the file or run uudecode -i and instead report "vulnerabilities" to CERT. http://www.kb.cert.org/vuls/id/336083
* Instead of abusing stdin and stdout, use our own file pointers.fanf2002-11-011-14/+22
| | | | Check for errors when closing the output.
* More formatting fixesjulian2002-10-311-3/+5
|
* Slight formatting change.julian2002-10-311-2/+2
|
* - Consistently update snd_wl1, snd_wl2, and rcv_up in the headerjeff2002-10-312-2/+30
| | | | | | | | | | | prediction code. Previously, 2GB worth of header predicted data could leave these variables too far out of sequence which would cause problems after receiving a packet that did not match the header prediction. Submitted by: Bill Baumann <bbaumann@isilon.com> Sponsored by: Isilon Systems, Inc. Reviewed by: hsu, pete@isilon.com, neal@isilon.com, aaronp@isilon.com
* Re-apply the previously backed-out commit that fixes the problem wherearchie2002-10-316-7/+10
| | | | | | | | HUGE_VAL is not properly aligned on some architectures. The previous fix now works because the two versions of 'math.h' (include/math.h and lib/msun/src/math.h) have since been merged into one. PR: bin/43544
* Modified release notes: Note that check_utility_compat(3) is designedbmah2002-10-312-18/+32
| | | | | | | | | | for FreeBSD base system programs, rewrite expr(1) entry and note its use of check_utility_compat(3), mention autogeneration of nsswitch.conf and hosts.conf. Mostly submitted by: wollman (But any mistakes are solely mine.)
* Add the netgraph 'source' module.julian2002-10-314-0/+1048
| | | | | | | | | | | | | This is NOT YET CONVERTED TO -current. This node is a source for preprogrammed packets at a known rate for testing. I will convert it to -current "in place" but will MFC teh original pre-conversion variant as that is what is originally submitted. Man page my me, info from Dave's README. Submitted by: Dave Chapeskie <dchapeskie@SANDVINE.com> Obtained from: Sandvine inc. MFC after: 1 week
* - Introduce a new macro, since that's what nfs loves, calledjeff2002-10-313-6/+16
| | | | | | | | | | | | | | | | nfsm_srvpathsiz. This macro plucks a length out of an rpc request and verifies that its size does not exceed NFS_MAXPATHLEN. If it does it generates an ENAMETOOLONG response. - Use this macro, and the existing nfsm_srvnamsiz macro in two places where we deal with paths passed in by the client. This fixes a linux interoperability bug. Linux was sending oversized path components which would cause us to ignore the request all together. This causes linux to hang indefinitly while it waits for a response. This could still happen in other cases where we error out with EBADRPC. Sponsored by: Isilon Systems, Inc. Reviewed by: alfred, fabbri@isilon.com, neal@isilon.com
* Spruce up bootverbose output a bit.phk2002-10-311-17/+8
| | | | Allow extended partitions to have flag=0x80
* Don't examine ACPI_STA_ENABLE bit of device's_STA object on initialiwasaki2002-10-311-5/+4
| | | | | | | | | | state. Instead, use ACPI_STA_PRESENT and ACPI_STA_FUNCTIONAL for it. In some ACPI BIOS implementations, boot disabled devices don't have ACPI_STA_ENABLE bit in _STA object. Also it is not fatal if getting current IRQ of boot disabled devices is failed in initial state. And minor fixes.
* Interpret new loader tunable "hw.acpi.verbose" to turniwasaki2002-10-311-2/+6
| | | | verbose mode on at boot time.
* Add an isp(4) module. sbus support is only compiled in on sparc64.jhb2002-10-312-0/+15
| | | | pci support is always compiled in.
* plugged memory leakage in some erroneous casesume2002-10-311-5/+6
| | | | | Obtained from: KAME MFC after: 1 week
OpenPOWER on IntegriCloud