summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Per POSIX <grp.h> doesn't require <sys/types.h>.Maxim Sobolev2002-02-252-3/+3
| | | | | | | Submitted by: ache Notes: svn path=/head/; revision=91245
* Rewrite the part of the conversation function that allocates the reply array;Dag-Erling Smørgrav2002-02-251-2/+5
| | | | | | | | | it was inelegant and neglected to check the return value from malloc(3). Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=91244
* Backout rev.1.5 - it seems that it's posixly correct that the programMaxim Sobolev2002-02-251-2/+0
| | | | | | | | | | needs to include <sys/types.h> before <grp.h>. Submitted by: fjoe, sheldonh David Malone <dwmalone@maths.tcd.ie> Notes: svn path=/head/; revision=91243
* In rev.1.4 type of (group)->gr_gid was changes from (int) to (gid_t),Maxim Sobolev2002-02-251-0/+2
| | | | | | | | | | so that <sys/types.h> is now required. Add it, otherwise it breaks some ports. Submitted by: Joe Marcus Clarke <marcus@marcuscom.com> Notes: svn path=/head/; revision=91242
* #include <time.h> for the definition of time functions instead ofBruce Evans2002-02-251-1/+2
| | | | | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes. Notes: svn path=/head/; revision=91241
* Add a few missing commas.Murray Stokely2002-02-251-2/+2
| | | | Notes: svn path=/head/; revision=91238
* Add a new test_counter() function which tries to determine the width ofPoul-Henning Kamp2002-02-251-17/+46
| | | | | | | | | | | | | | | | | | | | the inter-value histogram for 2000 samples. If the width is 3 or less for 10 consequtive samples, we trust the counter to be good, otherwise we use the *_safe() method. This method may be too strict, but the worst which can happen is that we take the performance hit of the *_safe() method when we should not. Make the *_safe() method more discriminating by mandating that the three samples do not span more than 15 ticks on the counter. Disable the PCI-ident based probing as a means to recognize good counters. Inspiration from: dillon and msmith Notes: svn path=/head/; revision=91237
* Document what inpcb->inp_vflag is for.Alfred Perlstein2002-02-251-1/+1
| | | | | | | Submitted by: Marco Molteni <molter@tin.it> Notes: svn path=/head/; revision=91236
* Fix a bug introduced in rev.1.23 - for some reason mkdir("/", ...) systemMaxim Sobolev2002-02-251-1/+1
| | | | | | | | | | call returns `EISDIR', not `EEXIST', so that be prepared for that. This should fix number of ports, that often call `mkdir -p //usr/local/foobar'. This is just a quick workaround, the real fix would be either to avoid calling mkdir("/", ...) or fix VFS code to return consistent errno for this case. Notes: svn path=/head/; revision=91235
* The TCP code did not do sufficient checks on whether incoming packetsCrist J. Clark2002-02-252-14/+26
| | | | | | | | | | | | | | | | were destined for a broadcast IP address. All TCP packets with a broadcast destination must be ignored. The system only ignored packets that were _link-layer_ broadcasts or multicast. We need to check the IP address too since it is quite possible for a broadcast IP address to come in with a unicast link-layer address. Note that the check existed prior to CSRG revision 7.35, but was removed. This commit effectively backs out that nine-year-old change. PR: misc/35022 Notes: svn path=/head/; revision=91234
* #include <time.h> for the definition of time functions instead ofBruce Evans2002-02-251-1/+1
| | | | | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Removed unused include of <sys/stat.h>. Only its pollution was used. Notes: svn path=/head/; revision=91233
* Add some basic FreeBSD/sparc64 Hardware Notes.Murray Stokely2002-02-256-0/+412
| | | | | | | Reviewed by: jake, tmm Notes: svn path=/head/; revision=91232
* Typo fix: missing ;.Makoto Matsushita2002-02-251-1/+1
| | | | | | | | Pointed out by: Manfred Antar <null@pozo.com> Pointy hat to: matusita Notes: svn path=/head/; revision=91230
* #include <time.h> for the definition of time functions instead ofBruce Evans2002-02-251-0/+1
| | | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Notes: svn path=/head/; revision=91229
* #include <sys/time.h> instead of depending on namespace pollution inBruce Evans2002-02-251-0/+1
| | | | | | | <sys/stat.h> for the declaration of struct timeval. Notes: svn path=/head/; revision=91228
* #include <sys/time.h> instead of depending on namespace pollution inBruce Evans2002-02-251-0/+2
| | | | | | | | <sys/stat.h> for the declaration of struct timeval. Intentionally don't follow the local style of polluting the local headers. Notes: svn path=/head/; revision=91227
* Unremoved used includes. <sys/time.h> is needed if <sys/stat.h> isn'tBruce Evans2002-02-251-0/+2
| | | | | | | | polluted, and <sys/types.h> is strictly a prerequisite for <sys/stat.h> untiil we drop support for pre-2001 versions of POSIX. Notes: svn path=/head/; revision=91226
* #include <sys/time.h> instead of depending on namespace pollution inBruce Evans2002-02-251-2/+2
| | | | | | | | | | | | <sys/stat.h> for the declaration of struct timeval. Removed unused includes (<time.h> doesn't declare anything of interest; only <sys/time.h> does). Sorted includes a bit. Notes: svn path=/head/; revision=91225
* Modify the tte format to not include the tlb context number and to store theJake Burkholder2002-02-258-499/+1189
| | | | | | | | | | | | | | | | virtual page number in a much more convenient way; all in one piece. This greatly simplifies the comparison for a matching tte, and allows the fault handlers to be much simpler due to not having to load wierd masks. Rewrite the tlb fault handlers to account for the new format. These are also written to allow faults on the user tsb inside of the fault handlers; the kernel fault handler must be aware of this and not clobber the other's registers. The faults do not yet occur due to other support that is needed (and still under my desk). Bug fixes from: tmm Notes: svn path=/head/; revision=91224
* Improve grep'ing for variables in make.conf and rc.conf*.Doug Barton2002-02-251-4/+4
| | | | | | | Thanks to cjc for the idea. Notes: svn path=/head/; revision=91223
* Use the default 'ld' emulation rather than hard coding it.David E. O'Brien2002-02-251-1/+0
| | | | | | | | For FreeBSD, 'ld' 2.12.0 uses a different emulation than in the past. So this change makes the upgrade easier. Notes: svn path=/head/; revision=91221
* #include <sys/time.h> instead of depending on namespace pollution inBruce Evans2002-02-251-7/+8
| | | | | | | | | | | <sys/stat.h> for the declaration of struct timeval (sys/stat.h> only needs timespecs even when its POSIX support is not turned on, so it shouldn't declare timevals). Fixed some #include messes. Notes: svn path=/head/; revision=91220
* Declare time(not3) instead of depending on namespace pollution 3 layersBruce Evans2002-02-251-0/+2
| | | | | | | | | | | | | | | | deep in <stand.h> to eventually include <time.h> to declare the user version. This is not quite the right place to declare it, but <stand.h> would be worse because time() is very MD so it isn't in libstand. Many places in the boot sources still get the user version using only 1 layer of pollution (#include <sys/time.h>. Some pollute themselves directly (#include <time.h>). But the boot Makefiles are too broken to enable warnings for redeclarations. Notes: svn path=/head/; revision=91219
* Removed mounds of unused variables.Bruce Evans2002-02-251-4/+0
| | | | Notes: svn path=/head/; revision=91218
* #include <sys/time.h> instead of depending on namespace pollution inBruce Evans2002-02-251-3/+3
| | | | | | | | | | <sys/stat.h> for its prerequisite <sys/time.h>. #include <sys/param.h> in the correct place instead of bogusly including <sys/types.h>. Notes: svn path=/head/; revision=91217
* #include <sys/time.h> instead of depending on namespace pollution inBruce Evans2002-02-251-3/+3
| | | | | | | | | <sys/stat.h> for its prerequisite <sys/time.h>. Removed a duplicated include. Sorted includes. Notes: svn path=/head/; revision=91216
* The thermal thread needs to take Giant before it does anything with theMike Smith2002-02-251-0/+6
| | | | | | | | | interpreter. Submitted by: Magnus B{ckstr|m <b@etek.chalmers.se> Notes: svn path=/head/; revision=91215
* Removed unused include of <sys/resource.h> instead of depending onBruce Evans2002-02-251-12/+2
| | | | | | | | | | namespace pollution only 1 layer deep in <sys/stat.h> for its prerequisite <sys/time.h> Removed other unused includes. Notes: svn path=/head/; revision=91214
* #include <time.h> for the definition of time functions instead ofBruce Evans2002-02-251-3/+4
| | | | | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes. Removed some unused includes. Notes: svn path=/head/; revision=91213
* #include <time.h> for the definition of time functions instead ofBruce Evans2002-02-251-2/+1
| | | | | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Removed unused includes. Notes: svn path=/head/; revision=91212
* #include <stddef.h> for the definition of NULL instead of depending onBruce Evans2002-02-251-1/+3
| | | | | | | | | namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes. Notes: svn path=/head/; revision=91211
* Sockets passed into uipc_abort() have been allocated by sonewconn()Ian Dowse2002-02-251-10/+2
| | | | | | | | | | | | | | | | | | | | but never accept'ed, so they must be destroyed. Originally, unp_drop() detected this situation by checking if so->so_head is non-NULL. However, since revision 1.54 of uipc_socket.c (Feb 1999), so->so_head is set to NULL before calling soabort(), so any unix-domain sockets waiting to be accept'ed are leaked if the server socket is closed. Resolve this by moving the socket destruction code into uipc_abort() itself, and making it unconditional (the other caller of unp_drop() never needs the socket to be destroyed). Use unp_detach() to avoid the original code duplication when destroying the socket. PR: kern/17895 Reviewed by: dwmalone (an earlier version of the patch) MFC after: 1 week Notes: svn path=/head/; revision=91210
* Correct name spelling for one of the people who share my birthday.Greg Lehey2002-02-241-1/+1
| | | | | | | | PR: docs/35274 Submitted by: nivit@libero.it (Nicola Vitale) Notes: svn path=/head/; revision=91209
* MFen (1.283 --> 2.286).Jun Kuriyama2002-02-241-3/+3
| | | | Notes: svn path=/head/; revision=91208
* Make atomic_cmpset_32 correctly return 0 on failure.Benno Rice2002-02-241-0/+3
| | | | Notes: svn path=/head/; revision=91207
* Fix style bugs:Alfred Perlstein2002-02-241-2/+3
| | | | | | | | | | Missing `const' qualifier. Initialization in declaration. Submitted by: mike Notes: svn path=/head/; revision=91206
* Tests by numerous people have shown that many chipsets do not properlyMatthew Dillon2002-02-241-1/+1
| | | | | | | | | | | | | | latch the acpi timer, resulting in weird deltas. The problem is severe enough to adversely effect the timecounter code. Default to the 'safe' version of the get-timecount function. The probe will override it if a known-good chipset is found. This is temporary until a more complete solution is found. Reviewed by: phk Notes: svn path=/head/; revision=91204
* bump __FreeBSD_version for usb structure rename.Alfred Perlstein2002-02-241-1/+1
| | | | Notes: svn path=/head/; revision=91203
* Give a little more information as to why pnp configuration of a deviceAlfred Perlstein2002-02-241-1/+7
| | | | | | | | | may have failed. Submitted by: Terry Lambert <tlambert2@mindspring.com> Notes: svn path=/head/; revision=91202
* Revert revision 1.11. FreeBSD/alpha has suppport for T/TCP.Mike Barcroft2002-02-241-2/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=91201
* Add a generation number to timecounters and spin if it changes underPoul-Henning Kamp2002-02-242-38/+65
| | | | | | | | | | | | | | | our feet when we look inside timecounter structures. Make the "sync_other" code more robust by never overwriting the tc_next field. Add counters for the bin[up]time functions. Call tc_windup() in tc_init() and switch_timecounter() to make sure we all the fields set right. Notes: svn path=/head/; revision=91200
* Fix a typo (?) in previous commit told ttyprintf() to print the integerPoul-Henning Kamp2002-02-241-1/+1
| | | | | | | | part of the user-time as a 64bit quantity. This resulted in weird output from SIGINFO. Notes: svn path=/head/; revision=91199
* Sync with the Alpha's GENERIC configuration.David E. O'Brien2002-02-241-3/+143
| | | | | | | | | | Most of the contents are commented out as they are as-yet untested. However, I wanted the contents to match our other arches, so that when people make changes to {i386,alpha,ia64}, they will also make the same changes here. Notes: svn path=/head/; revision=91198
* Add a definition for mode page 0x2a "CD capabilities and mechanicalJoerg Wunsch2002-02-241-0/+52
| | | | | | | status page". Notes: svn path=/head/; revision=91196
* Finish phk's previous removal of BIO_ORDERED, all code thatSøren Schmidt2002-02-242-5/+0
| | | | | | | depended on ATA_FLUSHCACHE_ON is now useless. Notes: svn path=/head/; revision=91194
* * Add a feature to do a "pre {build|install}world" check of (so far)Doug Barton2002-02-241-26/+90
| | | | | | | | | | | master.passwd, group, and make.conf * Add a feature to check variables in rc.conf[.local] to their counterparts in /etc/defaults/rc.conf after a run * Twiddle whitespace a little * Change some "[ -f file ] && rm file" to "rm -f file" Notes: svn path=/head/; revision=91193
* Move some debugger-only symbols around; this patch didn't make it intoMike Smith2002-02-243-4/+2
| | | | | | | the commit resolution for some reason. Fixes ACPI_DEBUG. Notes: svn path=/head/; revision=91192
* Use libgcc_p.a when -pg is in effect.David E. O'Brien2002-02-241-0/+4
| | | | | | | | | | | I am committing this here rather than in gcc/config/freebsd.h because the profiled libgcc only exists with the native system compiler. It is not created by a stock FSF build and we will never be able to get these bits committed to the FSF CVS repo. Thus this is very much a FreeBSD "native" issue. Notes: svn path=/head/; revision=91190
* ctags would create a corrupt tags file if the source C file used '//' styleGregory Neil Shapiro2002-02-243-13/+16
| | | | | | | | | | | | | | comments such as: // The main() function Teach ctags about this style of commenting. Submitted by: Eric Allman <eric@Sendmail.ORG> MFC after: 1 week Notes: svn path=/head/; revision=91189
* Make sure we don't remove /etc/mail/sendmail.cf on make clean since thisGregory Neil Shapiro2002-02-241-3/+11
| | | | | | | | | | will break a running system during a buildworld. Noticed by: Alexandr Listopad <laa@laa.zp.ua> MFC after: 1 week Notes: svn path=/head/; revision=91187