dsl
ef32565239
Add externs for ffsv1_xxx and ffsv2_xxx
2003-04-11 11:30:12 +00:00
dsl
f671893500
Files to build ffsv1 and ffsv2 versions of ufs.c
2003-04-11 11:28:54 +00:00
dsl
af3660bcdb
Use common ffs/lfs file ufs.c instead of lfs specific version.
2003-04-11 11:27:06 +00:00
dsl
5a0534abeb
Merge in lfs.c, use defines to build ffsv1, ffsv2, lfsv1 or lfsv2.
...
(removes the ability to build a single ufs.o that supports ffs v1 and v2,
that animal was too large for some of the boot code.)
Use shifts and masks to avoid pulling in 64bit divide.
2003-04-11 11:24:49 +00:00
dsl
fbf4bd0cfe
Put extern definition of bcopy in () to avoid macro expansion when
...
LIBSA_USE_MEMCPY is defined. Fixes breakage because the return
type of memcpy() is different to that of bcopy.
2003-04-11 10:34:38 +00:00
dsl
cff85b34d5
Fix prototypes of null_read and null_write, change to return errno values.
...
This code can't actually be used anywhere! I don't think its obvious use
would compile!
2003-04-10 14:44:05 +00:00
dsl
4a16b1cc1d
Add FS_DEF() and FS_OPS() defines to save typing (and errors) elsewhere.
...
Kill __P() and argument names in prototypes.
(approved by christos)
2003-04-10 14:39:46 +00:00
he
97b6d5bf4f
Conditionalize declaration of local variable ``i'', now that the
...
code which uses it is also conditionalized.
2003-04-02 19:47:25 +00:00
fvdl
42614ed3f3
Add support for UFS2. UFS2 is an enhanced FFS, adding support for
...
64 bit block pointers, extended attribute storage, and a few
other things.
This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.
Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
mycroft
0b87bcb397
constify a couple of pointers.
2003-04-01 21:09:32 +00:00
drochner
8b0843a5b2
There is no point in initializing "rootpath" to "/".
...
Move it into BSS.
2003-03-27 12:28:58 +00:00
mycroft
c6052ec21f
const! const!
2003-03-25 22:35:36 +00:00
drochner
f81c1c504b
remove stuff just moved to bootparam.c and some variables which are
...
never used.
2003-03-19 17:19:32 +00:00
drochner
3906113e15
Move global variables which are used only by bootparam here.
...
("domainname" is useless and could be removed, but adding code to
skip this in the RPC reply would probably be more expensive than leaving
it as a dummy variable.)
2003-03-19 17:18:07 +00:00
mycroft
f6258762e1
Move some stuff into .rodata.
2003-03-18 19:20:09 +00:00
drochner
68edf0e576
separate ether_sprintf() from the rest of ethernet support -- sometimes
...
it makes sense to use the former w/o the latter (eg PXE)
2003-03-12 16:46:31 +00:00
drochner
7b3b2ea783
no need to include "netif.h" anymore
...
(shared interface stuff is in iodesc.h, included by net.h)
2003-03-12 14:51:31 +00:00
drochner
7816074c59
separate the netif interface from the rest of the networking code,
...
so that it can be replaced easily in md code
2003-03-12 14:49:19 +00:00
jmmv
5649a49e43
After the "insert disk <number>, and press return..." message, check only
...
for the return keypress.
2003-03-11 19:43:04 +00:00
drochner
dd688f888f
translate EACCES (happens with NFS)
2003-03-11 15:02:54 +00:00
dsl
ef50700873
LIBSA_NO_CLOSE is LIBSA_NO_FS_CLOSE everywhere else.
2003-03-07 00:46:37 +00:00
ragge
e8d062d58b
Remove bogus check for bogus netmask.
2003-02-25 14:42:30 +00:00
pk
d71686ab26
Introduce fdloadfile() to load an image from an open file descriptor;
...
implement loadfile() in terms of it.
This allows clients to open a file once and "load" it multiple times (e.g.
first with COUNT_KERNEL, then with LOAD_KERNEL) without the side-effects
of multiple open calls.
2003-02-24 10:51:05 +00:00
simonb
6e4342ca79
Add support for LFSv2 filesystems. From a libsa standpoint, LFSv1 and
...
LFSv2 are treated as separate filesystem types for size considerations.
2003-02-23 23:17:42 +00:00
simonb
7d43baad24
Use the MAX() macro from <sys/param.h> instead of a local inline. Results
...
in same code size in ufs.c and removes an unused inline function in lfs.c.
2003-02-23 22:47:43 +00:00
simonb
8d6004faf3
We can't use <string.h> for standalone programs;
...
use <lib/libkern/libkern.h> for str*() prototypes instead.
2003-02-23 12:31:29 +00:00
dsl
2d1837c8fc
KNR, removing ugly 'unsigned' variables.
...
Probably should be size_t, but now matched prototype.
(mainly agreed with christos - he wanted size_t....)
2003-02-01 14:57:02 +00:00
dsl
912fab6ec9
Beautify a little
2003-02-01 14:54:22 +00:00
dsl
2c4edf02a4
Save some space
...
(agreed by christos)
2003-02-01 14:53:38 +00:00
dsl
3080e19ff3
Support limited filename globbing
...
- agreed by christos
2003-02-01 14:52:13 +00:00
fvdl
a3ff3a3038
Bump daddr_t to 64 bits. Replace it with int32_t in all places where
...
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
christos
8453828bf1
PR/19607: Bernd Ernesti: libsa does not have access to arpa/tftp.h. Put a
...
copy of it in our tftp.h
2003-01-12 18:59:15 +00:00
veego
a64314e402
Fix broken build due too the move of the cd9660 and msdosfs kernel source code.
2002-12-30 16:41:53 +00:00
pk
bd20047a69
Only display the final progress counter if any of the LOAD_ flags was given.
...
Fix comment describing the return value.
2002-12-11 09:55:20 +00:00
thorpej
e8cc3884de
Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is.
2002-12-10 17:14:02 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
thorpej
2699791533
Do not #include "/usr/include/arpa/tftp.h" directly. Doing so is
...
VERY BAD for cross-compiling.
2002-09-16 16:53:45 +00:00
itojun
937b671271
use exit(int), not exit(void), consistently - even if the arg has no meaning.
2002-06-01 11:40:31 +00:00
bjh21
a20462dc6e
Implement LIBSA_NO_FS_CLOSE, LIBSA_NO_FS_WRITE and LIBSA_NO_FS_SEEK.
...
LIBSA_NO_FS_SYMLINK and LIBSA_FS_SINGLECOMPONENT are irrelevant here.
2002-05-28 14:30:53 +00:00
bjh21
43079a573b
KNF.
2002-05-28 14:26:01 +00:00
lukem
e34d4e21de
fix comment
2002-05-10 11:07:01 +00:00
simonb
5457f78a34
Don't bother testing if a uint8_t is > 256 -- that test is always false.
2002-05-09 02:44:39 +00:00
simonb
67c33ffcda
Remove two shadowed variables, one of which was set to what it was
...
shadowing(!) and the other a temporary variable (as was it's shadow).
Code generated with "gcc -O2" is the same before and after.
2002-05-07 02:02:41 +00:00
ragge
b0fa7eb2c1
Someone had a braino here; IP_TTL != IPDEFTTL. This caused the standalone
...
udp traffic to only have a ttl of 4.
Found by Jens Nilsson, jens@rockstorm.se .
2002-04-23 09:16:09 +00:00
matt
fd1c084a68
Add a 1byte pad to make the ustar_t word aligned so the uas_1cyl after it
...
will also be word aligned. This makes the VAX VMB bootrom happy since it
doesn't support odd-aligned buffers.
2002-03-30 01:29:48 +00:00
thorpej
6440db6488
* Add a NetBSD Vendor Class Identifier option as proposed on tech-net
...
in message <20020216172527.C23901@dr-evil.shagadelic.org>.
* Print the bootp/dhcp response, as is done for rarp/bootparam
responses.
* Nuke bootp_flags and BOOTP_PXE; they're not used, nor should they be.
2002-03-20 23:10:39 +00:00
gmcgarry
d16aceedcc
Protect remaining references to 'debug' with NETIF_DEBUG.
2002-03-17 05:46:37 +00:00
simonb
f28e18332c
Move files[] from globals.c to its own file. Including all of globals.o
...
breaks the size limit for at least the pmax bootblocks.
Fixes PR port-pmax/15924 from Gregory McGarry.
2002-03-15 13:23:34 +00:00
thorpej
0b91bc440f
Move files[] from open.c to globals.c, so that it's possible to
...
use libsa in an application where there are no file systems or
devices.
2002-02-23 05:44:24 +00:00
lukem
da694bd77b
fix spelos
2002-02-22 12:46:53 +00:00