summaryrefslogtreecommitdiff
path: root/sys/lib/libsa
AgeCommit message (Collapse)Author
2014-02-20Casting to void is the canonical way of marking a variable asjoerg
potentially unused.
2014-01-12Remove obsolete exec.c for a.out. It was superseded by loadfile() long ago.tsutsui
2014-01-05Make libsa fsmod string pointer const.jakllsch
2013-12-24intmax_t might be long long, handle accordingly. from christosjakllsch
2013-12-24Add 'j' format modifier for intmax_t.jakllsch
2013-11-27Fix a use-after-free (well, dealloc actually) issue.jakllsch
2013-11-03make a gcc unitialized variablechristos
2013-10-20XXX: gcc initializationschristos
2013-10-20remove unusedchristos
2013-10-20use new function to avoid array overflowchristos
2013-10-13Let's not use uninitialized variables to write to random memoryjoerg
locations, shall we?
2013-10-11Rework previous (1.24) change. Rather than depending on thepgoyette
file's flags to decide if decompress cleanup is needed, just check to see if the open() allocated the 'struct sd *' used for decompression. This fixes recent problem where presence of a "load=ffs" command in my /boot.cfg resulted in a "heap full" error at boot time. OK martin@
2013-08-21Use LIBISPRIVATE?= yesmatt
2013-06-23Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front ofdholland
the following symbols so as to disambiguate fully. (Christos already did the lfs ones.) lblkno lblktosize lfragtosize numfrags blkroundup fragroundup
2013-06-23fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()dholland
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB() (Christos already did the lfs ones a few days back)
2013-06-19blkoff() -> mfs_blkoff()dholland
XXX: this shouldn't be using "mfs" for its symbols as we also have XXX: sys/ufs/mfs.
2013-06-19Rename ambiguous macros:dholland
MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR INOPB -> FFS_INOPB, LFS_INOPB INOPF -> FFS_INOPF, LFS_INOPF blksize -> ffs_blksize, ext2_blksize, or lfs_blksize sblksize -> ffs_blksize These are not the only ambiguously defined filesystem macros, of course, there's a pile more. I may not have found all the ambiguous definitions of blksize(), too, as there are a lot of other things called 'blksize' in the system.
2013-06-18Prefix most of the cpp macros with lfs_ and LFS_ to avoid conflicts with ffs.christos
This was done so that boot blocks that want to compile both FFS and LFS in the same file work.
2013-06-09Stick UFS_ in front of these symbols:dholland
DIRBLKSIZ DIRECTSIZ DIRSIZ OLDDIRFMT NEWDIRFMT Part of PR 47909.
2013-06-09Build properly against the lfs changes.dholland
2013-05-10Wrap >80 char lines that overflowed on NDADDR -> EXT2FS_NDADDR changes.tsutsui
2013-04-14Make the check in close() for a non-deflatable file mode symetric tomartin
the one in open(). Avoids dealloc() calls on NULL.
2013-01-22Stuff UFS_ in front of a few of ufs's symbols to reduce namespacedholland
pollution. Specifically: ROOTINO -> UFS_ROOTINO WINO -> UFS_WINO NXADDR -> UFS_NXADDR NDADDR -> UFS_NDADDR NIADDR -> UFS_NIADDR MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency) Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have the same values in ext2fs and ffs. No functional change intended.
2012-12-12Pass down an empty CPUFLAGS since CPUFLAGS is contained in CFLAGS.matt
2012-08-10Deal with optional HAVE_GCC.joerg
2012-07-23Fix cd9660_read() to not read past the end of the file. This would resultmhitch
in incorrect resid values, and causes the read of /boot.cfg to ignore the file. If the requested transfer extends past the end of the file, force the internal buffer to be used, and when transferring data from the internal buffer, limit the transfer to what's left in the file. CDROM boot will now process the /boot.cfg file.
2012-05-21Remove the code that tries to load the "ffs" kernel module during boot.dsl
This is in line with the core decision than even modular kernels should contain the ffs code. I've left in the code that tries to load "nfs" and "ext2fs", but it isn't clear that is necessary. Removes a warning message that (usually) flashes past to fast to read. AFAICT all the relevant kernels contain ffs (and nfs for that matter).
2012-03-02Fix a bug that libsa ls doesn't work in case of filename with directory path.tsutsui
("ls /path/and/file" always returns not found) From MINIX via Evgeniy Ivanov.
2012-01-16PR/45796: Evgeniy Ivanov minixfs3 support.christos
Split out fn_match since we have 3 copies now.
2011-12-25Apply the following patch submitted by Evgeniy Ivanov:tsutsui
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html - add 'ls' op to struct fs_ops to support ls command on each fs, enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes" in libsa - split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c) that opens the target fs and calls fs-depedent XXX_ls() functions - add a ls op for ext2fs (all other fs than ufs and ext2fs don't have actual ls ops yet) - replace existing MD ufs_ls() calls with this new MI ls() The original patch was written for i386 and ext2fs. zaurus zboot has been tested by nonaka@. ews4800mips and x68k loaders have been tested by me (with several fixes). landisk might be okay since it was almost copied from i386. XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to replace it with real fs ops like readdir if it's really worth XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
2011-07-30Fix printf formating in ifdef DEBUG sections.jakllsch
2011-07-17Retire varargs.h support. Move machine/stdarg.h logic into MIjoerg
sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
2011-07-03apply some -O0 with gcc 4.5 and vax.mrg
2011-06-20remove HAVE_GCC == 4 conditionalmrg
2011-06-16Don't use C versions of memcmp, memcpy, memmove, memset and strchrjoerg
on x86 for standalone code. The assembler versions are much smaller.
2011-06-16Add an optional MD calling convention flag for use in libsa when spacejoerg
optimisation is critical. Use this on i386 to switch to register passing calling convention for the file system entry points and most assembler call backs that have to preserve at least 3 registers.
2011-06-16Add an optional MD calling convention flag for use in libsa when spacejoerg
optimisation is critical. Use this on i386 to switch to register passing calling convention for the file system entry points and most assembler call backs that have to preserve at least 3 registers.
2011-05-26Default to -Wno-sign-compare -Wno-pointer-sign for clang.joerg
Push -Wno-array-bounds down to the cases that depend on it. Selectively disable warnings for 3rd party software or non-trivial issues to be reviewed later to get clang -Werror to build most of the tree.
2011-05-20KNF a bit.tsutsui
2011-05-13Use %zd for ssize_t, and %zu for size_t.nakayama
2011-05-11Separate the IP and UDP code paths inside libsa, so I can add HTTP bootingzoltan
later.
2011-02-25No trailing 0 byte for hexdigits.joerg
2011-02-25Move HEXDIGIT to mvme68k's sboot. It seems to be the only user.joerg
Save a byte by explicitly specifying the size.
2011-02-17revert bad whitespace change.christos
2011-02-17fix -Wself-assign warningchristos
2011-01-06Pacify Clang -Wformat-security.jakllsch
2011-01-02Zero the in-memory super block after allocation. It contains a pointerjakllsch
that, if not properly initialized, could be improperly deallocated.
2010-12-26fix slightly wrong format.christos
2010-12-26Print size_t and ssize_t with %zd, not just %d.he
(How did this build before?)
2010-12-25Correct recently exposed printf format problem.jakllsch