tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
sys
/
lib
/
libsa
/
at
jcs
97 files
Makefile
Add ufs2 to the list of filesystem, for the sake of boot blocks which do not provide an explicit list of files to build in libsa.
3 years ago
Makefile.inc
zap trailing newlines; "go for it" deraadt
11 years ago
aes_xts.c
make the AES-XTS mode a little more constant-time, though the AES implementation that it depends on currently isn't.
8 years ago
aes_xts.h
Provide standalone versions of AES, AES XTS, HMAC SHA1, PBKDF2 and SHA1.
13 years ago
alloc.c
Make the freelist best fit code a tiny bit smarter to not use a block if half or more would be wasted. Causes more effective re-use of blocks. ok jsing@
7 years ago
arc4.c
add arc4 cipher to the bootblocks ok djm mortimer
6 years ago
arc4.h
add arc4 cipher to the bootblocks ok djm mortimer
6 years ago
arp.c
spelling
5 years ago
bcrypt_pbkdf.c
spelling
5 years ago
bcrypt_pbkdf.h
Add bcrypt_pbkdf to libsa, from libutil. This will soon allow the boot loader to support softraid crypto volumes using bcrypt pbkdf.
9 years ago
blowfish.c
remove unused blowfish inline defines inline use was removed in 1998
3 years ago
blowfish.h
Niels agreed to remove the advertising clause; switching these to 3-term BSD license.
4 years ago
bootp.c
Sprinkle const in static (internal) routines.
11 years ago
bootp.h
ansification and knf and protos
22 years ago
bootparam.c
Gordon W. Ross agreed to rescind clause 3 and 4 in NetBSD dev_net.c rev 1.15 bootparam.c rev 1.19
3 years ago
bootparam.h
First round of __P removal in sys
24 years ago
cd9660.c
Sprinkle const in static (internal) routines.
11 years ago
cd9660.h
First round of __P removal in sys
24 years ago
close.c
ansification and knf and protos
22 years ago
closeall.c
ansification and knf and protos
22 years ago
colorchar.h
libsa: color boot prompt
9 years ago
cons.c
shuffle an extern around so gcc4 doesn't whinge about incomplete types as suggested by miod.
16 years ago
cread.c
Correctly handle short read()s in the libsa gzip handling lseek(). Also avoid masking the errno from a failed read().
9 years ago
ctime.c
Align libsa ctime output with libc ctime output.
7 years ago
dev.c
Delete obsolete /* ARGSUSED */ lint comments.
3 years ago
disklabel.c
Delete spurious assignment.
4 months ago
dkcksum.c
Sprinkle const whenever possible.
11 years ago
ether.c
Sprinkle const whenever possible.
11 years ago
exit.c
put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macros to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@.
22 years ago
explicit_bzero.c
Provide an explicit_bzero for standalone usage.
13 years ago
fchmod.c
Return -1 on actual failure
3 years ago
fstat.c
ansification and knf and protos
22 years ago
getchar.c
move getchar() into libsa where applicable
11 years ago
getfile.c
Replace unbounded gets() in libsa with getln() which takes a buffer size, and convert all gets() users. ok deraadt@
10 years ago
getln.c
Replace unbounded gets() in libsa with getln() which takes a buffer size, and convert all gets() users. ok deraadt@
10 years ago
globals.c
Stop using old n_long and n_short types.
11 years ago
hexdump.c
Implement a hexdump command in the boot loader. This helps to inspect the memory layout that the firmware has created. It is especially useful for UEFI debugging. OK deraadt@ kettenis@
6 years ago
hmac_sha1.c
Provide standalone versions of AES, AES XTS, HMAC SHA1, PBKDF2 and SHA1.
13 years ago
hmac_sha1.h
Fix array bounds mismatch with clang 15
3 years ago
in_cksum.c
If we pass a packet length larger than 2^16, we should panic() instead of returning -1. With a return type of u_int16_t, -1 is not different to a valid checksum. For incoming packets, the header lengths don't exceed that size anyway, but for outgoing packets it's better to see if our bootloader crafts a broken one.
5 years ago
ioctl.c
ansification and knf and protos
22 years ago
iodesc.h
strcpy/strcat/sprintf removal in all bootblocks. various testing by various people. outside of some messy things in src/gnu, only one thing in the main tree now violates this rule: bind
23 years ago
loadfile.c
#define open O_* flags in libsa/stand.h, so that bootblocks can use O_RDONLY rather using 0 ok beck
4 years ago
loadfile.h
Add an element to the marks array to store the virtual address of the entry point.
6 years ago
loadfile_elf.c
Remove an unneeded variable.
5 years ago
lseek.c
ansification and knf and protos
22 years ago
memcmp.c
Add missing OpenBSD CVS tags
9 years ago
memcpy.c
libsa's memcpy() is actually memmove(). make a proper memmove(), and give memcpy() correct behaviour. This also brings the bcopy() macro into line.
7 years ago
memmove.c
libsa's memcpy() is actually memmove(). make a proper memmove(), and give memcpy() correct behaviour. This also brings the bcopy() macro into line.
7 years ago
memset.c
ansification and knf and protos
22 years ago
net.c
(char *)0 -> NULL
10 years ago
net.h
Sync in_cksum.c to the same version ospfd has. This fixes problems with odd packet lengths, which can happen when using TFTP to load a file with an odd length. ospfd actually took dvmrpd's version in 2006 to fix the same issue, and both daemons implementations are the same. For the bootloader we keep the consts from the previous version and replace the fatal with a print and return.
5 years ago
netif.c
Ansify pxe_netif_close() and {,pxe}socktodesc()
3 years ago
netif.h
strcpy/strcat/sprintf removal in all bootblocks. various testing by various people. outside of some messy things in src/gnu, only one thing in the main tree now violates this rule: bind
23 years ago
netudp.c
Stop converting UDP and IP header values from network endianness to host endianness for convenience reasons. Especially in code pathes like TFTP where the source port is read from the received UDP packet and used as destination port in a new UDP packet this can be very harmful. Luckily this issue has had no effect on our architectures since they never use any of the code paths that could be harmful.
8 years ago
nfs.c
Guard debug printf with NFS_DEBUG ifdef like the other debug prints.
9 years ago
nfs.h
Sprinkle const whenever possible.
11 years ago
nfsv2.h
Stop using old n_long and n_short types.
11 years ago
nullfs.c
ansification and knf and protos
22 years ago
open.c
Change a bunch of (<blah> *)0 to NULL.
10 years ago
pkcs5_pbkdf2.c
remove unneeded semicolons; checked by millert@
2 years ago
pkcs5_pbkdf2.h
Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.
9 years ago
printf.c
we have never built without %b support
7 years ago
putchar.c
libsa: color boot prompt
9 years ago
rarp.c
Stop using old n_long and n_short types.
11 years ago
read.c
ansification and knf and protos
22 years ago
readdir.c
Remove dead store to f and avoid use of unvalidated fd.
4 years ago
rijndael.c
Provide standalone versions of AES, AES XTS, HMAC SHA1, PBKDF2 and SHA1.
13 years ago
rijndael.h
Provide standalone versions of AES, AES XTS, HMAC SHA1, PBKDF2 and SHA1.
13 years ago
rpc.c
When sendrecv() returns -1, have rpc_call() return -1 as well. Otherwise, due to the cast to unsigned, it fails the error test and returns a bogus partial read to the caller, which is painful to debug.
10 years ago
rpc.h
Stop using old n_long and n_short types.
11 years ago
rpcv2.h
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
23 years ago
saerrno.h
Sprinkle const whenever possible.
11 years ago
sha1.c
Provide standalone versions of AES, AES XTS, HMAC SHA1, PBKDF2 and SHA1.
13 years ago
sha1.h
Provide standalone versions of AES, AES XTS, HMAC SHA1, PBKDF2 and SHA1.
13 years ago
sha2.c
spelling
5 years ago
sha2.h
Add sha2 to libsa, taken from libc - needed for bcrypt_pbkdf.
9 years ago
snprintf.c
we have never built without %b support
7 years ago
softraid.c
Add boot.conf(8) 'mach idle [secs]' to halt at idle passphrase prompts
2 years ago
softraid.h
Retry on incorrect passphrase for softraid crypto boot.
7 years ago
stand.h
libsa: color boot prompt
9 years ago
stat.c
#define open O_* flags in libsa/stand.h, so that bootblocks can use O_RDONLY rather using 0 ok beck
4 years ago
strchr.c
bye bye SCCS
13 years ago
strcmp.c
ansification and knf and protos
22 years ago
strerror.c
Sprinkle const whenever possible.
11 years ago
strlen.c
bye bye SCCS
13 years ago
strncmp.c
ansification and knf and protos
22 years ago
strncpy.c
ansification and knf and protos
22 years ago
strtol.c
ansification and knf and protos
22 years ago
strtoll.c
Import a slightly stripped down strtoll(3) from stdlib into libsa as it is needed for boot(8) > 4G support. With help from mickey@ i386 and amd64 tests by me, alpha test by mickey@ OK mickey@, miod@, deraadt@
19 years ago
tftp.c
Remove unused variables to silence clang.
4 years ago
tftp.h
Remove braindead prototype for a nonexistent function.
11 years ago
ufs.c
In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade. Now various forms of upgrade failure will reboot into /bsd, which is probably more recoverable. Performing fchmod -x depends on (1) use of MI boot.c (not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality in the IO layer. Most architectures have this support now.
6 years ago
ufs.h
In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade. Now various forms of upgrade failure will reboot into /bsd, which is probably more recoverable. Performing fchmod -x depends on (1) use of MI boot.c (not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality in the IO layer. Most architectures have this support now.
6 years ago
ufs2.c
In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade. Now various forms of upgrade failure will reboot into /bsd, which is probably more recoverable. Performing fchmod -x depends on (1) use of MI boot.c (not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality in the IO layer. Most architectures have this support now.
6 years ago
ufs2.h
Next step in prepping for ffs2 installs: introduce a new install script var MDFSOPT and add a missing prototype.
6 years ago
write.c
ansification and knf and protos
22 years ago