summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Staticize the ufs vnops member functions.phk1997-10-162-39/+37
|
* Remove an overlapping variable I created in last round.phk1997-10-162-21/+13
| | | | | | | | Don't do pointer subtraction on void * Use VOP_STRATEGY instead of homegrown stuff. Add an XXX warning for LFS freaks to ponder.
* VFS mega cleanup commit (x/N)phk1997-10-1673-1491/+526
| | | | | | | | | | | | | | | | | | | | | | | 1. Add new file "sys/kern/vfs_default.c" where default actions for VOPs go. Implement proper defaults for ABORTOP, BWRITE, LEASE, POLL, REVOKE and STRATEGY. Various stuff spread over the entire tree belongs here. 2. Change VOP_BLKATOFF to a normal function in cd9660. 3. Kill VOP_BLKATOFF, VOP_TRUNCATE, VOP_VFREE, VOP_VALLOC. These are private interface functions between UFS and the underlying storage manager layer (FFS/LFS/MFS/EXT2FS). The functions now live in struct ufsmount instead. 4. Remove a kludge of VOP_ functions in all filesystems, that did nothing but obscure the simplicity and break the expandability. If a filesystem doesn't implement VOP_FOO, it shouldn't have an entry for it in its vnops table. The system will try to DTRT if it is not implemented. There are still some cruft left, but the bulk of it is done. 5. Fix another VCALL in vfs_cache.c (thanks Bruce!)
* Fix a couble of typos.sos1997-10-161-6/+6
| | | | Submitted by: "Vanill I. Shu" <vanilla@MinJe.com.TW>
* remove forgotten debug printf()julian1997-10-161-2/+1
|
* Two more places where root filesystems were mounted, put them at the head ofjulian1997-10-163-4/+4
| | | | the mount list in case there is already DEVFS present.
* We are mounting the root.julian1997-10-162-4/+4
| | | | mount it at the HEAD of the queue, DEVFS might already be there..
* Add a little example on libvgl usage.sos1997-10-162-0/+122
|
* 1/ by default make all versions of the same device get the same vnode.julian1997-10-162-6/+5
| | | | | 2/ Show the dummy mount in the mount list. it cannot be reached (that I know of) but puting it there, means that disks mounted from devfs will have their things such as the superblock and the bitmaps, synced to disk :)
* some cleanups of init code, and changes needed to support disk layering.julian1997-10-162-62/+75
|
* Make the supported media info output the default.peter1997-10-163-27/+10
| | | | | | The -m switch is now accepted for backwards compatability. Suggested by: davidg
* Proper spacing in the Synopsis.max1997-10-161-2/+2
|
* srandom(time()) is too weak even for joke, use srandom(time() ^ getpid())ache1997-10-151-0/+4
| | | | | at least. Note that srandomdev can't be used here since gawk preserve old seed value.
* On execing a sgid program, do not set P_SUGID when cr_gid and cr)_uidguido1997-10-151-3/+4
| | | | | | do not change. PR: 4755 Reviewed by: Bruce Evans
* Remove Xref to format(8) which does not exist.max1997-10-151-2/+1
|
* Include the machine-dependent Makefile.inc for sys in the correct place.bde1997-10-152-3/+4
|
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-1514-132/+87
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* Unspam l10n ranges checkache1997-10-151-0/+39
|
* Added some 2-line source files to get a direct correspondencebde1997-10-155-0/+10
| | | | | between sources and objects. This will be used to avoid messy special cases in Makefile.inc.
* Remove old SIGALRM absorbing back-compat code. It wasn't working at allpeter1997-10-151-83/+1
| | | | | | | | | | | | | for the entire time that it was there, so obviously nothing needs it anymore. Note, unix98/single-unix spec v2 says that usleep() returns an int rather than a void, to indicate whether the entire time period elapsed (0) or an error (eg: signal handler) interrupted it (returns -1, errno = EINTR) It is probably useful to make this change but I'll test it locally first to see if this will break userland programs [much]... Reviewed by: ache, bde
* Give up on the "try and compensate for broken programs" cruft and revertpeter1997-10-151-70/+0
| | | | | | | | | | | | | back to the original single nanosleep() implementation. This is POSIX and Unix98 (aka single-unix spec v2) compliant behavior. If a program sets alarm(2) or an interval timer (setitimer(2)) without a SIGALRM handler being active, sleep(3) will no longer absorb it, and the program will get what it asked for..... :-] The original reason for this in the first place (apache) doesn't seem to need it anymore, according to Andrey. Reviewed by: ache, bde
* Do not use gawk random, we have better one in libcache1997-10-152-2/+4
|
* Sigh. Signal handlers are executed on leaving the system call, notpeter1997-10-151-8/+2
| | | | | | | | | | at moment of delivery. Restoring the signal mask after the tsleep() is next to useless since the signal is still queued.. This was interacting with usleep(3) on receipt of a SIGALRM causing it to near busy loop. Now, we set the new signal mask "permanently" for signanosleep(). Problem noted by: bde
* vnops megacommitphk1997-10-1520-1029/+490
| | | | | | | | | | 1. Use the default function to access all the specfs operations. 2. Use the default function to access all the fifofs operations. 3. Use the default function to access all the ufs operations. 4. Fix VCALL usage in vfs_cache.c 5. Use VOCALL to access specfs functions in devfs_vnops.c 6. Staticize most of the spec and fifofs vnops functions. 7. Make UFS panic if it lacks bits of the underlying storage handling.
* One could be surprised how much bugs can still be found here...joerg1997-10-151-2/+3
| | | | | | | | | | | | Properlay clean the global RM variable if cgetstr() failed for it. Otherwise, a connection attempt to a remote machine was made (and a bogus result code printed) if a local printer followed a remote one in printcap, and you did a `lpq -a', since checkremote() falsely assumed the printer to be a remote one. While i was at it, removed a gratuituous newline printed in front of the remote machine's name, thus making the output more consistent (and better machine-parseable) now.
* Hide a silly ``unknown board type'' message behind bootverbose. Thejoerg1997-10-152-6/+8
| | | | ``ie0: not found'' message is sufficient as a default.
* Hmm, realign the vnops into two columns.phk1997-10-1531-338/+338
|
* 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.
OpenPOWER on IntegriCloud