summaryrefslogtreecommitdiffstats
path: root/lib/libstand
Commit message (Collapse)AuthorAgeFilesLines
* Implement the full range of ISO9660 number conversion routines in iso.h.des2005-10-181-15/+0
| | | | MFC after: 2 weeks
* Add -mno-sse3 for prescott/noconaache2005-07-151-0/+3
|
* Match sys/boot in ensure GCC does not use x86 FP registers in integer code.obrien2005-06-031-1/+2
| | | | Submitted by: Pawel Worach <pawel.worach@gmail.com>
* Back out revision 1.51, it is wrong. We don't litter -I's within libobrien2005-05-311-1/+1
| | | | Makefiles to get headers from /usr/src vs. the standard include paths.
* Use %z to print size_t values.jhb2005-05-312-2/+2
|
* Just use uintptr_t and intptr_t rather than requiring each arch to providejhb2005-05-311-24/+2
| | | | explicit int/long typedefs.
* Make bzip2 support working again after bzip2 upgrade. This time commitsobomax2005-05-291-4/+19
| | | | | | | | | | | | BZ_NO_COMPRESS support to the bzip2 sources directly (yes, this takes file off the vendor branch, but looks like bzip2 maintainer doesn't care), so that it will not be removed when the next upgrade is performed. Also, add a short note on how to test bzip2 support. Pointy hat to: obrien Correct comment (libz -> libbz2) and remove useless full path to zutil.h while I am here.
* Add missed ${.CURDIR}/../../contrib/bzip2 into include search path, otherwisesobomax2005-05-291-1/+1
| | | | old version of bzlib.h can be picked up from the /usr/include.
* Remove unused variable. Shorten the path to WARNS=6 compliance.charnier2005-05-201-1/+2
|
* Fix libstand on amd64. Rev 1.46 (obrien) removed the -I. that thepeter2005-05-201-1/+1
| | | | | | | bzip2 support provided, and amd64 depended on. Amd64 has a custom ${.OBJDIR}/machine symlink in it and the -I. picked this up. Without it, the libstand code was being compiled in 32 bit mode, but with 64 bit machine headers.
* Clean up an additional file.obrien2005-05-171-0/+1
|
* Don't use a patch w/in /usr/src. Programmatically change files when needed.obrien2005-05-173-26/+15
|
* Re-enable support for bzip2'ed compressed filesystems.obrien2005-05-172-6/+11
|
* Temporarily disable support for bzip2'ed compressed filesystems, until aobrien2005-05-174-117/+1
| | | | maintainable why of handling them is created.
* Sort sections.ru2005-01-201-2/+2
|
* Various markup and spelling fixes.trhodes2004-12-291-0/+1
| | | | | PR: 75574 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
* NODOCCOMPRESS -> NO_DOCCOMPRESSru2004-12-211-2/+2
| | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE
* For variables that are only checked with defined(), don't provideru2004-10-241-2/+2
| | | | any fake value.
* Don't add integers to void pointers.stefanf2004-10-036-7/+7
|
* Prefer C99's __func__ over GCC's __FUNCTION__.stefanf2004-09-221-2/+2
|
* Reset the seek pointer to 0 when a file is successfully opened,iedowse2004-09-041-0/+2
| | | | | | | | | | | | | since otherwise the initial seek offset will contain the directory offset of the filesystem block that contained its directory entry. This bug was mostly harmless because typically the directory is less than one filesystem block in size so the offset would be zero. It did however generally break loading a kernel from the (large) kernel compile directory. Also reset the seek pointer when a new inode is opened in read_inode(), though this is not actually necessary now because all callers set it afterwards.
* Bump the document date, since the content changed today.roam2004-08-061-1/+1
| | | | Discussed with: ru
* Fix a printf("%b", ..) example.roam2004-08-061-2/+2
| | | | | | PR: 68849 Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> MFC after: 1 week
* Eliminate double whitespace.ru2004-07-031-3/+3
|
* Mechanically kill hard sentence breaks.ru2004-07-021-29/+56
|
* Update libstand makefile for zlib 1.2.1.tjr2004-07-011-3/+3
|
* Define iaddr_t and saddr_t for arm.cognet2004-05-141-1/+4
|
* Import _setjmp.S for arm in libstand.cognet2004-05-141-0/+106
|
* No reason to disable this test on powerpc.grehan2004-02-251-2/+0
|
* Use signed char cast to avoid out-of-range error on PowerPC (which hasgrehan2004-02-251-4/+5
| | | | | | unsigned char by default). This is a no-op on all other current arches. Tested by: md5 sum before/after same on i386
* Clean up error handling in libstand filesystem code to be more consistent:jhb2004-01-2110-27/+49
| | | | | | | | | | | | | | | - 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.
* - Move the code to try to open a single chunk file and prompt for thejhb2004-01-151-12/+31
| | | | | | | associated floppy if needed into a static split_openfile() function. - Use this function in splitfs_open() to open the first chunk rather than using open() directly. This allows the first chunk to be located on a different disk than the actual foo.split file.
* Whitespace tweaks to make indentation consistent within this file and evenjhb2004-01-151-4/+4
| | | | within a single function.
* - Print out line number in a panic message using %d rather than %p. Linejhb2004-01-152-2/+2
| | | | | | numbers aren't pointers. - Add a __printflike() attribute to libstand's panic() prototype to catch such bogons in the future.
* Removed duplicate SRCS.ru2004-01-111-1/+0
|
* Implement seeking to earlier offsets in gzipfs. This allows my loadergreen2003-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.
* PowerPC-conditional changes:grehan2003-12-101-1/+7
| | | | | | - include ashldi3.c/ashrdi3.c from libc for UFS 64-bit arith - pull in syncicache.c from libc, and define _STANDALONE for loader usage
* Preserve the constness of the value argument passed to env_setenv() aspeter2003-10-262-2/+3
| | | | it gets passed through the filter functions.
* mdoc(7): Properly mark C headers.ru2003-09-101-2/+2
|
* bsd.lib.mk,v 1.143 no longer uses ld(1) directly to stripru2003-06-301-1/+0
| | | | | | | symbols from intermediate object files, so these hacks to get AMD64 compile are no longer needed. Tested on: sledge.FreeBSD.org
* Add amd64 build gluepeter2003-06-261-1/+22
|
* Restore bzip2(1) support in loader(8) after Peter's renames ofru2003-04-251-2/+11
| | | | malloc() to Malloc(), and free() to Free(), in zalloc_malloc.c.
* Trust the code more than the comment(s) and correct some falserobert2003-04-121-4/+4
| | | | | statements about pointer data type sizes, which spread probably by copy-and-paste.
* Sync up with kern/subr_prf.c. This adds %ll, %j, %q, %z, etc.peter2003-04-061-47/+115
|
* The .Fn functioncharnier2003-03-241-5/+10
| | | | The .Nm library
* Fix a machine check abort caused by the EFI loader trying to open amarcel2003-03-032-2/+4
| | | | | | | | | | | | | | | | | | file in the NFS file system when the underlying device is not a network device. A Sparc64 specific hack for this exact problem was already present (nfs.c:1.9, tftp.c:1.10), but the problem is not specific to Sparc64. The hack has been promoted to a non-i386 test because on non-i386 architectures it's either impossible to have non-network devices coexist in the same loader with the NFS FS, or network and non-network device coexist and NFS filesystems can only be used on top of network devices. I believe i386 pxeboot is where this does not hold. The root cause of this problem is in open.c where each file system is tried until no more file systems exist or a file system returns success. There's no notion of a list of valid file systems given the underlying device and the non-existence of a file can cause the invalid combination to be tried.
* The zalloc pool's size calculation breaks if sbrk() does not returndillon2002-12-191-3/+3
| | | | | | contiguous chunks of memory. It happens to do so in the bootstrap code, but not necessarily in other places. MFC after: 7 days
* Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.jake2002-12-195-330/+6
|
* Uniformly refer to a file system as "file system".ru2002-12-121-14/+14
| | | | Approved by: re
* Capitalize ASCII code names.ru2002-12-051-2/+5
| | | | Approved by: re
OpenPOWER on IntegriCloud