summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix the help command (broken when I re-prototypedbrian1997-11-231-20/+33
| | | | all the commands).
* Missing part of my last sb_dsp.c sb16_dsp.c commit.ahasty1997-11-231-0/+1
|
* Fixed spelling of EACCES.bde1997-11-236-15/+22
|
* Fixed a missing conversion of retval to p_retval in disabled code.bde1997-11-231-3/+3
| | | | | | | | Fixed overflow of FFLAGS() in fcntl(F_SETFL, ...). This was not a security hole, but gave wrong results for silly flags values. E.g., it make fcntl(F_SETFL, -1) equivalent to fcntl(F_SETFL, 0). POSIX requires ignoring the open mode bits in fcntl() (even if they would be invalid for open()).
* Fixed misuse of O_ACCMODE. Cosmetic.bde1997-11-231-2/+2
| | | | Not fixed in: sound driver
* Fixed the sector size frobbing in sd_strategy() at least not tobde1997-11-231-8/+7
| | | | | | | | break for the usual sector size. dscheck() adjusts b_bcount to handle EOF, so we must scale it and not preserve it. i/o beyond the end of partitions has been broken since rev.1.96. Not fixed in: od driver
* Fixed duplicate definitions of M_FILE (one static).bde1997-11-233-7/+9
|
* Fixed some style bugs in the poll() code.bde1997-11-231-18/+8
| | | | | Removed dead code to "Avoid inadvertently sleeping forever". hzto() never returns 0.
* Implemented "info float" for core files.bde1997-11-232-72/+130
| | | | | | | | | | | Implemented reading of %fs and %gs from core files. Print weird floating point values better. We have to convert long doubles to doubles here because of limitations and bugs in printf() and floatformat_to_double() (long doubles aren't really supported and naive converion to double causes exceptions). Conversion loses information about weird formats (everything becomes a quiet NaN), and printf() doesn't know about different types of NaNs anyway.
* Fixed acquired dma channel problem.ahasty1997-11-232-4/+56
|
* update of Luigi's sound drivers...jmg1997-11-2316-468/+1013
| | | | this updates to 971117 plus a small sb change that was after that release..
* Fixed long double formats. They were mostly not implemented exceptbde1997-11-231-4/+7
| | | | | | | | | | | on systems where long doubles are just doubles. FreeBSD hasn't been such a system since it started using gcc-2.5 many years ago. The fix is of low quality. It loses precision. scanf() of long doubles doesn't seem to be used much, but gdb-4.16 uses %Lg format in its expression parser if it thinks that the system supports printf'ing of long doubles. The symptom was that floating point literals were usually interpreted to be 0.0.
* Cleanup: fix a few typos, fit ASCII output onto an 80-column terminaljraynard1997-11-231-16/+16
| | | | and use a fixed font which actually exists.
* Up the version number to 1.5.brian1997-11-221-3/+3
|
* Understand how to derive the names of interfacesbrian1997-11-221-34/+28
| | | | | when they aren't ordered. This is probably vital for laptop support ;-I
* Staticized.bde1997-11-2210-50/+50
|
* Unremoved prtrealloc and the declaration of ffs_clusteralloc(). Thesebde1997-11-221-1/+9
| | | | | | are used in the `#ifdef notyet' case :-). This case is used except in the `#if !defined (not_yes)' case :-|. This has something to do with the `#ifdef notyet_block_reallocation_enabled' case in vfs_cluster.c :-(.
* Ifdefed a conditionally used #include.bde1997-11-222-4/+8
| | | | Staticized.
* Staticized.bde1997-11-222-6/+6
| | | | | | | Use OID_AUTO instead of a magic number for the debug.syncprt sysctl. (This sysctl doesn't actually work. FreeBSD nuked it, but parts of it were mismerged from Lite2. It is not very good, but better than nothing.)
* Add Winbond W89C940 ID to the list.msmith1997-11-222-2/+4
| | | | Submitted by: Micha Class <michael_class@hpbbse.bbn.hp.com>
* Fixed some style and contents bugs in comments. Copied comments arebde1997-11-221-5/+5
| | | | usually wrong.
* Fixed rev.1.81. mp->mnt_kern_flag was restored in the non-error case ofbde1997-11-222-6/+8
| | | | | | | | | | | | | | | | | | | `mount -u'. This only matters for `mount -u' competing with unmounts. If I understand the locking correctly: if mount() blocks, then unmount() may run and set mp->kern_flag for the same mp. Then unmount() blocks waiting for mount() to finish. When unmount() continues, its MNTK flags (MNTK_UNMOUNT and MNTK_MWAIT) may have been clobbered. Didn't fix old bugs: - restoring mp->mnt_kern_flag is wrong for the same reasons in the error case. - the error case of unmount() seems to be broken too: (a) MNTK_UNMOUNT gets clobbered, although another unmount() may have set it. Perhaps it shouldn't be set until after the full lock is aquired. (b) MNTK_MWAIT isn't honoured. Fixed a nearby style bug.
* Check for rejected mailbrian1997-11-222-1/+13
| | | | Not commented on by: freebsd-hackers
* Fix prototypes.brian1997-11-2262-752/+823
| | | | | | | | | | | | | | Remove extraneous decls. Add ``const'' to several places. Allow ``make NOALIAS=1'' to remove IP aliasing. Merge with OpenBSD - only the Makefiles vary. We can now survive a compile with -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts (although the Makefile just contains -Wall).
* const correctness for dl*()brian1997-11-226-39/+39
|
* Suggest using "-b" or "-t" if the connection is reset (typical symptomfenner1997-11-221-1/+5
| | | | of broken TCP stack).
* Fix bit-twiddling in sigismember(3).jraynard1997-11-211-1/+1
| | | | | | | | Note this ONLY affects the function version - the macro version is always used unless for some reason you put #undef sigismember in your code before calling it. PR: 3615 Submitted by: Nanbor Wang <nw1@cs.wustl.edu> (slightly amended patch)
* Correct CPU_CYRIX_NO_LOCK fix.jlemon1997-11-212-10/+10
| | | | | PR: 5121 Pointed out by: Matthew Hunt
* Fixed setting of `safepri'. It should be SWI_AST_MASK most of thebde1997-11-215-5/+36
| | | | | | | | time, but was left at 0. This caused the "can't happen" case in splz_swi to happen for panics when tsleep() calls splx(safepri) and there is a SWI_AST pending. This was harmless because the the error handling happens to be right. Debugging this was tricky because debugger traps force SWI_AST_MASK on in `cpl'.
* Moved splhigh()/spl0() calls from isa_configure() to configure() so thatbde1997-11-214-8/+28
| | | | | | | | | | | | | there is a natural place to initialize `safepri' in a future commit. Spinoffs: - spl0() gets called in the unlikely event that isa is not configured. - configure() has better control over enabling interrupts. - it is now less unclear that interrupts aren't actually enabled early. Rev.1.48 of autoconf.c seems to have done the opposite of what was intended - moving the isa_configure() call delayed the spl0() side effect. Added some comments about the bogons. Removed the splhigh() call since it is a no-op.
* Make comp_vgaregs() less strict about VGA register values whenyokota1997-11-216-435/+696
| | | | | | | | | | | | | | | checking the BIOS video mode paramter table. Now syscons uses the parameter table even if some bits in the table are different from the current VGA register settings. Even if comp_vgaregs() finds that the BIOS video parameter table looks totally unfamiliar to it, syscons allows the user to change the current video mode to some modes which are based on the VGA 80x25 mode. They are VGA 80x30, VGA 80x50, VGA 80x60. In this case the user will be warned, during boot, that video mode switching is only paritally supported on his machine. PR: bin/4477
* Const poisoning from ks_shortdesc.bde1997-11-213-6/+6
|
* Fix for a PS/2 mouse model from MouseSystems. It now appears thatyokota1997-11-211-1/+5
| | | | | | | | | this mouse can correctly operate only in the high resolution mode. If the mouse pointer jumps to the top or left edge or the top-left corner of the screen, try defining PSM_MSCKLUDGE in the kernel configuration file. This option will put the mouse in the high resolution mode during device initialization.
* Correct incompletes .Xrs. Remove duplicate #includes and unused variables.charnier1997-11-217-52/+58
|
* Use err(3). -Wall cleaning.charnier1997-11-212-15/+17
|
* Cosmetics in man page. Exit(-1) -> exit(1).charnier1997-11-216-30/+36
|
* Previous commit refers to SWAP_PART, which is only defined if the includepeter1997-11-212-2/+4
| | | | file that it's in is #included...
* - In addtition to flushing the routes, also flush the arp cache when bringingnate1997-11-201-2/+3
| | | | | | up the new network link. Submitted by: Guido van Rooij <guido@gvr.org>
* Fixed a sloppy common-style definitions.bde1997-11-203-10/+13
|
* Add Matt Dillon's quick fix hack for the self-connect DoS.wollman1997-11-202-2/+28
| | | | PR: 5103
* Removed a duplicate (sloppy common-style) definition.bde1997-11-202-8/+10
| | | | Fixed some style bugs.
* Moved some extern declarations to header files (unused ones to /dev/null).bde1997-11-2010-26/+30
|
* Avoid passing a `retval' to wait1()bde1997-11-201-13/+10
| | | | | | | Disallow wait options that are not a combination of the standard POSIX options WUNTRACED and WNOHANG, as is required by POSIX. BSD doesn't have any extensions here, but the code was `#ifdef notyet' for some reason.
* Avoid passing some more `retval's.bde1997-11-204-45/+36
|
* Fixed wrong limits for the kernel text in db_numargs(). Thebde1997-11-202-6/+14
| | | | | | | | interval [VM_MIN_KERNEL_ADDRESS, etext] was used instead of [btext, etext). Added a comment about this being completely wrong for LKMs. This only affects interpreting the instructions after the return to attempt decide the number of args. The attempt usually fails anyway.
* Fixed write enabling of the kernel text section. The overlapbde1997-11-202-14/+10
| | | | | | | | | | | | | | | checking was mostly wrong at the boundaries. For the lower limit, VM_MIN_KERNEL_ADDRESS was used instead of btext and there was an off-by-(`size' - 1) error. For the upper limit, &etext was used instead of etext and there was an off-by-1 error. The bugs were harmless because `size' is not too large and some memory is mapped just beyond the ends. We still depend on the former to avoid having to handle the case where the memory range covers the whole text section, and on the latter to prevent problems when we map just beyond an end to allow writing an address range that overlaps the end. Fixed placement of a nearby comment.
* Don't allow setting the dump device to any partition except thebde1997-11-202-2/+16
| | | | | | | one traditionally reserved for swap devices. The restrictions should now be the same as the ones for dumpsys(). The restriction on the partition should be removed someday, and dumpsys() shouldn't repeat all the checks.
* Use consistent description strings for M_EXT2NODE. This also fixes abde1997-11-202-2/+2
| | | | spelling error in the unused string.
* Cleaned up revs.1.19-1.21:bde1997-11-201-17/+14
|
* Removed unused includes.bde1997-11-201-16/+17
| | | | | | | | Staticized. Avoid passing a `retval' to fork1(). Fixed some style bugs.
OpenPOWER on IntegriCloud