summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Stylistic overhaul of vnops tables.phk1997-10-1531-2129/+1910
| | | | | | | 1. Remove comment stating the blatantly obvious. 2. Align in two columns. 3. Sort all but the default element alphabetically. 4. Remove XXX comments pointing out entries not needed.
* When the default vnops funtion is vn_default_error(), there is no reason tophk1997-10-154-232/+4
| | | | | | implement small functions that just return EOPNOTSUPP for things we don't do. The removed functions only apply to UFS based filesystems anyway.
* Mention that the Zip driver (vpo) requires SCSI disk support, and worksmsmith1997-10-153-3/+9
| | | | | best with EPP 1.9 mode selected. Submitted by: Gianmarco Giovannelli <gmarco@giovannelli.it>
* IN_HASHED goes in the in-core flags ip->i_flag, not in the on-disk flagsbde1997-10-152-8/+8
| | | | | | | | | ip->i_flags. Rev.1.18 completely broke ufs. My root directory went away about 10 seconds after booting. I think file system damage was null, since IN_HASHED = 0x80 is not used in the disk flags (it would probably be UF_SOMETHING if it were used).
* Use err(3). Add prototypes.charnier1997-10-152-111/+113
|
* Use err(3). Rewrote man page in mdoc format.charnier1997-10-152-105/+80
|
* Add usage().charnier1997-10-154-24/+35
|
* Fix various bogons reported in this PR.jkh1997-10-1510-18/+28
| | | | | PR: 4765 Submitted by: fdiv
* Initialise LCP, IPCP and CCP as soon as LCP is down.brian1997-10-151-1/+4
| | | | | | | | Without this, in -auto mode, we stay in ST_STOPPING and never check our dial filters to see if it's time to bring the line up again. This may make "set stopped" redundant.
* Correct a bug in the 'allow arbitrary number of socket descriptors' changeswpaul1997-10-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | made to the RPC code some months ago. The value of __svc_fdsetsize is being calculated incorrectly. Logically, one would assume that __svc_fdsetsize is being used as a substitute for FD_SETSIZE, with the difference being that __svc_fdsetsize can be expanded on the fly to accomodate more descriptors if need be. There are two problems: first, __svc_fdsetsize is not initialized to 0. Second, __svc_fdsetsize is being calculated in svc.c:xprt_registere() as: __svc_fdsetsize = howmany(sock+1, NFDBITS); This is wrong. If we are adding a socket with index value 4 to the descriptor set, then __svc_fdsetsize will be 1 (since fds_bits is an unsigned long, it can support any descriptor from 0 to 31, so we only need one of them). In order for this to make sense with the rest of the code though, it should be: __svc_fdsetsize = howmany(sock+1, NFDBITS) * NFDBITS; Now if sock == 4, __svc_fdsetsize will be 32. This bug causes 2 errors to occur. First, in xprt_register(), it causes the __svc_fdset descriptor array to be freed and reallocated unnecessarily. The code checks if it needs to expand the array using the test: if (sock + 1 > __svc_fdsetsize). The very first time through, __svc_fdsetsize is 0, which is fine: an array has to be allocated the first time out. However __svc_fdsetsize is incorrectly set to 1, so on the second time through, the test (sock + 1 > __svc_fdsetsize) will still succeed, and the __svc_fdset array will be destroyed and reallocated for no reason. Second, the code in svc_run.c:svc_run() can become hopelessly confused. The svc_run() routine malloc()s its own fd_set array using the value of __svc_fdsetsize to decide how much memory to allocate. Once the xprt_register() function expands the __svc_fdset array the first time, the value for __svc_fdsetsize becomes 2, which is too small: the resulting calculation causes the code to allocate an array that's only 32 bits wide when it actually needs 64 bits. It also uses the valuse of __svc_fdsetsize when copying the contents of the __svc_fdset array into the new array. The end result is that all but the first 32 file descriptors get lost. Note: from what I can tell, this bug originated in OpenBSD and was brought over to us when the code was merged. The bug is still there in the OpenBSD source. Total nervous breakdown averted by: Electric Fence 2.0.5
* Reset the flag right away, could catch a bogon someday.phk1997-10-142-2/+4
|
* I think my previous change may have opened a race conditio.phk1997-10-1410-23/+28
| | | | This patch does the same thing, with no change in semantics.
* Makefile for contributed version of awk.jraynard1997-10-142-6/+27
|
* Remove old version of awk.jraynard1997-10-1432-29563/+0
|
* Add a new startup variables menu for tweaking rc.conf variables in morejkh1997-10-149-21/+246
| | | | | | detail (also added more of them to the networking services menu). Add new dmenuISetVariable() function for interactive setting of non-boolean flags.
* This commit was generated by cvs2svn to compensate for changes in r30411,jraynard1997-10-14260-0/+49739
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of GNU awk 3.0.3jraynard1997-10-14260-0/+49739
|
* Sheesh! Who's put a non-comment comment into this file?joerg1997-10-141-1/+2
|
* Improve my hack from rev 1.6 of displayq.c, and make the TCPjoerg1997-10-149-4/+58
| | | | | | | | connection timeout controllable by a new printcap(5) capability named `ct' (connectiom timeout), defaulting to 120 seconds (which is the default TCP connection timeout). Would anybody see a problem with merging all this into RELENG_2_2?
* Deleted obsolete non-Intel CPU options.kato1997-10-142-18/+2
|
* Fix bogon I introduced while adding disks menu to label editor.jkh1997-10-143-9/+15
|
* ufs_ihashrem() should not be called from the UFS layer, but from thephk1997-10-145-8/+12
| | | | | | lower layer (LFS/FFS/?) like the rest of the ihash functions. Otherwise it is impossible to make a lower layer that doesn't use the ihash facility.
* Moved `SRCS+= frexp.c' to the correct Makefile.inc.bde1997-10-142-6/+6
| | | | Sorted SRCS.
* Moved `SRCS+= frexp.c' to the correct Makefile.inc.bde1997-10-141-2/+2
|
* Fixed searching of $PATH in execvp(). Do what sh(1) should do accordingbde1997-10-142-26/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | to POSIX.2. In particular: - don't retry for ETXTBSY. This matches what sh(1) does. The retry code was broken anyway. It only slept for several seconds for the first few retries. Then it retried without sleeping. - don't abort the search for errors related to the path prefix, in particular for ENAMETOOLONG, ENOTDIR, ELOOP. This fixes PR1487. sh(1) gets this wrong in the opposite direction by never aborting the search. - don't confuse EACCES for errors related to the path prefix with EACCES for errors related to the file. sh(1) gets this wrong. - don't return a stale errno when the search terminates normally without finding anything. The errno for the last unsuccessful execve() was usually returned. This gave too much precedence to pathologies in the last component of $PATH. This bug is irrelevant for sh(1). The implementation still uses the optimization/race-inhibitor of trying to execve() things first. POSIX.2 seems to require looking at file permissions using stat(). We now use stat() after execve() if execve() fails with an ambiguous error. Trying execve() first may actually be a pessimization, since failing execve()s are fundamentally a little slower than stat(), and are significantly slower when a file is found but has unsuitable permissions or points to an unsuitable interpreter. PR: 1487
* if_ep.c clarification/simplification.itojun1997-10-144-546/+184
| | | | | | | | | | | | | | - irq = 9 problem (PR 4693) - mbuf chaining oddity fixed. (PR 4693) - trailer protocol has gone. (PR 4693) - removed mbuf kludge, we got higher performance. (PR 4693) - some indentation fixes I'm sorry that I couldn't make a 2.2.5-RELEASE deadline. PR: 4693 Reviewed by: babkin@hq.icb.chel.su Submitted by: hamada@tom-yam.or.jp
* Add the primaries -mmin, -amin, -cmin to find, similar to the GNU find.wosch1997-10-135-3/+128
|
* Ask for extra confirmation if a newfs has been requested duringjkh1997-10-133-9/+9
| | | | | an upgrade. PR: 3368
* Improve the innetgr() NIS+ compat kludge. We should only fail over to thewpaul1997-10-131-18/+25
| | | | | | | | | | | | 'slow' lookup if we get a YPERR_MAP (no such map in server's domain) error instead of failing over on any error. In the latter case, if the 'fast' search fails legitimately (i.e. the user or host really isn't a member of the specified netgroup) then we end up doing the 'slow' search and failing all over again. The result is still correct, but cycles are consumed for no good reason. Also removed the #ifdef CHARITABLE since the compat kludge is no longer optional.
* If uptime < 1 min print in in secs otherwise we got confusing messageache1997-10-131-10/+12
| | | | "up 1 user"
* Don't return from cleanup() - if it's removed the playpen then veryjkh1997-10-135-9/+14
| | | | | bad things will happen if we return to unsuspecting code. Noted to my great dismay by: Tim Vanderhoek <hoek@hwcn.org>
* Consolidate distribution flag checking code.jkh1997-10-132-98/+152
|
* Allow access to options editor from media screen (sometimes you need itjkh1997-10-133-3/+6
| | | | there!).
* Only need to call label editor for all drives.jkh1997-10-133-33/+15
|
* Use err(3). Add usage.charnier1997-10-132-29/+49
| | | | | | Use syslog instead of fprintf when being a daemon. Change sprintf to snprintf obtained from OpenBSD. Obtained from: OpenBSD
* Use err(3). Sync usage string and man page.charnier1997-10-132-41/+42
|
* Use err(3). Remove multiply defined Id string.charnier1997-10-138-64/+61
|
* Remove multiply defined Id string. Hide sccsid string.charnier1997-10-136-46/+54
|
* Use err(3). Add usage() and #includes.charnier1997-10-1310-104/+107
|
* Use err(3).charnier1997-10-133-45/+63
|
* Hide sccsid[]. Typo in man page.charnier1997-10-132-4/+8
|
* Use err(3). Add prototypes.charnier1997-10-132-21/+33
|
* Mdoc'ify man page.charnier1997-10-132-65/+75
|
* Use err(3). Add prototypes. Cosmetic in usage string.charnier1997-10-132-29/+41
|
* Style police: keep a variable list in alphabetical order, and addjoerg1997-10-131-5/+5
| | | | | | pointless paren's to return statements. Nitpicked by: bde :)
* Synchronize with sys/i386/isa/wd.c revision 1.141.kato1997-10-131-4/+4
|
* Synchronize with sys/i386/isa/sio.c revision 1.184.kato1997-10-132-4/+4
|
* Synchronize with sys/i386/i386/userconfig.c revision 1.269.kato1997-10-131-3/+3
|
* Synchronize with sys/i386/i386/machdep.c revision 1.269.kato1997-10-132-2/+4
|
* 1) Remove comment about tip(1) not accepting comments in /etc/phoneshoek1997-10-132-10/+9
| | | | | | | | Forgotten-By: rgrimes, early '94 (see rev 1.3, 1.4). 2) Use 555-#### examples to avoid potentially expensive accidents. 3) Escape @ in example pn capability (see related FAQ.sgml question).
OpenPOWER on IntegriCloud