summaryrefslogtreecommitdiffstats
path: root/sys/lib/libsa (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use signed variables to store the result of rpc_call().miod2015-08-151-3/+3
|
* Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.outmiod2015-07-171-5/+3
| | | | kernels and we no longer have any.
* Adjust type of link_len to match type of di_size in underlying struct, andkspillner2015-07-172-11/+9
| | | | | | | | | | change type of len to size_t to match strlen(3) result. Drop unneeded casts. u_int64_t is overkill because the actual size is still limited to SYMLINK_MAX but it is probably better to match the filesystem types. ok miod@, guenther@
* Expand ancient NTOHL/NTOHS/HTONS/HTONL macros.mpi2015-07-162-7/+7
| | | | ok guenther@, henning@
* Fix 1.26; kdoprnt() should not attempt to invoke va_end() at all, it's themiod2015-06-141-4/+2
| | | | caller's responsibility to do so.
* Extend the libsa loadfile(9) granularity to tell apart randomness from the restmiod2015-05-192-6/+15
| | | | | | | | | of the kernel, and extend the array filled by loadfile to report the location of the randomness area. This doesn't introduce any change for bootblocks (save for a slightly larger stack usage due to the larger array), for the new {LOAD,COUNT}_RANDOM bits are included in the {LOAD,COUNT}_ALL masks everything uses or computes from.
* Remove unused static local variable; mickey@miod2015-03-101-3/+1
|
* Invoke va_end() before returning, rather than in an unreachable place; mickey@miod2015-03-101-3/+4
|
* Include sys/stdint.h for SIZE_MAX. OK deraadt@ miod@millert2015-02-051-1/+2
|
* Yet more #include de-duplication.krw2014-11-201-2/+1
| | | | ok deraadt@ tedu@
* Sprinkle const whenever possible.miod2014-11-1912-44/+44
|
* Move {recv,send}udp() out of net.c into their own file; to be used shortly.miod2014-11-193-206/+259
| | | | Add the new files to the few md libsa builds which require it.
* Ansify.miod2014-11-191-17/+8
|
* Make the past-ELAST libsa-specific errno values contiguous.miod2014-11-191-6/+6
|
* Remove braindead prototype for a nonexistent function.miod2014-11-191-2/+1
|
* Sprinkle const in static (internal) routines.miod2014-11-192-21/+13
|
* Nuke yet more obvious #include duplications.krw2014-11-181-2/+1
| | | | ok miod@
* Read the section header string table in the boot blocks' memory, not in themiod2014-10-261-2/+2
| | | | loaded image area.
* ddb: add support for DWARF line number decodingmatthew2014-10-091-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | This allows ddb's "trace" command to include file and line numbers: ddb{0}> trace Debugger() at Debugger+0x9 [../../../../arch/amd64/amd64/db_interface.c:405] ddb_sysctl() at ddb_sysctl+0x1b4 [../../../../ddb/db_usrreq.c:104] sys___sysctl() at sys___sysctl+0x216 [../../../../kern/kern_sysctl.c:229] syscall() at syscall+0x297 [../../../../sys/syscall_mi.h:84] --- syscall (number 202) --- end of kernel end trace frame: 0x7f7ffffcf1d7, count: -4 acpi_pdirpa+0x4117aa: For this to work, it requires using a new version of boot(8), and booting a kernel with the .debug_line section present (e.g., building with ``makeoptions DEBUG="-g"'' and then booting the bsd.gdb kernel instead of the stripped bsd kernel). Still a WIP, but no failure reports yet. Committing so further development and testing can happen in tree. prodding deraadt, guenther, mlarkin ok mpi
* use NULL instead of (foo *)0; Kent R. Spillnerderaadt2014-07-222-9/+9
|
* remove unneccessary casts; Kent R. Spillnerderaadt2014-07-222-3/+3
|
* zap trailing newlines; "go for it" deraadtokan2014-07-161-2/+1
|
* Stop using old n_long and n_short types.mpi2014-07-1315-120/+108
|
* move putchar() into libsajasper2014-07-133-5/+72
| | | | "sure" miod@
* move getchar() into libsa where applicablejasper2014-07-122-1/+55
| | | | ok miod@
* Rearrange the inequality.brad2014-06-101-3/+3
| | | | | | | | | | Pointed out by LLVM. tftp.c:331:17: error: comparison of unsigned expression < 0 is always false From NetBSD ok miod@
* Fix typo: d_addrt -> daddr_tdcoppa2014-04-291-1/+1
| | | | ok bmercer@
* Add ufs2 support and get one step closer to making ffs2 bootable. This work was done by Pedro Martelletto for bitrig. One small tweak to make it buildable with -Werror. "Please commit" miod@bmercer2014-04-162-0/+750
|
* Fix alignment of tftp structure by changing the 'header' member's typeguenther2014-03-283-10/+13
| | | | | | to a struct with the necessary alignment. analysis and ok kettenis@
* Do not actually write to the area spanned by the PT_OPENBSD_RANDOMIZE ifmiod2014-02-251-5/+10
| | | | | LOAD_DATA is not set in flags; allows a two-pass kernel load using COUNT_KERNEL and then LOAD_KERNEL to work; similar to sparc loadfile_sparc.c 1.3.
* Try to load entropy data from disk:/etc/random.seed, and additionallyderaadt2013-12-282-2/+17
| | | | | | | use a MD-supplied random function. Then, insert this into the ELF openbsd.randomdata of the kernel, so that it has entropy right from the start. Some help from jsing for the softraid aspects. Also tested by phessler
* avoid math on void * pointersderaadt2013-11-121-13/+13
| | | | | (a few years ago, people went far too void * happy, it was like a drug or something)
* more a.out/ecoff removal; ok phesslerderaadt2013-10-171-298/+1
|
* UFS does't do inode numbers >2^32, so use a smaller type internally,guenther2013-05-301-9/+9
| | | | | | | only using ino_t in the VFS layer APIs: vget, readdir, getattr. otto wrote the original diff for libsa to keep bootblock from overflowing ok deraadt@ kettenis@
* Move exec() libsa prototype to hp300 stand, now that it can no longer bemiod2013-01-071-2/+1
| | | | found in libsa.
* Remove libsa exec.c, not used by anything anymore; all boot blocks now usemiod2013-01-012-181/+2
| | | | loadfile or a derivative of.
* Remove unused XCPPFLAGS.miod2013-01-012-5/+3
|
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-054-8/+4
| | | | ok guenther millert kettenis
* Provide standalone versions of AES, AES XTS, HMAC SHA1, PBKDF2 and SHA1.jsing2012-10-0910-0/+1856
|
* Provide an explicit_bzero for standalone usage.jsing2012-10-092-7/+21
|
* bye bye SCCSderaadt2012-07-133-14/+2
|
* Oops, forgot to remove that reference to now dead saioctl.hmiod2011-09-201-2/+1
|
* Remove unused libsa error code and descriptions. Anything shrinkingmiod2011-09-202-7/+2
| | | | boot blocks is worth having.
* Remove unused file before deranged boot blocks writer get ideas from it.miod2011-09-201-49/+0
|
* Do not leak memory if ufs_open() fails; reported by and ok martynas@miod2011-05-281-6/+13
|
* Change daddr_t to daddr32_t. The bootblocks on our architectures onlyderaadt2011-03-135-21/+21
| | | | | | | do 32-bit block spanning. If later on we get some that can/should do 64-bit, that can be done now using daddr64_t (but of course, we are taking this step to finalize the daddr_t 64-bit conversion). ok miod krw
* - properly remove NENTS now after fixing the fallout.jasper2010-12-061-2/+1
| | | | ok deraadt@
* - partially revert previous NENTS removal for arches which got busted.jasper2010-12-061-1/+2
|
* - drop NENTS(), which was yet another copy of nitems().jasper2010-12-061-2/+1
| | | | | | | no binary change ok deraadt@
* shuffle an extern around so gcc4 doesn't whinge about incomplete typesjsg2010-05-092-3/+4
| | | | | | as suggested by miod. ok miod@