summaryrefslogtreecommitdiffstats
path: root/lib/libstand
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Update the second copy of libstand to deal with the new ufs2 superblockjake2002-12-031-1/+1
| | | | | | format. The one in sys/boot/libstand is not connected to the build. Approved by: re
* Add the libz derived files, added in the previous commit, tomarcel2002-10-191-0/+2
| | | | CLEANFILES. We were not cleaning up after ourselves.
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-1/+2
|
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-08-211-2/+2
| | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
* Fix a typo in #if 0 codescottl2002-08-211-1/+1
|
* Stash various networking paramters in the environment for the kerneljake2002-07-311-1/+15
| | | | to pick up, ala pxe.
* Reimplement malloc/free debugging that includes the offending file:linepeter2002-07-205-40/+73
| | | | | | | | | | | | info. This turned out to be rather useful on ia64 for tracking down malloc/free problems. Detect duplicate free()'s - otherwise these show up as a guard1 failure and it looks like corruption instead of something simple like a second free() where there shouldn't be. Deal with libz using libc headers and not seeing the malloc/free stuff that we provide in libstand. Do similar nastiness to what is done for bzlib. Tested on: i386, ia64 (compile, run)
OpenPOWER on IntegriCloud