freebsd-dev/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 Import _setjmp.S for arm in libstand. 2004-05-14 12:24:51 +00:00
i386 Change #include "DEFS.h" to <machine/asm.h>. 2001-10-25 01:30:54 +00:00
powerpc
sparc64 Ficl wants _setjmp and _longjmp. No need for weak symbols either. 2002-07-07 18:04:45 +00:00
__main.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
arp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
assert.c Make the output from assert() look more like the example in the C99 2001-10-29 07:07:25 +00:00
bcd.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bootp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
bootp.h
bootparam.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bootparam.h
bswap.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bzipfs.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
bzlib_private.h.diff Restore bzip2(1) support in loader(8) after Peter's renames of 2003-04-25 06:44:56 +00:00
bzlib.c.diff Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
bzlib.h.diff Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
cd9660.c - Change the f_isdir field of struct file to be a flags field and two 2001-11-06 22:31:10 +00:00
close.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
closeall.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dev.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dosfs.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
dosfs.h
environment.c Preserve the constness of the value argument passed to env_setenv() as 2003-10-26 04:04:12 +00:00
ether.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
ext2fs.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
fstat.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
getopt.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
gets.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
globals.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
gzipfs.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
if_ether.h
in_cksum.c Update from NetBSD 1.3 -> 1.6. Most notable, rev 1.6: 2002-06-29 09:00:47 +00:00
inet_ntoa.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
ioctl.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
iodesc.h
libstand.3 Bump the document date, since the content changed today. 2004-08-06 15:29:54 +00:00
lseek.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
Makefile Update libstand makefile for zlib 1.2.1. 2004-07-01 00:01:26 +00:00
net.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
net.h
netif.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
netif.h
nfs.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
nfsv2.h
nullfs.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
open.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
pager.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
printf.c Sync up with kern/subr_prf.c. This adds %ll, %j, %q, %z, etc. 2003-04-06 05:25:48 +00:00
qdivrem.c Add __divdi3() and __moddi3() to libstand. We will need them for UFS2. 2002-05-13 13:31:20 +00:00
quad.h Remove __P() usage. 2002-03-21 23:54:04 +00:00
random.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
rarp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
read.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
readdir.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
rpc.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
rpc.h
rpcv2.h
saioctl.h
sbrk.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
splitfs.c Clean up error handling in libstand filesystem code to be more consistent: 2004-01-21 20:12:23 +00:00
stand.h - Print out line number in a panic message using %d rather than %p. Line 2004-01-15 18:35:32 +00:00
stat.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strcasecmp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
strdup.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strerror.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strtol.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
tftp.c Fix a machine check abort caused by the EFI loader trying to open a 2003-03-03 00:58:47 +00:00
tftp.h
twiddle.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
udp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
ufs.c Reset the seek pointer to 0 when a file is successfully opened, 2004-09-04 14:54:01 +00:00
write.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
zalloc_defs.h Define iaddr_t and saddr_t for arm. 2004-05-14 13:32:13 +00:00
zalloc_malloc.c Use signed char cast to avoid out-of-range error on PowerPC (which has 2004-02-25 00:52:14 +00:00
zalloc_mem.h
zalloc_protos.h
zalloc.c The zalloc pool's size calculation breaks if sbrk() does not return 2002-12-19 23:23:20 +00:00
zutil.h.diff Reimplement malloc/free debugging that includes the offending file:line 2002-07-20 04:18:20 +00:00