summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use VOP_GETVOBJECT instead of accessing the member directly. This fixedJeff Roberson2002-04-141-1/+1
| | | | | | | | | an issue with nullfs and NAMEI shared. Submitted by: Alexander Kabaev Notes: svn path=/head/; revision=94646
* Modernize SCM ID.David E. O'Brien2002-04-141-4/+1
| | | | Notes: svn path=/head/; revision=94643
* Dotting the i-s:Marcel Moolenaar2002-04-142-18/+28
| | | | | | | | | | o Use chunk instead of region when we talk about a memory range. Region can be confused with region register and we already call it chunk in machdep.c o Update the twiddle every 16MB Notes: svn path=/head/; revision=94642
* RegenAlan Cox2002-04-145-6/+6
| | | | Notes: svn path=/head/; revision=94641
* Remove the requirement that Giant be held around sigreturn().Alan Cox2002-04-141-1/+1
| | | | Notes: svn path=/head/; revision=94640
* Allow a kernel to be compiled with both SKI and acpica and stillPeter Wemm2002-04-142-2/+15
| | | | | | | work on real hardware. (SKI used to break the sapic probes) Notes: svn path=/head/; revision=94639
* Back out rev 1.17, it breaks dependencies.David E. O'Brien2002-04-141-15/+11
| | | | | | | | | | With rev 1.7 one cannot build src/bin/sh -- because make fails to create the buildtools before trying to use them. Actually it does compile the buildtools into .o's before trying to use them, but not all the way into binaries. Notes: svn path=/head/; revision=94638
* Remove stale XXX comment.John Baldwin2002-04-141-1/+0
| | | | Notes: svn path=/head/; revision=94637
* o Use aiocblist::fd_file in the AIO threads rather than recomputingAlan Cox2002-04-141-45/+3
| | | | | | | | | the file * from the calling process's descriptor table. o Eliminate sharing of the calling process's descriptor table with the AIO threads. Notes: svn path=/head/; revision=94633
* Correct markup.Dima Dorfman2002-04-141-1/+2
| | | | Notes: svn path=/head/; revision=94632
* Fix the calculation that determines uz_maxpages. It was off for large zones.Jeff Roberson2002-04-142-28/+53
| | | | | | | | | | | | | | | | | Fortunately we have no large zones with maximums specified yet, so it wasn't breaking anything. Implement blocking when a zone exceeds the maximum and M_WAITOK is specified. Previously this just failed like the old zone allocator did. The old zone allocator didn't support WAITOK/NOWAIT though so we should do what we advertise. While I was in there I cleaned up some more zalloc logic to further simplify that code path and reduce redundant code. This was needed to make the blocking work properly anyway. Notes: svn path=/head/; revision=94631
* Clean up the 1/2 a** committing from Thu, 3 May 2001 11:05:39 -0700 (PDT).David E. O'Brien2002-04-142-4/+1010
| | | | | | | | | | | | | | | | | Since then we have living with a GPL'ed find(1) due to grabbing getdate.y from src/contrib/cvs and its user of the GPL'ed xtime.h. I don't even want to think about how this could have affected people using our source base. Would it have been too much trouble to do then what I did now? Copied getdate.y (public domain) to usr.bin/find and change to use standard system headers. find(1) now compiles simply with out having to go to extra effort to do so. Pointed hat to: phk Build fixed on: gcc 3.1 using platforms Notes: svn path=/head/; revision=94630
* Do not use perl where sed is more than adequate.David E. O'Brien2002-04-131-1/+4
| | | | Notes: svn path=/head/; revision=94629
* Add comment that sigreturn() is MPSAFE.Alan Cox2002-04-132-0/+5
| | | | Notes: svn path=/head/; revision=94628
* - Change killpg1()'s first argument to be a thread instead of a process soJohn Baldwin2002-04-131-36/+22
| | | | | | | | | | | | | | | | | | | we can use td_ucred. - In killpg1(), the proc lock is sufficient to check if p_stat is SZOMB or not. We don't need sched_lock. - Close some races in psignal(). In psignal() there is a big switch statement based on p_stat. All the different cases are assuming that the process (or thread) isn't going to change state out from under it. To ensure this is true, just lock sched_lock for the entire switch. We practically held it the entire time already anyways. This also simplifies the locking somewhat and actually results in fewer lock operations. - Allow signotify() to be called with the sched_lock held since psignal() now does that. - Use td_ucred in a couple of places. Notes: svn path=/head/; revision=94627
* Remove bogus dependency on rlogin.Dag-Erling Smørgrav2002-04-131-4/+3
| | | | Notes: svn path=/head/; revision=94626
* - Change donice() to take a thread as the first argument instead of aJohn Baldwin2002-04-131-37/+40
| | | | | | | | | | | | | | | | | | process so it can use td_ucred. - Require the target process of donice() to be locked when donice() is called. - Use td_ucred. - Lock the target process of p_cansee() and while reading the credentials of a process. - Change the logic of rtprio() slightly so it does it's copyin() if needed prior to locking the target process. - rtprio() no longer needs Giant. In theory with full KSE it would still need Giant to protect p_ucred of curproc for the p_canfoo() functions but p_canfoo() will be changing to using td_ucred of curthread before full KSE hits the tree. Notes: svn path=/head/; revision=94625
* - Change procfs_control()'s first argument to be a thread pointer insteadJohn Baldwin2002-04-131-47/+32
| | | | | | | | | | | | | | of a process pointer. - Move the p_candebug() at the start of procfs_control() a bit to make locking feasible. We still perform the access check before doing anything, we just now perform it after acquiring locks. - Don't lock the sched_lock for TRACE_WAIT_P() and when checking to see if p_stat is SSTOP. We lock the process while setting p_stat to SSTOP so locking the process is sufficient to do a read to see if p_stat is SSTOP or not. Notes: svn path=/head/; revision=94624
* Lock the target process for p_candebug().John Baldwin2002-04-131-3/+4
| | | | Notes: svn path=/head/; revision=94623
* Lock the target process in procfs_doproc*regs() for p_candebug and whileJohn Baldwin2002-04-133-9/+23
| | | | | | | reading/writing the registers. Notes: svn path=/head/; revision=94622
* Rework logic of syscalls that modify process credentials as described inJohn Baldwin2002-04-133-29/+55
| | | | | | | rev 1.152 of sys/kern/kern_prot.c. Notes: svn path=/head/; revision=94621
* - p_cansee() needs the target process locked.John Baldwin2002-04-132-35/+32
| | | | | | | - We need the proc lock held for more of procfs_doprocstatus(). Notes: svn path=/head/; revision=94620
* - Change the algorithms of the syscalls to modify process credentials toJohn Baldwin2002-04-131-83/+137
| | | | | | | | | | | | | | | allocate a blank cred first, lock the process, perform checks on the old process credential, copy the old process credential into the new blank credential, modify the new credential, update the process credential pointer, unlock the process, and cleanup rather than trying to allocate a new credential after performing the checks on the old credential. - Cleanup _setugid() a little bit. - setlogin() doesn't need Giant thanks to pgrp/session locking and td_ucred. Notes: svn path=/head/; revision=94619
* - Change the first argument of ktrcanset(), ktrsetchildren(), and ktrops()John Baldwin2002-04-131-32/+57
| | | | | | | | to a thread pointer so that ktrcanset() can use td_ucred. - Add some proc locking to partially protect p_tracep and p_traceflag. Notes: svn path=/head/; revision=94618
* Turn on TGA support.David E. O'Brien2002-04-1313-29/+102
| | | | | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com> Notes: svn path=/head/; revision=94617
* Install digittoint.3 (forgotten in rev 1.21)Dag-Erling Smørgrav2002-04-131-1/+1
| | | | | | | | PR: docs/26451 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com> Notes: svn path=/head/; revision=94616
* Quiet GCC 3.1 warning.David E. O'Brien2002-04-131-1/+1
| | | | Notes: svn path=/head/; revision=94615
* libstand needs _setjmp/_longjmp for FICL.David E. O'Brien2002-04-131-0/+100
| | | | | | | Submitted by: jake Notes: svn path=/head/; revision=94614
* Style nit and modernize SCM ID.David E. O'Brien2002-04-131-8/+2
| | | | Notes: svn path=/head/; revision=94613
* If the receiver runs out of space for an received frame in the internalPoul-Henning Kamp2002-04-132-22/+8
| | | | | | | | | | | | | | | | | | | | | | FIFO or the in-RAM descriptors it will switch to RX_IDLE from where it is not restarted. We used to deal with RX_IDLE by doing a total reinit but this lost our link and caused a potential 30sec autonegotiation against switches. This was changed to a less heavyhanded approach, but this failed to restart the receiver it it were in the RX_IDLE state. This change adds the RX_IDLE and the RX_FIFO_OFLOW conditions as triggers for interrupts and receive side processing, and restarts the receiver when it is RX_IDLE. Remove the #ifdef notyet'ed nge_rxeoc() function. Sponsored by: Cybercity Internet, Denmark. MFC after: 7 days Notes: svn path=/head/; revision=94612
* Warns cleanups:David Malone2002-04-131-6/+9
| | | | | | | | | | 1) Add missing initialisers. 2) Avoid shadowing rcswhich. 3) Use intmax_t and %j for printing rather than quad_t and %q. 4) Don't modify a variable twice between sequence points. Notes: svn path=/head/; revision=94611
* Remove previously unneeded and now incorrect cast of user_from_uid()David Malone2002-04-131-7/+7
| | | | | | | | to a char *. Fix up vendor ID. Notes: svn path=/head/; revision=94610
* Fix up vendor IDs.David Malone2002-04-131-7/+10
| | | | | | | Put a sequence point between writing to a variable and using it. Notes: svn path=/head/; revision=94609
* Use pmap_extract() instead of pmap_kextract() to retrieve the physicalThomas Moestl2002-04-131-1/+2
| | | | | | | | | | address associated with a user virtual address in pipe_build_write_buffer(). Reviewed by: alc Notes: svn path=/head/; revision=94608
* Revision 1.17 seems to break a subsequent buildworld (i.e. with the newDavid E. O'Brien2002-04-131-2/+5
| | | | | | | | | | | | | | make installed) in gnu/usr.bin/groff/src/preproc/eqn (which, being a build tool itself, is built with the original make during buildworld). The problem seems to be that in str_concat(), the string is not terminated when the length of the second string is 0. This apparently can happen during null suffix rule processing. Submitted by: tmm Notes: svn path=/head/; revision=94607
* o Remove vm_map_growstack() and useracc() from sendsig(). Copyout() andAlan Cox2002-04-131-20/+5
| | | | | | | | suword() will automatically grow the stack if needed. o Add a comment that osigreturn() and sigreturn() are MPSAFE. Notes: svn path=/head/; revision=94606
* Add some constness to make this WARNS clean again.David Malone2002-04-131-3/+3
| | | | Notes: svn path=/head/; revision=94605
* Check write permissions before creating anything.Boris Popov2002-04-131-0/+3
| | | | | | | | PR: kern/27883 MFC after: 1 week Notes: svn path=/head/; revision=94602
* Add support for an additional field to the packages/INDEX file. IfMurray Stokely2002-04-131-8/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | present, this field specifies the media volume that the disc is contained on. If the volume of a given packages is different than the current volume of mediaDevice, then the user is prompted -- "This is disc #%d. Package %s is on disc #%d\n" "Would you like to switch discs now?\n" If the user selects yes, then DEVICE_SHUTDOWN is called and the user is then prompted -- "Please remove disc #%d from you drive, and add disc #%d" This works well for a carefully crafted INDEX file, but more work needs to be done to sort dependencies on a given package based on the volume that they reside on, to minimize the amount of disc flipping required of the user. This commit is a no-op for normal INDEX files and FreeBSD CDs. These additional features are only used if the INDEX and cdrom.inf file have multi-volume support. Notes: svn path=/head/; revision=94601
* Read the CD_VOLUME property from the cdrom.inf file and use it toMurray Stokely2002-04-131-0/+7
| | | | | | | initialize the volume ID for the media device in use. Notes: svn path=/head/; revision=94598
* Add the concept of a volume to the device and package structures. IfMurray Stokely2002-04-132-0/+4
| | | | | | | | these values are different for a given package, then we must prompt the user to insert another disc before the package can be installed. Notes: svn path=/head/; revision=94597
* update german national holidays file for 2002, 2003 and 2004Hellmuth Michaelis2002-04-131-9/+26
| | | | Notes: svn path=/head/; revision=94596
* Fix a minor lint warning.David E. O'Brien2002-04-131-0/+2
| | | | Notes: svn path=/head/; revision=94595
* Prefer BSDmakefile over makefile and Makefile.David E. O'Brien2002-04-135-7/+9
| | | | | | | | Submitted by: jmallett Obtained from: OpenBSD Notes: svn path=/head/; revision=94594
* Fix copyrights, and undo SCS ID damage.David E. O'Brien2002-04-1321-30/+49
| | | | Notes: svn path=/head/; revision=94589
* Fix a missed conversion of lld to llu for the uint64_t ks_calls and castJeroen Ruigrok van der Werven2002-04-131-6/+7
| | | | | | | | | | | | | | to unsigned long long. Don't be too overzealous with the printing of ks_calls in the total statistics, cut back from 20 to 13 positions to print (which should last a couple of years easily (20 digits is enough for 3168 years of calls at a measly billion (10^9) calls per second.)). Submitted by: bde Notes: svn path=/head/; revision=94588
* Update SCM ID method.David E. O'Brien2002-04-1315-44/+16
| | | | Notes: svn path=/head/; revision=94587
* Use the correct macros for F_SETFD/F_GETFD instead of magic numbers.Jeroen Ruigrok van der Werven2002-04-132-6/+15
| | | | | | | | | | | | Reflect that fact in the manual page. PR: 12723 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> Approved by: bde MFC after: 2 weeks Notes: svn path=/head/; revision=94586
* Make str_concat handle NULL arguments properly (a-la how ODE-2.3.6 make does).David E. O'Brien2002-04-131-12/+13
| | | | | | | | Submitted by: jmallett Inspired by: CMU BUILDTOOLS4 coredumping, ODE-2.3.6 make(1) Notes: svn path=/head/; revision=94585
* De'register.David E. O'Brien2002-04-1314-129/+128
| | | | Notes: svn path=/head/; revision=94584