David E. O'Brien
f8c1abb102
trailing white space removal.
2000-01-18 07:43:12 +00:00
David E. O'Brien
c35874acaa
Add two new functions cd9660_readfile() & cd9660_readdir(), which
...
cd9660_read() now uses to read CDROMs. With these changes FreeBSD/Alpha
can now boot from a bootable CDROM.
Submitted by: dfr
2000-01-18 07:37:10 +00:00
Peter Wemm
c447342094
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
...
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.
1999-12-29 05:07:58 +00:00
Peter Wemm
317b1ddf87
Use the ctype.h version of isascii() - it doesn't loose precision and think
...
that 0x100 (int) is an ascii character.
Submitted by: bde
1999-12-28 11:48:23 +00:00
Peter Wemm
59e1f32482
Tidy up some loose ends. nullfs_read/write were returning the wrong value.
...
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
1999-12-27 08:45:14 +00:00
Peter Wemm
0fbac2a6c5
longjumperror() and abort() don't exist in libstand.. Don't test
...
for a condition we can't handle (like the x86 longjmp). This was
highlighted by attempting to build FICL into the alpha loader.
1999-11-24 13:54:46 +00:00
Doug Rabson
04d5308a6b
Change toupper/tolower so that they don't give a bogus answer if the
...
argument is already upper/lower.
1999-09-11 17:54:37 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Warner Losh
dcb0ae4ed8
More egcs warning fixes:
...
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
1999-04-25 22:29:30 +00:00
John Polstra
d7e19a1d6a
Don't build with -g. The a.out egcs can't handle it at the moment.
...
This seems to have snuck back into the Makefile in an unrelated
commit (rev. 1.8).
1999-04-22 15:47:21 +00:00
Daniel C. Sobral
8871c529f8
Remove float-point dependency from i386's version of setjmp()/longjmp().
1999-02-12 17:22:30 +00:00
Daniel C. Sobral
64b0ea0c05
Copy _setjmp.S from libc in preparation for loader-specific version.
1999-02-12 17:20:19 +00:00
Jordan K. Hubbard
ff834009ea
Oops. Missed this in the last commit.
...
Submitted by: Daniel C. Sobral <dcs@newsguy.com>
1999-02-01 12:32:37 +00:00
Mike Smith
a79658408c
POSIX introduced optreset to deal with multiple invocations
...
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>
1999-01-11 06:01:29 +00:00
Peter Wemm
49a35712aa
Remove stray .endif from previous commit (I hope this is right)
1998-11-04 12:49:31 +00:00
Mike Smith
400a056059
Don't need this one anymore.
1998-11-04 07:40:05 +00:00
Mike Smith
b8ffd2a51c
Well I never. Seems like _setjmp()/_longjmp() are just what the doctor
...
ordered. This brings the Alpha back to parity, and should bring us
BootForth on both platforms.
Submitted by: John Birrell (jb@freebsd.org )
1998-11-04 07:39:53 +00:00
Mike Smith
1add1a81da
Improve the quality of isspace() to match expectations. This should make
...
the Ficl interpreter read its softwords array OK.
1998-11-04 07:04:00 +00:00
Mike Smith
797ed6379a
Don't try to build (nonexistent) Alpha setjmp until we have one.
1998-11-04 00:32:08 +00:00
Mike Smith
25c3957dfd
Move setjmp/longjmp implementations here from libc; no signal handling
...
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.
1998-11-04 00:23:18 +00:00
Mike Smith
17bcf9c00a
Add:
...
assert()
setjmp()/longjmp()
vsprintf()
1998-11-01 09:31:08 +00:00
Mike Smith
2baf3bb5a0
Add a new field to the devsw structure; dv_print, to print all valid units
...
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.
1998-10-31 02:48:29 +00:00
Doug Rabson
5a911c6263
Implement a hook to allow us to reclaim the memory used by the first stage
...
of the bootstrap (the bit which loads /boot/loader).
1998-10-19 09:08:40 +00:00
David E. O'Brien
d58fb9293a
To clarify last commit, msmith says:
...
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.
1998-10-17 22:20:06 +00:00
Mike Smith
95f5cf3349
Reduce the sbrk() increment from 64K to 4K. There's not much room on the
...
Alpha, and wasting potentially 64K-4 bytes of RAM just isn't an option.
1998-10-16 19:23:37 +00:00
Mike Smith
745f11adb6
Add strcasecmp source file required for dosfs operation.
1998-10-07 13:50:17 +00:00
Mike Smith
40fd46f77d
Enable the DOS filesystem. This allows reading from various DOS filesystems
...
(FAT12/16/32, VFAT).
Make a private copy of strcasecmp, as the "real" one uses the system ctype
header, which introduces locale poisoning.
1998-10-06 19:23:57 +00:00
Mike Smith
3f9423cca2
Don't build with -g.
1998-10-04 08:10:29 +00:00
Mike Smith
31a014da28
Prune unused zalloc components as recommended by Matt Dillon. Extra debugging
...
code is still enabled (it's not very expensive).
1998-10-01 17:35:08 +00:00
Doug Rabson
f069bf5a2c
* Enable old UFS compatibility code for booting from Digital Unix formatted
...
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.
1998-09-26 10:48:50 +00:00
Matthew Dillon
f69e7cfc4d
Fixed setting of mp_End in zextendPool(). A case was missing and mp_Size
...
no longer reflects the mp_End - mp_Base equivalent.
1998-09-26 03:24:14 +00:00
Mike Smith
95b50c2be3
Replace the old and extremely icky Mach/NetBSD allocator with a similarly
...
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>
1998-09-26 01:42:40 +00:00
Doug Rabson
f7506f876c
Use unsigned chars instead of signed chars when extracting bits of the
...
inet address.
1998-09-23 21:35:40 +00:00
Jordan K. Hubbard
0b3c226f0e
Include "stand.h", not <stand.h>.
1998-09-21 06:07:34 +00:00
Doug Rabson
02c40feecd
Allocate disk buffers using a custom allocator. The standard allocator 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 :-(.
1998-09-20 21:42:20 +00:00
Doug Rabson
b554c7492a
Use a simple version of inet_ntoa(). The libc one uses inet_ntop which is too
...
complicated.
1998-09-20 21:40:28 +00:00
Mike Smith
ec5cd5b130
Nuke prototype for strerror, consumers get it from <string.h>
...
Fix overlooked nullopen() implementation.
1998-09-18 23:00:57 +00:00
Mike Smith
4ce36a791b
Path arguments to *_open functions should be const, but we were mangling
...
them.
Submitted by: write-protected text segment in BTX
1998-09-18 22:58:01 +00:00
Mike Smith
0dd47c30aa
Remove (wrong) OBJFORMAT setting.
1998-09-15 02:30:22 +00:00
Robert Nordier
b131044669
Add support for reading directories as files.
...
Sort out fs_ops, alloc/free.
1998-08-27 10:45:20 +00:00
Bruce Evans
8d95788ee7
Fixed syntax errors (__dead should have gone away years ago, and
...
__attribute__(()) is a gccism - we use __dead2).
1998-08-24 02:54:33 +00:00
Mike Smith
b07983d9ab
Install libstand header <stand.h> and manpage (libstand.3)
1998-08-20 08:23:12 +00:00
Mike Smith
6b4f575cb1
This is libstand; a support library for standalone executables (eg. bootstrap
...
modules).
Obtained from: NetBSD, with some architectural changes and many additions.
1998-08-20 08:19:55 +00:00