summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Quick fix for non-unique inode numbers for hard links. We use thebde2002-05-222-12/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | byte offset of the directory entry for the inode number for all types of files except directories, although this breaks hard links for non-directories even if it doesn't cause overflow. Just ignore this broken inode number for stat() and readdir() and return a less broken one (the block offset of the file), so that applications normally can't see the brokenness. This leaves at least the following brokenness: - extra inodes, vnodes and caching for hard links. - various overflow bugs. cd9660 supports 64-bit block numbers, but we silently ignore the top 32 bits in isonum_733() and then drop another 10 bits for our broken inode numbers. We may also have sign extension bugs from storing 32-bit extents in ints and longs even if ints are 32-bits. These bugs affect DVDs. mkisofs apparently limits them by writing directory entries first. Inode numbers were broken mainly in 4.4BSD-Lite2. FreeBSD-1.1.5 seems to have a correct implementation modulo the overflow bugs. We need to look up directory entries from inodes for symlinks only. FreeBSD-1.1.5 use separate fields (iso_parent_extent, iso_parent) to point to the directory entry. 4.4BSD-Lite doesn't have these, and abuses i_ino to point to the directory entry. Correct pointers are impossible for hard links, but symlinks can't be hard links.
* Include <sys.systm.h> for the declaration of some atomic functions -- don'tbde2002-05-221-0/+1
| | | | depend on namespace pollution in <sys/mutex.h>.
* Bring back the cd -L and -P options from revision 1.24, but try harder nottjr2002-05-221-33/+105
| | | | | | to fail when the logical current directory no longer exists. Allow changes to absolute paths when logical cwd is invalid, fall back to physical cd if logical cd fails.
* Temporarily back out revision 1.24; it seems to handle the case where thetjr2002-05-221-78/+22
| | | | current directory no longer exists incorrectly and breaks `make cleandir'.
* o Add records for PCI bus and PCI device errors.marcel2002-05-221-10/+70
| | | | | o Rename mem_platform_id to mem_oem_id. o Minor style fixes.
* Don't build doc on ia64. No groff in sight.marcel2002-05-221-2/+1
|
* o Make contigmalloc1() static.alc2002-05-222-5/+1
|
* Permit alternative break sequence to break to debugger in GENERIC. Breakagerwatson2002-05-212-0/+2
| | | | | | | of serial break on -CURRENT seems rampant for some reason, and I like being able to get into ddb. Reviewed by: peter
* Add appropriate IA32 "pause" instructions to improve performanec onjhb2002-05-212-2/+34
| | | | | | Pentium 4's and newer IA32 processors. The "pause" instruction has been verified by Intel to be a NOP on all currently existing IA32 processors prior to the Pentium 4.
* - td will never be NULL, so the call to soalloc() in socreate() will alwaysarr2002-05-211-2/+2
| | | | | be passed a 1; we can, however, use M_NOWAIT to indicate this. - Check so against NULL since it's a pointer to a structure.
* Fix an old cut 'n' paste bug inherited from BSD/OS: don't increment 'i'jhb2002-05-212-2/+2
| | | | twice once we are in the long wait stage of spinning on a spin mutex.
* - OR the flag variable with M_ZERO so that the uma_zalloc() handles thearr2002-05-211-2/+1
| | | | | zero'ing out of the allocated memory. Also removed the logical bzero that followed.
* Whitespace fixup, properly indent the body of an else clause.jhb2002-05-212-4/+4
|
* Add code to make default mutexes adaptive if the ADAPTIVE_MUTEXES kerneljhb2002-05-214-0/+58
| | | | | | | | | | | | | | | | | | | | | | option is used (not on by default). - In the case of trying to lock a mutex, if the MTX_CONTESTED flag is set, then we can safely read the thread pointer from the mtx_lock member while holding sched_lock. We then examine the thread to see if it is currently executing on another CPU. If it is, then we keep looping instead of blocking. - In the case of trying to unlock a mutex, it is now possible for a mutex to have MTX_CONTESTED set in mtx_lock but to not have any threads actually blocked on it, so we need to handle that case. In that case, we just release the lock as if MTX_CONTESTED was not set and return. - We do not adaptively spin on Giant as Giant is held for long times and it slows SMP systems down to a crawl (it was taking several minutes, like 5-10 or so for my test alpha and sparc64 SMP boxes to boot up when they adaptively spinned on Giant). - We only compile in the code to do this for SMP kernels, it doesn't make sense for UP kernels. Tested on: i386, alpha, sparc64
* Update to match kernel side.phk2002-05-2116-906/+1152
| | | | Sponsored by: DARPA & NAI Labs.
* Optimize spin mutexes for UP kernels without debugging to just enter andjhb2002-05-213-2/+23
| | | | | exit critical sections. We only contest on a spin mutex on an SMP kernel running on an SMP machine.
* Introduce the concept of "magic spaces", and implement them in most ofphk2002-05-216-3/+108
| | | | | | | | | | | | | | | | the relevant classes. Some methods may implement various "magic spaces", this is reserved or magic areas on the disk, set a side for various and sundry purposes. A good example is the BSD disklabel and boot code on i386 which occupies a total of four magic spaces: boot1, the disklabel, the padding behind the disklabel and boot2. The reason we don't simply tell people to write the appropriate stuff on the underlying device is that (some of) the magic spaces might be real-time modifiable. It is for instance possible to change a disklabel while partitions are open, provided the open partitions do not get trampled in the process. Sponsored by: DARPA & NAI Labs.
* Make ReadMakefile() operate using the realpath(3) name for the file handed tojmallett2002-05-211-3/+7
| | | | | | | | | | | | | | | | | | it, which means that relative paths will be expanded to absolute paths, and filenames without a path will end up with their absolute path included as well. This aids tremendously in debugging a build using our make(1) with multiple Makefile's, such as when there is a syntax error in a file in a sub-directory as per <bsd.subdir.mk>. Normally we'd end up with just "Makefile" known about the Makefile in question, which means that an error would be useless for someone trying to debug their build system, now we end up with a complete real pathname for the Makefile. So mostly this is useful in a debugging context, but possibly others too (I haven't thought of them yet, but they probably are more useful if you make Dir_FindFile use realpath(3), but that's another story). Reviewed by: -current MFC after: 2 weeks
* Add an inline function cpu_pause() for the IA32 'pause' instruction.jhb2002-05-212-0/+12
|
* Remove the "-class" suffix from classes, they will not be ambiguous.phk2002-05-216-8/+8
| | | | Sponsored by: DARPA & NAI Labs.
* - Change the newly turned INVARIANTS #ifdef blocks (they were changed fromarr2002-05-213-24/+16
| | | | | DIAGNOSTIC yesterday) into KASSERT()'s as these help to increase code readability.
* Allow prefix/prefixlen syntax for IPv6 to have consistencyume2002-05-211-15/+22
| | | | with IPv4.
* Fix null_lock() not unlocking vp->v_interlock if LK_THISLAYER.semenu2002-05-211-2/+6
| | | | | Reviewed by: bp@FreeBSD.org MFC after: 1 week
* Reword a small part of the uniq(1) manual page to help reduce wordtrhodes2002-05-211-3/+3
| | | | | | | | duplication (ie: fields fields). PR: 38161 Reviewed by: keramida MFC after: 3 days
* Added support for ia64 and sparc64.ru2002-05-212-0/+10
|
* Fixed to conflict labels.nyan2002-05-211-3/+3
| | | | Submitted by: Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>
* Remove unneeded ## for GCC 3.1nyan2002-05-211-26/+26
|
* Have RTF_HOST for /128 destionation.ume2002-05-211-4/+9
|
* Mention our support of the authentication side of rfc2548brian2002-05-211-1/+1
|
* MFi386: revision 1.22nyan2002-05-211-9/+8
|
* Remove ptx. It is not used anywhere in the base system, has not beenmarkm2002-05-2141-6893/+1
| | | | | | | maintained for years and is very old code. If there is any need for it, I suspect that ports would be a better place. No objection from: current@freebsd.org
* Do not guess what a bool is, just use it.peter2002-05-211-1/+2
|
* Make this a little easier to build standalone. (same change as libpanel)peter2002-05-214-4/+20
|
* This commit was generated by cvs2svn to compensate for changes in r97055,peter2002-05-211-158/+0
| | | | which included commits to RCS files with non-trunk default branches.
* Initial update of bmake glue for ncurses-5.2-20020518peter2002-05-212-4/+14
|
* Initial update of bmake glue for ncurses-5.2-20020518. More to come.peter2002-05-214-64/+124
|
* Merge ncurses-5.2-20010512 -> ncurses-5.2-20020518 changes onto mainline.peter2002-05-213-42/+176
|
* This commit was generated by cvs2svn to compensate for changes in r97049,peter2002-05-21277-5940/+24153
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import ncurses-5.2-20020518 onto the vendor branch.peter2002-05-21280-5982/+24329
| | | | | | | | Obtained from: ftp://dickey.his.com/ncurses/
* | Spread the word of PowerPC.benno2002-05-212-2/+2
| |
* | MFi386: 1.398-1.399 (${MACHINE_ARCH}_dump.c -> dump_machdep.c)non2002-05-211-1/+1
| |
* | Spread the word of PowerPC.benno2002-05-211-1/+2
| |
* | Let this code know about PowerPC.benno2002-05-211-1/+1
| |
* | New release notes: ls(1) -m/-p/-x, sh(1) -C/-u, tabs(1).bmah2002-05-212-8/+28
| | | | | | | | Deleted release note: IFS.
* | Mark argc as __unused to silence GCC.tjr2002-05-211-1/+1
| |
* | Lock the writer socket across sorwakeup(fip->fi_writesock).tanimura2002-05-211-1/+3
| | | | | | | | Spotted by: peter
* | Build the tabs(1) utility.tjr2002-05-211-0/+1
| | | | | | | | PR: 36126
* | Add an implementation of the tabs(1) utility, as required by SUSv3.tjr2002-05-213-0/+388
| | | | | | | | PR: 36126
* | Catch up to tte.h changes.jake2002-05-211-2/+2
| |
* | Update tsb_tte_enter prototype per tsb.c rev 1.20.jake2002-05-211-1/+1
| |
OpenPOWER on IntegriCloud