Commit Graph

16 Commits

Author SHA1 Message Date
pk 01bd8a8ca8 Initialize `f_offset'. 1997-01-28 09:41:03 +00:00
cgd 981d496969 Change file system file-open semantics slightly: if file system returns
EINVAL, that error code is ignored, leaving whatever other meaningful
error code that might have previously been returned intact.  Stand-alone
file system implementations return EINVAL typically when the file system
is not recognized (i.e. cd9660_open on a UFS file system, ufs_open on a
cd9660 file system, etc.).  This meant that if you had multiple file
systems in a file system switch, the first returned ENOENT (because
it recognized the file system type, but the file wasn't there) and
the second returned EINVAL (because it didn't recognize the file system
type), errno would be set to EINVAL.  Now it'll be set to ENOENT.

It would probably make sense to have file systems return a special
error code to indicate "this file system is unrecognized," which
could then be special-cased, but that's a fair bit more invasive.
1997-01-25 01:13:41 +00:00
cgd 21979e8d6b define these functions with an 'o' prepended to their names if
__INTERNAL_LIBSA_CREAD is defined (so that they can be used by the
compressed-read code).
1997-01-22 00:38:09 +00:00
cgd 9596fd8a77 only call the device close routine on a (fall-through) error if
F_NODEV isn't set in the file flags for the file being opened.
Pointed out by Matthias Drochner in PR 3122.  (fix equivalent to
the one he included, but stylistically different.)
1997-01-17 20:03:53 +00:00
ws fd225e6527 Add support for booting from cd9660 fs
Support directory traversal and symbolic links for nfs booting
Close device when file opening failed
Plug memory leak in ufs code
1996-09-30 16:01:18 +00:00
pk 51347fcaaa Return useful file descriptor when opening a raw device. 1996-06-21 20:51:23 +00:00
leo b7b97847ce Some files containing more than one function are split. This reduces the
size of the resulting loader. The read_inode() function now returns the
result of the strategy function instead of success in all cases (ufs.c).
Fixes pr#1817
1996-01-13 22:25:32 +00:00
thorpej c9a13fa080 Assume that if devopen() points `file' at a NULL that a raw device was
opened (as opposed to only checking to see if `file' itself is NULL).
1995-09-19 09:16:52 +00:00
pk 84c517c128 Clear up some size_t/ssize_t confusion. 1995-09-14 23:45:21 +00:00
pk 07f70f97f1 Avoid calling device-close routine when open() not completed. Otherwise you
lose if this sequence occurs: open()->devopen()->...->panic()->closeall().
1995-09-06 19:53:27 +00:00
cgd 586427643d various attribute poisoning, don't be as quick to specify size of files[] 1995-04-22 13:57:03 +00:00
cgd 6668f51c96 new RCS ID format. 1994-10-26 05:44:32 +00:00
pk 8e2c980509 Avoid descriptor leakage. 1994-07-18 18:41:12 +00:00
brezak e03842d0c7 Standalone networking for network boot loaders. 1994-05-08 16:11:14 +00:00
pk 381f4cb170 set errno. 1994-03-01 20:57:56 +00:00
brezak 36b52a824e CMU/4.4 stand-alone library 1994-01-26 02:03:32 +00:00