summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Assert the sem lock in sem_ref() and sem_rel(), as it is required torwatson2004-12-231-0/+2
| | | | safely manipulate the reference count.
* Attempt to consistently use () around return values in calls torwatson2004-12-232-36/+36
| | | | return() in newer code (sysctl, ISN, timewait).
* Remove an XXXRW comment relating to whether or not the TCP timers arerwatson2004-12-232-12/+2
| | | | | | | | MPSAFE: they are now believed to be. Correct a typo in a second comment. MFC after: 2 weeks
* Remove the now unused tcp_canceltimers() function. tcpcb timers arerwatson2004-12-232-16/+0
| | | | | | now stopped as part of tcp_discardcb(). MFC after: 2 weeks
* Remove an annotation of a minor race relating to the update ofrwatson2004-12-231-7/+0
| | | | | | | | | multiple MIB entries using sysctl in short order, which might result in unexpected values for tcp_maxidle being generated by tcp_slowtimo. In practice, this will not happen, or at least, doesn't require an explicit comment. MFC after: 2 weeks
* Remove temporary debugging printf that was used to detect the presencerwatson2004-12-231-4/+0
| | | | | | | of a race that had previously caused a panic in order to determine if the fix was for the right problem. It was. MFC after: 2 weeks
* In sonewconn(), the s/if/while/ change to wait for room at the tail ofrwatson2004-12-232-10/+10
| | | | | the accept queue is a feature, not a bug/issue, so remove the XXXRW from the comment.
* Remove an XXXRW indicating atomic operations might be used as arwatson2004-12-231-12/+4
| | | | | | | | | | | | | | | | substitute for a global mutex protecting the socket count and generation number. The observation that soreceive_rcvoob() can't return an mbuf chain is a property, not a bug, so remove the XXXRW. In sorflush, s/existing/previous/ for code when describing prior behavior. For SO_LINGER socket option retrieval, remove an XXXRW about why we hold the mutex: this is correct and not dubious. MFC after: 2 weeks
* In soalloc(), simplify the mac_init_socket() handling to removerwatson2004-12-231-14/+3
| | | | | | | | | | | unnecessary use of a global variable and simplify the return case. While here, use ()'s around return values. In sodealloc(), remove a comment about why we bump the gencnt and decrement the socket count separately. It doesn't add substantially to the reading, and clutters the function. MFC after: 2 weeks
* Fix a couple of typos.keramida2004-12-231-2/+4
| | | | | | PR: docs/75410 Submitted by: "Paul A.Hoadley" <paulh@logicsquad.net> MFC after: 3 days
* - Add genid field to the metadata which will allow to improve reliability a bit.pjd2004-12-224-57/+186
| | | | | | | | | | | | | | | | After this change, when component is disconnected because of an I/O error, it will not be connected and synchronized automatically, it will be logged as broken and skipped. Autosynchronization can occur, when component is disconnected (on orphan event) and connected again - there were no I/O error, so there is no need to not connected the component, but when there were writes while it wasn't connected, it will be synchronized. This fix cases, when component is disconnected because of I/O error and can be connected again and again. - Bump version number. - Add version change history. - Implement backward compatibility mechanism. After this change when metadata in old version is detected, it is automatically upgraded to the new (current) version.
* Further fix the case mentioned in rev. 1.302. Theru2004-12-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | intent was (and still is) that if a user has say CPUTYPE=i686 set in /etc/make.conf, we don't print the assignment type warning unless TARGET_CPUTYPE is overridden. Unfortunately, the implementation was buggy, and only recent changes to bsd.cpu.mk that swapped canonical and alias values of some CPU types made the bug apparent. Here's what happens here. - CPUTYPE=i686 is set in /etc/make.conf, - bsd.cpu.mk reset it to "pentiumpro", - Makefile.inc1 compares this canonical value with the result of the following test, make -f /dev/null CPUTYPE=pentiumpro -V CPUTYPE and expects the result to be "pentiumpro" too, but "i686" is returned, here's why. We have two CPUTYPE variables, global, set to "i686" in /etc/make.conf, and command-line (of a higher precedence), set to "pentiumpro". The following part of bsd.cpu.mk, . elif ${CPUTYPE} == "i686" CPUTYPE = pentiumpro which is responsible for converting aliases to canonical values, sees the value of the CPUTYPE command-line variable first, "pentiumpro", and no conversion is done -- the net effect is that CPUTYPE global stays with its old value "i686", and "make -V CPUTYPE" (which prints variables in the global context) returns "i686". The fix was to pass the CPUTYPE in the test above as an environment variable instead of as a command line variable, i.e., CPUTYPE=pentiumpro make -f /dev/null -V CPUTYPE This time, CPUTYPE global is still set to "i686" initially (by /etc/make.conf), and an envieronment variable CPUTYPE (of a lower precedence) is set to "pentiumpro". The .elif sees it's set to "i686" and resets it to "pentiumpro", and so "make -V" returns "pentiumpro". NB: these various types of make(1) variables can be very painful, especially when combined with "make -V".
* Add send buffer locking to uipc_send(). Without this locking a race canalc2004-12-221-0/+3
| | | | | | | | | occur between a reader and a writer that results in a panic upon close, e.g., "panic: sbflush_locked: cc 4 || mb 0xffffff0052afa400 || mbcnt 0" Reviewed by: rwatson@ MFC after: 2 weeks
* 'forget' command takes device names, not provider names.pjd2004-12-221-1/+1
|
* Include fcntl.hphk2004-12-221-2/+3
| | | | | | Include selinfo.h (don't rely on vnode.h to do so) Check O_NONBLOCK instead of IO_NELAY Don't include vnode.h
* Don't include filedesc.hphk2004-12-221-3/+3
| | | | | | | Include fcntl.h Include selinfo.h (don't rely on vnode.h to do so) Check O_NONBLOCK instead of IO_NDELAY Don't include vnode.h
* Include fcntl.hphk2004-12-221-3/+3
| | | | | | | Check O_NONBLOCK instead of IO_NDELAY Include uio.h Don't include vnode.h Don't include filedesc.h
* Include uio.hphk2004-12-221-3/+3
| | | | | Check O_NONBLOCK instead if IO_NDELAY Don't include vnode.h
* Include fcntl.hphk2004-12-221-3/+4
| | | | | | Check O_NONBLOCK instead of IO_NDELAY. Include selinfo.h instead of relying on vnode.h to do so. Don't include vnode.h
* Include fcntl.hphk2004-12-221-2/+2
| | | | | check O_NONBLOCK instead of IO_NDELAY Don't include vnode.h.
* Include fcntl.hphk2004-12-221-2/+2
| | | | | check O_NONBLOCK instead of IO_NDELAY don't include vnode.h
* Include fcntl.hphk2004-12-221-2/+2
| | | | | Check O_NONBLOCK instead of IO_NDELAY Don't include vnode.h
* Check O_NONBLOCK instead of IO_NDELAY.phk2004-12-221-2/+1
| | | | Don't include <sys/vnode.h>
* Fix comment.phk2004-12-222-2/+2
|
* Don't include vnode.h.phk2004-12-221-3/+2
| | | | Check O_NONBLOCK instead of IO_NDELAY
* Correct speling erors.wollman2004-12-221-2/+2
|
* Don't include vnode.hphk2004-12-221-1/+0
|
* Include fcntl.h not vnode.h.phk2004-12-221-2/+3
| | | | | Include uio.h instead of relying on vnode.h to do so. Check O_NONBLOCK not IO_NDELAY.
* Check O_NONBLOCK not IO_NDELAY.phk2004-12-222-3/+1
| | | | Don't include vnode.h
* #include fcntl.h not vnode.h. Check O_NONBLOCK not IO_NDELAY.phk2004-12-221-2/+2
|
* #include of <sys/vnode.h> not necesary.phk2004-12-221-1/+0
|
* Be consistent about flag values passed to device drivers read/writephk2004-12-221-11/+4
| | | | | | | | | | | methods: Read can see O_NONBLOCK and O_DIRECT. Write can see O_NONBLOCK, O_DIRECT and O_FSYNC. In addition O_DIRECT is shadowed as IO_DIRECT for now for backwards compatibility.
* Shuffle numeric values of the IO_* flags to match the O_* flags fromphk2004-12-222-3/+17
| | | | | | | | | | fcntl.h. This is in preparation for making the flags passed to device drivers be consistently from fcntl.h for all entrypoints. Today open, close and ioctl uses fcntl.h flags, while read and write uses vnode.h flags.
* Punctuation marks should be separate arguments in groff macros.keramida2004-12-221-1/+1
| | | | Noticed by: ru
* Use .Dv NULL when referring to NULL C pointers, instead of "nil".keramida2004-12-226-11/+32
|
* Look into machine-specific manpage subdirectories too.ru2004-12-222-4/+18
| | | | | PR: bin/72243 MFC after: 3 weeks
* Cross reference init(8) too, instead of vaguely referring to thekeramida2004-12-221-4/+7
| | | | "initialization process".
* Fixed the only warning and mark as WARNS=6 clean.ru2004-12-222-1/+3
|
* - Fixed handling of manpage subdirectories:ru2004-12-221-20/+12
| | | | | | | | | | catman /usr/share/man/man8 cd /usr/share/man; catman man8 - Don't print false warnings about invalid cat pages which are machine-specific cat page subdirectories (visible with -v). - Fixed one memory leak.
* Remove single line containing the word "KLD" ommitted in ps.1:1.80.rwatson2004-12-221-1/+0
| | | | Pointed out by: ru (some time ago)
* Due to unknown reasons, Disk_Names() returns SCSI CDROM as a validyongari2004-12-222-0/+28
| | | | | | | | | | | | | disk. This is main reason why sysinstall presents SCSI CDROM to available disks in Fdisk/Label menu. In addition, adding a blank SCSI CDROM to the menu generates floating point exception in sparc64. Disk_Names() just extracts sysctl "kern.disks". Why GEOM treats SCSI CDROM as a disk is beyond me and that should be investigated. For temporary workaround, ignore SCSI CDROM device. PR: sparc64/72962 Tested by: R. Tyler Ballance < tyler AT tamu DOT edu> MFC after: 1 week
* Plug memory leak.yongari2004-12-221-1/+4
| | | | MFC after: 1 week
* Include wchar.h to improve our chances of findingkientzle2004-12-221-0/+1
| | | | | | WCHAR_MAX. This might fix a portability problem on HP_UX. Thanks to: Susan Kim
* Portability nit: Some platforms require stdio.h before bzlib.h.kientzle2004-12-221-0/+1
| | | | Thanks to: Kurt J. Lidl
* Add __archive_strappend_int to format a decimalkientzle2004-12-222-0/+19
| | | | number into a variable-length archive_string.
* Add a fallback version of fnmatch() to the bsdtarkientzle2004-12-223-9/+170
| | | | | | | | | source code. Include configure logic to pick up the system one when it exists and use the fallback version when it doesn't exist. Set the default for FreeBSD to use the system version. With this, bsdtar should now be quite portable.
* GC an unused #includekientzle2004-12-221-1/+0
|
* Fix -W long option handling.kientzle2004-12-221-5/+15
| | | | | | | | | | | In particular: -W excl=text fails because "excl" is a prefix of both "exclude" and "exclude-from". But, -W exclude=text is okay because it matches "exclude" exactly. Thanks to: Jose F Nieves MFC after: 7 days
* Don't truncate major/minor numbers written to the legacykientzle2004-12-221-3/+15
| | | | | | | | | | | | ustar fields. Later, we're going to permit numeric extensions for these fields, so we can support large values here. In particular, this allows GNU tar to correctly extract such entries even though it doesn't support the pax extended attributes. Note: r1.18 and r1.17.2.1 of this file allowed similar treatment of the uid/gid fields. Thanks to: Ben Mesander
* Tune the bidding for tar archives. Thiskientzle2004-12-221-2/+9
| | | | | | | | improves the recognition of hardlink entries with/without bodies (which is implemented through a look-ahead that uses the bid function). MFC after: 7 days
OpenPOWER on IntegriCloud