summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn'tbde2002-09-052-2/+2
| | | | a prerequisite.
* Include <sys/systm.h> for the definition of offsetof() instead of dependingbde2002-09-051-0/+1
| | | | | on the definition being misplaced in <sys/types.h>. The definition probably belongs in <sys/stddef.h>.
* Include <sys/systm.h> for the definition of offsetof() instead of dependingbde2002-09-051-0/+1
| | | | | on the definition being misplaced in <sys/types.h>. The definition probably belongs in <sys/stddef.h>.
* Do not cast from a pointer to an integer of a possibly different size.bde2002-09-051-1/+1
| | | | This fixes a warning on i386's with 64-bit longs.
* Add debug.rman_debug sysctl MIB and loader tunable instead of brokeniwasaki2002-09-051-5/+7
| | | | | RMAN_DEBUG option. This would be useful for debugging resource manager code.
* Fix a format buglet.phk2002-09-051-1/+1
| | | | Spotted by: iedowse
* Parse hint.acpi.0.disabled correctly.iwasaki2002-09-051-2/+10
| | | | | | Now that hint.acpi.0.disabled="0" won't disable acpi as expected. Pointed-out by: bde
* Include <sys/malloc.h> instead of depending on namespace pollution 2bde2002-09-051-9/+11
| | | | | | | | | layers deep in <sys/proc.h> or <sys/vnode.h>. Include <sys/vmmeter.h> instead of depending on namespace pollution in <sys/pcpu.h>. Sorted includes as much as possible.
* Forward declare struct uio so that <sys/uio.h> isn't a prerequisite.bde2002-09-051-3/+2
| | | | Removed bogus forward declarations of structs.
* The changes mentioned below were accidently committed as part ofdwmalone2002-09-050-0/+0
| | | | | | | | | | | | | | | | | my previous commit, so the commit message is incorrect for them. The actual changes were: elfcore.c 1.11: Use a uintmax_t 'cos we con't know if php->p_filesz will be a Elf32_Size or an Elf64_Size and we don't know how these relate to size_t. Change some ints to size_t and ssize_ts. gcore.c 1.28: Include <arpa/inet.h> for ntohl, which is used in N_BADMAG. Use a uid_t for a uid. md-nop.c 1.6: Mark some parameters as unused.
* Include <sys/malloc.h> instead of depending on namespace pollution 2bde2002-09-054-14/+10
| | | | | | layers deep in <sys/proc.h> or <sys/vnode.h>. Removed unused includes. Sorted includes.
* Pad after "char *n_name;" in the !_AOUT_INCLUDE_ case so that struct nlistbde2002-09-051-0/+2
| | | | | has some chance of having the same layout in all cases on machines with sizeof(char *) != sizeof(long).
* Forward declare struct vnode so that <sys/vnode.h> or some other headerbde2002-09-051-0/+1
| | | | | that happens to forward declare struct vnode isn't a prerequisite (most places get it from <sys/imgact.h>).
* Include stdint.h to make this compile.iedowse2002-09-051-0/+1
| | | | Submitted by: Garance A Drosihn <drosih@rpi.edu>
* s/SGNL/SIG/davidxu2002-09-0511-42/+45
| | | | | | | | | | s/SNGL/SINGLE/ s/SNGLE/SINGLE/ Fix abbreviation for P_STOPPED_* etc flags, in original code they were inconsistent and difficult to distinguish between them. Approved by: julian (mentor)
* Include <sys/malloc.h> instead of depending on namespace pollution 2bde2002-09-059-54/+45
| | | | | | | | | layers deep in <sys/proc.h> or <sys/vnode.h>. Removed unused includes. Fixed some printf format errors (1 fatal on i386's; 1 fatal on alphas; 1 not fatal on any supported machine).
* Uncommented MAC options so that they get linted. This exposes brokennessbde2002-09-051-4/+4
| | | | in kern_mac.c.
* Implement LINUX_TIOCSCTTY.marcel2002-09-051-1/+4
| | | | PR: kern/42404
* Split up ptrace() into a wrapper that does the copying to and fromiedowse2002-09-053-163/+142
| | | | | | | user space and a kern_ptrace() implementation. Use the kern_*() version in the Linux emulation code to remove more stack gap uses. Approved by: des
* remove #pragma identalfred2002-09-041-2/+0
|
* ANSIify function definitions.dwmalone2002-09-0475-751/+423
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Add a tip about using sed(1)'s FreeBSD-specific -i option.jmallett2002-09-041-0/+10
| | | | MFC after: 42 days
* Avoid a signedness warning by casting chain_index to a size_t.dwmalone2002-09-041-1/+1
| | | | (Should be OK as chain_index is supposed to be positive).
* No need to declare optind as an external int.dwmalone2002-09-041-1/+0
|
* Make syslogd -u treat "*" as all levels by explictly setting pri_cmpdwmalone2002-09-042-6/+24
| | | | | | | | | | | for it. While I'm here, add a the ability to say "!level" in a way which should be compatible with Linux's syslogd. PR: 28935 No objections: audit MFC after: 2 weeks
* When printing the wait status, break it down into a signal and a exit status.dwmalone2002-09-041-4/+10
| | | | | | PR: 41912 Submitted by: Aaron Smith <aaron@mutex.org> MFC after: 2 weeks
* Swap sense of no_v[46]bind variables and rename as v[46]bind_ok -dwmalone2002-09-041-19/+19
| | | | | | | this avoids some double negatives which are a bit difficult to parse. Always tread v[46]bind{,_ok} as booleans.
* Fix parsing of unix domain entries after addition of IPv6 RPC support.dwmalone2002-09-041-38/+39
| | | | | PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Under DIAGNOSTIC, complain if a timeout(9) routine took more than 1msec.phk2002-09-041-4/+23
|
* On the ElanSC520 CPU use general purpose timer#2 as timecounter.phk2002-09-041-0/+19
| | | | | | | | | | | | This is a vast improvement over the i8254, since it is a simple memory load rather than a comples sequence of interrupt blocking, multiple input/output instructions, and wrap-around detection. I have not bothered to time the fundamental timecounter get routine, but gettimeofday(2) is 10% faster with the ELAN timecounte. The downside is that HZ=100 is not enough, 150 or more recommended, I use 250 myself.
* Change the support for AMDs ElanSC520 CPU from being a device driver tophk2002-09-048-94/+63
| | | | | | | | be options CPU_ELAN (NB: Soekris.com users!) It is cleaner this way. We still recognize the cpu on the host-pci bridge.
* Do not employ timecounter hardware if our hz does not support theirphk2002-09-041-2/+10
| | | | correct rewinding.
* Function prototypes don't need 'extern'.jhb2002-09-042-12/+12
|
* Don't let children attach fast interrupts if the parent interrupt is normal.phk2002-09-041-2/+2
| | | | Submitted by: bde
* Make consistent; turn spaces into tabs where there is a mixture.markm2002-09-042-42/+42
|
* Bring back the PUC_FASTINTR option, and implement it correctly so thatphk2002-09-042-2/+13
| | | | | | child devices also know if they are fast or normal. Requested by: bde
* Give up on calling tc_ticktock() from a timeout, we have timeoutphk2002-09-043-4/+9
| | | | | | | | functions which run for several milliseconds at a time and getting in queue behind one or more of those makes us miss our rewind. Instead call it from hardclock() like we used to do, but retain the prescaler so we still cope with high HZ values.
* Add in_hosteq() and in_nullhost() macros to make life of developerssobomax2002-09-041-0/+3
| | | | | | porting NetBSD code a little bit easier. Obtained from: NetBSD
* Sigh. The fix to the suspend code wasn't complete, since the resumescottl2002-09-041-2/+2
| | | | | | | code was broken in the same way. Submitted by: co9@xs4all.nl MFC after: 3 days
* More in the continuing saga of phk vs his strange serial card.imp2002-09-041-80/+20
| | | | | | | | | | | In this installment, we learn that it is bad to access registers that are only defined for mfc cards in the interrupt handler when we do not in fact have a mfc card. For MFC cards, we'll only call the ISR if the this card interrupted bit is set. For non mfc cards (which are basically 90% of pccards in use), we always call the ISR and avoid touching the suspect registers. We always pacify the bit in the MFC case on the off chance that will help in the itnerrupt handler not being registed.
* Alright, fix the problems with the elf loader for the Alpha. It turnsdillon2002-09-041-8/+18
| | | | | | | | | | | | | | | | out that there is no easy way to discern the difference between a text segment and a data segment through the read-only OR execute attribute in the elf segment header, so revert the algorithm to what it was before. Neither can we account for multiple data load segments in the vmspace structure (at least not without more work), due to assumptions obreak() makes in regards to the data start and data size fields. Retain RLIMIT_VMEM checking by using a local variable to track the total bytes of data being loaded. Reviewed by: peter X-MFC after: ASAP
* Fix up a comment.jhb2002-09-041-2/+2
|
* Use resource_list_print_type() instead of duplicating the code injhb2002-09-044-132/+12
| | | | nexus_print_resources().
* - Make pci_load_vendor_data() static and do it during MOD_LOAD instead ofjhb2002-09-043-19/+16
| | | | | | | when the first PCI bus attaches. - Create /dev/pci during MOD_LOAD as well. - Destroy /dev/pci during MOD_UNLOAD (not that you can kldunload pci, but might as well get the code right)
* Use resource_list_print_types() instead of duplicating the code.jhb2002-09-041-40/+4
|
* Die on -D=foo, when parsing options - we can't let someone define (nil).jmallett2002-09-041-0/+2
| | | | MFC after: 3 days
* Deprecate the use of sendmail_enable="NONE" as it adversely affects thegshapiro2002-09-032-5/+21
| | | | | | new rcNG effort. Submitted by: Mike Makonnen <makonnen@pacbell.net>
* Make the text segment locating heuristics from rev 1.121 more reliablepeter2002-09-031-15/+10
| | | | | | | | so that it works on the Alpha. This defines the segment that the entry point exists in as 'text' and any others (usually one) as data. Submitted by: tmm Tested on: i386, alpha
* - Change falloc() to acquire an fd from the process table last so thatjhb2002-09-031-108/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it can do it w/o needing to hold the filelist_lock sx lock. - fdalloc() doesn't need Giant to call free() anymore. It also doesn't need to drop and reacquire the filedesc lock around free() now as a result. - Try to make the code that copies fd tables when extending the fd table in fdalloc() a bit more readable by performing assignments in separate statements. This is still a bit ugly though. - Use max() instead of an if statement so to figure out the starting point in the search-for-a-free-fd loop in fdalloc() so it reads better next to the min() in the previous line. - Don't grow nfiles in steps up to the size needed if we dup2() to some really large number. Go ahead and double 'nfiles' in a loop prior to doing the malloc(). - malloc() doesn't need Giant now. - Use malloc() and free() instead of MALLOC() and FREE() in fdalloc(). - Check to see if the size we are going to grow to is too big, not if the current size of the fd table is too big in the loop in fdalloc(). This means if we are out of space or if dup2() requests too high of a fd, then we will return an error before we go off and try to allocate some huge table and copy the existing table into it. - Move all of the logic for dup'ing a file descriptor into do_dup() instead of putting some of it in do_dup() and duplicating other parts in four different places. This makes dup(), dup2(), and fcntl(F_DUPFD) basically wrappers of do_dup now. fcntl() still has an extra check since it uses a different error return value in one case then the other functions. - Add a KASSERT() for an assertion that may not always be true where the fdcheckstd() function assumes that falloc() returns the fd requested and not some other fd. I think that the assertion is always true because we are always single-threaded when we get to this point, but if one was using rfork() and another process sharing the fd table were playing with the fd table, there might could be a problem. - To handle the problem of a file descriptor we are dup()'ing being closed out from under us in dup() in general, do_dup() now obtains a reference on the file in question before calling fdalloc(). If after the call to fdalloc() the file for the fd we are dup'ing is a different file, then we drop our reference on the original file and return EBADF. This race was only handled in the dup2() case before and would just retry the operation. The error return allows the user to know they are being stupid since they have a locking bug in their app instead of dup'ing some other descriptor and returning it to them. Tested on: i386, alpha, sparc64
* Don't try (and fail) to fchmod /dev/stdout. Revert the manual pagefanf2002-09-032-1/+3
| | | | | | | | to suggest the portable alternative to -p. PR: 42356 Submitted by: Kimura Fuyuki <fuyuki@hadaly.org> MFC after: 1 week
OpenPOWER on IntegriCloud