jhb
205e8146ba
- Change the f_isdir field of struct file to be a flags field and two
...
new flags: F_ROOTDIR and F_RR (Rock Ridge present).
- Cache the SUSP LEN_SKP parameter in struct file as well.
- If we open() '/', then force a read of the directory's contents so we
can examine the directory record of '.' to see if Rock Ridge is present.
- If Rock Ridge extensions are present, lookup Rock Ridge names in
readdir().
2001-11-06 22:31:10 +00:00
jhb
51653ec753
- Add a simple SUSP parser.
...
- Use the SUSP parser to detect Rock Ridge (RRIP) extensions and to look
up alternate names when opening files.
2001-11-06 19:59:19 +00:00
jhb
31e0ff725a
Switch to using ANSI function declarations and add missing function
...
prototypes. I'm tired of getting stupid bugs from changing function
parameters and not getting warnings from the compiler when I goof it up.
2001-11-06 17:13:05 +00:00
mike
a535f37a5c
Make the output from assert() look more like the example in the C99
...
standard.
Requested by: bde
2001-10-29 07:07:25 +00:00
mike
114c18db6c
Only provide function information in compile environments that support
...
the C99 variable __func__ and never for C++. Provide a more meaningful
example in the assert(3) manual.
Reviewed by: asmodai, bde
2001-10-27 20:11:10 +00:00
peter
be540227ff
Remove the -I../libc/${MACHINE_ARCH} that was there solely for
...
the #include "DEFS.h" that was only used on i386 (which has been fixed).
2001-10-26 21:20:23 +00:00
peter
45416fb0ae
Change #include "DEFS.h" to <machine/asm.h>.
2001-10-25 01:30:54 +00:00
asmodai
4a6f23e243
Add __FBSDID.
...
Change __assert() function to print failing function name.
This makes us C99 conforming.
2001-10-24 18:12:43 +00:00
robert
38bb426327
Make this Makefile suitable for sparc64.
2001-10-15 14:27:37 +00:00
robert
05a6e99f71
Define the types iaddr_t and saddr_t for sparc64.
2001-10-15 13:50:47 +00:00
bde
94220967cf
Compensate for "Compensate for header dethreading" by backing it out.
2001-10-10 17:48:44 +00:00
ru
727c2b4b9e
mdoc(7) police: Use the new .In macro for #include statements.
2001-10-01 16:09:29 +00:00
ru
53175e50f7
mdoc(7) police: markup nits.
2001-10-01 12:52:24 +00:00
dillon
db188ab31c
Add __FBSDID()s to libstand
2001-09-30 22:28:01 +00:00
sobomax
ca39cb6da3
Add support for loading bzip2-compressed filesystems. Among other things
...
this would allow to load bzip2-compressed kernels/modules from the loader(8)
(support for that will be committer separately).
MFC after: 1 month
2001-09-18 13:01:12 +00:00
dfr
f8fc031664
Remove bogus implementation of _setjmp/_longjmp
2001-09-03 14:19:02 +00:00
kris
c2afb2f049
Check for malloc failure in a couple of cases
...
MFC after: 2 weeks
2001-09-03 05:57:06 +00:00
jdp
e2bfcb1a16
Fix a bug in lseek which caused the loader to fail on some gzipped
...
kernels. The error message was "elf_loadexec: cannot seek".
Libstand maintains a read-ahead buffer for each open file, so that
it can read in chunks of 512 bytes for greater efficiency. When
the loader tries to lseek forward in a file by a small amount, it
sometimes happens that the target file offset is already in the
read-ahead buffer. But the lseek code simply discarded the contents
of that buffer and performed a seek directly on the underlying
file. This resulted in an attempt to seek backwards in the file,
since some of the data has already been read into the read-ahead
buffer. Gzipped data streams cannot seek backwards, so an error
was returned.
This commit adds code which checks to see if the desired file offset
is already in the read-ahead buffer. If it is, the code simply
adjusts the buffer pointer and length, thereby avoiding a reverse
seek on the gzipped data stream.
I incorporated a suggestion from Matt Dillon which saved a little
bit of code in this fix.
Reviewed by: dillon, gallatin, jhb
2001-08-29 23:33:22 +00:00
gallatin
284bfcfa90
Bail if we go beyond the directory size, not just if we hit it.
...
Certain ISO fs's (like the one for 4.4-RC1 disc1 on alpha)
trigger this, and we end up opening a null file name. This causes us to get
a false match for "kernel.ko" when it does not exist.
2001-08-23 17:08:26 +00:00
ru
173222b339
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
ru
839959ae32
Spell "FreeBSD" with "F" and "BSD" in uppercase.
2001-08-13 16:33:00 +00:00
ru
325db7b385
Removed duplicate VCS ID tags, as per style(9).
2001-08-13 14:06:34 +00:00
mp
d8038b19d8
Make include file consistent with the rest of libstand.
2001-07-31 15:49:50 +00:00
dd
c49a4e6620
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
ru
940dc0c680
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 13:41:46 +00:00
dd
978810079e
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
mikeh
68aff2218c
Reset errno so that subsequent TFTP requests don't fail after the
...
first failure.
PR: misc/25502
MFC after: 2 weeks
2001-06-30 21:39:09 +00:00
msmith
8a90fb059e
Correct the returned UDP datagram length. See the PR for a more comprehensive
...
description of the fix.
PR: misc/25503
Submitted by: Jim Browne <jbrowne@jbrowne.com>
MFC after: 1 week
2001-05-28 22:27:06 +00:00
msmith
47c7b2f211
The shortest valid TFTP packet is 4 bytes, not 8.
...
PR: misc/25503
Submitted by: Jim Browne <jbrowne@jbrowne.com>
MFC after: 1 week
2001-05-28 22:25:44 +00:00
dcs
cf1a24dc35
Replace functional bugs of ctypish functions in libstand with style
...
bugs.
reviewed by: bde
MFC after: 1 week
2001-05-14 16:49:20 +00:00
markm
e73c60124a
Compensate for header dethreading.
2001-05-01 09:37:01 +00:00
msmith
4cfaa8f1af
Unbreak world by defining isalnum() for libstand consumers.
2001-04-29 19:06:57 +00:00
gallatin
1487c156cb
fix cd9660 to work on files larger than ISO_DEFAULT_BLOCK_SIZE and unbreak
...
cdboot on alphas (which has been broken since just after 4.0-RELEASE)
submitted by: jlemon
2001-04-07 23:48:46 +00:00
ru
f85a17a1d7
MAN[1-9] -> MAN.
2001-03-27 17:27:19 +00:00
dfr
6980695ad6
A quick and dirty port of libstand to ia64.
2001-03-06 16:11:36 +00:00
ru
6d04909a5e
Prepare for mdoc(7)NG.
2001-02-22 15:03:09 +00:00
dcs
1053441568
Correct the prototype for pager_output().
2001-02-22 10:58:30 +00:00
kris
a4c13915e2
Silence -Wnon-const-format
2001-02-18 04:51:47 +00:00
asmodai
9bb829b9c2
Fix typo: compatability -> compatibility.
...
Compatability is not an existing english word.
2001-02-06 12:05:58 +00:00
ru
b1c3961564
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
ru
1d60a70335
mdoc(7) police: removed leading whitespaces that are not inside
...
Bd/Ed; these hardly degrade the quality of the produced output.
2001-01-19 14:15:40 +00:00
ru
fb54000812
Prepare for mdoc(7)NG.
2000-12-29 14:08:20 +00:00
ru
fe2efd38b3
mdoc(7) police: removed history info from the .Os FreeBSD call.
2000-12-14 11:52:05 +00:00
ps
b12e68a7aa
When TFTP tries to open a file, it is expecting struct open_file
...
member f_devdata to be a pointer to a socket number. When currdev
is "pxe", that assumption is correct. When currdev is "disk*", that
assumption is incorrect.
Submitted by: Jim Browne <jbrowne@jbrowne.com>
2000-12-08 05:02:12 +00:00
benno
34ada50ba0
Disable the end guard for now.
...
The test for failing the end guard was always triggering (and was reported as
such in compiler warnings). This is a temporary band-aid until I can work
out what's really going on.
Reviewed by: obrien
2000-11-10 06:15:24 +00:00
benno
142c4b7c82
Make setjmp work our way, as opposed to NetBSD's.
...
This file needs commenting still.
Submitted by: luoqi
Reviewed by: obrien
2000-11-10 06:10:28 +00:00
benno
6816d9c95f
Don't always enable debugging for the network device code.
...
Reviewed by: obrien
2000-11-10 06:06:55 +00:00
ps
20ff154a1a
Honor the ip address given in the root-path dhcp option.
...
PR: 21743
Submitted by: Brian Candler <B.Candler@pobox.com>
2000-11-05 14:55:09 +00:00
obrien
cf138ac092
Inital PowerPC loader build support.
...
Submitted by: Benno Rice <benno@jeamland.net>
2000-10-10 13:22:41 +00:00
obrien
321ee358b3
Fix the embeded VCS ID for FreeBSD vs. NetBSD.
2000-10-10 13:15:26 +00:00