summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use vop_panic() instead of rolling our own.phk2002-05-022-43/+19
|
* Set the permissions on restored symbolic links.iedowse2002-05-021-1/+19
| | | | | PR: bin/37665 Submitted by: "Michael C. Adler" <mad1@tapil.com>
* o Change the implementation of vm_map locking to use exclusive locksalc2002-05-021-26/+24
| | | | | exclusively. The interface still, however, distinguishes between a shared lock and an exclusive lock.
* Join the pissing contest: generate LINT with a single sed(1) command.des2002-05-024-4/+18
| | | | Smaller script, smaller (though equivalent) output.
* Add missing UNLOCKsjulian2002-05-021-1/+9
| | | | Submitted by: dirkx@covalent.net
* - Protect randompid and nprocs with the allproc_lock.jhb2002-05-021-101/+122
| | | | | | | | | - Reorder fork1() to do malloc() and other blocking operations prior to acquiring the needed process locks. - The new process inherit's the credentials of curthread, not the credentials of the old process. - Document a really weird race that will come up with KSE allows multiple kernel threads per process.
* - Reorder a few things so that when we lock the process at the end ofjhb2002-05-021-107/+118
| | | | | | | | | | | | | | | | | | | | | | | exit1() we don't have to release it until we acquire schd_lock to call cpu_throw(). - Since we can switch at any time due to preemption or a lock release prior to acquiring sched_lock, don't update switchtime and switchticks until the very end of exit1() after we have acquired sched_lock. - Interlock the proctree_lock and proc lock in wait1() and exit1() to avoid lost wakeups when a parent blocks waiting for a child to exit at the bottom of wait1(). In exit1() the proc lock interlocked with proctree_lock (and released after acquiring sched_lock) is that of the parent process. - In wait1() use an exclusive lock of proctree lock while we are looking for a process to harvest. This allows us to completely remove all references to the process once we've found one (i.e., disconnect it from pgrp's, session's, zombproc list, and it's parent's children list) "atomically" without needing to worry about a lock upgrade. - We don't need sched_lock to test if p_stat is SZOMB or SSTOP when holding the proc lock since the proc lock is always held with p_stat is set to SZOMB or SSTOP. - Protect nprocs with an xlock of the allproc_lock.
* - Reorder execve() so that it performs blocking operations before itjhb2002-05-022-63/+74
| | | | | | | | locks the process. - Defer other blocking operations such as vrele()'s until after we release locks. - execsigs() now requires the proc lock to be held when it is called rather than locking the process internally.
* Un-rot the VOP_ table generator.phk2002-05-021-6/+27
|
* Make pkg_info working again when argument is a file not in the currentsobomax2002-05-021-2/+5
| | | | | | | | directory. PR: 37571 Submitted by: Dirk Meyer <dirk.meyer@dinoex.sub.org> MFC after: 1 week
* Make `-g' working for symlinks.sobomax2002-05-021-3/+20
| | | | | | PR: 33857 Submitted by: darren <igla@batterybackups.net> MFC after: 1 week
* Kill local variable which shadows global one. This fixes creation of bzip2sobomax2002-05-021-1/+0
| | | | | | compressed packages broken in the previous commit. Pointy hat to: obrien
* Hide a pointer to the malloc_type bucket at the end of the freed memory. Ifjeff2002-05-023-3/+103
| | | | | this memory is modified after it has been freed we can now report it's previous owner.
* Move around the dbg code a bit so it's always under a lock. This stops ajeff2002-05-021-8/+7
| | | | | weird potential race if we were preempted right as we were doing the dbg checks.
* The width of segsz_t should be 64, not 32 on ia64.dfr2002-05-021-1/+1
|
* Add the csplit(1) utility, which splits files based on context, as specifiedtjr2002-05-021-0/+5
| | | | | | | | | by SUSv3. This Makefile got left out of the previous commit. PR: 36191 Reviewed by: mike
* Add the csplit(1) utility, which splits files based on context, as specifiedtjr2002-05-023-0/+589
| | | | | | | by SUSv3. PR: 36191 Reviewed by: mike
* - Changed the size element of uma_zctor_args to be size_t instead of int.arr2002-05-022-4/+4
| | | | | | | - Changed uma_zcreate to accept the size argument as a size_t intead of int. Approved by: jeff
* - Replaced the Atm_connection storage pool with an uma_zone ofarr2002-05-023-29/+31
| | | | | | | | | | Atm_connection items. - Replaced the Atm_connvc storage pool with an uma_zone of Atm_connvc items. - Created void atm_cm_init(void *) and added it to the netatm init code. I'm thinking that there will definetly be more ``subsystem'' init functions to be added so I'll probably change these calls to be a for loop through init routines (or something).
* malloc/free(9) no longer require Giant. Use the malloc_mtx to protect thejeff2002-05-024-10/+46
| | | | | | | mallochash. Mallochash is going to go away as soon as I introduce the kfree/kmalloc api and partially overhaul the malloc wrapper. This can't happen until all users of the malloc api that expect memory to be aligned on the size of the allocation are fixed.
* Use shell script version (using awk and sed) of makeLINT.pl.kuriyama2002-05-023-4/+23
|
* Don't cast incorrectly to malloc(3), and don't use errx(3) if malloc(3)jmallett2002-05-021-2/+2
| | | | returns NULL, as malloc(3) sets errno. Use err(3).
* In pmap_pinit0, remove duplicate initialization.marcel2002-05-021-12/+1
|
* PCPU(current_pmap) is initialized in pmap_bootstrap. No need tomarcel2002-05-021-1/+0
| | | | do it again.
* Remove redundant declarations of getopt(3) externals (since <unistd.h> doesjmallett2002-05-022-4/+2
| | | | | take care of them), and add __FreeBSD__ to the defined() checks for the _PATH_DIVNAME.
* __COPYRIGHT() and __SCCSID().jmallett2002-05-021-12/+3
|
* An explicit cast to size_t for an inline integer, since the two are not thejmallett2002-05-021-2/+2
| | | | | | | same on Alpha and lint(1) pointed that out. lint(1) on the same architecture pointed out how silly a cast to (u_int) to malloc(3)'s argument was. Change that to size_t.
* PAMify rexecd(8).des2002-05-022-116/+89
| | | | Sponsored by: DARPA, NAI Labs
* Add a PAM policy for rexecd(8).des2002-05-022-1/+17
| | | | Sponsored by: DARPA, NAI Labs
* In udf_bmap(), return the physical block number, not the logicalscottl2002-05-021-1/+5
| | | | block number. This fixes things like cp (ouch!) which use mmap.
* xdm plays horrid tricks with PAM, and dumps core if it's allowed to calldes2002-05-022-0/+2
| | | | | | | | pam_lastlog, so add a dummy session chain to avoid using the one from pam.d/other. I assume gdm does something similar, so give it a dummy session chain as well. Sponsored by: DARPA, NAI Labs.
* Add openpam_nullconv.c to SRCS.des2002-05-021-0/+1
|
* This commit was generated by cvs2svn to compensate for changes in r95908,des2002-05-0253-131/+283
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of OpenPAM Cinnamon.des2002-05-0253-131/+283
| |
* | A markup fix, and document -R as non-standard.jmallett2002-05-021-3/+5
| |
* | Make -J a proper flag internal to the code (rather than just check forjmallett2002-05-022-10/+30
| | | | | | | | | | | | | | | | use of replstr and lack of Iflag), and add -R, which when given with -I controls the number of arguments on which replacement will be done. Some people happen to think it's idiotic to limit to 5 arguments, so let the user override it if they like.
* | o Remove dead and lockmgr()-specific debugging code.alc2002-05-022-23/+0
| |
* | *str is spelled 's1' inside the body of the code.jmallett2002-05-021-4/+2
| | | | | | | | | | Make 'this' not a local variable, since it isn't necessary or complex enough to warrant such.
* | Remove the temporary alignment check in free().jeff2002-05-024-25/+118
| | | | | | | | | | | | | | | | | | | | | | Implement the following checks on freed memory in the bucket path: - Slab membership - Alignment - Duplicate free This previously was only done if we skipped the buckets. This code will slow down INVARIANTS a bit, but it is smp safe. The checks were moved out of the normal path and into hooks supplied in uma_dbg.
* | Rework some of the -I support so I can't find a way to make xargs(1) core orjmallett2002-05-022-15/+14
| | | | | | | | | | | | | | | | corrupt memory. Simplifies the code in one or two places, also removes some code that looks like it was bogus or incomplete. Update strnsubst to have one or two extra conditions which maybe would make it more efficient, or at least more versatile. This is likely a no-op.
* | Minor bug fixes uncovered while working on UFS2.mckusick2002-05-022-2/+2
| | | | | | | | They should have no effect on existing systems.
* | Add some NOTES on the Comtrol Rocketport and the Digiboard drivers.obrien2002-05-011-0/+37
| |
* | Usual after-import fixup of SCM IDs.obrien2002-05-012-2/+2
| |
* | Save the MCA info specific to the AP as part of the AP launch.marcel2002-05-011-2/+9
| |
* | Make ia64_mca_save_state MP safe. Protect access to the info block,marcel2002-05-011-9/+57
| | | | | | | | updating the sysctl tree and clearing the SAL state by a spin lock.
* | If we get a DATA UNDERRUN error from QLogic FC cards, but the RQCS_RU bitmjacob2002-05-011-6/+23
| | | | | | | | | | | | | | | | | | | | is not set in the scsi completion status, or if the residual is clearly nonsense, then this was a command that suffered the loss of one or more FC frames in the middle of the exchange. Set HBA_BOTCH and hope it will get retried. It's the only thing we can do. MFC after: 1 day
* | Try using genwakecode.sh instead of the perl version.peter2002-05-011-1/+1
| |
* | Add a shell script to do what genwakecode.pl does.peter2002-05-011-0/+21
| | | | | | | | Obtained from: ade
* | Add some spurious veritcal whitespace to reduce diffs to OpenBSD.jmallett2002-05-011-0/+2
| |
* | Merge local changes again, against ANSIfied m4(1).jmallett2002-05-018-245/+109
| |
OpenPOWER on IntegriCloud