summaryrefslogtreecommitdiff
path: root/lib/libstand
Commit message (Collapse)AuthorAgeFilesLines
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-05-261-3/+3
| | | | | | | | | It was not discussed and should probably not happen. Requested by: msmith and others Notes: svn path=/head/; revision=60938
* Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder2000-05-231-3/+5
| | | | | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd Notes: svn path=/head/; revision=60833
* Fix the real problem that broke the Alpha loader this last week. ItPeter Wemm2000-05-121-2/+3
| | | | | | | | | | | | | | | | | | was not the fault of the module code, nor FICL. The malloc code requires sbrk() to return addresses that were at least 16 byte aligned. If the Alpha loader happened to be 8 byte but not 16 byte aligned in length, then you would get a zfree() panic at startup. Incidently, this affected the i386 loader as well, and explains why the static heap changed things and why jlemon had trouble when the bss was not ending at a multiple of 8 bytes. My fix is to 16 byte align it on all arches, even though the x86 version only required 8 byte alignment (struct MemNode is smaller there). We could page align it if we wanted to be paranoid, but it isn't presently necessary. Notes: svn path=/head/; revision=60481
* We compile expressly on the alpha with -mno-fp-regs - so do not use themPeter Wemm2000-05-121-0/+4
| | | | | | | | explicitly here. This was the original cause of instruction faults on the Alpha in loader. (not this code, but the same problem in libficl.a) Notes: svn path=/head/; revision=60479
* Fix comment.Paul Saab2000-05-061-1/+1
| | | | Notes: svn path=/head/; revision=60071
* Add readdir support to the NFS filesystem in libstand.Paul Saab2000-05-012-1/+82
| | | | Notes: svn path=/head/; revision=59853
* Do not attempt to free a nfs node if it is the root node. The rootPaul Saab2000-05-011-2/+3
| | | | | | | | node is statically allocated and is not guarded, so free will panic in nfs_close. Notes: svn path=/head/; revision=59824
* Add a readdir function to the loader fsops vector, and implement theJonathan Lemon2000-04-2912-154/+249
| | | | | | | functionality for some of the filesystesms. Notes: svn path=/head/; revision=59766
* Add ext2fs support to the loader.Jonathan Lemon2000-04-291-0/+903
| | | | Notes: svn path=/head/; revision=59765
* Add a cleanup function. This is needed for PXE where you shouldPaul Saab2000-04-201-0/+1
| | | | | | | shutdown the UNDI and unload the stack. Notes: svn path=/head/; revision=59408
* Break out sendudp and readudp from net.c. This is for PXE, so itPaul Saab2000-04-084-215/+276
| | | | | | | can use its own UDP interface. Notes: svn path=/head/; revision=59086
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-2/+4
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* trailing white space removal.David E. O'Brien2000-01-181-16/+14
| | | | Notes: svn path=/head/; revision=56223
* Add two new functions cd9660_readfile() & cd9660_readdir(), whichDavid E. O'Brien2000-01-181-110/+175
| | | | | | | | | | cd9660_read() now uses to read CDROMs. With these changes FreeBSD/Alpha can now boot from a bootable CDROM. Submitted by: dfr Notes: svn path=/head/; revision=56222
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-2/+2
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* Use the ctype.h version of isascii() - it doesn't loose precision and thinkPeter Wemm1999-12-281-1/+1
| | | | | | | | | that 0x100 (int) is an ascii character. Submitted by: bde Notes: svn path=/head/; revision=55181
* Tidy up some loose ends. nullfs_read/write were returning the wrong value.Peter Wemm1999-12-273-5/+7
| | | | | | | | | Fix some ctype problems - isascii() caused a warning if fed an unsigned char - it's always > 0 and libstand is compiled with -Wall. Missing prototype/include in printf.c Notes: svn path=/head/; revision=55137
* longjumperror() and abort() don't exist in libstand.. Don't testPeter Wemm1999-11-241-8/+1
| | | | | | | | for a condition we can't handle (like the x86 longjmp). This was highlighted by attempting to build FICL into the alpha loader. Notes: svn path=/head/; revision=53667
* Change toupper/tolower so that they don't give a bogus answer if theDoug Rabson1999-09-111-2/+10
| | | | | | | argument is already upper/lower. Notes: svn path=/head/; revision=51169
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2820-21/+21
| | | | Notes: svn path=/head/; revision=50476
* More egcs warning fixes:Warner Losh1999-04-252-3/+5
| | | | | | | | | | | | | o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). o Use parens around assignment values used as truth values. o Remove unused function. Reviewed by: obrien and chuckr Notes: svn path=/head/; revision=46079
* Don't build with -g. The a.out egcs can't handle it at the moment.John Polstra1999-04-221-2/+2
| | | | | | | | This seems to have snuck back into the Makefile in an unrelated commit (rev. 1.8). Notes: svn path=/head/; revision=45939
* Remove float-point dependency from i386's version of setjmp()/longjmp().Daniel C. Sobral1999-02-121-5/+2
| | | | Notes: svn path=/head/; revision=43933
* Copy _setjmp.S from libc in preparation for loader-specific version.Daniel C. Sobral1999-02-123-2/+209
| | | | Notes: svn path=/head/; revision=43932
* Oops. Missed this in the last commit.Jordan K. Hubbard1999-02-011-3/+1
| | | | | | | Submitted by: Daniel C. Sobral <dcs@newsguy.com> Notes: svn path=/head/; revision=43494
* POSIX introduced optreset to deal with multiple invocationsMike Smith1999-01-111-2/+2
| | | | | | | | | | | | | of getopt (as in, multiple input lines :). This is documented in the man page and is used in the code, but unistd.h and stand.h do not declare it. Incidentally, it prevents me fixing a bug in loader's code... :-) PR: misc/9373 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com> Notes: svn path=/head/; revision=42511
* Remove stray .endif from previous commit (I hope this is right)Peter Wemm1998-11-041-2/+1
| | | | Notes: svn path=/head/; revision=40903
* Don't need this one anymore.Mike Smith1998-11-041-81/+0
| | | | Notes: svn path=/head/; revision=40892
* Well I never. Seems like _setjmp()/_longjmp() are just what the doctorMike Smith1998-11-043-8/+16
| | | | | | | | | | ordered. This brings the Alpha back to parity, and should bring us BootForth on both platforms. Submitted by: John Birrell (jb@freebsd.org) Notes: svn path=/head/; revision=40891
* Improve the quality of isspace() to match expectations. This should makeMike Smith1998-11-041-2/+2
| | | | | | | the Ficl interpreter read its softwords array OK. Notes: svn path=/head/; revision=40889
* Don't try to build (nonexistent) Alpha setjmp until we have one.Mike Smith1998-11-041-1/+3
| | | | Notes: svn path=/head/; revision=40878
* Move setjmp/longjmp implementations here from libc; no signal handlingMike Smith1998-11-044-4/+504
| | | | | | | | | | | in libstand, only for i386 until I locate an alpha setjmp/longjmp. Minimal 64-bit gcc integer support for i386. This is kinda nasty, and should be revisited once we decide whether the bootblocks need quad arithmetic. Notes: svn path=/head/; revision=40874
* Add:Mike Smith1998-11-015-10/+73
| | | | | | | | | assert() setjmp()/longjmp() vsprintf() Notes: svn path=/head/; revision=40805
* Add a new field to the devsw structure; dv_print, to print all valid unitsMike Smith1998-10-313-2/+19
| | | | | | | | | | etc. associated with the device entry. Consider EOF an 'error' for fgetstr if we haven't read anything yet. You *MUST* recompile and reinstall libstand before rebuilding the bootstrap. Notes: svn path=/head/; revision=40774
* Implement a hook to allow us to reclaim the memory used by the first stageDoug Rabson1998-10-192-2/+14
| | | | | | | of the bootstrap (the bit which loads /boot/loader). Notes: svn path=/head/; revision=40520
* To clarify last commit, msmith says:David E. O'Brien1998-10-171-1/+1
| | | | | | | | The reason the Alpha has less room than the i386 is because the bootstrap is given a 256K mapping by the firmware; to add more requires extra work. Notes: svn path=/head/; revision=40499
* Reduce the sbrk() increment from 64K to 4K. There's not much room on theMike Smith1998-10-161-2/+2
| | | | | | | Alpha, and wasting potentially 64K-4 bytes of RAM just isn't an option. Notes: svn path=/head/; revision=40458
* Add strcasecmp source file required for dosfs operation.Mike Smith1998-10-071-0/+74
| | | | Notes: svn path=/head/; revision=40036
* Enable the DOS filesystem. This allows reading from various DOS filesystemsMike Smith1998-10-063-10/+9
| | | | | | | | | | (FAT12/16/32, VFAT). Make a private copy of strcasecmp, as the "real" one uses the system ctype header, which introduces locale poisoning. Notes: svn path=/head/; revision=40005
* Don't build with -g.Mike Smith1998-10-041-2/+2
| | | | Notes: svn path=/head/; revision=39942
* Prune unused zalloc components as recommended by Matt Dillon. Extra debuggingMike Smith1998-10-015-348/+30
| | | | | | | code is still enabled (it's not very expensive). Notes: svn path=/head/; revision=39863
* * Enable old UFS compatibility code for booting from Digital Unix formattedDoug Rabson1998-09-266-7/+46
| | | | | | | | | | disks. * Fix a whole raft of warnings, printf and otherwise. * Make zalloc work for alpha (just a case of using the right typedef). * Add some (disabled) malloc debug printing to stand.h. Notes: svn path=/head/; revision=39672
* Fixed setting of mp_End in zextendPool(). A case was missing and mp_SizeMatthew Dillon1998-09-261-2/+3
| | | | | | | no longer reflects the mp_End - mp_Base equivalent. Notes: svn path=/head/; revision=39666
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlyMike Smith1998-09-2613-338/+1118
| | | | | | | | | | | | | | | | | | | | compact and much better one donated by Matt Dillon. Implement a simple sbrk() which uses the existing setheap() api. Remove the custom allocator from the UFS code. It wasn't working quite right, and it shouldn't be needed with the new allocator. Fix a serious problem with changing the value of already-existent environment variables. Don't attempt to modify the supposedly-const argument to putenv() Fix an off-by-one sizing error in the zipfs code detected by the new allocator. Submitted by: zmalloc from Matt Dillon <dillon@backplane.com> Notes: svn path=/head/; revision=39665
* Use unsigned chars instead of signed chars when extracting bits of theDoug Rabson1998-09-231-1/+1
| | | | | | | inet address. Notes: svn path=/head/; revision=39607
* Include "stand.h", not <stand.h>.Jordan K. Hubbard1998-09-211-1/+1
| | | | Notes: svn path=/head/; revision=39536
* Allocate disk buffers using a custom allocator. The standard allocator ↵Doug Rabson1998-09-201-11/+45
| | | | | | | | | | fragments extremely badly if disk buffers are freed back into the main heap and the alpha bootstrap has a restricted address space which just ran out :-(. Notes: svn path=/head/; revision=39529
* Use a simple version of inet_ntoa(). The libc one uses inet_ntop which is tooDoug Rabson1998-09-201-0/+65
| | | | | | | complicated. Notes: svn path=/head/; revision=39528
* Nuke prototype for strerror, consumers get it from <string.h>Mike Smith1998-09-182-4/+2
| | | | | | | Fix overlooked nullopen() implementation. Notes: svn path=/head/; revision=39469
* Path arguments to *_open functions should be const, but we were manglingMike Smith1998-09-189-74/+54
| | | | | | | | | them. Submitted by: write-protected text segment in BTX Notes: svn path=/head/; revision=39468