summaryrefslogtreecommitdiffstats
path: root/sys/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Provide initial libsa softraid - this is currently just the data structuresjsing2016-09-112-0/+260
| | | | and softraid crypto key handling code.
* Add bcrypt_pbkdf to libsa, from libutil. This will soon allow the bootjsing2016-09-102-0/+189
| | | | loader to support softraid crypto volumes using bcrypt pbkdf.
* Add blowfish to libsa, taken from libc - needed for bcrypt_pbkdf.jsing2016-09-102-0/+767
|
* Add sha2 to libsa, taken from libc - needed for bcrypt_pbkdf.jsing2016-09-102-0/+1107
|
* Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.jsing2016-09-102-15/+13
|
* Sync libsa pkcs5_pbkdf2() with libutil.jsing2016-09-102-12/+14
|
* retire sparctedu2016-09-0121-3422/+0
|
* Declare lseek() instead of assuming it'll be provided elsewhereguenther2016-08-271-1/+2
| | | | ok deraadt@
* remove hppa64 port, which we never got going beyond broken single users.deraadt2016-05-117-2035/+0
| | | | | | hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
* remove vax handlingnatano2016-03-231-5/+2
| | | | ok millert
* " the the " -> " the ", or in a couple of cases replace the superfluouskrw2016-03-201-2/+2
| | | | | | "the" with the obviously intended word. Started with a "the the" spotted by Mihal Mazurek.
* Change a bunch of (<blah> *)0 to NULL.krw2016-03-146-21/+21
| | | | ok beck@ deraadt@
* more pieces of vaxderaadt2016-03-107-319/+0
|
* Sync no-argument function declaration and definition by adding (void).naddy2016-03-072-4/+4
| | | | ok mpi@ millert@
* Replace unbounded gets() in libsa with getln() which takes a buffer size,miod2015-11-164-16/+22
| | | | | and convert all gets() users. ok deraadt@
* (char *)0 -> NULLmmcc2015-10-261-2/+2
| | | | ok tedu@
* Cast isdigit()'s argument to unsigned char.mmcc2015-10-261-2/+2
| | | | ok guenther@
* Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In oneguenther2015-10-011-3/+0
| | | | | | | case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@
* Remove orphaned files.miod2015-09-183-239/+1
|
* unify free(NULL,size) behaviour by allowing passing NULLsemarie2015-09-141-3/+7
| | | | ok millert@ jasper@
* Initial commit of uefi boot loader of OpenBSD.yasuoka2015-09-022-4/+4
| | | | ok deraadt yuo
* When sendrecv() returns -1, have rpc_call() return -1 as well. Otherwise, duemiod2015-08-151-2/+2
| | | | | to the cast to unsigned, it fails the error test and returns a bogus partial read to the caller, which is painful to debug.
* 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.
* At some point arm moved to a unified syntax for arm and thumb instructions.jsg2015-06-082-39/+43
| | | | | | | | | While binutils supports both "unified" and "divided" syntax (defaulting to divided) the integrated assembler in clang only supports unified names so switch some files to unified syntax. Similiar changes were made in bitrig and freebsd. No difference in objdump -d output. tested on zaurus by deraadt@, ok miod@
* 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 some includes include-what-you-use claims don'tjsg2015-03-141-1/+0
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* 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
|
* Revert some $OpenBSD$ additions about which there are doubts.krw2015-01-201-1/+0
| | | | Suggested by deraadt@
* Missing $OpenBSD$'s.krw2015-01-201-0/+1
| | | | ok deraadt@
* Make some $OpenBSD$ lines prettier/standardier by eliminatingkrw2015-01-191-1/+1
| | | | | | | superflous '*' after '/*' and adding blank after terminating '$'. Also eases parsing of the lines by simple awk scripts. Aesthetic approval from tedu@.
* Sync with libc version.millert2015-01-152-43/+42
|
* unifdef __APCS_26__ we don't run on anything with a 26 bit program counter.jsg2014-12-305-61/+5
| | | | | This codepath was removed in the NetBSD code this is derived from back in 2003 and was removed in Bitrig earlier this year. No binary change.
* Replacing <machine/endian.h> with <sys/endian.h> does not imply removingmiod2014-12-202-0/+4
| | | | <sys/types.h>. kthxbye
* Use <sys/endian.h> instead of <machine/endian.h>guenther2014-12-192-4/+2
| | | | ok dlg@ mpi@ bcook@ millert@ miod@
* sync with libc, using brnz,pt instead, should be betterderaadt2014-12-191-5/+4
| | | | ok kettenis
* Like libc, also for the kernel: Import new amd64 assembly versions ofreyk2014-12-094-93/+442
| | | | | | | | | | strchr/index, strrchr/rindex, and strlen that provide a significantly faster performance than our previous .c or .S implementations. Based on NetBSD's code. Tested with different amd64 CPUs. ok deraadt@ mikeb@
* it should not be necessary to clear the direction flagtedu2014-11-2916-26/+8
| | | | ok deraadt
* mask off high bits from 'c', before operation, otherwise the packingderaadt2014-11-211-0/+1
| | | | | logic writes balony. Hunting with tedu, mlarkin, and final bit spotted by naddy in freebsd's version.
* 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
|