summaryrefslogtreecommitdiff
path: root/lib/libstand/gzipfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up error handling in libstand filesystem code to be more consistent:John Baldwin2004-01-211-5/+11
| | | | | | | | | | | | | | | | | | - bzipfs and gzipfs now properly return errno values directly from their read routines rather than returning -1. - missing errno values on error returns for the seek routines on almost all filesystems were added. - fstat() now returns -1 if an error occurs rather than ignoring it. - nfs's readdir() routine now reports valid errno values if an error or EOF occurs rather than EPERM (It was just returning 0 for success and 1 for failure). - nullfs used the wrong semantics for every function besides close() and seek(). Getting it right for close() appears to be an accident at that. - read() for buffered files no longer returns 0 (EOF) if an error occurs, but returns -1 instead. Notes: svn path=/head/; revision=124811
* Implement seeking to earlier offsets in gzipfs. This allows my loaderBrian Feldman2003-12-101-15/+30
| | | | | | | | to e.g. correctly load all .ko.gz's I've tried, as opposed to messing up trying to read section headers on some of them. Notes: svn path=/head/; revision=123392
* Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.Jake Burkholder2002-12-191-1/+1
| | | | Notes: svn path=/head/; revision=108100
* Add splitfs vfs layer into libstand, which allows loading big kernels andMaxim Sobolev2002-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | modules split across several physical medias. Following is how it works: The splitfs code, when asked to open "foo" looks for a file "foo.split" which is a text file containing a list of filenames and media names, e.g. foo.aa "Kernel floppy 1" foo.ab "Kernel floppy 2" foo.ac "Kernel and modules floppy" For each file segment, the process is: - try to open the file - prompt "Insert the disk labelled <whatever> and press any key..." - try to open the file - return error if file could not be located RE team is free to use this feature in the upcoming 5.0-DP1. Reviewed by: msmith, dcs Notes: svn path=/head/; revision=92494
* Add __FBSDID()s to libstandMatthew Dillon2001-09-301-3/+3
| | | | Notes: svn path=/head/; revision=84221
* Add support for loading bzip2-compressed filesystems. Among other thingsMaxim Sobolev2001-09-181-2/+3
| | | | | | | | | | this would allow to load bzip2-compressed kernels/modules from the loader(8) (support for that will be committer separately). MFC after: 1 month Notes: svn path=/head/; revision=83610
* Check for malloc failure in a couple of casesKris Kennaway2001-09-031-0/+4
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=82852
* Add a readdir function to the loader fsops vector, and implement theJonathan Lemon2000-04-291-1/+2
| | | | | | | functionality for some of the filesystesms. Notes: svn path=/head/; revision=59766
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlyMike Smith1998-09-261-2/+4
| | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=39665
* Path arguments to *_open functions should be const, but we were manglingMike Smith1998-09-181-3/+3
| | | | | | | | | them. Submitted by: write-protected text segment in BTX Notes: svn path=/head/; revision=39468
* This is libstand; a support library for standalone executables (eg. bootstrapMike Smith1998-08-201-0/+316
modules). Obtained from: NetBSD, with some architectural changes and many additions. Notes: svn path=/cvs2svn/branches/MSMITH/; revision=38451