FreeBSD src
Go to file
Bruce Evans ccb174975a Fixed lblktosize(). It overflowed at 2G. This bug only affected
ufs_read() and ufs_write().

Found by: looking at warnings for comparing the result of lblktosize()
(which is usually daddr_t = long) with file sizes (which are u_quad_t
for ufs).  File sizes should probably be off_t's to avoid warnings
when the are compared with file offsets, so the fixed lblktosize()
casts to off_t instead of u_quad_t.

Added definition of smalllblksize().  It is the same as the old
lblksize() and is more efficient for small block numbers on 32-bit
machines.

Use smalllblktosize() instead of its expansion in blksize() and
dblksize().  This keeps the line length short and makes it more
obvious that the shift can't overflow.
1996-10-12 22:12:51 +00:00
bin
contrib Don't mention tcpdump; this is for groff. 1996-10-08 20:11:55 +00:00
eBones
etc Whoops, update the comment field while we're at it. (I *hate* the link 1996-10-12 04:56:28 +00:00
games
gnu Catch a situation where the tty speed might be 0 (in the case of UUCP 1996-10-12 10:41:56 +00:00
include Fixed the wrong include file for a "prototype mismatch" error between 1996-10-08 01:38:36 +00:00
lib Send PASV instead of PASSIVE. 1996-10-10 08:34:27 +00:00
libexec Add the search directories from the hints file only the first time it is 1996-10-10 23:16:50 +00:00
lkm delete unused variable BINDIR, use new variable MODLOAD/MODUNLOAD 1996-10-06 22:17:16 +00:00
release Get the pysical address for id_maddr when opening an -incore kernel. 1996-10-12 20:23:26 +00:00
sbin Rewrote the section about the "normal" setting of the security level to 1996-10-12 15:37:23 +00:00
secure
share Adjust the Israel mirrors now that we have il.freebsd.org working. 1996-10-11 12:07:43 +00:00
sys Fixed lblktosize(). It overflowed at 2G. This bug only affected 1996-10-12 22:12:51 +00:00
tools Actually tell people what ifinfo is. 1996-10-11 18:27:35 +00:00
usr.bin export variable TMPDIR (which maybe set, but not exported in /etc/locate.rc) 1996-10-12 20:29:25 +00:00
usr.sbin Get the pysical address for id_maddr when opening an -incore kernel. 1996-10-12 20:23:26 +00:00
COPYRIGHT
Makefile