[Libsysio-commit] strided-io: libsysio/include file.h fs.h inode.h
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2004-01-27 21:34:49
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2222/include Modified Files: Tag: strided-io file.h fs.h inode.h Log Message: Added --with-zero-sum-memory which causes _sysio_shutdown to have various global (variable sized) tables deallocated at shutdown time. This in order to make *all* memory dynamically allocated during the run is free'd. This is really a debugging only option. These tables, normally, need not be freed. Once that was accomplished valgrind was run. No errors/leaks are reported now. Index: file.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/file.h,v retrieving revision 1.7 retrieving revision 1.7.6.1 diff -u -w -b -B -p -r1.7 -r1.7.6.1 --- file.h 13 Oct 2003 01:04:35 -0000 1.7 +++ file.h 27 Jan 2004 21:33:44 -0000 1.7.6.1 @@ -98,3 +98,6 @@ extern struct file *_sysio_fd_find(int f extern int _sysio_fd_set(struct file *fil, int fd); extern int _sysio_fd_dup2(int oldfd, int newfd); extern int _sysio_fd_close_all(void); +#if ZERO_SUM_MEMORY +extern void _sysio_fd_shutdown(void); +#endif Index: fs.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/fs.h,v retrieving revision 1.4 retrieving revision 1.4.16.1 diff -u -w -b -B -p -r1.4 -r1.4.16.1 --- fs.h 24 Mar 2003 22:09:05 -0000 1.4 +++ fs.h 27 Jan 2004 21:33:44 -0000 1.4.16.1 @@ -167,3 +167,6 @@ extern struct filesys * _sysio_fs_new(st unsigned mask, void *private); extern void _sysio_fs_gone(struct filesys *fs); +#if ZERO_SUM_MEMORY +extern void _sysio_fssw_shutdown(void); +#endif Index: inode.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/inode.h,v retrieving revision 1.13.6.4 retrieving revision 1.13.6.5 diff -u -w -b -B -p -r1.13.6.4 -r1.13.6.5 --- inode.h 27 Jan 2004 19:41:59 -0000 1.13.6.4 +++ inode.h 27 Jan 2004 21:33:44 -0000 1.13.6.5 @@ -407,6 +407,9 @@ extern TAILQ_HEAD(inodes_head, inode) _s extern TAILQ_HEAD(pnodes_head, pnode) _sysio_pnodes; extern int _sysio_i_init(void); +#if ZERO_SUM_MEMORY +extern void _sysio_i_shutdown(void); +#endif extern struct inode *_sysio_i_new(struct filesys *fs, struct file_identifier *fid, mode_t type, |