summaryrefslogtreecommitdiffstats
path: root/lib/libstand/stand.h
Commit message (Collapse)AuthorAgeFilesLines
* POSIX introduced optreset to deal with multiple invocationsmsmith1999-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>
* Well I never. Seems like _setjmp()/_longjmp() are just what the doctormsmith1998-11-041-1/+5
| | | | | | | ordered. This brings the Alpha back to parity, and should bring us BootForth on both platforms. Submitted by: John Birrell (jb@freebsd.org)
* Improve the quality of isspace() to match expectations. This should makemsmith1998-11-041-2/+2
| | | | the Ficl interpreter read its softwords array OK.
* Add:msmith1998-11-011-1/+2
| | | | | | assert() setjmp()/longjmp() vsprintf()
* Add a new field to the devsw structure; dv_print, to print all valid unitsmsmith1998-10-311-1/+2
| | | | | | | 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.
* Implement a hook to allow us to reclaim the memory used by the first stagedfr1998-10-191-1/+4
| | | | of the bootstrap (the bit which loads /boot/loader).
* Enable the DOS filesystem. This allows reading from various DOS filesystemsmsmith1998-10-061-3/+1
| | | | | | | (FAT12/16/32, VFAT). Make a private copy of strcasecmp, as the "real" one uses the system ctype header, which introduces locale poisoning.
* * Enable old UFS compatibility code for booting from Digital Unix formatteddfr1998-09-261-2/+26
| | | | | | | 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.
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlymsmith1998-09-261-5/+16
| | | | | | | | | | | | | | | | | 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>
* Nuke prototype for strerror, consumers get it from <string.h>msmith1998-09-181-3/+1
| | | | Fix overlooked nullopen() implementation.
* Path arguments to *_open functions should be const, but we were manglingmsmith1998-09-181-10/+7
| | | | | | them. Submitted by: write-protected text segment in BTX
* Fixed syntax errors (__dead should have gone away years ago, andbde1998-08-241-2/+2
| | | | __attribute__(()) is a gccism - we use __dead2).
* This is libstand; a support library for standalone executables (eg. bootstrapmsmith1998-08-201-0/+305
modules). Obtained from: NetBSD, with some architectural changes and many additions.
OpenPOWER on IntegriCloud