[Libsysio-commit] RedStorm: libsysio/drivers/incore fs_incore.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2003-05-19 14:25:27
|
Update of /cvsroot/libsysio/libsysio/drivers/incore In directory sc8-pr-cvs1:/tmp/cvs-serv29123/drivers/incore Modified Files: Tag: RedStorm fs_incore.c Log Message: Fixed a syntax error when compiled for Linux-IA32. Needed record length, in order to clear directory entry in unlink call, when compiled for Linux-IA32. Index: fs_incore.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/incore/fs_incore.c,v retrieving revision 1.4.4.1 retrieving revision 1.4.4.2 diff -u -w -b -B -p -r1.4.4.1 -r1.4.4.2 --- fs_incore.c 12 May 2003 11:48:45 -0000 1.4.4.1 +++ fs_incore.c 19 May 2003 14:25:24 -0000 1.4.4.2 @@ -711,8 +711,9 @@ incore_directory_probe(void *data, size_t siz, _SYSIO_OFF_T origin #ifndef _DIRENT_HAVE_D_OFF - __IS_UNUSED, + __IS_UNUSED #endif + , probe_ty entry, probe_ty hole, void *arg) @@ -1185,9 +1186,8 @@ incore_unlink_entry(struct incore_inode { struct lookup_data lookup_data; struct intnl_dirent *de; -#ifndef _DIRENT_HAVE_D_OFF size_t reclen; -#else +#ifdef _DIRENT_HAVE_D_OFF size_t off; #endif @@ -1210,6 +1210,7 @@ incore_unlink_entry(struct incore_inode reclen = de->d_reclen; #else off = de->d_off; + reclen = off - ((void *)de - icino->ici_data); #endif (void )memset(de, 0, reclen); #ifndef _DIRENT_HAVE_D_OFF |