summaryrefslogtreecommitdiffstats
path: root/lib/libstand
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Add __printflike() to printf() and sprintf() prototypes. -ffreestandingpeter2002-07-201-2/+2
| | | | | turns off gcc's builtin attributes for these functions and as a result -Wformat does no checking. (argh)
* Add a hack (kludge?) to avoid trying to access files backed by diskjake2002-07-072-0/+8
| | | | devices as though they were backed by network devices.
* Ficl wants _setjmp and _longjmp. No need for weak symbols either.jake2002-07-071-6/+4
|
* To avoid anybody else getting caught out, these two files are reallypeter2002-06-292-278/+0
| | | | in /sys/boot/common and are actually used there.
* Update from NetBSD 1.3 -> 1.6. Most notable, rev 1.6:peter2002-06-291-1/+13
| | | | | | "Make in_cksum work on little endian machines" This would explain a few things. :-)
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-95/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* Correct bswap64() prototype.sobomax2002-06-031-1/+1
| | | | | | Submitted by: glewis MFC after: 1 day (assuming that there is re's approval)
OpenPOWER on IntegriCloud