* path.cc (is_floppy): Make externally available.

* path.h (is_floppy): Declare.
	* syscalls.cc (sync): Check for floppies on A: and B: in guid case.
	Don't call setmntent in non-guid case but evaluate drive bit mask
	locally.
This commit is contained in:
Corinna Vinschen
2005-03-29 17:42:50 +00:00
parent 72a90d496d
commit db27ea4125
4 changed files with 26 additions and 4 deletions

View File

@ -274,6 +274,8 @@ bool fnunmunge (char *, const char *) __attribute__ ((regparm (2)));
int path_prefix_p (const char *path1, const char *path2, int len1) __attribute__ ((regparm (3)));
bool is_floppy (const char *);
/* FIXME: Move to own include file eventually */
#define MAX_ETC_FILES 2