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