Security fix patch. Fix insecure temporary file and directory creations. (CAN-2004...
[midnight-commander.git] / vfs / gc.h
blobce04c4e9ab55a9ee757a25937f4bb43c7389d1fd
1 #ifndef __GC_H
2 #define __GC_H
4 #include "vfs-impl.h"
6 struct vfs_stamping {
7 struct vfs_class *v;
8 vfsid id;
9 struct vfs_stamping *next;
10 struct timeval time;
13 extern int vfs_timeout;
15 void vfs_stamp (struct vfs_class *vclass, vfsid id);
16 void vfs_rmstamp (struct vfs_class *vclass, vfsid id);
17 void vfs_stamp_create (struct vfs_class *vclass, vfsid id);
18 void vfs_add_current_stamps (void);
19 void vfs_timeout_handler (void);
20 void vfs_expire (int now);
21 int vfs_timeouts (void);
22 void vfs_release_path (const char *dir);
23 vfsid vfs_getid (struct vfs_class *vclass, const char *dir);
24 void vfs_gc_done (void);
26 #endif /* __GC_H */