freebsd-nq/lib/libstand
Ian Dowse e3cce87239 Reset the seek pointer to 0 when a file is successfully opened,
since otherwise the initial seek offset will contain the directory
offset of the filesystem block that contained its directory entry.
This bug was mostly harmless because typically the directory is
less than one filesystem block in size so the offset would be zero.
It did however generally break loading a kernel from the (large)
kernel compile directory.

Also reset the seek pointer when a new inode is opened in read_inode(),
though this is not actually necessary now because all callers set
it afterwards.
2004-09-04 14:54:01 +00:00
..
alpha
arm
i386
powerpc
sparc64
__main.c
arp.c
assert.c
bcd.c
bootp.c
bootp.h
bootparam.c
bootparam.h
bswap.c
bzipfs.c
bzlib_private.h.diff
bzlib.c.diff
bzlib.h.diff
cd9660.c
close.c
closeall.c
dev.c
dosfs.c
dosfs.h
environment.c
ether.c
ext2fs.c
fstat.c
getopt.c
gets.c
globals.c
gzipfs.c
if_ether.h
in_cksum.c
inet_ntoa.c
ioctl.c
iodesc.h
libstand.3 Bump the document date, since the content changed today. 2004-08-06 15:29:54 +00:00
lseek.c
Makefile Update libstand makefile for zlib 1.2.1. 2004-07-01 00:01:26 +00:00
net.c
net.h
netif.c
netif.h
nfs.c
nfsv2.h
nullfs.c
open.c
pager.c
printf.c
qdivrem.c
quad.h
random.c
rarp.c
read.c
readdir.c
rpc.c
rpc.h
rpcv2.h
saioctl.h
sbrk.c
splitfs.c
stand.h
stat.c
strcasecmp.c
strdup.c
strerror.c
strtol.c
tftp.c
tftp.h
twiddle.c
udp.c
ufs.c Reset the seek pointer to 0 when a file is successfully opened, 2004-09-04 14:54:01 +00:00
write.c
zalloc_defs.h
zalloc_malloc.c
zalloc_mem.h
zalloc_protos.h
zalloc.c
zutil.h.diff